:root {
    --primary-red: #E63946;
    --secondary-crimson: #9B1D20;
    --accent-darkred: #6B0F12;
    --dark-bg: #0a0a0a;
    --dark-card: #111111;
    --gray-900: #0d0d0d;
    --gray-800: #1a1a1a;
    --gray-700: #252525;
    --gray-600: #3a3a3a;
    --gray-400: #8a8a8a;
    --gray-300: #b0b0b0;
    --gray-200: #d0d0d0;
    --gray-100: #e8e8e8;
    --white: #f0f0f0;
    --green: #10b981;
    --red: #ef4444;
    --shadow-red: rgba(230, 57, 70, 0.25);
    --shadow-crimson: rgba(155, 29, 32, 0.2);
    --glass-bg: rgba(15, 0, 0, 0.55);
    --glass-border: rgba(230, 57, 70, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155, 29, 32, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(107, 15, 18, 0.04) 0%, transparent 60%);
    z-index: -2;
    animation: backgroundPulse 25s ease-in-out infinite;
}

/* Scanline overlay for Imperial tech feel */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    z-index: 9998;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.glass-morph {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== NAVBAR ===== */

/* ===== NAVBAR ===== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 80px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

.navbar.scrolled {
    background: rgba(10, 3, 3, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    box-shadow:
        0 4px 40px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(230, 57, 70, 0.08) inset;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(230, 57, 70, 0) 15%,
        rgba(230, 57, 70, 0.8) 50%,
        rgba(230, 57, 70, 0) 85%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled::before {
    opacity: 1;
    animation: navbarGlow 4s ease-in-out infinite;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(230, 57, 70, 0.3),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled::after {
    opacity: 1;
}

@keyframes navbarGlow {
    0%, 100% { opacity: 0.4; filter: brightness(0.8); }
    50% { opacity: 1; filter: brightness(1.2); }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    transition: padding 0.4s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-red);
    text-decoration: none;
    height: 100%;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(230, 57, 70, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    object-position: center;
    transform: scale(1);
}

.navbar.scrolled .nav-logo img {
    height: 50px;
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5));
    transform: scale(0.95);
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.8));
    transform: scale(1.05);
}

/* Nav links */

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    padding: 0.6rem 1.1rem;
    border-radius: 4px;
}

.navbar:not(.scrolled) .nav-links a {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.95);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.navbar.scrolled .nav-links a {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    background: transparent;
}

.nav-links a:hover {
    color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-1px);
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 2px 2px;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-crimson));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 80%;
}

/* Nav right section */

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Nav CTA button */

.nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-crimson));
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid rgba(230, 57, 70, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-cta i {
    font-size: 0.75rem;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #ff4757, var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.4), 0 8px 25px rgba(230, 57, 70, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(230, 57, 70, 0.8);
}

.nav-cta-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    border: 1px solid rgba(230, 57, 70, 0.6);
    animation: ctaPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    70% { transform: translate(-50%, -50%) scale(1.15, 1.6); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.15, 1.6); opacity: 0; }
}

.navbar:not(.scrolled) .nav-cta {
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.3), 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Mobile menu toggle */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(230, 57, 70, 0.2);
    z-index: 1001;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3), transparent, rgba(230, 57, 70, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    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.3s ease;
    pointer-events: none;
}

.mobile-menu-toggle:hover::before,
.mobile-menu-toggle.active::before {
    opacity: 1;
}

.mobile-menu-toggle:hover {
    background: rgba(230, 57, 70, 0.12);
    border-color: rgba(230, 57, 70, 0.4);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.navbar:not(.scrolled) .mobile-menu-toggle {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(230, 57, 70, 0.25);
}

.mobile-menu-toggle.active {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.5);
}

.mobile-menu-toggle.active span {
    background: var(--primary-red);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE NAV OVERLAY ===== */

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(6, 1, 1, 0.97);
    backdrop-filter: blur(30px) saturate(1.3);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animated scanline effect */

.mobile-nav-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.6), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-scanline {
    opacity: 1;
    animation: mobileScanline 3s ease-in-out infinite;
}

@keyframes mobileScanline {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* Horizontal decorative lines */

.mobile-nav-decoration {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.4), transparent);
    pointer-events: none;
}

