/* =================================
   GLOBALE VARIABLEN & RESET
   ================================= */

:root {
    --nice-padding: 6rem;
    --roundness: 0.75rem;
    --accent1: #00ffea;
    --accent2: #00acfc;
    --accent2_transp: #00518655;
    --background1: #0f1419;
    --background2: #16191b;
    --badge-color: #ff6b6b;
    --online-color: #4ade80;
    --offline-color: #f87171;
    --unknown-color: #fbbf24;
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--background1);
    color: white;
    overflow-x: hidden;
}

/* ========== Background Effects ========== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 234, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: float 25s ease-in-out infinite;
}

.glow-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 172, 252, 0.25) 0%, transparent 70%);
    top: 50%;
    right: -250px;
    animation: float 30s ease-in-out infinite reverse;
}

.glow-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 255, 234, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: 40%;
    animation: float 35s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ========== Navigation ========== */
.desktop_navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(22, 25, 27, 0.7);
    padding: 15px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 172, 252, 0.2);
    transition: background 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.desktop_navbar_logo_img {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.desktop_navbar_logo_img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop_navbar_link {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.desktop_navbar_link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--accent1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.desktop_navbar_link:hover {
    color: var(--accent1);
}

.desktop_navbar_link:hover::after {
    width: 100%;
}

.join-button {
    padding: 10px 24px;
    border: 2px solid var(--accent2);
    border-radius: 8px;
    color: var(--accent1);
    font-weight: 600;
    background: transparent;
}

.join-button::after {
    display: none;
}

.join-button:hover {
    background: var(--accent2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 172, 252, 0.4);
}

.home_button {
    padding: 10px 24px;
    border: 2px solid var(--accent2);
    border-radius: 8px;
    color: var(--accent1);
    font-weight: 600;
    background: transparent;
    text-decoration: none;
}

.home_button:hover {
    background: var(--accent2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 172, 252, 0.4);
}

/* ========== Hero Section ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    z-index: 1;
    gap: 10px;
}

.hero-logo {
    width: 260px;
    height: auto;
    margin-bottom: 10px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 255, 234, 0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--accent1);
    background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: none;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: #ddd;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Server Status Box ========== */
.server-status-box {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, var(--background2) 0%, #1a1d21 100%);
    border: 2px solid var(--accent2_transp);
    border-radius: var(--roundness);
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.3s both;
    transition: all 0.3s ease;
}

.server-status-box:hover {
    border-color: var(--accent2);
    box-shadow: 0 12px 40px rgba(0, 172, 252, 0.3);
    transform: translateY(-3px);
}

.status-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 25px;
    border: 1px solid var(--accent2_transp);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--unknown-color);
    box-shadow: 0 0 10px var(--unknown-color);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.online {
    background: var(--online-color);
    box-shadow: 0 0 15px var(--online-color);
}

.status-dot.offline {
    background: var(--offline-color);
    box-shadow: 0 0 15px var(--offline-color);
    animation: none;
}

.status-dot.unknown {
    background: var(--unknown-color);
    box-shadow: 0 0 10px var(--unknown-color);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

.status-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.status-content {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading State */
.status-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #aaa;
}

.loading-spinner {
    width: 35px;
    height: 35px;
    border: 3px solid var(--accent2_transp);
    border-top: 3px solid var(--accent1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Online State - Simplified */
.status-online {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.status-online.fade-in {
    opacity: 1;
}

.player-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent2_transp);
    border-radius: 8px;
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.player-count:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent2);
}

.player-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 234, 0.3));
}

.player-numbers {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent1);
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.3);
}

.player-label {
    font-size: 1rem;
    color: #aaa;
    font-weight: 500;
}

/* Offline State */
.status-offline {
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.status-offline.fade-in {
    opacity: 1;
}

.offline-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(248, 113, 113, 0.3));
}

.offline-text h3 {
    font-size: 1.1rem;
    color: var(--offline-color);
    margin-bottom: 8px;
}

.offline-text p {
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.offline-subtext {
    font-size: 0.8rem;
    color: #888;
}

/* Error State */
.status-error {
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.status-error.fade-in {
    opacity: 1;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-text h3 {
    font-size: 1.1rem;
    color: var(--offline-color);
    margin-bottom: 8px;
}

.error-text p {
    color: #ddd;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.retry-button {
    padding: 8px 20px;
    background: var(--accent2);
    border: 2px solid var(--accent2);
    border-radius: 8px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: var(--accent1);
    border-color: var(--accent1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 234, 0.4);
}

/* ========== IP Copy Button ========== */
.ip-copy-button {
    padding: 20px 40px;
    background: rgba(22, 25, 27, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--accent1), var(--accent2)) 1;
    border-radius: 16px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.4s both;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 172, 252, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 4px rgba(0, 0, 0, 0.2) inset;
}

.ip-copy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 234, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.ip-copy-button:hover::before {
    left: 100%;
}

.ip-copy-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientRotate 3s linear infinite;
    z-index: -1;
}

@keyframes gradientRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.ip-copy-button:hover {
    background: rgba(0, 172, 252, 0.25);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 45px rgba(0, 172, 252, 0.5),
        0 0 60px rgba(0, 255, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 2px 4px rgba(0, 0, 0, 0.2) inset;
}

.ip-copy-button:hover::after {
    opacity: 1;
}

.ip-copy-button:active {
    transform: translateY(-3px) scale(1);
}

/* Copy icon styling */
.copy-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.copy-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--accent1);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(0, 255, 234, 0.5));
    transition: all 0.3s ease;
}

