/* --- BASE VARIABLES --- */
:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #88888b;
    /* Derived from the logo image */
    --fc-orange: #FF6B00; 
    --fc-blue: #FF8C38;
    --fc-blue-light: #FFAA55;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    height: 72px;
    z-index: 100;
    background: rgba(5, 5, 5, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0 3rem;
    height: 64px;
}

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

.logo-fallback {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}

.fc-blue { color: var(--fc-blue-light); }
.fc-orange { color: var(--fc-orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fc-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.2);
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta svg {
    transition: transform 0.3s ease;
}

.nav-cta:hover {
    background: var(--fc-orange);
    border-color: var(--fc-orange);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.25);
    transform: scale(1.03);
}

.nav-cta:hover svg {
    transform: translateX(3px);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 3;
    position: relative;
    max-width: 50vw;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}



.hero-desc {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 2rem;
    opacity: 0; /* Animated in via JS */
}

.hero-desc-line {
    width: 1px;
    min-height: 100%;
    background: linear-gradient(180deg, var(--fc-orange), transparent);
    flex-shrink: 0;
    position: relative;
}

.hero-desc-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fc-orange);
    box-shadow: 0 0 10px var(--fc-orange);
}

.hero-subtitle {
    font-size: clamp(0.78rem, 1vw, 0.92rem);
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Light sweep on hero title — subtle, like light passing over text */
.hero-title .word {
    display: block;
    transform: translateY(115%);
    color: rgba(255,255,255,0.85);
    position: relative;
}

.hero-title .word::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, transparent 35%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.15) 50%, transparent 55%, transparent 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lightSweep 8s ease-in-out infinite;
    animation-delay: var(--sweep-delay, 0s);
    pointer-events: none;
}

@keyframes lightSweep {
    0%, 100% { background-position: 300% 0; }
    40%, 60% { background-position: -100% 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 10vw;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0; /* Animated in via JS */
}

.scroll-indicator .line {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--text-main);
    animation: scrollLine 2.5s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Abstract Background Glows */
.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    animation: float 12s infinite alternate ease-in-out;
}
.blue-glow {
    width: 50vw; height: 50vw;
    background: var(--fc-blue);
    top: -20%; right: -10%;
}
.orange-glow {
    width: 40vw; height: 40vw;
    background: var(--fc-orange);
    bottom: -10%; left: -10%;
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3vw, 3vw) scale(1.05); }
}

/* Image Visuals */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero-visual iframe {
    width: 120%;
    height: 120%;
    border: none;
    margin-left: -10%;
    margin-top: -5%;
}

/* Hero overlay to prevent gradient bleed on scroll */
.hero {
    background: var(--bg-dark);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 2;
    pointer-events: none;
}

/* --- ABOUT SECTION --- */
.about {
    padding: 20vh 10vw;
    position: relative;
    z-index: 5;
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 4rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12vh;
    max-width: 1300px;
    letter-spacing: -0.02em;
}

.reveal-text span {
    color: rgba(255, 255, 255, 0.15);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.about-card {
    padding: 3.5rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.03);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1;
}

.blue-icon { color: var(--fc-blue-light); }
.orange-icon { color: var(--fc-orange); }

.about-card h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.about-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* --- HORIZONTAL SCROLL SERVICES --- */
.services-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #020202; /* Slightly different tone to separate */
}

.services-container {
    display: flex;
    width: 400vw; /* 4 panels * 100vw */
    height: 100%;
}

.service-panel {
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
}

.panel-content {
    max-width: 900px;
}

.panel-content h2 {
    font-size: clamp(4rem, 8vw, 9rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.panel-content p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
}

.blue-text { color: var(--fc-blue-light); }
.orange-text { color: var(--fc-orange); }

/* --- DEEP CALL TO ACTION (PINNED) --- */
.deep-cta-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cta-text-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    opacity: 0; /* Controlled by GSAP */
}

.cta-title {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 600;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
    opacity: 0; /* JS reveal */
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: var(--text-main);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 100px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    opacity: 0; /* JS reveal */
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

/* --- TECH SPECS STRIP --- */
.tech-strip {
    background: #020204;
    border-top: 1px solid rgba(255,107,0,.06);
    border-bottom: 1px solid rgba(255,255,255,.03);
    padding: 5rem 5rem;
    position: relative;
    overflow: hidden;
}
.tech-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255,107,0,.04), transparent 70%);
    pointer-events: none;
}
.tech-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
.tech-spec {
    text-align: center;
    padding: 1.5rem 0;
}
.spec-num {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--fc-orange);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
    font-family: 'Inter', sans-serif;
}
.spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- FINAL CTA --- */
.final-cta {
    text-align: center;
    padding: 8rem 2rem 6rem;
    background: var(--bg-dark);
    position: relative;
}
.final-cta-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fc-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}
.final-cta-h {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}
.btn-final {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--fc-orange);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 40px rgba(255,107,0,.2);
}
.btn-final:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 60px rgba(255,107,0,.35);
}
.btn-final svg {
    transition: transform 0.3s ease;
}
.btn-final:hover svg {
    transform: translateX(4px);
}
.final-cta-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- FOOTER --- */
.footer {
    width: 100%;
    background: #020204;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    padding: 4rem 5rem 3rem;
    gap: 4rem;
}
.footer-brand {
    max-width: 280px;
}
.footer-logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
}
.footer-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-cols {
    display: flex;
    gap: 4rem;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-col-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem;
    border-top: 1px solid rgba(255,255,255,.03);
    font-size: 0.72rem;
    color: rgba(255,255,255,.2);
}
.footer-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: rgba(255,107,0,.25);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .navbar { padding: 0 1.5rem; height: 60px; }
    .nav-links { display: none; }
    .nav-cta { font-size: 0.7rem; padding: 6px 14px; }
    .hero { padding: 0 6vw; }
    .about { padding: 15vh 6vw; }
    .tech-strip { padding: 3rem 2rem; }
    .tech-strip-inner { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .footer-top { flex-direction: column; padding: 3rem 2rem 2rem; gap: 2rem; }
    .footer-cols { flex-wrap: wrap; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; padding: 1.2rem 2rem; text-align: center; }
    
    .hero-content { max-width: 100%; }
    .hero-visual { 
        width: 100vw; 
        height: 60vh; 
        position: relative; 
        top: 0; 
        right: 0; 
        transform: none; 
        margin-top: 2rem;
    }
}
