/* Pengaturan Dasar */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #121212;
            color: #FFFFFF;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: color 0.3s ease;
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            display: block;
        }
/* Navbar */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /*---animation---*/
    opacity: 0;
    transform: translateY(-50px);
    animation: slideNav 0.6s ease-out forwards;
    animation-delay: 0.6s;  /*Optional: delay content*/ 
    will-change: opacity, transform;
}

@keyframes slideNav {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
}

.logo strong {
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    align-items: center;   /* dari script 1 */
    row-gap: 0.5rem;
    column-gap: 2.5rem;
}

.main-nav a {
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.main-nav a i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFFFFF;
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* =========================================== */
/* DROPDOWN MENU PADA NAVBAR              */
/* =========================================== */
.dropdown {
    position: relative;
}

/* dari script 2: warna dropdown-toggle */
.dropdown-toggle {
    color: #ffffff; /* warna putih */
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 110%; /* posisi dropdown di bawah navbar */
    left: 0; /* align kiri */
    background-color: rgba(20, 17, 17, 0.874); /* transparan putih */
    backdrop-filter: blur(15px); /* efek blur kaca */
    border-radius: 8px;
    padding: 0.5rem 0;
    width: max-content; /* lebar mengikuti konten */
    min-width: 180px; /* minimal lebar dropdown */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* lebih gelap untuk glass effect */
    border: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 1rem; /* space kanan */
}


.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



.submenu-parent {
    position: relative;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    border-radius: 8px;
    padding: 0.5rem 0;
    width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.submenu-parent:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Tambahkan tanda panah ke kanan untuk item yang punya submenu */
.dropdown-menu li.submenu-parent > a::after {
    content: ">";
    font-weight: bold;
    margin-left: auto;
    color: #666;
    font-size: 1.2rem;
}


/* =========================================== */
/* TOMBOL LOGIN/LOGOUT DI NAVBAR          */
/* =========================================== */
.auth-container {
    display: flex;
    align-items: center;
}

.auth-buttons, .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-size: 0.9rem;
    color: #cccccc;
}

.auth-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #ffffff;
    cursor: pointer;
}

.login-btn, .logout-btn {
    background-color: transparent;
    color: #ffffff;
}

.login-btn:hover, .logout-btn:hover {
    background-color: #ffffff;
    color: #121212;
}

.signup-btn {
    background-color: #ffffff;
    color: #121212;
    border-color: #ffffff;
}

.signup-btn:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

.hero-section {
    height: 90vh; /* Atur height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 0 5%;

    /* Atur Image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('Picture/headnew.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efek gambar */

    /*Animation*/
    opacity: 0;
    transform: translateY(-30px);
    animation: hertion 0.8s ease-out forwards;
    animation-delay: 1.4s;  /*Delay*/ 
    will-change: opacity, transform;
        }

        @keyframes hertion {
        to {
            opacity: 1;
            transform: translateY(0);
        }
        }


.hero-content {
    max-width: 800px; /* Batas lebar teks agar mudah dibaca */
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif; 
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.hero-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: #763a3a00;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hero-btn:hover {
    background-color: #ffffff;
    color: #151313;
}

/* =========================================== */
/* KARTU-KARTU KEGIATAN                   */
/* =========================================== */
main {
    padding: 4rem 5%;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
    filter: grayscale(20%) brightness(0.5);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.card-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}

.card:hover .card-description {
    max-height: 100px;
    opacity: 1;
}

.info-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    font-weight: 400;
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.info-btn:hover {
    background-color: #FFFFFF;
    color: #121212;
}

.tagline {
    text-align: center;
    margin-top: 4rem;
    font-size: 1rem;
    color: #a0a0a0;
    font-weight: 300;
}


/*Halaman Page*/
.page-hero {
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    /* Ganti gambar sesuai dengan KRL 1 */

    /*Animation*/
    opacity: 0;
    transform: translateY(-50px);
    animation: iyeah 0.5s ease-out forwards;
    animation-delay: 1s;  /*Optional: delay navbar slightly*/ 
    will-change: opacity, transform;
        }

        @keyframes iyeah {
        to {
            opacity: 1;
            transform: translateY(0);
        }
        
}

.page-hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 600;
}

.page-hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #e0e0e0;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/*Bagian Konten & Panel Aksi*/
.page-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 untuk teks, 1/3 untuk panel */
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    align-items: flex-start;
}

.text-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #2de2be; /* Garis bawah hijau toska */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.text-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.text-content p {
    line-height: 1.8;
    color: #b0b0b0;
}

.action-panel {
    position: sticky; /* Ini kuncinya agar panel "menempel" */
    top: 120px; /* Jarak dari atas, sesuaikan dengan tinggi header */
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 50;
}

.action-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.action-panel p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background-color: #2de2be; /* Warna hijau toska */
    color: #121212;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(45, 226, 190, 0.4);
}

.secondary-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.secondary-actions a {
    display: block;
    margin-top: 0.75rem;
    color: #b0b0b0;
    text-decoration: underline;
    font-size: 0.9rem;
}