.mobile-nav-decoration.top-line {
    top: 90px;
}

.mobile-nav-decoration.bottom-line {
    bottom: 30px;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile logo */

.mobile-nav-logo {
    margin-bottom: 0.5rem;
}

.mobile-nav-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 25px rgba(230, 57, 70, 0.4));
    animation: mobileLogo 2s ease-in-out infinite alternate;
}

@keyframes mobileLogo {
    0% { filter: drop-shadow(0 0 25px rgba(230, 57, 70, 0.3)); }
    100% { filter: drop-shadow(0 0 35px rgba(230, 57, 70, 0.6)); }
}

/* Mobile nav links */

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    list-style: none;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(230, 57, 70, 0.04);
    border-left: 3px solid rgba(230, 57, 70, 0.2);
    border-top: none;
    border-right: none;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    transform: translateX(-20px);
    opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) a { animation: mobileSlideIn 0.5s ease forwards 0.15s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) a { animation: mobileSlideIn 0.5s ease forwards 0.25s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) a { animation: mobileSlideIn 0.5s ease forwards 0.35s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) a { animation: mobileSlideIn 0.5s ease forwards 0.45s; }

@keyframes mobileSlideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-nav-links a i {
    color: var(--primary-red);
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 2px solid rgba(230, 57, 70, 0.3);
    border-right: 2px solid rgba(230, 57, 70, 0.3);
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    background: rgba(230, 57, 70, 0.1);
    border-left-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateX(4px);
}

.mobile-nav-links a:hover::after,
.mobile-nav-links a:active::after {
    border-color: var(--primary-red);
    right: 1.2rem;
}

/* Mobile CTA buttons */

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-top: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-cta {
    animation: mobileSlideIn 0.5s ease forwards 0.55s;
}

.mobile-nav-cta .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.9rem 1.5rem;
}

/* Mobile social links */

.mobile-nav-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-social {
    animation: mobileSlideIn 0.5s ease forwards 0.65s;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.15);
    color: var(--gray-300);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.4);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

@media (max-width: 820px) {
    .nav-links {
        display: none !important;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-logo img {
        height: 70px;
    }

    .navbar.scrolled .nav-logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo img {
        height: 60px;
    }

    .navbar.scrolled .nav-logo img {
        height: 45px;
    }

    .mobile-nav-logo img {
        height: 60px;
    }

    .mobile-nav-links a {
        font-size: 1.05rem;
        padding: 0.85rem 1.2rem;
    }

    .mobile-nav-cta .btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }
}

/* ===== HERO ===== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        background-size: cover;
    }
}

.hero-bg.active {
    opacity: 1;
}

.hero-bg.bg-1 { background-image: url('https://i.imgur.com/NNHlPzf.jpeg'); }
.hero-bg.bg-2 { background-image: url('https://i.imgur.com/SdSlHVC.jpeg'); }
.hero-bg.bg-3 { background-image: url('https://i.imgur.com/W1YG4X6.jpeg'); }
.hero-bg.bg-4 { background-image: url('https://i.imgur.com/t0fLeIF.jpeg'); }

/* Starfield canvas */
#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(230, 57, 70, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(155, 29, 32, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(107, 15, 18, 0.04) 0%, transparent 70%);
    animation: mistFlow 15s ease-in-out infinite;
    z-index: -2;
}

@keyframes mistFlow {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-10px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateX(-5px) scale(1.05);
        opacity: 0.6;
    }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-logo img {
    height: 520px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.3));
    transition: all 0.3s ease;
}

.hero-logo:hover img {
    filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.5));
    transform: scale(1.02);
}

.hero-title {
    display: none;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--gray-300);
    transition: all 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--gray-400);
    line-height: 1.8;
    transition: all 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content.bg-1-active .hero-subtitle,
.hero-content.bg-1-active .hero-description,
.hero-content.bg-4-active .hero-subtitle,
.hero-content.bg-4-active .hero-description {
    color: var(--white) !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9) !important;
}

.hero-content.bg-2-active .hero-subtitle,
.hero-content.bg-2-active .hero-description {
    color: var(--white) !important;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8) !important;
}

