/* ======================================== */
/* INDEX.CSS - NAVBAR & FOOTER BIRU PUTIH   */
/* DENGAN MENU HAMBURGER UNTUK MOBILE       */
/* VERSI FINAL - TANPA STATISTIK DI FOOTER  */
/* DENGAN WHATSAPP & BACK TO TOP BUTTON     */
/* ======================================== */

/* ========== VARIABEL WARNA ========== */
:root {
    --primary-blue: #0a4d8c;
    --secondary-blue: #1e6eb5;
    --accent-blue: #3498db;
    --light-blue: #eef5fc;
    --pure-white: #ffffff;
    --soft-white: #f8fafd;
    --text-dark: #2c3e50;
    --text-light: #5a6a7a;
    --border-light: #d9e6f2;
    --shadow: 0 10px 30px rgba(10, 77, 140, 0.08);
    --shadow-hover: 0 15px 40px rgba(10, 77, 140, 0.12);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--soft-white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-top: 100px;
    width: 100%;
}

/* ========== HEADER FIXED ========== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-blue);
    box-shadow: var(--shadow);
    padding: 0.8rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-blue);
}

/* Ornamen pada navbar */
.header-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

/* Logo Section - Mepet ke kiri */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0;
    padding-left: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo img {
    height: 55px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo h1 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--pure-white);
    font-weight: 600;
    letter-spacing: -0.5px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 1rem;
}

/* ========== HAMBURGER MENU BUTTON ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--pure-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animasi Hamburger menjadi X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--pure-white);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--pure-white);
}

/* ========== NAVBAR ========== */
nav {
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

/* Menu Items */
.navbar > li {
    position: relative;
}

.navbar > li > a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar > li > a:hover {
    color: var(--pure-white);
    background: rgba(255, 255, 255, 0.15);
}

/* Menu home dibuat normal seperti lainnya */
.navbar > li > a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    box-shadow: none;
}

/* Dropdown Toggle */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    padding: 0.8rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 2rem;
}

.dropdown-content a.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Overlay untuk menu mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ========== FOOTER SUPER MENARIK ========== */
footer {
    background: var(--gradient-blue);
    color: var(--pure-white);
    position: relative;
    margin-top: 4rem;
    overflow: hidden;
}

/* Wave Ornament */
.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.footer-wave svg {
    width: 100%;
    height: auto;
}

.footer-container {
    position: relative;
    z-index: 2;
    padding: 3rem 5% 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Background Pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 10px);
    pointer-events: none;
}

/* Footer Top Grid */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.footer-logo h3 {
    color: var(--pure-white);
    font-size: 1.3rem;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    font-size: 0.95rem;
}

/* Quick Links & Contact */
.footer-quick-links h4,
.footer-contact h4 {
    color: var(--pure-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-quick-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 3px;
}

.footer-quick-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-quick-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-quick-links li i,
.footer-contact li i {
    width: 20px;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.footer-quick-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-quick-links a:hover {
    color: var(--pure-white);
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Media */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon.facebook:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.social-icon.instagram:hover {
    background: #e4405f;
    border-color: #e4405f;
}

.social-icon.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-icon.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    flex: 1;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-copyright .footer-made {
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

.footer-copyright i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease infinite;
}

/* ========== FOOTER ACTIONS (WHATSAPP & BACK TO TOP) ========== */
.footer-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--pure-white);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.whatsapp-button {
    background: #25D366;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.back-to-top {
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.back-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    /* Navbar Mobile */
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--pure-white);
        box-shadow: var(--shadow-hover);
        padding: 100px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar > li {
        width: 100%;
    }
    
    .navbar > li > a {
        width: 100%;
        white-space: normal;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
        color: var(--text-dark);
    }
    
    .navbar > li > a:hover {
        background: var(--light-blue);
        color: var(--primary-blue);
    }
    
    .navbar > li > a.active {
        background: var(--light-blue);
        color: var(--primary-blue);
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-blue);
        border-radius: 12px;
        margin: 0.5rem 0 0.5rem 1rem;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: 1px solid var(--border-light);
    }
    
    .dropdown.active .dropdown-content {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .dropdown-toggle::after {
        margin-left: auto;
        color: var(--text-dark);
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .header-fixed {
        padding: 0.8rem 4%;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    main {
        margin-top: 85px;
    }
    
    /* Footer Responsive */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    .footer-description {
        text-align: left;
    }
    
    .footer-copyright p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    nav {
        width: 90%;
        padding: 90px 1.5rem 2rem;
    }
    
    main {
        margin-top: 80px;
    }
    
    .footer-logo h3 {
        font-size: 1.1rem;
    }
    
    .footer-actions {
        gap: 0.5rem;
    }
    
    .action-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk footer */
footer {
    animation: fadeInUp 0.8s ease-out forwards;
}