:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-muted: #666666;
    --border-color: #1a1a1a;
    --font-main: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.4;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Typography Scale */
h1 { font-size: clamp(4rem, 12vw, 10rem); font-weight: 500; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { font-size: 1rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* Layout & Grid */
.section {
    padding: 8rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

.label-col {
    width: 200px;
    flex-shrink: 0;
}
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

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

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-toggle a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.lang-toggle a.active, .lang-toggle a:hover {
    color: var(--text-primary);
}

.lang-toggle .separator {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-contact {
    background: #fff;
    color: #000;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 7vw;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
}

#app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#app canvas {
    display: block;
}

.hero-top {
    position: absolute;
    top: 8rem;
    left: 7vw;
    right: 7vw;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    z-index: 10;
}

.hero-roles p, .hero-social p { color: var(--text-muted); }
.social-icons a { margin-left: 1rem; }

.hud {
    z-index: 5;
    text-shadow: 0 0 30px rgba(0, 0, 0, .8);
    pointer-events: none; /* Let clicks pass through to galaxy if interactive */
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .28em;
    opacity: .55;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    font-size: clamp(60px, 9vw, 150px);
    line-height: .8;
    letter-spacing: -.08em;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-title span {
    background: linear-gradient(100deg, #fff, #b98cff 45%, #55e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hud p {
    margin: 30px 0 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .04em;
    max-width: 500px;
    line-height: 1.6;
}

.line {
    width: 90px;
    height: 1px;
    background: rgba(255, 255, 255, .3);
    margin-bottom: 15px;
}

.hud small {
    font-size: 8px;
    letter-spacing: .2em;
    opacity: .35;
    text-transform: uppercase;
}

/* Marquee */
.marquee-container {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    display: flex;
    animation: scroll 20s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    margin-right: 2rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* About */
.about-section {
    display: flex;
    gap: 4rem;
}

.about-text {
    line-height: 1.2;
    max-width: 1000px;
    margin-bottom: 3rem;
}

.about-details {
    max-width: 800px;
}

.about-details p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #a0a0a0;
}

/* Full-Width Orchestration Banner */
.parallax-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: clamp(360px, 48vh, 580px);
    background-image: url('assets/Orquestra-42q6ri42q6ri42.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2.5rem 7vw;
}

/* Specific background path for English subfolder */
body.en-page .parallax-banner,
.en-page .parallax-banner {
    background-image: url('../assets/Orquestra-42q6ri42q6ri42.webp');
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, transparent 20%, transparent 80%, rgba(5,5,5,0.8) 100%);
    pointer-events: none;
}

.parallax-hud-tag {
    position: relative;
    z-index: 2;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .parallax-banner {
        background-attachment: scroll; /* Mobile fall-through */
        height: 280px;
        padding: 1.5rem 5vw;
    }
}

.stack-title {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.stack-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stack-list li {
    font-size: 1rem;
    color: #888;
    line-height: 1.5;
}

.stack-list strong {
    color: #e0e0e0;
    font-weight: 500;
}

/* Projects */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.view-all {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 2rem;
}

.project-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.bg-dark-gray { background: #1a1a1a; }
.bg-blue { background: #0f3b73; }
.bg-red { background: #7a1515; }
.bg-green { background: #2f4f3f; }

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

/* Services */
.services-section {
    display: flex;
    gap: 4rem;
}

.services-list {
    flex-grow: 1;
}

.service-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: color 0.3s;
    cursor: pointer;
}

.service-item.active, .service-item:hover {
    color: var(--text-primary);
}

.service-num {
    font-size: 0.875rem;
}

.service-item h2 {
    font-size: clamp(3rem, 6vw, 5rem);
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 12rem 2rem;
    border-bottom: none;
}

.cta-title {
    font-size: clamp(3rem, 8vw, 8rem);
}

.contact-form {
    max-width: 600px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.contact-form button {
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-form button:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal a {
    margin-left: 2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    /* Section & Scroll Margins */
    .section { 
        padding: 4rem 1.5rem; 
        scroll-margin-top: 80px;
    }

    /* Navbar */
    .navbar { 
        padding: 1rem 1.5rem; 
    }
    .nav-links { 
        display: none; 
    }

    /* Hero */
    .hero { 
        padding: 6rem 1.5rem 2rem 1.5rem; 
    }
    .hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .social-icons a {
        margin-left: 0;
    }

    /* About & Services Sections Layout */
    .about-section, .services-section { 
        flex-direction: column; 
        gap: 2rem; 
    }
    .label-col {
        width: 100%;
    }

    /* Full-Width Banner Responsiveness */
    .parallax-banner {
        height: clamp(240px, 35vh, 320px);
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 1.25rem 1.5rem;
    }
    .parallax-hud-tag {
        font-size: 8px;
        letter-spacing: 0.18em;
        padding: 6px 12px;
    }

    /* Projects Section Header & Grid */
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .projects-grid { 
        grid-template-columns: 1fr; 
        gap: 2.5rem;
    }

    /* Services List */
    .service-item {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .service-item h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* CTA / Contact Form */
    .cta-section {
        padding: 6rem 1.5rem;
    }
    .contact-form {
        margin-top: 2.5rem;
    }

    /* Footer Layout */
    .footer { 
        padding: 3rem 1.5rem; 
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
        margin-bottom: 3rem;
    }
    .footer-logo img {
        height: 50px;
    }
    .footer-links {
        gap: 4rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .footer-legal a {
        margin-left: 0;
        margin-right: 1.5rem;
    }
}