.ip-copy-button:hover .copy-icon svg {
    stroke: white;
    filter: drop-shadow(0 0 12px rgba(0, 255, 234, 0.8));
    transform: scale(1.1);
}

.ip-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.ip-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: var(--accent1);
    background: linear-gradient(135deg, var(--accent1) 0%, white 50%, var(--accent1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    transition: all 0.3s ease;
}

.ip-copy-button:hover .ip-text {
    background-position: 100% center;
    text-shadow: 0 0 20px rgba(0, 255, 234, 0.5);
}

.ip-subtext {
    display: block;
    font-size: 0.95rem;
    color: #ddd;
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.ip-copy-button:hover .ip-subtext {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.copy-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, var(--accent2) 0%, var(--accent1) 100%);
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 255, 234, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent1);
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========== Section Titles ========== */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent1);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 30px rgba(0, 255, 234, 0.3);
}

/* ========== Features Section ========== */
.features-section {
    background: linear-gradient(135deg, var(--background2) 0%, #1a1d21 100%);
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background1);
    border-radius: var(--roundness);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Only hide cards when JavaScript is enabled and ready to animate */
.js-enabled .feature-card {
    opacity: 0;
    transform: translateY(50px);
}

.js-enabled .feature-card.animate-in {
    animation: slideUpFadeIn 0.6s ease-out forwards;
    animation-delay: var(--animation-delay, 0s);
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent2_transp);
    box-shadow: 0 10px 40px rgba(0, 172, 252, 0.3);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 234, 0.3));
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent1);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.6;
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--badge-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.unavailable-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fbbf24;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========== Discord Section ========== */
.discord-section {
    background: var(--background1);
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

.discord-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, var(--background2) 0%, #1a1d21 100%);
    padding: 40px;
    border-radius: var(--roundness);
    border: 1px solid var(--accent2_transp);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.discord-widget-wrapper {
    flex-shrink: 0;
}

.discord-widget-wrapper iframe {
    border-radius: var(--roundness);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.discord-info {
    flex: 1;
}

.discord-info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent1);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 255, 234, 0.3);
}

.discord-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.discord-benefits li {
    font-size: 1.2rem;
    color: #ddd;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

.discord-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent1);
    font-weight: 700;
    font-size: 1.4rem;
}

.discord-join-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--accent2);
    border-radius: 8px;
    color: var(--accent1);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.discord-join-button:hover {
    background: var(--accent2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 172, 252, 0.4);
}

.discord-widget-error {
    width: 350px;
    height: 500px;
    background: rgba(88, 101, 242, 0.1);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.discord-widget-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.discord-widget-error h3 {
    color: #fff;
    margin-bottom: 8px;
}

.discord-widget-error p {
    color: #999;
    margin-bottom: 20px;
}

.discord-widget-error .discord-join-button {
    display: inline-block;
    padding: 12px 24px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
}

/* ========== Join Section ========== */
.join-section {
    background: linear-gradient(135deg, var(--background2) 0%, #1a1d21 100%);
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.join-card {
    background: var(--background1);
    border-radius: var(--roundness);
    padding: 30px;
    border: 1px solid var(--accent2_transp);
    transition: all 0.3s ease;
}

.join-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 172, 252, 0.3);
    border-color: var(--accent2);
}

.join-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent1);
    text-align: center;
    margin-bottom: 25px;
}

.join-card-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--roundness);
    padding: 25px;
}

.join-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--accent2_transp);
}

.join-info-row:last-child {
    border-bottom: none;
}

.join-label {
    font-size: 1.3rem;
    color: #aaa;
    font-weight: 600;
}

.join-value {
    font-size: 1.3rem;
    color: var(--accent1);
    font-weight: 700;
}

/* ========== Footer ========== */
footer {
    background: linear-gradient(135deg, var(--background2) 0%, #1a1d21 100%);
    color: white;
    padding: 60px 40px 30px;
    font-size: 14px;
    border-top: 1px solid var(--accent2_transp);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-glow-effect {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 200px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 234, 0.15) 0%,
        rgba(0, 172, 252, 0.1) 30%,
        rgba(0, 172, 252, 0.05) 60%,
        transparent 100%
    );
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.footer-top-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 172, 252, 0.15) 20%, 
        rgba(0, 172, 252, 0.3) 50%, 
        rgba(0, 172, 252, 0.15) 80%, 
        transparent 100%
    );
    margin-bottom: 40px;
    box-shadow: 0 1px 8px rgba(0, 172, 252, 0.2);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: var(--accent1);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: var(--accent1);
    transform: translateX(5px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent2_transp), transparent);
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: var(--accent1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent2);
}

/* =================================
   IMPRESSUM & DATENSCHUTZ SEITEN
   ================================= */

