
:root {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.05);
    --primary-color: #3b82f6;
    --primary-color-rgb: 59, 130, 246;
    --accent-color: #f43f5e;
    --accent-color-rgb: 244, 63, 94;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: #1e293b;
    --footer-text: #f8fafc;
    --hero-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] {
    --bg-color: #0b0f19;
    --text-color: #f8fafc;
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --primary-color: #60a5fa;
    --primary-color-rgb: 96, 165, 250;
    --accent-color: #fb7185;
    --accent-color-rgb: 251, 113, 133;
    --nav-bg: rgba(11, 15, 25, 0.9);
    --footer-bg: #020617;
    --footer-text: #94a3b8;
    --hero-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --hover-shadow: 0 20px 40px rgba(96, 165, 250, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .logo, .animated-brand, .history-year, .banner-name, .category-title {
    font-family: 'Saira', sans-serif;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.highlight {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 60px;
}

.logo img {
    max-height: 100%;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hero-gradient);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Server Status Hover Effects */
.status-online .banner-status-text {
    color: #10b981;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.status-online:hover .banner-status-text {
    opacity: 0.95;
    transform: translate(-50%, -70%) rotate(-5deg) scale(1.1);
}

.status-online:hover .banner-bg {
    filter: brightness(0.3) blur(8px);
}

.status-online:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.banner-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(16, 185, 129, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(16, 185, 129, 0.5);
    white-space: nowrap;
}

.status-online:hover .banner-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Maintenance Status Styles */
.status-maintenance .banner-status-text {
    color: #f59e0b;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    opacity: 0.95 !important;
    z-index: 10;
}

.status-maintenance::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 60px;
    background: repeating-linear-gradient(
        45deg,
        #f59e0b,
        #f59e0b 20px,
        #000 20px,
        #000 40px
    );
    color: white;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) rotate(-18deg);
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    letter-spacing: 5px;
    font-size: 1.4rem;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
}

.status-maintenance:hover::after {
    clip-path: inset(0 0 0 0);
}

/* Unified Info Sections */
.info-content {
    padding: 60px !important;
    display: flex;
    flex-direction: column;
}

.info-text p, .history-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    opacity: 0.9;
}

