/* =======================================================
   1. GLOBAL CORE & VARIABLES
   ======================================================= */
:root {
    --primary: #ffc107;
    --bg-dark: #0f0f0f;
    --card-glass: rgba(20, 20, 20, 0.85); /* Background gelap solid semi-transparan */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg-dark);
    color: var(--text-main); 
    min-height: 100vh; 
    overflow-x: hidden; 
    line-height: 1.6;
    background-attachment: fixed;
}

/* Optimasi Performa Global */
.glass, .hero-slide, .stats-card, .swiper-slide {
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* =======================================================
   2. GLASSMORPHISM & CONTAINERS
   ======================================================= */
.glass {
    background: var(--card-glass) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}

.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100%;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* =======================================================
   3. NAVBAR & BRANDING
   ======================================================= */
.navbar { 
    background: rgba(0, 0, 0, 0.9) !important; 
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.navbar-nav .nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-toggler {
    filter: brightness(0) invert(1);
    border: none;
}

/* Submenu / Dropdown */
.dropdown-submenu .dropdown-menu {
    position: static !important;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding-left: 1.5rem;
    display: none;
}

.dropdown-submenu.show > .dropdown-menu {
    display: block;
}

/* =======================================================
   4. HERO & STATS SECTION
   ======================================================= */
.hero-slide {
    height: 80vh !important;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.carousel-caption {
    text-align: left !important;
    left: 5% !important;
    bottom: 20% !important;
    z-index: 2;
}

.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.stats-card {
    transition: var(--transition);
    border-radius: 15px;
    padding: 20px;
}

.stats-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05) !important;
}

.counter {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* =======================================================
   5. PROFILE & BIOGRAPHY (FLOAT STYLE)
   ======================================================= */
.welcome-section {
    padding: 80px 0;
}

.kepala-float-container {
    float: left;
    margin: 0 30px 20px 0;
    width: 280px;
    border: 3px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.kepala-img-detail {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.img-uniform {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* =======================================================
   6. SWIPER & NAVIGATION
   ======================================================= */
.swiper-button-next, .swiper-button-prev {
    background: rgba(0, 0, 0, 0.6);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    color: var(--primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary);
    color: #000 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 25px !important;
    border-radius: 4px !important;
}

/* =======================================================
   7. BUTTONS & UTILITIES
   ======================================================= */
.login-btn {
    background: var(--primary);
    color: #000 !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 25px !important;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* =======================================================
   8. RESPONSIVE DESIGN (MOBILE)
   ======================================================= */
@media (max-width: 768px) {
    .glass {
        backdrop-filter: none !important; /* Nonaktifkan blur di HP agar ringan */
        background: rgba(15, 15, 15, 0.98) !important;
    }

    .hero-slide { height: 50vh !important; }
    
    .carousel-caption {
        text-align: center !important;
        bottom: 10% !important;
    }

    .kepala-float-container {
        float: none;
        margin: 0 auto 25px auto;
        width: 100%;
        max-width: 250px;
    }

    .counter { font-size: 1.5rem; }
    
    .stats-section { margin-top: -20px; }
}