/* ==========================================================================
   HERO FULL-SCREEN BACKGROUND STYLES - VIRETA 2
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
}

/* --- 1. FULL BACKGROUND SLIDER --- */
.hero-bg-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease-in-out, transform 1.2s ease-out;
    transform: scale(1.04);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- 2. FOREGROUND CONTENT & TAGLINE --- */
.hero-content-wrapper {
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 38px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-main-content {
    max-width: 680px;
    margin-top: 15px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.hero-badge i {
    color: var(--accent-red);
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.16;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-light {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

/* --- 3. STATISTIK (GLASSMORPHISM) --- */
.hero-bottom-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 205px));
    gap: 14px;
    margin-bottom: 12px;
}

.stat-card {
    border-radius: 12px;
    padding: 12px 18px;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 2px 0;
}

.stat-card p {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

/* --- 4. CONTROLS & INDIKATOR --- */
.hero-carousel-controls {
    position: absolute;
    bottom: 24px;
    right: 28px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.hero-nav-btn:hover {
    transform: scale(1.08);
}

.hero-indicators {
    position: absolute;
    bottom: 34px;
    right: 130px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 24px;
    border-radius: 12px;
}

/* ==========================================================================
   THEME ADAPTATION (LIGHT & DARK BALANCE)
   ========================================================================== */

/* --- A. LIGHT MODE (DEFAULT: Soft Glass & Natural Balance) --- */
.hero-backdrop-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, 
                    rgba(248, 250, 252, 0.90) 0%, 
                    rgba(248, 250, 252, 0.72) 42%, 
                    rgba(248, 250, 252, 0.30) 70%, 
                    rgba(248, 250, 252, 0.05) 100%),
                linear-gradient(0deg, 
                    rgba(248, 250, 252, 0.78) 0%, 
                    transparent 35%);
    pointer-events: none;
    transition: background 0.35s ease;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 70, 139, 0.06);
}

.hero-title {
    color: #0f172a;
}

.hero-title span {
    color: var(--primary-blue);
}

.hero-desc {
    color: #475569;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-light:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-card h2 {
    color: var(--primary-blue);
}

.stat-card p {
    color: #1e293b;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-nav-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.hero-dot {
    background: rgba(15, 23, 42, 0.25);
}

.hero-dot.active {
    background: var(--primary-blue);
}

/* --- B. DARK MODE (Soft Slate-Navy, Non-Pitch Black) --- */
[data-theme="dark"] .hero-backdrop-overlay {
    background: linear-gradient(90deg, 
                    rgba(15, 23, 42, 0.92) 0%, 
                    rgba(15, 23, 42, 0.78) 42%, 
                    rgba(15, 23, 42, 0.38) 70%, 
                    rgba(15, 23, 42, 0.12) 100%),
                linear-gradient(0deg, 
                    rgba(15, 23, 42, 0.88) 0%, 
                    transparent 35%);
}

[data-theme="dark"] .hero-badge {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-badge i {
    color: #fbbf24;
}

[data-theme="dark"] .hero-title {
    color: #f8fafc;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-title span {
    color: #60a5fa;
}

[data-theme="dark"] .hero-desc {
    color: #cbd5e1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .btn-outline-light {
    background: rgba(30, 41, 59, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

[data-theme="dark"] .btn-outline-light:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}

[data-theme="dark"] .stat-card {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 3px solid #fbbf24;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .stat-card h2 {
    color: #60a5fa;
}

[data-theme="dark"] .stat-card p {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-nav-btn {
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .hero-nav-btn:hover {
    background: #2563eb;
    border-color: #60a5fa;
    color: #ffffff;
}

[data-theme="dark"] .hero-dot {
    background: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .hero-dot.active {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

/* ==========================================================================
   DESKTOP NAVBAR SCROLL LOGIC
   ========================================================================== */
@media (min-width: 993px) {
    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 0.35s ease,
                    background-color 0.3s ease, 
                    box-shadow 0.3s ease;
    }

    #navbar.navbar-scrolled {
        transform: translateY(0);
        opacity: 1;
        background: var(--card-bg, #ffffff);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
}

/* ==========================================================================
   RESPONSIVE HP / TABLET (~50-55VH)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section {
        height: auto;
        min-height: 52vh;
        align-items: stretch;
    }

    .hero-content-wrapper {
        padding: 30px 18px 20px 18px;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-desc {
        font-size: 13.5px;
    }

    .hero-bottom-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 15px;
    }

    .stat-card {
        padding: 8px 6px;
        text-align: center;
    }

    .stat-card h2 {
        font-size: 1.2rem;
    }

    .stat-card p {
        font-size: 11px;
    }

    .hero-carousel-controls,
    .hero-indicators {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.65rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}