.hero-content.bg-3-active .hero-subtitle,
.hero-content.bg-3-active .hero-description {
    color: var(--white) !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-crimson));
    color: var(--white);
    box-shadow: 0 8px 25px var(--shadow-red);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-red), 0 0 20px rgba(230, 57, 70, 0.2);
}

.btn-secondary {
    background: rgba(230, 57, 70, 0.05);
    color: var(--white);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.15);
}

/* ===== SERVER STATUS ===== */

.server-status {
    position: absolute;
    bottom: -8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(230, 57, 70, 0.15);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    min-width: 280px;
    max-width: 400px;
    width: auto;
}

.server-status,
.server-status * {
    color: var(--white) !important;
    text-shadow: none !important;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.map-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.9rem;
}

.player-count {
    font-size: 1rem;
    font-weight: 600;
}

.player-count strong {
    font-size: 1.1rem;
    color: var(--primary-red) !important;
}

.map-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.map-info i {
    color: var(--primary-red);
    font-size: 0.8rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 820px) {
    .server-status {
        position: static;
        transform: none;
        margin-top: 2rem;
        bottom: auto;
        left: auto;
        width: calc(100% - 2rem);
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .status-row {
        margin-bottom: 0.6rem;
    }

    .status-indicator {
        font-size: 0.85rem;
    }

    .player-count {
        font-size: 0.9rem;
    }

    .player-count strong {
        font-size: 1rem;
    }

    .map-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .server-status {
        max-width: 300px;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
        min-width: 260px;
    }

    .status-indicator {
        font-size: 0.8rem;
    }

    .player-count {
        font-size: 0.85rem;
    }

    .player-count strong {
        font-size: 0.95rem;
    }

    .map-info {
        font-size: 0.8rem;
    }

    .map-info i {
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .server-status {
        bottom: -6rem;
        max-width: 380px;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .server-status {
        position: static;
        transform: none;
        margin-top: 1.5rem;
        max-width: 320px;
    }
}

/* ===== LAYOUT ===== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STATS ===== */

.stats-section {
    background: var(--gray-900);
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    contain: layout style paint;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-400);
    font-weight: 600;
}

/* ===== FEATURE CARDS ===== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 57, 70, 0.08);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    contain: layout style paint;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.06), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.15), 0 0 30px rgba(230, 57, 70, 0.05);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-crimson));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-description {
    color: var(--gray-400);
    line-height: 1.7;
}

/* ===== DISCORD MODAL ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.discord-modal {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 3rem;
    max-width: 520px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(88, 101, 242, 0.2);
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@media (max-width: 768px) {
    .discord-modal {
        max-height: 90vh;
        overflow-y: auto;
    }
}

.modal-overlay.show .discord-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.discord-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(88, 101, 242, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(230, 57, 70, 0.03) 0%, transparent 50%);
    animation: rotateBackground 25s linear infinite;
    z-index: -1;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-btn:hover {
    background: rgba(230, 57, 70, 0.2);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(230, 57, 70, 0.4);
}

.discord-icon {
    font-size: 4.5rem;
    color: #5865f2;
    margin-bottom: 1.5rem;
    animation: smoothPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(88, 101, 242, 0.6));
}

@keyframes smoothPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 25px rgba(88, 101, 242, 0.6));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px rgba(88, 101, 242, 0.8));
    }
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white) !important;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--white) !important;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.benefits {
    text-align: left;
    margin: 2rem 0;
    padding: 1.8rem;
    background: rgba(88, 101, 242, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.1);
}

.benefits h4 {
    color: var(--white) !important;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white) !important;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.benefits li:hover {
    transform: translateX(5px);
}

.benefits li i {
    color: #5865f2;
    width: 22px;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.5));
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(45deg, #5865f2, #4752c4);
    color: var(--white) !important;
    padding: 1.2rem 2.8rem;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
    margin-bottom: 1.5rem;
}

.discord-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: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.discord-btn:hover::before {
    left: 100%;
}

.discord-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(88, 101, 242, 0.5);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.skip-btn, .cooldown-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skip-btn:hover, .cooldown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cooldown-btn {
    border-color: rgba(230, 57, 70, 0.3);
    color: var(--primary-red) !important;
}

.cooldown-btn:hover {
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
}

/* ===== COOKIE BANNER ===== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(230, 57, 70, 0.3);
    padding: 2rem;
    z-index: 15000;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-crimson), var(--primary-red));
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cookie-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cookie-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-accept-all {
    background: linear-gradient(135deg, var(--green), #059669);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-necessary {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-crimson));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-necessary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-decline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-decline:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-settings {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gray-400);
    transform: translateY(-2px);
}

/* ===== COOKIE MODAL ===== */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(230, 57, 70, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
}

.cookie-modal .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--white);
    background: rgba(230, 57, 70, 0.1);
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(230, 57, 70, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(230, 57, 70, 0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.category-description {
    color: var(--gray-300);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--gray-600);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: var(--green);
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
}

/* ===== TUTORIAL SLIDER ===== */

.tutorial-slider {
    position: relative;
    max-width: 100%;
    margin-top: 4rem;
    overflow: hidden;
}

.tutorial-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.tutorial-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.tutorial-video-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 57, 70, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tutorial-video-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.1);
}

