/* Reset & Base */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animasi untuk elemen yang akan muncul saat scroll */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animasi khusus untuk hero section */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Dark Mode */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 50px;
    background: #0f172a;
    /* lebih gelap, mirip dark navy */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: #f1f5f9;
    /* teks terang */
}

.logo img {
    height: 98px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #e2e8f0;
    /* teks abu terang */
    transition: 0.3s;
    position: relative;
}

.nav-links a:not(.btn-order):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8b5cf6;
    /* ungu */
    transition: width 0.3s ease;
}

.nav-links a:hover:not(.btn-order):after {
    width: 100%;
}

.nav-links a:hover {
    color: #8b5cf6;
    /* ungu hover */
}

.navbar .btn-order {
    background: #1e293b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.navbar .btn-order:hover {
    background: #8b5cf6;
    /* ungu hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.4);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #f1f5f9;
    /* lebih terang */
    transition: transform 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e2e8f0;
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #1e293b;
    /* dark gray */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    list-style: none;
    padding: 5px 0;
    min-width: 180px;
    z-index: 1000;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu li {
    padding: 8px 20px;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    color: #8b5cf6;
    /* ungu hover */
}

.dropdown-menu li a {
    color: #e2e8f0;
    font-weight: 400;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.dropdown-menu li a:hover {
    color: #8b5cf6;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #09002A, #210059);
    color: #fff;
    padding: 50px 70px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.footer-logo {
    flex: 1;
}

.footer-logo img {
    width: 200px;
}

.footer-logo .copyright {
    font-size: 16px;
    opacity: 0.8;
}

.footer-right {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 60px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 5px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-col ul li:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.footer-col ul li i {
    font-size: 16px;
    color: #fff;
    width: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.5;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    section {
        padding: 20px 0;
    }

    /* Navbar Responsive - Dark Mode */
    .navbar {
        padding: 0 20px;
        height: 60px;
        background: #0f172a;
        /* dark */
    }

    .logo img {
        height: 60px;
    }

    .nav-links {
        left: 0 !important;
        width: 100% !important;
        align-items: stretch;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        background: #1e293b;
        /* dark gray */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
        padding: 0;
        gap: 0;
        z-index: 1000;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.4s ease;
    }

    .nav-links.active {
        max-height: calc(100vh - 60px);
    }

    .nav-links li {
        width: 100%;
        text-align: center !important;
        padding: 15px 20px;
        border-bottom: 1px solid #334155;
        /* abu gelap */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li a {
        color: #e2e8f0;
        /* teks terang */
        font-weight: 500;
        text-decoration: none;
        display: block;
        transition: 0.3s;
    }

    .nav-links li a:hover {
        color: #8b5cf6;
        /* ungu hover */
    }

    /* Animasi delay untuk list muncul */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .navbar .btn-order {
        display: none;
    }

    .hamburger {
        display: block;
        color: #f1f5f9;
        /* putih terang */
    }

    .dropdown-menu {
        position: relative;
        box-shadow: none;
        background: #1e293b;
        /* dark gray */
        padding: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        max-height: 200px;
        overflow-y: auto;
    }

    .dropdown-toggle {
        justify-content: center;
        color: #e2e8f0;
        /* terang */
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown-menu li {
        border-bottom: 1px solid #334155;
    }

    .dropdown-menu li a {
        color: #e2e8f0;
        padding: 12px 20px;
        display: block;
        transition: 0.3s;
    }

    .dropdown-menu li a:hover {
        color: #8b5cf6;
        /* ungu hover */
        background: #2e2253;
        /* ungu gelap untuk hover background */
    }

    .nav-links a:after {
        display: none;
    }

    /* Footer */
    .footer {
        padding: 40px 30px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
        justify-content: center;
    }

    .footer-logo img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.875rem;
    }

    section {
        padding: 15px 0;
    }

    /* Footer */
    .footer {
        padding: 30px 20px;
        text-align: center;
        /* agar teks ke tengah */
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        /* biar item turun ke bawah */
        align-items: center;
        /* semua elemen ke tengah */
        gap: 20px;
    }

    .footer-logo img {
        width: 100px;
        margin: 0 auto;
        /* pastikan gambar ke tengah */
    }

    .footer-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul {
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: center;
    }

    .footer-col ul li {
        justify-content: center;
        display: flex;
        /* supaya tetap fleksibel */
    }
}
