/* ==========================================================================
   Gen-Z Premium Hero Slider (Modular CSS)
   ========================================================================== */

:root {
    --hero-bg-color: #0b0e14;
    --hero-accent: #fbbf24;
    --hero-accent-glow: rgba(251, 191, 36, 0.4);
    --hero-glass-bg: rgba(255, 255, 255, 0.05);
    --hero-glass-border: rgba(255, 255, 255, 0.1);
    --hero-text-primary: #ffffff;
    --hero-text-secondary: #9ca3af;
    --hero-ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --hero-ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

.genz-hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background-color: var(--hero-bg-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

/* Technical Grid Overlay */
.genz-hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Subtle Animated Background Gradient Glow */
.genz-hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
}

.gh-slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.gh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--hero-ease-in-out), visibility 0.8s;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.gh-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* ---------------------------------------------------------
   Slide Content Grid
--------------------------------------------------------- */
.gh-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* Text Section */
.gh-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s var(--hero-ease-out), opacity 0.8s var(--hero-ease-out);
    transition-delay: 0.2s; /* Delayed entrance */
}

.gh-slide.active .gh-content {
    transform: translateY(0);
    opacity: 1;
}

.gh-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--hero-glass-bg);
    border: 1px solid var(--hero-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--hero-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.gh-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--hero-text-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    /* Mask reveal effect container */
    overflow: hidden;
}

.gh-title span {
    display: block;
    transform: translateY(100%);
    transition: transform 0.8s var(--hero-ease-out);
    transition-delay: 0.3s;
}

.gh-slide.active .gh-title span {
    transform: translateY(0);
}

.gh-desc {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--hero-text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.gh-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--hero-text-primary);
    color: var(--hero-bg-color);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.gh-cta:hover {
    background: var(--hero-accent);
    color: var(--hero-bg-color);
    box-shadow: 0 10px 40px var(--hero-accent-glow);
    transform: translateY(-3px);
}

.gh-cta i {
    transition: transform 0.3s ease;
}

.gh-cta:hover i {
    transform: translateX(5px);
}

/* Image Section */
.gh-visual {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.gh-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateZ(-50px);
    opacity: 0;
    transition: transform 1s var(--hero-ease-out), opacity 1s var(--hero-ease-out);
    transition-delay: 0.3s;
    /* To handle JPGs nicely in dark theme, we add a subtle inner shadow */
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

.gh-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 30%, var(--hero-bg-color) 100%);
    pointer-events: none;
}

.gh-slide.active .gh-image-wrapper {
    transform: scale(1) translateZ(0);
    opacity: 1;
}

.gh-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.1s linear; /* Parallax target */
    opacity: 0.85; /* Blend with dark bg better */
}

/* Floating Cards */
.gh-floating-card {
    position: absolute;
    padding: 1rem 1.5rem;
    background: rgba(20, 24, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 10;
    animation: ghFloat 6s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--hero-ease-out), transform 0.6s var(--hero-ease-out);
}

.gh-slide.active .gh-floating-card {
    opacity: 1;
    transform: translateY(0);
}

.gh-slide.active .gh-floating-card.delay-1 { transition-delay: 0.7s; }
.gh-slide.active .gh-floating-card.delay-2 { transition-delay: 0.9s; }

.gh-fc-1 { top: 10%; right: -5%; }
.gh-fc-2 { bottom: 15%; left: -10%; animation-delay: -3s; }

.gh-floating-card .fc-icon {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-accent);
    font-size: 1.2rem;
}

.gh-floating-card .fc-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@keyframes ghFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---------------------------------------------------------
   Controls Layer (Bottom)
--------------------------------------------------------- */
.gh-controls-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gh-controls-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.gh-counter {
    font-family: 'Sora', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-counter .total {
    color: var(--hero-text-secondary);
    font-weight: 400;
}

/* Progress Bar */
.gh-progress-container {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gh-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--hero-accent);
    box-shadow: 0 0 10px var(--hero-accent-glow);
    border-radius: 2px;
    transform-origin: left;
    transition: width 0.1s linear;
}

/* Nav Buttons */
.gh-nav-btns {
    display: flex;
    gap: 1rem;
}

.gh-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--hero-glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gh-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ---------------------------------------------------------
   Responsive Design (Mobile First overrides)
--------------------------------------------------------- */
@media (max-width: 991px) {
    .genz-hero-wrapper {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .gh-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .gh-content {
        align-items: center;
    }

    .gh-badge {
        margin: 0 auto 1rem auto;
    }

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

    .gh-desc {
        margin: 0 auto 2rem auto;
    }

    .gh-cta {
        margin: 0 auto;
    }

    .gh-visual {
        height: 35vh;
        min-height: 250px;
        margin-top: 2rem;
    }
    
    .gh-image-wrapper {
        border-radius: 12px;
    }

    .gh-floating-card {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    .gh-floating-card .fc-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .gh-floating-card .fc-text {
        font-size: 0.75rem;
    }

    .gh-fc-1 { top: 10px; left: 10px; right: auto; }
    .gh-fc-2 { bottom: 10px; right: 10px; left: auto; animation-delay: -3s; }

    .gh-controls-wrapper {
        flex-wrap: wrap;
    }

    .gh-progress-container {
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gh-slide,
    .gh-content,
    .gh-title span,
    .gh-image-wrapper,
    .gh-floating-card {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .gh-slide {
        opacity: 0 !important;
        visibility: hidden !important;
    }
    .gh-slide.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .genz-hero-wrapper::after {
        animation: none;
    }
}
