/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #0a0a0c;
    color: #ffffff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(8, 8, 10, 0.65);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1400px;

    height: 75px;

    margin: auto;

    padding: 0 30px;

    display: flex;

    align-items: center;
}


/* =========================
   LOGO NAVBAR
========================= */

.logo {
    font-weight: 800;

    font-size: 18px;

    letter-spacing: 1px;

    display: flex;

    align-items: center;

    gap: 10px;

    white-space: nowrap;
}

.logo-icon {
    color: #9b6cff;

    font-size: 22px;
}


/* =========================
   NAV MENU
========================= */

.nav-menu {
    display: flex;

    gap: 30px;

    margin-left: auto;

    margin-right: 30px;
}

.nav-menu a {
    color: #aaa;

    font-size: 14px;

    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}


/* =========================
   DISCORD BUTTON
========================= */

.discord-button {
    background: #5865f2;

    padding: 11px 20px;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;

    white-space: nowrap;
}

.discord-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.15);
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-button {
    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 25px;

    cursor: pointer;

    padding: 5px;

    margin-left: auto;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    height: 100vh;

    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background-image:
        url("assets/background.jpg");

    background-size: cover;

    background-position: center;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 5, 8, 0.65),
            rgba(5, 5, 8, 0.8)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    padding: 20px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


/* =========================
   SERVER STATUS
========================= */

.status-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 25px;
}

.status-dot {
    width: 8px;

    height: 8px;

    background: #45e07f;

    border-radius: 50%;
}


/* =========================
   HERO TITLE
========================= */

.hero h1 {
    font-size: clamp(42px, 7vw, 85px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -3px;
}

.hero h1 span {
    display: block;

    color: #a779ff;
}


/* =========================
   OBSIDIAN SMP LOGO
========================= */

.server-logo {
    display: block;

    width: min(700px, 90vw);

    height: auto;

    margin: 10px auto 0;

    object-fit: contain;

    filter:
        drop-shadow(
            0 10px 20px
            rgba(0, 0, 0, 0.7)
        );

    animation:
        logoFloat
        4s
        ease-in-out
        infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}


/* =========================
   HERO DESCRIPTION
========================= */

.hero p {
    color: #b8b8be;

    max-width: 600px;

    margin: 25px auto;

    line-height: 1.7;

    font-size: 16px;
}


/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 24px;

    border-radius: 7px;

    font-weight: 600;

    font-size: 14px;

    cursor: pointer;

    border: none;

    transition: 0.3s;
}

.primary-button {
    background: #9b6cff;

    color: white;
}

.primary-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px
        rgba(155, 108, 255, 0.3);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.15);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.18);
}


/* =========================
   SERVER IP
========================= */

.server-ip {
    margin-top: 25px;

    color: #aaa;

    font-size: 13px;

    letter-spacing: 1px;
}


/* =========================
   SCROLL DOWN
========================= */

.scroll-down {
    position: absolute;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%);

    color: #888;

    font-size: 11px;

    text-align: center;
}

.scroll-down div {
    font-size: 20px;

    margin-top: 5px;

    animation:
        bounce
        1.5s
        infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }

}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 20px;
}

.dark-section {
    background: #0e0e12;
}

.section-container {
    max-width: 1100px;

    margin: auto;
}

.center {
    text-align: center;
}

.section-label {
    color: #9b6cff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.section h2 {
    font-size: clamp(32px, 5vw, 55px);

    line-height: 1.1;

    margin-bottom: 20px;
}

.section h2 span {
    color: #9b6cff;
}

.section-description {
    max-width: 650px;

    color: #999;

    line-height: 1.8;

    margin-bottom: 50px;
}

.center .section-description {
    margin-left: auto;

    margin-right: auto;
}


/* =========================
   CARDS
========================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 50px;
}

.card {
    padding: 35px;

    background: #111116;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(155, 108, 255, 0.5);
}

.card-icon {
    font-size: 30px;

    color: #9b6cff;

    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #888;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================
   RULES
========================= */

.rules-list {
    margin-top: 50px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.rule {
    display: flex;

    gap: 20px;

    padding: 30px;

    background: #121217;

    border-radius: 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.rule-number {
    color: #9b6cff;

    font-size: 20px;

    font-weight: 800;
}

.rule h3 {
    margin-bottom: 8px;
}

.rule p {
    color: #888;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================
   STAFF
========================= */

.staff-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 50px;
}

.staff-card {
    text-align: center;

    padding: 35px;

    background: #111116;

    border-radius: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.staff-avatar {
    width: 90px;

    height: 90px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 35px;

    background: #1b1725;

    border-radius: 50%;

    border: 2px solid #9b6cff;
}

.staff-card p {
    color: #9b6cff;

    font-size: 13px;

    margin-top: 7px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 50px 20px 25px;

    background: #08080a;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.footer-container {
    max-width: 1100px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-container p {
    color: #777;

    margin-top: 8px;

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 20px;

    color: #888;

    font-size: 13px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    max-width: 1100px;

    margin: 40px auto 0;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.05);

    color: #555;

    font-size: 12px;
}


/* =========================
   TOAST
========================= */

.toast {
    position: fixed;

    bottom: 30px;

    right: 30px;

    padding: 14px 20px;

    background: #18181d;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 7px;

    opacity: 0;

    transform: translateY(20px);

    pointer-events: none;

    transition: 0.3s;

    z-index: 2000;
}

.toast.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* NAVBAR MOBILE */

    .nav-container {
        padding: 0 20px;
    }

    .logo {
        margin-right: auto;

        white-space: nowrap;
    }

    .nav-menu,
    .discord-button {
        display: none;
    }

    .menu-button {
        display: block;

        margin-left: 20px;

        flex-shrink: 0;
    }


    /* MOBILE DROPDOWN */

    .nav-menu.mobile-active {
        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 0;

        background: #0b0b0e;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.1);
    }

    .nav-menu.mobile-active a {
        padding: 18px 25px;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.05);
    }


    /* HERO */

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-buttons {
        flex-direction: column;
    }


    /* CONTENT */

    .cards,
    .rules-list,
    .staff-grid {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }


    /* LOGO HERO */

    .server-logo {
        width: 90vw;

        max-width: 500px;
    }

}


/* =========================
   SMALL PHONE
========================= */

@media (max-width: 400px) {

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 14px;

        gap: 7px;
    }

    .logo-icon {
        font-size: 18px;
    }

    .menu-button {
        font-size: 22px;

        margin-left: 15px;
    }

}

/* =========================
   MOBILE PORTRAIT FIX
========================= */

@media (max-width: 768px) {

    .hero {
        min-height: 800px;
        height: auto;

        padding-top: 100px;
        padding-bottom: 140px;
    }

    .hero-content {
        position: relative;
        padding: 20px;
    }

    .server-logo {
        width: 85vw;
        max-width: 500px;
    }

    .hero p {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        margin-top: 20px;
    }

    .server-ip {
        margin-top: 20px;
    }

    .scroll-down {
        bottom: 25px;
    }

}