/* =========================================
   1. VARIABEL WARNA & CONFIG
   ========================================= */
:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --secondary: #0f172a;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f0f9ff;
    --text-gray: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 10px 25px -3px rgb(6 182 212 / 0.15);
    --shadow-xl: 0 20px 40px -10px rgb(0 0 0 / 0.1);
    --radius: 16px;
}

/* =========================================
   2. TYPOGRAPHY (FONT)
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

a { text-decoration: none; }

/* =========================================
   3. NAVBAR PREMIUM (SOLID WHITE & CLEAN)
   ========================================= */

/* Navbar selalu putih (sedikit transparan agar modern) */
.navbar-premium {
    background-color: rgba(255, 255, 255, 0.98) !important; /* Putih Solid */
    backdrop-filter: blur(10px); /* Efek blur di belakangnya */
    padding: 15px 0 !important; /* Padding lega */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Garis tipis pembatas */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Bayangan tipis default */
    position: relative;
    z-index: 1040;
}

/* Warna Font Selalu Gelap (Hitam/Navy) */
.navbar-premium .navbar-brand {
    color: #102C57 !important;
    font-size: 1.5rem;
    font-weight: 800;
}

.navbar-premium .nav-link {
    color: #1f2937 !important; /* Warna Navy Gelap */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    margin: 0 2px;
    border-radius: 50px;
    transition: all 0.3s;
}

/* Efek Hover Menu */
.navbar-premium .nav-link:hover, 
.navbar-premium .nav-link.active {
    color: #102C57 !important;
    background-color: rgba(16, 43, 87, 0.08); /* Background biru muda tipis */
    transform: translateY(-1px);
}

/* Tombol Login */
.navbar-premium .btn-primary {
    background: #102C57 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(16, 43, 87, 0.3) !important;
}
.navbar-premium .btn-primary:hover {
    background: #0d1b35 !important;
    transform: translateY(-2px);
}

/* Tampilan Saat Scroll (Hanya menambah bayangan & mengecilkan padding) */
.navbar-premium.scrolled {
    padding: 10px 0 !important; /* Mengecil sedikit saat scroll */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Muncul bayangan lebih tebal */
    border-bottom: none;
}

/* Icon Hamburger di Mobile (Selalu Hitam) */
.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler span {
    color: var(--secondary) !important;
}

/* Dropdown Menu Style */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
    padding: 8px 0 !important;
    animation: slideDown 0.3s ease-out;
    z-index: 1050 !important;
    position: absolute !important;
}

.dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.5em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.show > .dropdown-toggle {
    color: #102C57 !important;
}

.dropdown-menu.show {
    display: block !important;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 10px 20px !important;
    font-weight: 500 !important;
    color: var(--secondary) !important;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background-color: rgba(6, 182, 212, 0.08) !important;
    color: var(--primary) !important;
    padding-left: 25px !important;
}
.dropdown-item.active {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    padding-left: 25px !important;
}

/* =========================================
   4. HERO SLIDER (CAROUSEL)
   ========================================= */
.hero-slider .carousel-item {
    height: 85vh;
    min-height: 550px;
    background-color: var(--secondary);
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, rgba(15, 23, 42, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    color: white;
}

/* =========================================
   5. KOMPONEN KARTU (CARDS)
   ========================================= */
.card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.1) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}

.stats-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,249,255,0.9) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.1) !important;
    padding: 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.2) !important;
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* =========================================
   6. NEWS CARDS & IMAGES
   ========================================= */
.news-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    height: 100%;
    background: white;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.15);
}

.news-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

/* =========================================
   7. TOMBOL & UTILITIES
   ========================================= */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* =========================================
   8. QUICK LINKS & OTHERS
   ========================================= */
.quick-link-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,249,255,0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.quick-link-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.2);
}

.quick-link-card i {
    transition: all 0.3s ease;
}

.quick-link-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary);
}

section.py-5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .quick-link-card { padding: 20px; }
    .stats-card { padding: 20px !important; }
    .btn { padding: 8px 20px; font-size: 0.9rem; }
    section.py-5 { padding-top: 40px !important; padding-bottom: 40px !important; }
}