.history-main {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.history-year {
    font-size: 9rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
    user-select: none;
    font-family: 'Saira', sans-serif;
}

.history-text {
    flex: 1;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding: 100px 20px;
    width: 100%;
    margin-top: 20px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transform: translateY(-50%);
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--hero-gradient);
    border-radius: 4px;
    transform: translateY(-50%);
    transition: width 4s linear; /* Faster timeline */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.timeline-points {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 0;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 1; /* Always visible as requested */
}

.timeline-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-point.tick::before {
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.timeline-point span {
    position: absolute;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0; /* Hidden initially */
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Alternating Labels */
.timeline-point:nth-child(odd) span {
    bottom: 25px;
    transform: translateY(10px);
}

.timeline-point:nth-child(even) span {
    top: 25px;
    transform: translateY(-10px);
}

/* Timeline Visibility - Points and Labels appear together when container becomes visible */
.timeline-container.visible .timeline-point span {
    opacity: 0.8;
    transform: translateY(0);
}

.timeline-container.visible .timeline-point:hover span {
    opacity: 1;
    color: var(--primary-color);
}

.timeline-point.tick span {
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-point:hover::before {
    transform: translate(-50%, -50%) scale(1.6);
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

/* Timeline Visibility */
.timeline-container.visible .timeline-progress {
    width: calc(100% - 40px);
}

@media (max-width: 768px) {
    .history-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .history-year { font-size: 6rem; }
    .info-content { padding: 40px 20px !important; }
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image: 
        linear-gradient(var(--card-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateZ(-200px);
    animation: gridMove 2s linear infinite;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.pre-title-wrapper {
    margin-bottom: 30px;
    display: inline-block;
    padding: 10px 25px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeDown 1s ease-out forwards;
    opacity: 0;
}

.animated-brand {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f43f5e, #8b5cf6, #3b82f6);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--hero-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    color: white;
}

.highlight {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color); /* Fallback */
    display: inline-block;
}

.page-header h1, 
.page-header p {
    opacity: 0;
    animation: fadeInUpHeader 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.page-header h1 { animation-delay: 0.1s; }
.page-header p { animation-delay: 0.3s; }

@keyframes fadeInUpHeader {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* General Sections */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    display: block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--hero-gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Cards & Animations */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
}

.hover-glow:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px) !important;
    border-color: rgba(59, 130, 246, 0.3);
}

.info-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.info-content.text-only {
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
}

.info-content > div {
    flex: 1;
}

.info-image {
    width: 45%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    object-fit: cover;
}

/* 3D Tilt Cards (Stats) */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    perspective: 1000px;
}

.tilt-card {
    flex: 1 1 200px;
    max-width: 250px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-content {
    transform: translateZ(30px); /* 3D pop out effect */
}

.tilt-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-color);
    opacity: 0.8;
}

.counter-val {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.icon-wrapper {
    font-size: 3rem;
    display: inline-block;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.1));
    user-select: none;
    -webkit-user-select: none;
}

/* Animated Cards (Team & Server) */
.team-grid, .server-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    margin-top: 100px; /* Increased to avoid overlap during zoom */
}

.team-card {
    flex: 0 1 240px; /* Non-growing cards for stability */
    perspective: 1000px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 440px; /* Further increased height */
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 25px;
}

.team-image-wrapper {
    position: absolute;
    top: 20px; /* More padding from top */
    width: 100%;
    height: 280px; /* More space for image */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.team-image-wrapper img {
    width: 90%; 
    max-height: 280px; /* Increased max-height */
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

.team-card:hover .team-card-inner {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.15) translateY(-5px); /* Gentler hover to stay contained */
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
}

.team-content {
    text-align: center;
    position: relative;
    z-index: 3;
    background: rgba(0,0,0,0.8); /* Darker, more solid background for readability */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 90%;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

.team-card:hover .team-content {
    background: #000;
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.team-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.team-content p {
    font-size: 0.8rem;
    color: var(--primary-color); /* Highlight color for rank */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.team-card p {
    font-weight: 600;
    opacity: 0.8;
}

/* Game Cards (Was wir spielen) */
.game-card {
    flex: 1 1 220px;
    max-width: 300px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}

.game-image-placeholder {
    width: 100%;
    height: 160px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    opacity: 0.5;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    border: 2px dashed rgba(128, 128, 128, 0.3);
}

.game-image-placeholder::after {
    content: "Hier Bild einfügen";
}

.game-card:hover .game-image-placeholder {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.5);
    opacity: 0.8;
}

.game-card h3 {
    font-size: 1.4rem;
    color: var(--text-color);
}

/* Footer & IP Badge */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.ip-badge {
    background: rgba(255,255,255,0.1);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-text);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.ip-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    color: white;
}

.ip-badge.copied {
    background-color: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
    transform: scale(1.05) !important;
}

.ip-badge.copied .pulse-dot {
    display: none;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Server Banner Styles */
.server-container-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.server-banner {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1a1a1a;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: filter 0.5s ease;
}

.status-offline .banner-bg {
    filter: grayscale(100%) brightness(0.6);
}

.server-banner:hover {
    transform: scale(1.01) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.server-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    padding: 40px;
}

.banner-name {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: white;
    margin: 0;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
    line-height: 1;
}

.banner-status-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    font-size: 10rem;
    font-weight: 900;
    color: #f43f5e;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    white-space: nowrap;
    text-transform: uppercase;
    user-select: none;
    text-shadow: 0 0 30px rgba(244, 63, 94, 0.5);
}

.status-offline .banner-status-text {
    opacity: 0.9;
}

.status-badge {
    display: none;
}

.status-online .status-badge {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.status-offline .status-badge {
    background: rgba(244, 63, 94, 0.15);
    border-color: #f43f5e;
    color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.banner-address {
    font-size: 1.4rem;
    opacity: 0.7;
    margin-top: 15px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    color: white;
}

@media (max-width: 768px) {
    .banner-name { font-size: 2.5rem; }
    .banner-status-text { font-size: 5rem; }
    .server-banner { height: 240px; }
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger { display: flex; cursor: pointer; flex-direction: column; gap: 6px; }
    .hamburger span { width: 30px; height: 3px; background-color: var(--text-color); transition: 0.3s; border-radius: 2px; }
    .nav-links {
        position: fixed; top: 80px; left: -100%; flex-direction: column;
        background-color: var(--nav-bg); backdrop-filter: blur(20px);
        width: 100%; height: calc(100vh - 80px); text-align: center;
        padding: 40px 0; transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        gap: 30px;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hero h1 { font-size: 3rem; }
    
    .info-content {
        flex-direction: column;
    }
    .info-image {
        width: 100%;
        max-width: none;
    }
}
/* Teamspeak & Discord Page Styles */
.page-header {
    padding: 180px 0 100px;
    background: radial-gradient(circle at center, rgba(var(--header-glow-rgb, var(--primary-color-rgb)), 0.15) 0%, transparent 70%);
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.page-header .container {
    width: 100%;
}

.page-header h1 {
    font-size: clamp(3.5rem, 8vw, 5rem);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.4rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 600;
}

.all-ranks-grid {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Reduced gap */
    margin-top: 30px;
}

.rank-group-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px; /* Reduced padding */
    border-radius: 30px;
    border: 1px solid var(--card-border);
    margin-bottom: 10px;
}

.category-title {
    font-size: 1.8rem; /* Slightly smaller */
    font-weight: 800;
    margin-bottom: 25px; /* Reduced margin */
    color: var(--text-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rank-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Reduced gap */
}

.rank-item {
    flex: 1 1 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 25px 15px; /* Reduced padding */
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--rank-color);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.rank-item:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.rank-badge {
    width: 100%;
    height: 60px; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.rank-badge img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.rank-item:hover .rank-badge img {
    transform: scale(1.45) translateY(-12px); /* Pop-out zoom effect */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.rank-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
}

.rank-info p {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--rank-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Discord Page Styles */
.discord-page-header {
    background: radial-gradient(circle at center, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
}

.discord-main-card {
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 100px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.discord-card-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.discord-image-box {
    flex: 1 1 400px;
    min-height: 450px;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.2);
}

.discord-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.discord-main-card:hover .discord-image-box img {
    transform: scale(1.1);
}

.discord-text-box {
    flex: 1.2 1 400px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discord-text-box h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.discord-text-box p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.discord-text-box .content-btns {
    margin-top: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.feature-card {
    text-align: center;
    padding: 50px 30px !important;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #5865f2; /* Discord Color */
    box-shadow: 0 20px 40px rgba(88, 101, 242, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@media (max-width: 992px) {
    .discord-text-box { padding: 40px; }
    .discord-text-box h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .discord-image-box { min-height: 300px; }
}
