/* --- 1. LOAD LOCAL FONT --- */
@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- 2. VARIABLES & RESET --- */
:root {
    --bg-color: #0d120e;
    --text-color: #e0e0e0;
    --accent: #f9d71c;
    /* Monke Yellow */
    --green-glow: #4caf50;
    --danger: #ff3b3b;
    --font-main: 'Minecraft', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* COLORS FOR BLENDING */
    --c-black: #0d120e;
    --c-red: #300a0a;
    --c-green: #051a0a;
    --c-dark: #151515;
    --c-purple: #1a0a24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.logo,
.badge-out-now,
.badge-exclusive,
.owner-badge {
    font-family: var(--font-main);
}

/* CUSTOM SCROLLBAR & SELECTION COLOR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--c-black);
}

::-webkit-scrollbar-thumb {
    background: var(--green-glow);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

::selection {
    background: var(--accent);
    color: #000;
}

body {
    background-color: var(--c-black);
    color: var(--text-color);
    overflow-x: hidden;
    transition: 0.5s;
    font-size: 20px;
}

/* --- ANIMATION: REVEAL ON SCROLL --- */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: 0.8s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- UI COMPONENTS --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    border: none;
    color: black;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    transition: 0.3s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(249, 215, 28, 0.5);
}

#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: white;
}

/* --- 3. NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(13, 18, 14, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: normal;
    letter-spacing: 2px;
    user-select: none;
}

.highlight {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: black !important;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.nav-cta:hover {
    background: white !important;
    box-shadow: 0 0 15px var(--accent);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

/* --- 4. HERO SECTION --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1542259698-f9d2d8804675?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, var(--c-black) 100%);
}

.hero-content {
    z-index: 2;
    transform: translateY(30px);
    animation: slideUp 1s forwards 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.server-logo-float {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(249, 215, 28, 0.4);
    animation: floatIcon 6s infinite ease-in-out;
    object-fit: cover;
    display: none;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
}

.highlight-text {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

.click-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    animation: blink 2s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.server-status {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #fff;
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #666;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.ip-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #555;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    cursor: pointer;
    transition: 0.1s ease;
    max-width: 90vw;
    word-break: break-all;
}

.ip-box:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 0, 0, 0.1);
}

.ip-box:active {
    transform: scale(0.95);
}

.no-select {
    -webkit-user-select: none;
    user-select: none;
}

/* --- 5. SMOOTH WATERFALL SECTIONS (FIXED ORDER) --- */
.colored-section {
    padding: 100px 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px #000;
}

#players {
    background: linear-gradient(to bottom, var(--c-black), var(--c-red));
}

#join {
    background: linear-gradient(to bottom, var(--c-red), var(--c-green));
}

#features {
    background: linear-gradient(to bottom, var(--c-green), var(--c-dark));
}

#gallery {
    background: linear-gradient(to bottom, var(--c-dark), var(--c-green));
}

#rules {
    background: linear-gradient(to bottom, var(--c-green), var(--c-purple));
}

#faq {
    background: linear-gradient(to bottom, var(--c-purple), var(--c-dark));
}

#staff {
    background: linear-gradient(to bottom, var(--c-dark), var(--c-red));
}

#about {
    background: linear-gradient(to bottom, var(--c-red), var(--c-black));
}

/* --- 6. LIVE PLAYER LIST --- */
.player-grid-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.player-head-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.5s ease;
    cursor: pointer;
}

.player-head-wrapper img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.player-head-wrapper:hover img {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(249, 215, 28, 0.5);
}

.player-name {
    font-size: 0.9rem;
    color: #ccc;
}

