@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;700&family=Onest:wght@400;500;700&family=Baloo+2:wght@700&display=swap');

    /* ---------------------------------- */
    /* 2. GLOBAL COLOR PALETTE (2025 Update)
    /* ---------------------------------- */
    :root {
      --color-text-primary:       #2D3942;
      --color-background-primary: #F4F7F9;
      --color-brand-primary:      #6B89A0;
      --color-accent-primary:     #B48A78;
      --color-accent-secondary:   #D1D5DA;
      --color-white:              #FFFFFF;
      --color-border-subtle:      #e2e6ea;
    }

    /* ---------------------------------- */
    /* 3. GLOBAL STYLES & RESETS
    /* ---------------------------------- */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      font-size: 100%; 
      scroll-behavior: smooth;
    }

    body {
        position: relative;
        background-color: var(--color-white);
        font-family: 'Figtree', sans-serif;
        font-size: 1.125rem;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* ---------------------------------- */
    /* 4. TYPOGRAPHY & HEADINGS
    /* ---------------------------------- */
    h1, h2, h3, h4, h5 {
      font-family: 'Onest', sans-serif;
      font-weight: 700;
      line-height: 1.2;
      color: var(--color-text-primary);
      margin-bottom: 1rem;
    }

    h1 {
      font-size: 3.052rem; 
      font-weight: 500; 
      color: var(--color-brand-primary);
    }

    h2 { font-size: 2.441rem; }
    h3 { font-size: 1.953rem; font-weight: 500; }
    p { margin-bottom: 1.5rem; }

    .lead {
        font-size: 1.25rem;
        font-weight: 400;
    }

    /* ---------------------------------- */
    /* 5. NAVIGATION
    /* ---------------------------------- */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1030;
        padding: 1rem 2rem;
        transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    }
    .main-nav .navbar-brand {
        font-family: 'Baloo 2', sans-serif;
        font-weight: 700;
        color: var(--color-white);
    }
    .main-nav .nav-link {
        color: rgba(255, 255, 255, 0.7);
        font-weight: 500;
        margin: 0 0.5rem;
    }
    .main-nav .nav-link:hover {
        color: var(--color-white);
    }
    .main-nav .nav-link.active {
        color: var(--color-white);
        font-weight: 700;
    }

    /* Scrolled State for Nav */
    .main-nav.scrolled {
        background-color: rgba(244, 247, 249, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--color-border-subtle);
    }
    .main-nav.scrolled .navbar-brand,
    .main-nav.scrolled .nav-link {
        color: var(--color-text-primary);
    }
    .main-nav.scrolled .nav-link:hover {
        color: var(--color-accent-primary);
    }
    .main-nav.scrolled .nav-link.active {
        color: var(--color-accent-primary);
        font-weight: 700;
    }

    /* ---------------------------------- */
    /* 6. HERO & 3D CANVAS
    /* ---------------------------------- */
    .hero-section {
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--color-white);
      position: relative;
      background-color: #0a0d14; /* Fallback background */
      overflow: hidden;
    }
    #hero-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        cursor: grab;
    }
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(42, 89, 126, 0.573); /* CONTROLLABLE OVERLAY */
        z-index: 2;
    }
    .hero-content {
        position: relative;
        z-index: 2; 
    }
    .hero-section h1 {
      font-size: clamp(2.5rem, 8vw, 5rem);
      font-weight: 700;
      color: var(--color-white);
      text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    }
    .hero-section .lead {
      font-size: 1.25rem;
      font-family: 'Onest', sans-serif;
      max-width: 600px;
      margin: 1rem auto;
      color: var(--color-accent-secondary);
      text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    }
    .button-primary {
      display: inline-block;
      background-color: var(--color-accent-primary);
      color: var(--color-white);
      font-family: 'Onest', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      padding: 12px 24px;
      border-radius: 6px;
      border: 2px solid transparent;
      text-align: center;
      cursor: pointer;
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }
    .button-primary:hover, .button-primary:focus {
      background-color: transparent;
      color: var(--color-accent-primary);
      border-color: var(--color-accent-primary);
      text-decoration: none;
    }
    
    /* --- UPGRADE: New Loader Styles --- */
    /* --- UPGRADE: High-Specificity Loader Styles --- */
body #loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #191923; 
    z-index: 9999;
    transition: opacity 0.5s ease;
    display: flex; 
    justify-content: center;
    align-items: center;
}
body #loader-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}
body .progress-text {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    padding: 0 2rem;
    line-height: 1;
}
body .progress-text-background {
    color: #e6e6fa; 
}
body .progress-bar-container {
    width: 100%;
    height: 50vh;
    background-color: transparent;
    position: relative;
    overflow: hidden; 
}
body #progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%; 
    background-color: #35bfed; 
}
body .progress-text-foreground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #191923;
    display: flex;
    align-items: flex-end;
}

    /* --- Bracket Button Styles --- */
    .bracket-btn {
        position: absolute;
        bottom: 2rem;
        right: 2rem;
        background: transparent;
        border: none;
        padding: 1rem 1.5rem;
        color: var(--color-white);
        font-family: 'Onest', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        transition: color 0.3s ease;
        z-index: 3; 
    }
    .bracket-btn:hover {
        color: var(--color-brand-primary);
    }
    .bracket {
        position: absolute;
        width: 20px;
        height: 20px;
        border-color: var(--color-white);
        border-style: solid;
        transition: border-color 0.3s ease, transform 0.3s ease;
    }
    .bracket-btn:hover .bracket {
        border-color: var(--color-brand-primary);
    }
    
    .bracket-btn:hover .bracket.top-left { transform: translate(-5px, -5px); }
    .bracket-btn:hover .bracket.top-right { transform: translate(5px, -5px); }
    .bracket-btn:hover .bracket.bottom-left { transform: translate(-5px, 5px); }
    .bracket-btn:hover .bracket.bottom-right { transform: translate(5px, 5px); }

    .bracket.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; }
    .bracket.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; }
    .bracket.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
    .bracket.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

    /* --- FPS Counter Styles --- */
    .hud-display {
        position: absolute;
        bottom: 6.5rem; /* Positioned above the button */
        right: 2rem;
        color: rgba(255, 255, 255, 0.5);
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.8rem;
        text-shadow: 0 0 5px var(--color-brand-primary);
        z-index: 3;
        pointer-events: none; 
        text-align: right;
    }


    /* ---------------------------------- */
    /* 7. OTHER SECTIONS
    /* ---------------------------------- */
    .content-section {
        padding: 6rem 1rem;
    }
    .bg-fjord-mist {
        background-color: var(--color-background-primary);
    }
    .social-proof-bar img {
        height: 40px;
        filter: grayscale(100%) opacity(0.6);
        transition: all 0.3s ease;
    }
    .social-proof-bar img:hover {
        filter: grayscale(0%) opacity(1);
    }
    .process-step {
        text-align: center;
    }
    .process-step .icon {
        font-size: 3rem;
        color: var(--color-brand-primary);
        margin-bottom: 1rem;
    }
    .work-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    .work-card:hover {
        transform: translateY(-5px);
    }
    .testimonial-card {
        border: 1px solid var(--color-border-subtle);
        border-radius: 8px;
        padding: 2rem;
    }
    .testimonial-card .client-info img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }
    html {
    font-size: 100%; 
    scroll-behavior: smooth;
    }