/* ==========================================================================
   KIA SOLUTIONS — GLOBAL HOME PAGE (EXPERIMENT-01)
   HERO SCROLL-DRIVEN LIGHT REVEAL & INDICATOR
   ========================================================================== */

/* Hero Scroll Track (400vh for ultra-smooth scrub) */
.hero-scroll-track {
    position: relative;
    width: 100%;
    height: 400vh;
    background-color: #060A09; /* Matches Wall A deep tone */
    z-index: 10;
}

/* Sticky Hero Viewport */
.hero-sticky-viewport {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #060A09;
}

/* Master Image Container */
.hero-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Four Perfectly Aligned Stacked Image Layers */
.wall-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    will-change: opacity;
    pointer-events: none;
    transform: translateZ(0); /* Force GPU compositing */
}

/* Base states: A is visible initially; B, C, D are hidden */
.wall-layer-a {
    opacity: 1;
    z-index: 1;
}

.wall-layer-b {
    opacity: 0;
    z-index: 2;
}

.wall-layer-c {
    opacity: 0;
    z-index: 3;
}

.wall-layer-d {
    opacity: 0;
    z-index: 4;
}

/* Subtle Vignette on Edges to Enhance Depth without altering Wall Artwork */
.hero-edge-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(circle at 65% 50%, transparent 60%, rgba(6, 10, 9, 0.35) 100%);
}

/* ==========================================================================
   HERO INTRODUCTORY CONTENT (LEFT SIDE - REFINEMENT 02)
   No rectangular frosted-glass panel; pure refined typography with subtle feather-soft gradient
   ========================================================================== */
.hero-content-wrapper {
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 6%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    pointer-events: none; /* Let right side with logo remain completely clear & interactive */
}

/* Subtle, localized feather-soft dark gradient behind text with zero visible edges */
.hero-content-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
    width: 680px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(6, 10, 9, 0.62) 0%, rgba(6, 10, 9, 0.3) 48%, rgba(6, 10, 9, 0) 78%);
    pointer-events: none;
    z-index: -1;
    filter: blur(28px);
}

.hero-text-panel {
    pointer-events: auto;
    max-width: 580px; /* Kept strictly within left 45-48% of desktop composition */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    box-shadow: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11.5px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--soft-mint);
    font-weight: 700;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.18;
    color: var(--warm-white);
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-supporting {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: rgba(244, 245, 239, 0.92);
    margin-bottom: 32px;
    max-width: 480px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--kia-teal) 0%, #137254 100%);
    border: 1px solid rgba(169, 214, 183, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--pure-white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(29, 158, 117, 0.25);
    transition: all 0.35s ease;
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #23be8d 0%, var(--kia-teal) 100%);
    border-top-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 32px rgba(29, 158, 117, 0.45);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    background: rgba(18, 28, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--warm-white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.35s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--soft-mint);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   SCROLL DOWN BADGE (BOTTOM CENTER - REFINEMENT 05)
   ========================================================================== */
.scroll-indicator-badge {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(14, 24, 21, 0.72) 0%, rgba(8, 15, 13, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(29, 158, 117, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-indicator-badge:hover {
    background: linear-gradient(180deg, rgba(20, 36, 31, 0.82) 0%, rgba(11, 22, 19, 0.9) 100%);
    border-color: rgba(169, 214, 183, 0.35);
    border-top-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(29, 158, 117, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateX(-50%) translateY(-2px);
}

.scroll-badge-text {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--warm-white);
    font-weight: 700;
    user-select: none;
}

/* Smooth circular rotating indicator */
.scroll-badge-ring {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-badge-ring svg {
    width: 100%;
    height: 100%;
    animation: rotateSlow 10s linear infinite;
}

.scroll-badge-arrow {
    position: absolute;
    font-size: 9px;
    color: var(--soft-mint);
    animation: pulseArrow 2.5s ease-in-out infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseArrow {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(2px); opacity: 1; }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        padding: 0 5%;
    }
    .hero-content-wrapper::before {
        width: 100%;
        max-width: 560px;
        height: 480px;
        left: 2%;
    }
    .hero-text-panel {
        max-width: 520px;
        padding: 0;
    }
    .wall-layer {
        object-position: 72% center; /* Ensure logo on right is prominently visible */
    }
}

@media (max-width: 768px) {
    /* Mobile Scroll Track: snappier thumb-scroll pacing while preserving 4-stage light reveal */
    .hero-scroll-track {
        height: 260vh;
    }

    .hero-sticky-viewport {
        height: 100svh;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        background-color: #060A09;
    }

    /* Dedicated Upper Architectural Wall Showcase so the 3D KIA SOLUTIONS logo is never cropped */
    .hero-stage {
        top: 64px;
        height: 37svh;
        width: 100%;
    }

    .wall-layer {
        object-fit: cover;
        object-position: 92% 46%;
    }

    /* Seamless architectural fade from the lit stone wall into the lower editorial canvas */
    .hero-edge-vignette {
        background:
            linear-gradient(180deg, rgba(6, 10, 9, 0.45) 0%, rgba(6, 10, 9, 0) 16%, rgba(6, 10, 9, 0) 28%, rgba(6, 10, 9, 0.92) 42%, #060A09 50%);
    }

    /* Clean unobstructed lower editorial stage */
    .hero-content-wrapper {
        padding: 0 20px 84px 20px;
        display: block;
        margin: 0;
        width: 100%;
    }

    .hero-content-wrapper::before {
        width: 100%;
        height: 100%;
        left: 0;
        top: 50%;
        background: radial-gradient(ellipse 95% 75% at 50% 50%, rgba(29, 158, 117, 0.1) 0%, rgba(6, 10, 9, 0) 75%);
        filter: blur(24px);
    }

    .hero-text-panel {
        max-width: 100%;
        padding: 0;
        border-radius: 0;
        margin-bottom: 0;
        text-align: center;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .hero-headline {
        font-size: clamp(25px, 6.8vw, 31px);
        line-height: 1.18;
        margin-bottom: 12px;
    }

    .hero-supporting {
        font-size: 14px;
        line-height: 1.6;
        margin: 0 auto 20px auto;
        max-width: 340px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
    }

    .btn-hero-secondary {
        background: rgba(18, 28, 25, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .scroll-indicator-badge {
        bottom: 18px;
        padding: 7px 16px;
        gap: 10px;
        backdrop-filter: blur(8px) saturate(130%);
        -webkit-backdrop-filter: blur(8px) saturate(130%);
    }

    .scroll-badge-text {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-stage {
        height: 35svh;
    }
    .wall-layer {
        object-position: 94% 45%;
    }
    .hero-content-wrapper {
        padding: 0 18px 80px 18px;
    }
}

/* Prefers-reduced-motion: stable full illumination */
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-track {
        height: auto;
    }
    .hero-sticky-viewport {
        position: relative;
    }
    .wall-layer-a, .wall-layer-b, .wall-layer-c {
        opacity: 0 !important;
    }
    .wall-layer-d {
        opacity: 1 !important;
    }
    .hero-text-panel,
    .hero-eyebrow,
    .hero-headline,
    .hero-supporting,
    .hero-cta-group {
        opacity: 1 !important;
        transform: none !important;
    }
    .scroll-badge-ring svg,
    .scroll-badge-arrow {
        animation: none !important;
    }
}