.mainflex {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
    padding: 120px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.main1 {
    background: linear-gradient(135deg, var(--background2) 0%, #1a1d21 100%);
    border: 1px solid var(--accent2_transp);
    border-radius: var(--roundness);
    padding: 60px 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.main1 h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent1);
    text-shadow: 0 0 30px rgba(0, 255, 234, 0.3);
}

.main1 h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent1);
}

.main1 p {
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.main1 ul {
    color: #ddd;
    margin-left: 30px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.main1 ul li {
    margin-bottom: 10px;
}

.main1 a {
    color: var(--accent1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main1 a:hover {
    color: var(--accent2);
}

.impressum-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent2_transp);
    border-radius: var(--roundness);
    padding: 30px;
    margin: 30px 0;
}

.impressum-content p {
    margin-bottom: 15px;
}

.impressum-content strong {
    color: var(--accent1);
}

.section-content {
    margin-bottom: 20px;
}

/* =================================
   ERROR PAGE (404)
   ================================= */

.error-code {
    font-size: 10rem;
    font-weight: 700;
    color: var(--accent1);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 0 0 50px rgba(0, 255, 234, 0.5);
}

.error-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent1);
}

.error-message {
    text-align: center;
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent2);
    color: var(--accent1);
    background: transparent;
}

.action-button.primary {
    background: var(--accent2);
    color: white;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 172, 252, 0.4);
}

.action-button.primary:hover {
    background: var(--accent1);
    border-color: var(--accent1);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .discord-container {
        flex-direction: column;
    }
    
    .discord-widget-wrapper iframe {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .desktop_navbar {
        padding: 10px 15px;
    }
    
    .nav-left {
        gap: 20px;
    }
    
    .desktop_navbar_logo_img {
        width: 45px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .desktop_navbar_link {
        font-size: 0.85rem;
    }
    
    .join-button, .home_button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 70px 20px 50px;
        gap: 8px;
    }
    
    .hero-logo {
        width: 180px;
        margin-bottom: 8px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 10px;
        margin-bottom: 12px;
    }
    
    .server-status-box {
        max-width: 100%;
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .player-count {
        padding: 12px 20px;
        gap: 10px;
    }
    
    .player-icon {
        font-size: 1.5rem;
    }
    
    .player-numbers {
        font-size: 1.5rem;
    }
    
    .player-label {
        font-size: 0.9rem;
    }
    
    .ip-copy-button {
        padding: 16px 32px;
        gap: 10px;
    }
    
    .copy-icon {
        width: 20px;
        height: 20px;
    }
    
    .ip-text {
        font-size: 1.3rem;
    }
    
    .ip-subtext {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-section,
    .discord-section,
    .join-section {
        padding: 60px 20px;
    }
    
    .discord-container {
        padding: 30px 20px;
    }
    
    .discord-info-title {
        font-size: 2rem;
    }
    
    .discord-benefits li {
        font-size: 1rem;
    }
    
    .glow-orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .glow-orb-2 {
        width: 350px;
        height: 350px;
    }
    
    .glow-orb-3 {
        width: 250px;
        height: 250px;
    }
    
    footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mainflex {
        padding: 100px 20px 60px;
    }
    
    .main1 {
        padding: 40px 25px;
    }
    
    .main1 h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .desktop_navbar {
        padding: 8px 10px;
    }
    
    .nav-left {
        gap: 10px;
    }
    
    .desktop_navbar_logo_img {
        width: 40px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .desktop_navbar_link {
        font-size: 0.75rem;
    }
    
    .join-button, .home_button {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-width: 1px;
    }
    
    .hero-section {
        padding: 60px 20px 40px;
        gap: 6px;
    }
    
    .hero-logo {
        width: 160px;
        margin-bottom: 6px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 6px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 10px;
    }
    
    .ip-copy-button {
        padding: 14px 24px;
        gap: 8px;
    }
    
    .copy-icon {
        width: 18px;
        height: 18px;
    }
    
    .ip-text {
        font-size: 1.1rem;
    }
    
    .ip-subtext {
        font-size: 0.75rem;
    }
    
    .server-status-box {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .player-count {
        padding: 10px 15px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .player-icon {
        font-size: 1.3rem;
    }
    
    .player-numbers {
        font-size: 1.3rem;
    }
    
    .player-label {
        font-size: 0.85rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .join-grid {
        grid-template-columns: 1fr;
    }
    
    .error-code {
        font-size: 6rem;
    }
}

/* Extra small devices (very narrow phones) */
@media (max-width: 360px) {
    .desktop_navbar {
        padding: 8px 8px;
    }
    
    .nav-left {
        gap: 8px;
    }
    
    .desktop_navbar_logo_img {
        width: 35px;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .desktop_navbar_link {
        font-size: 0.7rem;
    }
    
    .join-button, .home_button {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Game Modes Display Styles */
.gamemode-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: #999;
}

.platform-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.platform-separator {
  color: #666;
  font-weight: 600;
}

.gamemode-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.gamemode-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: help;
  transition: transform 0.2s ease;
}

.gamemode-badge:hover {
  transform: scale(1.05);
}