.empty-server-text {
    font-style: italic;
    color: #888;
    font-size: 1.2rem;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.refresh-btn:hover {
    background: var(--accent);
    color: black;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OWNER BADGE */
.owner-badge {
    background-color: var(--accent);
    color: black;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- 7. CARDS & GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(22, 34, 26, 0.8);
    padding: 40px 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    position: relative;
    overflow: visible;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: #1a2a20;
}

.emoji-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.card:hover .emoji-icon {
    transform: scale(1.2) rotate(5deg);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 1.1rem;
}

.badge-out-now {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent);
    color: black;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.coming-soon-card {
    opacity: 0.7;
    border-style: dashed;
}

.badge-soon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #666;
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.coming-soon-card:hover {
    opacity: 1;
    border-color: #666;
    background: rgba(22, 34, 26, 0.8);
}

/* --- 8. GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid #333;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 1.2rem;
    transform: translateY(100%);
    transition: 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* --- 9. FAQ --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    list-style: none;
    position: relative;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-weight: bold;
}

.faq-item[open] summary::after {
    content: '-';
    color: var(--accent);
}

.faq-item[open] summary {
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item p {
    padding: 20px;
    color: #ccc;
    line-height: 1.6;
}

/* --- 10. JOIN CARD --- */
.join-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--danger);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 59, 59, 0.15);
}

.badge-exclusive {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--danger);
    color: white;
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    transform: rotate(5deg);
}

.join-card h3 {
    color: var(--danger);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.join-perks {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    color: #bbb;
    font-size: 1rem;
}

.join-perks i {
    color: var(--accent);
    margin-right: 5px;
}

.member-counter-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-text {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.progress-bar-bg {
    width: 100%;
    height: 15px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--danger));
    transition: width 1s ease-in-out;
}

.spots-text {
    margin-top: 10px;
    color: #ccc;
    font-style: italic;
}

.discord-join-btn {
    display: inline-block;
    background: #5865F2;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 8px;
    transition: 0.3s;
    border: 2px solid #5865F2;
    width: 100%;
    max-width: 300px;
    font-family: var(--font-body);
    font-weight: bold;
}

.discord-join-btn:hover {
    background: transparent;
    color: #5865F2;
    transform: scale(1.05);
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 215, 28, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(249, 215, 28, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 215, 28, 0);
    }
}

/* --- NEW: STAFF SECTION --- */
.staff-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.staff-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 250px;
    position: relative;
    transition: 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.staff-card img {
    width: 80px;
    height: 160px;
    /* Tall body render */
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.staff-role {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.owner-role {
    background: var(--accent);
    color: black;
}

.admin-role {
    background: var(--danger);
    color: white;
}

.staff-card h3 {
    margin-bottom: 5px;
    color: white;
}

.staff-card p {
    font-size: 0.9rem;
    color: #aaa;
}

/* --- 11. RULES & ABOUT --- */
.rule-list {
    list-style: none;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.rule-list li {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.red-icon {
    color: var(--danger);
}

.green-icon {
    color: var(--green-glow);
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.avatar-circle img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    margin-bottom: 20px;
}

.role-badge {
    background: var(--green-glow);
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.socials {
    margin-top: 20px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.socials a {
    color: #888;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* --- 12. LOADER & PARTICLES --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.banana-spinner {
    font-size: 4rem;
    animation: spin 1.5s infinite linear;
}

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

.particle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    filter: blur(2px);
    animation: floatParticle 15s infinite linear;
}

.p1 {
    top: 10%;
    left: 10%;
    animation-duration: 20s;
}

.p2 {
    top: 80%;
    left: 80%;
    animation-duration: 15s;
}

.p3 {
    top: 40%;
    left: 20%;
    animation-duration: 25s;
}

.p4 {
    top: 60%;
    left: 90%;
    animation-duration: 18s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.monke-mode {
    animation: barrelRoll 1s ease-in-out;
}

@keyframes barrelRoll {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(720deg);
    }
}

footer {
    padding: 40px;
    text-align: center;
    background: #000;
    color: #555;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-socials a {
    color: #555;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(13, 18, 14, 0.98);
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .badge-exclusive {
        font-size: 0.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* MOBILE GALLERY (LIST VIEW) */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 100px;
        aspect-ratio: auto;
    }

    .gallery-item img {
        width: 120px;
        height: 100%;
        border-right: 2px solid #333;
        flex-shrink: 0;
    }

    .gallery-caption {
        position: static;
        transform: none;
        width: auto;
        flex-grow: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        padding: 0 10px;
        font-size: 1rem;
    }
}