/* web_PremiumVR/styles.css */
:root {
    --color-bg: #050505;
    --color-text: #e0e0e0;
    --color-primary: #ff00ff;
    /* Magenta */
    --color-secondary: #00ffff;
    /* Cyan accent for contrast */
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
    --neon-glow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0a0a0f;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--color-text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Technical UI Decor */
body::before,
body::after {
    content: '+';
    position: fixed;
    color: var(--color-primary);
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    z-index: 1000;
    pointer-events: none;
}

body::before {
    top: 20px;
    left: 20px;
}

body::after {
    top: 20px;
    right: 20px;
}

/* Organic Overlay */
.organic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, #0a0a0f 90%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-subtitle,
.tech-pill,
.team-card p,
nav ul li a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.highlight {
    color: var(--color-primary);
    text-shadow: var(--neon-glow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9), transparent);
    backdrop-filter: blur(5px);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-primary);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    pointer-events: none;
    /* Let clicks pass through to canvas */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(15, 15, 20, 0.65);
    /* Increased transparency from 0.9 */
    backdrop-filter: blur(20px);
    /* Strong blur to keep text readable */
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 900px;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    background: #000;
}

#modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: none;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--color-primary);
    color: #000;
    opacity: 1;
}

#modal-title {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.9;
}

/* Mobile Modal */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .modal-image-container {
        height: 250px;
    }

    .modal-text {
        padding: 2rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Sections General */
section {
    padding: 6rem 2rem;
    min-height: 50vh;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Services Section */
#services {
    position: relative;
}

#grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(20, 20, 20, 0.2);
    /* Increased transparency from 0.4 */
    backdrop-filter: blur(8px);
    /* Slightly reduced blur to see more detail */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    /* Enable 3D space for children */
    will-change: transform;
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.1);
    /* Magenta glow */
}

.card h3,
.card p {
    transform: translateZ(20px);
    /* Pop out text */
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

/* Tech Section */
#tech {
    position: relative;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.7;
}

.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-category-title {
    font-family: 'Space Mono', monospace;
    color: var(--color-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.7;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-item {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
}

.tech-item:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Specific Brand Colors on Hover */
.tech-item[data-tech="unreal"]:hover {
    color: #0e1128;
    -webkit-text-stroke: 1px #fff;
    /* Outline effect for Unreal */
    text-shadow: 0 0 20px rgba(0, 100, 255, 0.8);
}

.tech-item[data-tech="unity"]:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.tech-item[data-tech="vision"]:hover {
    color: #e0e0e0;
    text-shadow: 0 0 20px rgba(200, 200, 200, 0.5);
}

.tech-item[data-tech="quest"]:hover {
    color: #0080fb;
    text-shadow: 0 0 20px rgba(0, 128, 251, 0.6);
}

.tech-item[data-tech="pico"]:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    /* Reddish hint */
}

.tech-item[data-tech="8thwall"]:hover {
    color: #7b3fe4;
    /* Purple */
    text-shadow: 0 0 20px rgba(123, 63, 228, 0.6);
}

/* Team Section */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}


.team-card {
    text-align: center;
    width: 250px;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-placeholder {
    width: 130px;
    height: 130px;
    background: #1a1a1a;
    border-radius: 50%;
    z-index: 2;
}

.avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    /* Ensure it sits above the ring container background if any */
}

/* Flip Card Styles */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.real-photo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 2px dashed var(--color-secondary);
    background: rgba(0, 255, 255, 0.1);
}

.avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
    animation: spin 4s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.team-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.team-card p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Form */
form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--color-text);
    border-radius: 8px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    box-shadow: var(--neon-glow);
}

button:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.8;
    /* Increased opacity for better visibility */
}

footer a {
    color: var(--color-secondary);
    /* Cyan */
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

footer a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.footer-contact {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}