.tutorial-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
}

.tutorial-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tutorial-video-info {
    padding: 2rem;
}

.tutorial-video-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}

.tutorial-video-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tutorial-video-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(230, 57, 70, 0.08);
}

.tutorial-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-red);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
}

.slider-counter {
    color: var(--gray-400);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== COMMUNITY ===== */

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.community-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 57, 70, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    contain: layout style paint;
}

.community-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--primary-red), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-card:hover::after {
    opacity: 1;
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.12);
}

.community-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.discord-card .community-icon {
    background: linear-gradient(135deg, #5865f2, #7289da);
}

.portal-card .community-icon {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-crimson));
}

.forum-card .community-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.shop-card .community-icon {
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
}

.steam-card .community-icon {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.community-card:hover .community-icon {
    transform: scale(1.1);
}

.community-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.community-description {
    color: var(--gray-400);
    line-height: 1.6;
}

/* ===== NEWS ===== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 57, 70, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    contain: layout style paint;
}

.news-link {
    color: rgba(255, 255, 255, 0.93);
    text-decoration: none;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.1);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-content {
    padding: 2rem;
}

.news-date {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.news-excerpt {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ff6b6b;
}

/* ===== FOOTER ===== */

.footer {
    background: var(--gray-900);
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* ===== ANIMATIONS ===== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--secondary-crimson));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b6b, var(--primary-red));
}

/* ===== SYSTEM STATUS ALERT ===== */

.system-status-alert {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9999;
    border: 1px solid #ef4444;
    box-shadow:
        0 20px 60px rgba(239, 68, 68, 0.3),
        0 0 20px rgba(239, 68, 68, 0.2);
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.system-status-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.system-status-alert.maintenance {
    border-color: var(--primary-red);
    box-shadow:
        0 20px 60px rgba(230, 57, 70, 0.2),
        0 0 20px rgba(230, 57, 70, 0.15);
}

.system-status-alert.degraded {
    border-color: #f59e0b;
    box-shadow:
        0 20px 60px rgba(245, 158, 11, 0.2),
        0 0 20px rgba(245, 158, 11, 0.15);
}

.status-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.status-alert-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.system-status-alert.maintenance .status-alert-icon {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.2);
}

.system-status-alert.degraded .status-alert-icon {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.2);
}

.status-alert-icon i {
    font-size: 1.5rem;
    color: #ef4444;
}

.system-status-alert.maintenance .status-alert-icon i {
    color: var(--primary-red);
}

.system-status-alert.degraded .status-alert-icon i {
    color: #f59e0b;
}

.status-alert-text {
    flex: 1;
    min-width: 0;
}

.status-alert-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.status-alert-subtitle {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.4;
}

.status-alert-subtitle a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.status-alert-subtitle a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.status-alert-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.status-alert-close:hover {
    background: rgba(230, 57, 70, 0.2);
    color: var(--white);
    transform: scale(1.1);
}

/* ===== IMPRESSUM ===== */

.impressum-toggle {
    background: none;
    border: none;
    color: var(--primary-red);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.impressum-toggle:hover {
    background-color: rgba(230, 57, 70, 0.1);
    text-decoration: none;
    transform: scale(1.02);
}

.impressum-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
}

