/* === 1. RESET & DASAR === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body,
html {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === 2. HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 100px;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

/* === 3. NAVBAR UTAMA === */
nav.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    color: white;
    background-color: transparent;
    z-index: 9999;
    transition: all 0.4s ease;
}

/* 1. Efek scrolled (ketika di-scroll ke bawah) */
nav.fixed-nav.scrolled {
    padding: 5px 30px;
    background-color: rgba(26, 67, 62, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 2. Ukuran logo saat scrolled */
nav.fixed-nav.scrolled .logo img {
    width: 30px !important;
    height: 30px !important;
}

/* 3. Ukuran teks logo saat scrolled */
nav.fixed-nav.scrolled .logo span {
    font-size: 20px;
}

/* 4. Gaya awal solid-nav (Halaman non-home saat di paling atas) */
/* Memiliki background solid, namun tetap berukuran besar agar seragam sebelum di-scroll */
nav.fixed-nav.solid-nav {
    background-color: rgba(26, 67, 62, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    font-size: 24px;
    font-weight: 400;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00d859;
}

.divider {
    height: 30px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    border: 2px solid #00d859;
    color: white !important;
    padding: 5px 16px;
    border-radius: 30px;
    font-weight: 600 !important;
    font-size: 13px;
}

.btn-login:hover {
    background-color: #00d859;
}

/* === 4. HERO CONTENT === */
.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 50px;
    color: white;
    width: 100%;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.text-area h1 {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.1;
}

.text-area h1 strong {
    font-weight: 700;
}

.btn-join {
    background-color: #00d859;
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 216, 89, 0.4);
}

.btn-join:hover {
    background-color: #00b34a;
    transform: translateY(-2px);
}

/* Media Query untuk layar mobile (di bawah 768px) */
@media (max-width: 768px) {
    nav.fixed-nav {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .divider {
        display: none;
    }

    .bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        margin-bottom: 20px;
    }

    .text-area h1 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .cta-area {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* --- MODAL LOGIN --- */
#loginModal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loginModal.show {
    opacity: 1;
    visibility: visible;
}

#loginModal .modal-content {
    background-color: #fff;
    padding: 40px;
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#loginModal.show .modal-content {
    transform: translateY(0) scale(1);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #555;
    transform: rotate(90deg);
}

#loginModal h3 {
    margin-top: 0;
    color: #26433e;
    font-size: 1.6rem;
    margin-bottom: 30px;
}

#loginForm .input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

#loginForm .input-group i {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #aaa;
    transition: 0.3s;
}

#loginForm input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #eee;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: 0.3s ease;
}

#loginForm input:focus {
    border-color: #2c3e50;
    outline: none;
    box-shadow: 0 0 10px rgba(26, 67, 62, 0.1);
}

#loginForm input:focus+i {
    color: #2c3e50;
}

.status-box {
    height: 20px;
    margin-bottom: 15px;
}

#msg {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #eee;
    border-bottom-color: #2c3e50;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin: 0 auto;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loginBtn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 15px;
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loginBtn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#loginBtn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

html {
    scroll-behavior: smooth;
}

/* --- BACK TO TOP BUTTON --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d9488;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#backToTop:hover {
    background: #059669;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
}

#backToTop i {
    font-size: 20px;
    pointer-events: none;
}

/* --- LOADING OVERLAY --- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

@media (prefers-color-scheme: dark) {
    .loading-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .loading-text {
        color: #ffffff !important;
    }
}

.loader-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #3e5836;
    border-right: 4px solid #3e5836;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    font-family: sans-serif;
    color: #3e5836;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- NAVIGATION DROPDOWN --- */
.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
    gap: 20px; 
}

.dropdown { 
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

.dropdown-content li a {
    color: #333;
    padding: 8px 16px;
    display: block;
    text-decoration: none;
}

.dropdown-content li a:hover { 
    background-color: #f4f7f6; 
    color: #2a9d8f; 
}

/* --- NOTIFICATION BELL --- */
.bell-container i.fa-bell {
    color: #fbbc04;
    font-size: 1.5rem;
    transition: 0.3s;
}

.bell-container:hover i.fa-bell {
    animation: ring 0.5s ease-in-out;
}

@keyframes ring {
    0% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0); }
}

.bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    color: #4b5563;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.bell-container:hover {
    color: #1a8f6a;
}

.bell-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #ff3b30;
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ffffff;
}

.nav-notif-container {
    position: relative;
}

/* --- NOTIFICATION DROPDOWN --- */
.notif-dropdown {
    position: absolute;
    top: 160%;
    right: -50px;
    width: 280px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 30px 20px 25px 20px;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notif-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-icon-large {
    font-size: 50px;
    color: #fbbc04;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.3));
}

.notif-title {
    font-size: 1.1rem;
    color: #111827;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.notif-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.btn-view-all {
    display: block;
    background: #ef4444;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.btn-view-all:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

/* --- PARTNER BUTTON --- */
.btn-partner {
    background-color: #2ecc71;
    color: white !important;
    padding: 5px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-partner:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}
