/* ===== CSS Variables ===== */
:root {
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.8);
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #22d3ee;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.1);
    --glow-primary: rgba(99, 102, 241, 0.5);
    --glow-secondary: rgba(139, 92, 246, 0.5);
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9, #22d3ee);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Premium Animated Background ===== */

/* Aurora gradient layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 120% 80% at 20% 10%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 10% 60%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 90% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -3;
    animation: aurora 20s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    50% {
        filter: hue-rotate(15deg) brightness(1.1);
    }

    100% {
        filter: hue-rotate(-15deg) brightness(1);
    }
}

/* Animated grid pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -2;
    animation: grid-move 40s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(80px, 80px);
    }
}

/* Stars container styling */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: var(--opacity, 0.8);
        transform: scale(1);
    }
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    animation: shoot var(--shoot-duration, 3s) ease-in-out infinite;
    opacity: 0;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        transform: translateX(300px) translateY(300px) rotate(-45deg);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Floating orbs */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    animation: float-around 25s ease-in-out infinite;
}

@keyframes float-around {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, 30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }

    75% {
        transform: translate(40px, -20px) scale(1.05);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

/* Custom GIF Background */
.gif-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    overflow: hidden;
    background-color: #0f172a;
    /* Fallback */
}

.gif-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out, opacity 0.5s ease;
    opacity: 0;
}

.gif-bg.loaded {
    opacity: 1;
}

.gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Configurable opacity via JS */
    z-index: 1;
}

/* Noise Texture Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Particles Container (Constellations) */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* ===== Premium Loader ===== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.loader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.loader-logo {
    width: 80px;
    height: auto;
    z-index: 2;
    animation: logo-pulse 2s ease-in-out infinite;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #fbbf24;
    border-right-color: #fbbf24;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: #f59e0b;
    border-left-color: #f59e0b;
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loader-text-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.loader-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 5px;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.loader-subtitle {
    display: block;
    font-size: 1rem;
    color: #94a3b8;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.loader-progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 10px;
    animation: progress 2s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* ===== Navbar ToroMC Style ===== */
.navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    padding: 0;
    height: 90px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: 65px;
    width: max-content;
    padding: 0 35px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    top: 25px;
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
}

.navbar.hidden {
    top: -100px !important;
    opacity: 0;
}

.navbar.scrolled .container {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 40px;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.navbar.scrolled .nav-logo .logo-img {
    height: 38px;
}

.navbar.scrolled .nav-item {
    font-size: 0.9rem;
}

.navbar.scrolled .nav-item::after {
    bottom: 15px;
    left: 10px;
    right: 10px;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-img {
    height: 50px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(255, 200, 100, 0.2));
}

.nav-logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--primary-color));
}

.nav-menu {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-button {
    height: 45px;
    padding: 0 20px;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.nav-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.nav-item {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    text-transform: capitalize;
    border-radius: 50px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar.scrolled .nav-item::after {
    bottom: 18px;
}

.nav-item.has-dropdown {
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    /* Increase touch target vertical */
}

/* Dropdown Menu - Robust Positioning */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 10px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    z-index: 10000;
}

/* Show on Hover (Desktop) & Active (Mobile) */
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px) scale(1);
}

/* Arrow Rotation */
.dropdown-icon {
    font-size: 0.8rem;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-icon,
.nav-item.has-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .navbar.scrolled {
        width: 95%;
        padding: 0 20px;
        min-width: unset;
    }

    .navbar.scrolled .container {
        gap: 20px;
    }
}

/* ===== Music Toggle Pill ===== */
.music-toggle-pill {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 9998;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.music-toggle-pill:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.music-toggle-pill i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.music-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animated Music Bars */
.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 15px;
    width: 15px;
}

.music-bars span {
    width: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: height 0.2s ease;
    height: 3px;
}

.music-toggle-pill.playing .music-bars span {
    animation: musicBarGrow 0.8s ease-in-out infinite alternate;
}

.music-toggle-pill.playing .music-bars span:nth-child(2) {
    animation-delay: 0.2s;
}

.music-toggle-pill.playing .music-bars span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes musicBarGrow {
    0% {
        height: 3px;
    }

    100% {
        height: 15px;
    }
}

