/**
 * Sticky Navbar CSS
 * Efek navbar saat scroll
 */

/* Navbar Sticky - Selalu di atas */
.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, #2d5016 0%, #1a2f0a 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #d4af37;
    transition: all 0.3s ease;
}

/* Efek saat scroll */
.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.98) 0%, rgba(26, 47, 10, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Logo transition saat scroll */
.header.scrolled .logo img {
    height: 90px;
    transition: height 0.3s ease;
}

.header.scrolled .logo i {
    font-size: 4rem;
    transition: font-size 0.3s ease;
}

.header.scrolled .logo h1 {
    font-size: 1.1rem;
    transition: font-size 0.3s ease;
}

/* Smooth transition untuk semua elemen */
.header .logo img,
.header .logo i,
.header .logo h1 {
    transition: all 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .header {
        padding: 12px 0 !important;
    }
    
    .header.scrolled {
        padding: 8px 0 !important;
    }
    
    .header.scrolled .logo img {
        height: 60px !important;
    }
    
    .header.scrolled .logo i {
        font-size: 3rem !important;
    }
    
    .header.scrolled .logo h1 {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 10px 0 !important;
    }
    
    .header.scrolled {
        padding: 6px 0 !important;
    }
    
    .header.scrolled .logo img {
        height: 55px !important;
    }
    
    .header.scrolled .logo i {
        font-size: 2.8rem !important;
    }
    
    .header.scrolled .logo h1 {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 575px) {
    .header.scrolled .logo img {
        height: 50px !important;
    }
    
    .header.scrolled .logo i {
        font-size: 2.6rem !important;
    }
    
    .header.scrolled .logo h1 {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 375px) {
    .header.scrolled .logo img {
        height: 45px !important;
    }
    
    .header.scrolled .logo i {
        font-size: 2.4rem !important;
    }
    
    .header.scrolled .logo h1 {
        font-size: 0.7rem !important;
    }
}

/* Animasi smooth untuk navbar */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: slideDown 0.3s ease-out;
}

/* Pastikan konten tidak tertutup navbar */
body {
    padding-top: 0 !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
