/* ==========================================================================
   1. BRAND VARIABLES & RESET
   ========================================================================== */
:root {
    /* The Age of Frisia Palette */
    --color-base: #0b1116;
    --color-surface: #15202b;
    --color-surface-elevated: #1e2c3a;

    --color-primary: #3a5d73;
    --color-primary-light: #527a92;
    --color-accent: #a9ff03;
    --color-accent-glow: rgba(169, 255, 3, 0.3);

    --text-main: #9cc2dd;
    --text-muted: #8ca8bc;
    --border-color: rgba(156, 194, 221, 0.12);

    /* --- BOOTSTRAP OVERRIDES --- */
    --bs-primary: var(--color-accent);
    --bs-primary-rgb: 169, 255, 3;
    --bs-secondary: var(--color-primary-light);
    --bs-secondary-rgb: 82, 122, 146;
    --bs-body-bg: var(--color-base);
    --bs-body-color: var(--text-main);
    --bs-link-color: var(--color-accent);
    --bs-link-hover-color: #ffffff;
    --bs-border-color: var(--border-color);
    --bs-secondary-color: var(--text-muted);
    --bs-tertiary-color: var(--text-muted);

    --vh: 1vh;
}

body {
    background-color: var(--color-base);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: calc(var(--vh, 1vh) * 100);
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; color: #ffffff; }

h1.text-primary, h2.text-primary, h3.text-primary { color: #ffffff !important; }

.text-muted { color: var(--text-muted) !important; }

/* Custom Buttons */
.btn-primary {
    background-color: transparent !important;
    border: 1px solid var(--color-accent) !important;
    color: var(--color-accent) !important;
    font-weight: 600;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 0 15px var(--color-accent-glow);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--color-accent) !important;
    color: var(--color-base) !important; /* Text becomes dark on light background */
    box-shadow: 0 0 25px var(--color-accent-glow);
}


.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: var(--color-surface-elevated);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Glassmorphism & UI Cards */
.bg-surface { background-color: var(--color-surface) !important; }

.card {
    background-color: var(--color-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover { border-color: var(--color-primary-light); }

/* ==========================================================================
   2. NAVIGATION (Blue Base)
   ========================================================================== */
.navbar {
    background: rgba(11, 17, 22, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand { font-weight: 800; color: #fff !important; letter-spacing: -0.05em; }

.nav-link { color: var(--text-muted) !important; font-weight: 600; font-size: 0.95rem; }

.nav-link:hover { color: var(--color-accent) !important; }


/* ==========================================================================
   3. HERO & APPLE REVEAL ENGINE
   ========================================================================== */
#hero {
    height: 100vh;
    background: linear-gradient(to top, rgba(11, 17, 22, 0.5), var(--color-base)),
    url('../gfx/hero-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-reveal-section {
    height: 300vh;
    background: #000;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Starts at 100% width of the container */
.phone-reveal-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    will-change: transform;
}

.phone-frame {
    width: 90%;
    position: relative;
}

.phone-frame img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(58, 93, 115, 0.2)); /* Blue shadow */
}

/* Flying Tags */
.info-tag {
    position: absolute;
    background: rgba(11, 17, 22, 0.9);
    border: 1px solid var(--color-accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    opacity: 0;
    white-space: nowrap;
    z-index: 100;
}

.tag-1 { top: 15%; left: 0; }
.tag-2 { bottom: 20%; right: 0; }

/* ==========================================================================
   APPLE REVEAL - FULL WIDTH EDITION
   ========================================================================== */
.apple-reveal-section {
    height: 400vh; /* Long scroll for a smooth deep-dive */
    background: #000;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: flex-start; /* Keeps the top of the image visible at start */
    justify-content: center;
    overflow: hidden;
}

.phone-reveal-wrapper {
    width: 100vw; /* Truly Page Wide */
    height: auto;
    will-change: transform;
    z-index: 1;
    /* We zoom into the center of the phone screen */
    transform-origin: center 25%;
}

.phone-frame {
    width: 100%; /* No more max-width */
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    /* Optional: subtle glow to blend the edges with the black background */
    box-shadow: 0 0 100px rgba(0,0,0,1);
}

/* ==========================================================================
   THE GRID REVEAL - RESPONSIVE FIX
   ========================================================================== */
.zoom-info-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    display: flex;
    align-items: center;
    pointer-events: none; /* Crucial: clicks go "through" to the phone during zoom */
    opacity: 0;
}

.zoom-info-layer.active {
    opacity: 1;
    pointer-events: all; /* Enabled only after the zoom hits black */
}

.info-tag {
    /* Responsive Width Logic */
    width: 100%;
    max-width: 280px; /* Constrains it on Desktop without breaking the Grid */
    margin: 0 auto;   /* Centers within the Bootstrap Col */

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;

    background: rgba(11, 17, 22, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-accent);
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;

    /* GSAP Start State */
    opacity: 0;
    transform: translateY(40px);
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.info-tag:hover {
    background: var(--color-accent);
    color: var(--color-base);
    transform: scale(1.05) translateY(-5px);
}

/* ==========================================================================
   WEBSITE STACK
   ========================================================================== */
.website-stack-section {
    background: #000;
    padding: 10vh 0;
}

.sticky-card-col {
    position: sticky;
    top: 15vh;
    height: fit-content;
}

.info-card-step {
    cursor: pointer;
    opacity: 0.2; /* Dims when not "active" in the scroll */
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 1.5rem;
}

.info-card-step.active {
    opacity: 1;
    transform: translateX(0);
}

.info-card-step .card {
    background: rgba(21, 32, 43, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.info-card-step:hover .card {
    border-color: var(--color-accent) !important;
    transform: scale(1.02);
}

/* Mockup Stack styling */
.mockup-stack-container {
    perspective: 2500px;
    height: 70vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-stack-item {
    position: absolute;
    width: 100%;
    max-width: 650px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
    border: 1px solid var(--border-color);
    /* Start state: buried below and rotated */
    transform: translateY(100vh) rotateX(45deg) rotateY(-25deg) scale(0.7);
    opacity: 0;
}



.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--bs-primary) !important; /* Forces focus */
}

.info-card:hover .text-accent {
    letter-spacing: 0.5px; /* Subtle expansion */
}