.secondary-actions a:hover {
    color: #2de2be;
}

/* Penyesuaian Responsif */
@media (max-width: 992px) {
    .page-content-wrapper {
        grid-template-columns: 1fr; /* Ubah jadi 1 kolom di tablet */
    }
    .action-panel {
        position: static; /* Hapus 'sticky' di layar kecil */
        margin-top: 3rem;
    }
    .page-hero-content h1 {
        font-size: 3rem;
    }
}


/* =========================================== */
/* ▼▼▼ STYLE UNTUK HALAMAN ABOUT ▼▼▼ */
/* =========================================== */

.about-section {
    text-align: justify;
}

.about-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-section p {
    line-height: 1.8;
    color: #b0b0b0;
}

/* =========================================== */
/* ▼▼▼ STYLE UNTUK HALAMAN ABOUT BARU     ▼▼▼ */
/* =========================================== */

/* Kontainer utama untuk konten 'About' */
.about-container {
    max-width: 100%;
    margin: auto;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Tombol Pengalih Bahasa */
.lang-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    background-color: #121212;
    border-radius: 25px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 300px; /* Batasi lebar agar tidak terlalu besar */
    margin-left: auto;
    margin-right: auto;
}

.lang-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background-color: transparent;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: #ffffff;
    color: #121212;
}

/* Artikel Konten */
.about-article {
    margin-bottom: 3rem;
}

.about-article:last-child {
    margin-bottom: 0;
}

.about-article h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2de2be; /* Aksen hijau toska */
    display: inline-block;
}

.about-article p {
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.about-article ol {
    padding-left: 25px;
    color: #b0b0b0;
}

.about-article ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}


/* STYLE UNTUK HALAMAN CONTACT  */


.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h2, .contact-form h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
}

.contact-info li i {
    font-size: 1.5rem;
    color: #2de2be;
    margin-top: 5px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    filter: invert(90%) grayscale(80%); /* Efek peta dark mode */
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2de2be;
}

.contact-form button {
    width: 100%;
}

/* Penyesuaian Responsif untuk Halaman About & Contact */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================== */
/* FOOTER                                 */
/* =========================================== */
.main-footer {
    padding: 3rem 5%;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-logos img {
    height: 45px;
    filter: grayscale(1) brightness(2) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logos img:hover {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: scale(1.1);
}

/* =========================================== */
/* DESAIN RESPONSIVE                      */
/* =========================================== */
@media (max-width: 992px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .main-header { padding: 1rem 5%; }
    .main-nav ul { gap: 1rem; }
    .main-nav a { font-size: 0.8rem; }
    .hero-section { height: 70vh; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1rem; }
    main { padding: 3rem 5%; }
    .card-container { gap: 2rem; }
    .card { height: 400px; }
    .card-content h2 { font-size: 2rem; }
    .footer-logos { gap: 2rem; }
    .footer-logos img { height: 35px; }
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
    }
    .dropdown:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* =========================================== */
/* ▼▼▼ STYLE UNTUK MODAL LOGIN/REGISTRASI ▼▼▼ */
/* =========================================== */

/* Lapisan Latar Belakang Modal */
/* =========================================== */
/* MODAL BACKGROUND */
/* =========================================== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================== */
/* MODAL CONTENT (Card) */
/* =========================================== */
.auth-modal-content {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: 'Poppins', sans-serif;
    color: white;
    animation: fadeInUp 0.4s ease-out;
    position: relative;
}

/* =========================================== */
/* CLOSE BUTTON (X) */
/* =========================================== */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* =========================================== */
/* FORM FIELD STYLES */
/* =========================================== */
.auth-modal-content .form-group {
    margin-bottom: 0.8rem;
}

.auth-modal-content label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #f1f1f1;
}

.auth-modal-content input[type="email"],
.auth-modal-content input[type="password"],
.auth-modal-content input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    width: 100%;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}

.auth-modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-modal-content input:focus {
    border-color: #ffffff;
}

/* =========================================== */
/* SUBMIT BUTTON */
/* =========================================== */
.auth-modal-content button[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(#2de2be);
    color: #121212;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-modal-content button[type="submit"]:hover {
    background: linear-gradient(#FFFFFF);
}

/* =========================================== */
/* ERROR MESSAGE */
/* =========================================== */
.form-error-msg {
    color: #ff5252;
    background-color: rgba(255, 82, 82, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

/* =========================================== */
/* TEXT LINK SWITCH (Daftar/Masuk) */
/* =========================================== */
.switch-form-text {
    margin-top: 1rem;
    text-align: center;
    color: #f1f1f1;
    font-size: 0.95rem;
}

.switch-form-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

/* =========================================== */
/* ANIMATION */
/* =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================== */
/* OPTIONAL: RECAPTCHA ERROR STYLE */
/* =========================================== */
.captcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}



/* Class 'hidden' untuk menyembunyikan form */
.hidden {
    display: none;
}