.impressum-content.active {
    max-height: 3000px;
    border: 1px solid rgba(230, 57, 70, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.impressum-inner {
    padding: 2rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-300);
}

.impressum-inner h3 {
    color: var(--primary-red);
    margin: 2rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.impressum-inner h3:first-child {
    margin-top: 0;
}

.impressum-inner p {
    margin-bottom: 1.2rem;
    text-align: left;
}

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

.impressum-inner a:hover {
    text-decoration: underline;
    color: #ff6b6b;
}

/* ===== RESPONSIVE 820px ===== */

@media (max-width: 820px) {
    .nav-links {
        display: none !important;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-logo img {
        height: 70px;
    }

    .navbar.scrolled .nav-logo img {
        height: 50px;
    }

    .hero {
        min-height: 100vh;
        padding: 8rem 1rem 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 0 0.5rem;
        text-align: center;
    }

    .hero-logo img {
        height: 280px;
        max-width: 90%;
        width: auto;
        object-fit: contain;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .features-grid,
    .community-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card,
    .community-card,
    .news-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .tutorial-slider-controls {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .slider-counter {
        font-size: 0.9rem;
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .discord-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .modal-subtitle {
        font-size: 1rem;
    }

    .discord-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: none;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .skip-btn, .cooldown-btn {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
    }

    .cookie-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .cookie-btn {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }

    .cookie-title {
        font-size: 1.3rem;
    }

    .cookie-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .system-status-alert {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        padding: 1.2rem;
    }

    .status-alert-content {
        gap: 0.8rem;
    }

    .status-alert-icon {
        width: 40px;
        height: 40px;
    }

    .status-alert-icon i {
        font-size: 1.2rem;
    }

    .status-alert-title {
        font-size: 1rem;
    }

    .status-alert-subtitle {
        font-size: 0.85rem;
    }

    .impressum-inner {
        padding: 1.5rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .impressum-inner h3 {
        font-size: 1rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .impressum-inner p {
        margin-bottom: 1rem;
        text-align: left;
    }

    .impressum-content.active {
        max-height: 4000px;
    }
}

@media (max-width: 850px) and (min-width: 769px) {
    .nav-links {
        display: none !important;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        max-width: 300px;
    }

    .server-status {
        max-width: 350px;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo img {
        height: 60px;
    }

    .navbar.scrolled .nav-logo img {
        height: 45px;
    }

    .hero {
        padding: 7rem 0.5rem 1rem;
    }

    .hero-logo img {
        height: 240px;
        max-width: 95%;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-description {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .hero-buttons .btn {
        max-width: 260px;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }

    .server-status {
        max-width: 280px;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .container {
        padding: 0 0.5rem;
    }

    .feature-card,
    .community-card,
    .news-card {
        padding: 1.2rem;
        margin: 0 0.2rem;
    }

    .mobile-nav-links a {
        font-size: 1.05rem;
        padding: 0.85rem 1.2rem;
    }

    .mobile-nav-cta .btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }

    .mobile-nav-logo img {
        height: 60px;
    }

    .system-status-alert {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 1rem;
    }

    .status-alert-title {
        font-size: 0.95rem;
    }

    .status-alert-subtitle {
        font-size: 0.8rem;
    }

    .impressum-inner {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .impressum-inner h3 {
        font-size: 0.95rem;
        margin: 1.2rem 0 0.6rem 0;
    }

    .impressum-toggle {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===== PERFORMANCE ===== */

.navbar {
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 820px) {
    .mobile-nav-links a {
        min-height: 48px;
    }

    .mobile-social-link {
        min-width: 48px;
        min-height: 48px;
    }

    .impressum-toggle {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover,
    .mobile-menu-toggle:hover,
    .community-card:hover,
    .feature-card:hover,
    .news-card:hover {
    }
}

@media (hover: none) and (pointer: coarse) {
    .nav-links a:hover,
    .nav-cta:hover,
    .mobile-menu-toggle:hover,
    .mobile-social-link:hover,
    .community-card:hover,
    .feature-card:hover,
    .news-card:hover {
        transform: none;
        background: inherit;
        color: inherit;
        border-color: inherit;
        box-shadow: inherit;
    }
}