/* Playing state glow */
.music-toggle-pill.playing {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Waiting state pulse */
.music-toggle-pill.waiting {
    animation: pulseGlow 2s infinite;
    border-color: var(--primary-color);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-flag img {
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ===== Hero ToroMC Style ===== */
.hero-toro {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    /* Removed gradient */
    overflow: hidden;
    padding-top: 80px;
}

/* Mountain Silhouette Effect - Removed for transparent bg */
.hero-toro::after {
    content: none;
    /* Hide overlay texture */
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    /* Removed radial gradient */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    /* Slightly smaller */
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
    max-width: 900px;
    /* Limit width */
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    /* Force normal wrapping */
}

.typing-cursor {
    border-right: 3px solid var(--primary-color);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color)
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #cbd5e1;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Server Status Pill */
.server-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ===== Server Connect Cards ===== */
.server-connect {
    margin-top: -80px;
    /* Overlap hero */
    position: relative;
    z-index: 20;
    padding-bottom: 80px;
}

.server-connect-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.connect-card {
    background: rgba(15, 23, 42, 0.4);
    /* Made more transparent */
    backdrop-filter: blur(10px);
    /* Applied blur */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 450px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.connect-card:hover {
    transform: translateY(-5px);
    border-color: #475569;
}

.card-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.connect-card.java .card-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.connect-card.bedrock .card-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-ip {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-port {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 5px;
}

.btn-copy-ip {
    margin-top: 25px;
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-copy-ip:hover {
    background: white;
    color: #0f172a;
    border-color: white;
}

.status-indicator i {
    font-size: 0.8rem;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-indicator.online i {
    color: var(--success-color);
    text-shadow: 0 0 10px var(--success-color);
}

.status-indicator.offline i {
    color: var(--error-color);
    text-shadow: 0 0 10px var(--error-color);
}

@keyframes status-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-weight: 600;
    color: var(--text-secondary);
}

.status-text strong {
    color: var(--success-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

.btn-copy {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-copy:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Server Info Section ===== */
.server-info {
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.server-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.server-card {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    padding: 50px 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.server-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.server-card:hover::before {
    opacity: 1;
}

.server-card-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    padding: 8px 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.server-card-badge.java {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.server-card-badge.bedrock {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.server-card-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px var(--glow-primary));
}

.server-card-ip {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.server-card-version {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===== Features Section ===== */
.features {
    background: var(--primary-bg);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
}

.feature-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent 30%);
    animation: rotate-gradient 10s linear infinite;
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover::before {
    opacity: 1;
}

@keyframes rotate-gradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===== Game Modes Section ===== */
.gamemodes {
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gamemode-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gamemodes-grid.single-mode {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.gamemode-card.premium-card {
    display: flex;
    flex-direction: row;
    min-height: 350px;
}

.gamemode-image {
    width: 45%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gamemode-card.premium-card .gamemode-content {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gamemode-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.6) 100%);
}

.gamemode-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: fit-content;
}

.gamemode-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gamemode-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.gamemode-features i {
    color: var(--success-color);
}

/* Responsive adjustment for premium card */
@media (max-width: 992px) {
    .gamemode-card.premium-card {
        flex-direction: column;
    }

    .gamemode-image,
    .gamemode-card.premium-card .gamemode-content {
        width: 100%;
    }

    .gamemode-image {
        height: 250px;
    }
}

.gamemode-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Punishment Type Badges */
.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-weight: 700;
    color: white;
}

.punish-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
}

.type-ban {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.type-mute {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.type-kick {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.type-warn {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gamemode-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gamemode-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== Stats Section ===== */
.stats {
    background: var(--primary-bg);
    padding: 100px 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 40px 25px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== How To Section ===== */
.howto {
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.howto-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.howto-step {
    text-align: center;
    padding: 50px 35px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 24px;
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.howto-step:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.step-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    margin-top: 15px;
}

.howto-step h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.howto-step p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.howto-connector {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.howto-cta {
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-bg);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-logo i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px var(--glow-primary));
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a,
.footer-column p {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 15px;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-ip {
    font-weight: 700;
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 25px;
        gap: 10px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: block;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    /* Mobile Dropdown */
    .nav-item.has-dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dropdown-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 15px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: unset;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    .nav-item.has-dropdown:hover .dropdown-menu {
        display: none;
        /* Disable hover on mobile */
    }

    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
        transform: none;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-item {
        padding: 15px 30px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    section {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .howto-connector {
        display: none;
    }

    .howto-steps {
        flex-direction: column;
    }

    .howto-step {
        max-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-brand {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 50px;
    }

    .features-grid,
    .gamemodes-grid {
        grid-template-columns: 1fr;
    }

    .server-cards {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .server-card,
    .howto-step {
        padding: 35px 25px;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== Selection ===== */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ===== Server Status Pill ===== */
.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(15, 23, 42, 0.4);
    /* Light background */
    backdrop-filter: blur(5px);
    /* Soft blur request */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.server-status-pill:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #fbbf24;
    /* Warning/Loading */
    border-radius: 50%;
    box-shadow: 0 0 10px #fbbf24;
    transition: all 0.3s ease;
}

.status-text {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Fix Navbar Z-Index */
.navbar {
    position: relative;
    z-index: 10000;
}