/* ================= FONT ================= */
@font-face {
    font-family: 'ClintMarker';
    src: url('assets/fonts/ClintMarker.woff2?v=4') format('woff2'),
         url('assets/fonts/ClintMarker.woff?v=4') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}



/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #1a0025, #000);
    color: #fff;
    opacity: 0;
    transform: scale(1.05);
    animation: cinematicIn .7s ease forwards;
}

@keyframes cinematicIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================= NAVBAR BASE (GLOBAL) ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 10000;
    background: linear-gradient(
        to right,
        rgba(49, 2, 82, 0.95),
        rgba(10, 10, 40, .95)
    );
    backdrop-filter: blur(10px);
}

/* ================= DESKTOP NAVBAR ================= */
.navbar-desktop {
    display: block;
}

.navbar-desktop .nav-container {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-desktop .nav-logo {
    font-family: 'ClintMarker';
    font-size: 25px;
    letter-spacing: 3px;
    color: #fff;
    text-decoration: none;
}

.navbar-desktop .nav-logo .purple {
    color: #b266ff;
}

.navbar-desktop .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-desktop .nav-menu a {
    text-decoration: none;
    font-size: 14px;
    color: #ddd;
    padding: 6px 4px;
    letter-spacing: 1.5px;
    transition: color .2s ease;
}

.navbar-desktop .nav-menu a:hover,
.navbar-desktop .nav-menu a.active {
    color: #b266ff;
}

/* ================= MOBILE NAVBAR ================= */
.navbar-mobile {
    display: none;
    background: rgba(10, 0, 25, .95);
    backdrop-filter: blur(8px);
}

.navbar-mobile .mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
}

.navbar-mobile .nav-logo {
    font-family: 'ClintMarker', cursive;
    font-size: 18px;
    letter-spacing: 3px;
    color: #fff;
}

.navbar-mobile .mobile-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

.navbar-mobile .mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(10, 0, 20, .98);
}

.navbar-mobile .mobile-menu a {
    font-family: 'ClintMarker', cursive;
    padding: 16px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}


.navbar-mobile .mobile-menu a:hover {
    background: rgba(255, 255, 255, .08);
}

.navbar-mobile .mobile-menu.active {
    display: flex;
}
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: .3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.purple {
    color: #b266ff;
}

.navbar-mobile .purple {
    text-shadow: 0 0 8px rgba(178,102,255,.8);
}

.navbar-mobile {
    font-family: 'ClintMarker', cursive;
}

/* ================= FORCE NAVBAR FONT (FINAL FIX iOS) ================= */
.navbar-desktop a,
.navbar-mobile a,
.navbar-desktop .nav-logo,
.navbar-mobile .nav-logo {
    font-family: 'ClintMarker';
    font-weight: 400;
}


/* ================= FORCE FONT NAVBAR (PALING BAWAH) ================= */
.navbar-desktop a,
.navbar-mobile a,
.navbar-desktop .nav-logo,
.navbar-mobile .nav-logo {
    font-family: 'ClintMarker';
    font-weight: 400;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 100vh;
    padding-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 70px 0 0 0;
    background: rgba(0, 0, 0, .55);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-logo img {
    max-width: 320px;
    animation: glow 3s infinite;
}

@keyframes glow {
    50% {
        filter: drop-shadow(0 0 35px rgba(138, 43, 226, .9));
    }
}

.hero-text h1 {
    font-size: 64px;
}

.hero-text p {
    margin-top: 10px;
    color: #ccc;
}

.hero-btn {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ================= BUTTON ================= */
.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.btn.primary {
    background: #8b2cff;
    color: #fff;
}

.btn.primary:hover {
    box-shadow: 0 0 25px rgba(138, 43, 226, .9);
}

.btn.outline {
    border: 1px solid #8b2cff;
    color: #8b2cff;
}

.btn.outline:hover {
    background: #8b2cff;
    color: #fff;
}

/* ================= PAGE ================= */
.page {
    max-width: 1200px;
    margin: auto;
    padding: 120px 80px 80px;
}

/* ================= SEJARAH ================= */
.sejarah-page {
    padding: 140px 20px 100px;
}

.sejarah-page h1 {
    text-align: center;
    font-size: 46px;
    margin-bottom: 80px;
}

.sejarah-box {
    max-width: 1100px;
    margin: auto auto 60px;
    padding: 50px 60px;
    background: linear-gradient(160deg, rgba(25, 0, 40, .95), rgba(5, 5, 10, .95));
    border-left: 5px solid #b266ff;
    border-radius: 14px;
}

.sejarah-box h2 {
    color: #b266ff;
    margin-bottom: 15px;
}

.sejarah-box p {
    line-height: 1.9;
    color: #ddd;
}

/* ================= IMAGE MODAL ================= */
.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.img-modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 14px;
    box-shadow: 0 0 35px rgba(138, 43, 226, .9);
}

/* ================= SCROLL ANIMATION ================= */
.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: .9s ease;
}

.animate.show {
    opacity: 1;
    transform: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

    .navbar-desktop {
        display: none;
    }

    .navbar-mobile {
        display: block;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-logo img {
        max-width: 240px;
    }
}
/* ================= ACTIVITY LOG Mobile ================= */
@media (max-width:768px){
    body{
        overflow-y:auto;
        padding:20px 14px;
    }
}
/* ================= Copyright ================= */
.copyright {
  position: fixed;
  bottom: 15px;
  left: 20px;

  font-size: 12px;
  color: rgba(255,255,255,0.7);

  z-index: 9999;
  pointer-events: none;
}
/* ===== DISCORD MODAL FIX ===== */
.discord-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999; /* PASTIKAN PALING ATAS */
}

.discord-modal-content {
    background: #120018;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 0 40px rgba(155, 89, 182, 0.4);
}