
/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== TEAM SECTION ==================== */
.team-section {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.team-banner {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1), rgba(0, 217, 255, 0.1));
    border: 2px solid var(--border);
    border-radius: 20px;
    margin-bottom: 60px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-banner-placeholder {
    font-size: 48px;
    color: var(--text-secondary);
    font-weight: 900;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.team-banner-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 70, 85, 0.3));
}

@media (max-width: 768px) {
    .team-banner {
        height: 200px;
    }
    
    .team-banner-placeholder {
        font-size: 24px;
        flex-direction: column;
        gap: 12px;
    }
    
    .team-banner-logo {
        width: 50px;
        height: 50px;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.team-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 70, 85, 0.05), transparent);
    transition: left 0.6s ease;
}

.team-card:hover::before {
    left: 100%;
}

.team-card:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
    border-color: var(--primary);
    box-shadow:
        0 12px 40px rgba(255, 70, 85, 0.3),
        0 0 30px rgba(255, 70, 85, 0.2),
        0 20px 70px rgba(0, 0, 0, 0.4),
        inset 0 0 25px rgba(255, 70, 85, 0.05);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(0, 217, 255, 0.2));
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.team-card:hover .avatar-placeholder {
    border-color: var(--primary);
    transform: scale(1.05);
}

.avatar-placeholder svg {
    width: 50px;
    height: 50px;
    stroke: var(--text-secondary);
    stroke-width: 2;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 3px solid var(--bg-card);
    transition: all 0.3s ease;
}

.avatar-badge.owner {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.avatar-badge.dev {
    background: linear-gradient(135deg, #00d9ff, #0099cc);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.avatar-badge.gamedev {
    background: linear-gradient(135deg, #ff4655, #e63946);
    box-shadow: 0 4px 12px rgba(255, 70, 85, 0.4);
}

.team-card:hover .avatar-badge {
    transform: scale(1.1) rotate(10deg);
}

.team-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.team-role {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.team-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.team-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.team-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 70, 85, 0.1);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.team-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .team-section {
        padding: 80px 0;
    }
}

:root {
    --primary: #ff4655;
    --primary-dark: #e63946;
    --secondary: #00d9ff;
    --accent: #ffd60a;
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 70, 85, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(255, 70, 85, 0.4);
    
    /* Premium additions */
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --premium-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 70, 85, 0.1);
    --text-gradient: linear-gradient(135deg, #ffffff 0%, #ff4655 50%, #00d9ff 100%);
}

/* Premium cursor */
* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" fill="%23ff4655" opacity="0.6"/></svg>') 12 12, auto;
}

a, button {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="6" fill="%2300d9ff" opacity="0.8"/></svg>') 12 12, pointer;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Premium grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Premium selection */
::selection {
    background: var(--primary);
    color: white;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

::-moz-selection {
    background: var(--primary);
    color: white;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

/* Premium scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 70, 85, 0.1);
    border-bottom-color: var(--primary);
}

.navbar.scrolled::before {
    opacity: 1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 70, 85, 0.5));
}

.nav-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-dropdown-content a:hover {
    background: rgba(255, 70, 85, 0.1);
    color: var(--primary);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-discord {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 70, 85, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-discord::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.5s ease;
}

.btn-discord:hover::before {
    left: 100%;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 70, 85, 0.5);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 32px 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0f 50%, #0a0a0a 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('crimv.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 70, 85, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 217, 255, 0.2) 0%, transparent 50%);
    animation: gradientPulse 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.05) rotate(2deg); }
}

#particleCanvas {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.15), rgba(0, 217, 255, 0.15));
    border: 2px solid rgba(255, 70, 85, 0.3);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(255, 70, 85, 0.2);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 20px #00ff88, 0 0 40px rgba(0, 255, 136, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px #00ff88, 0 0 40px rgba(0, 255, 136, 0.5);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.3);
        box-shadow: 0 0 30px #00ff88, 0 0 60px rgba(0, 255, 136, 0.8);
    }
}

.status-players {
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-logo {
    margin-bottom: 40px;
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 70, 85, 0.6));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 70, 85, 0.6));
    }
    50% {
        transform: translateY(-15px) scale(1.05);
        filter: drop-shadow(0 0 50px rgba(255, 70, 85, 0.9));
    }
}

.hero-logo img {
    width: 380px;
    height: auto;
}

.hero-title {
    font-size: 84px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 28px;
    background: linear-gradient(135deg,
        #ffffff 0%,
        var(--primary) 30%,
        var(--secondary) 60%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradient 5s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(255, 70, 85, 0.5);
    line-height: 1.1;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    border-radius: 2px;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes titleGradient {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; width: 200px; }
    50% { opacity: 1; width: 300px; }
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 56px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 22px 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 12px 40px rgba(255, 70, 85, 0.5),
        0 0 60px rgba(255, 70, 85, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform-style: preserve-3d;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    -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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(255, 70, 85, 0.7),
        0 0 100px rgba(255, 70, 85, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    padding: 22px 48px;
    background: rgba(255, 70, 85, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--primary);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 400%;
    height: 400%;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 70, 85, 0.4);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1), rgba(0, 217, 255, 0.1));
    border: 2px solid rgba(255, 70, 85, 0.3);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 70, 85, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat-badge:hover::before {
    left: 100%;
}

.stat-badge:hover {
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(0, 217, 255, 0.2));
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 70, 85, 0.3);
}

.stat-badge svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px rgba(255, 70, 85, 0.5));
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    transform: rotate(-45deg);
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 100px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Premium 3D tilt effect */
.stat-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(2deg);
    border-color: transparent;
    box-shadow:
        0 20px 60px rgba(255, 70, 85, 0.4),
        0 0 40px rgba(255, 70, 85, 0.2),
        inset 0 0 40px rgba(255, 70, 85, 0.1),
        0 30px 90px rgba(0, 0, 0, 0.5);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 70, 85, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
    animation: rotate 20s linear infinite;
    transform: translateZ(-1px);
}

/* Premium shine effect */
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%) translateZ(1px);
    transition: transform 0.6s ease;
}

.stat-card:hover::after {
    transform: translateX(100%) translateZ(1px);
}


.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(0, 217, 255, 0.2));
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 24px rgba(255, 70, 85, 0.2);
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.stat-card:hover .stat-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow:
        0 0 40px rgba(255, 70, 85, 0.6),
        0 0 80px rgba(255, 70, 85, 0.3);
}

.stat-card:hover .stat-icon::before {
    opacity: 1;
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px rgba(255, 70, 85, 0.5));
    transition: all 0.5s ease;
}

.stat-card:hover .stat-icon svg {
    stroke: #fff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

.stat-value {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    transition: all 0.5s ease;
    position: relative;
    display: inline-block;
}

.stat-card:hover .stat-value {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 70, 85, 0.6));
}

.stat-label {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.stat-card:hover .stat-label {
    color: var(--text-primary);
    letter-spacing: 2px;
}

.stat-trend {
    font-size: 14px;
    color: #00ff88;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-trend::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover .stat-trend::before {
    left: 100%;
}

.stat-card:hover .stat-trend {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(0, 217, 255, 0.2));
    border: 2px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.section-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 32px;
}

.text-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto 24px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 48px auto 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 70, 85, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: rgba(255, 70, 85, 0.1);
    border-color: var(--primary);
    transform: translateX(8px);
}

.about-feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
}

.about-feature-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.05), rgba(0, 217, 255, 0.05));
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 70, 85, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
    border-color: var(--primary);
    box-shadow:
        0 16px 48px rgba(255, 70, 85, 0.3),
        0 0 40px rgba(255, 70, 85, 0.2),
        0 25px 80px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 70, 85, 0.05);
}

/* Premium glow effect */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 217, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(0, 217, 255, 0.2));
    border-radius: 16px;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 70, 85, 0.5);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.feature-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== DEPARTMENTS SECTION ==================== */
.departments-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.department-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Premium layered shadow for departments */
.department-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(255, 70, 85, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
    pointer-events: none;
}

.department-card:hover::after {
    opacity: 1;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-card:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
    border-color: var(--primary);
    box-shadow:
        0 16px 48px rgba(255, 70, 85, 0.3),
        0 0 40px rgba(255, 70, 85, 0.2),
        0 25px 80px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 70, 85, 0.05);
}

.department-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: grayscale(0.3);
    transition: all 0.4s ease;
}

.department-card:hover .department-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.department-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.department-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.department-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid var(--primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 70, 85, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 70, 85, 0.1),
        inset 0 0 40px rgba(255, 70, 85, 0.05);
    transition: all 0.5s ease;
}

/* Premium animated border */
.cta-content::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    background-size: 200% 200%;
    animation: borderGlow 3s ease infinite;
    transition: opacity 0.5s ease;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-content:hover::before {
    opacity: 0.3;
}

.cta-content:hover {
    transform: translateY(-4px);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 70, 85, 0.2),
        inset 0 0 60px rgba(255, 70, 85, 0.08);
}

.cta-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.2;
}

.cta-title .text-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: 80px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 70, 85, 0.3));
}

.footer-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 70, 85, 0.1);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 70, 85, 0.4);
}

.footer-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-link {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .btn-discord {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 24px 80px;
    }
    
    /* ==================== PREMIUM PAGE LOAD ANIMATIONS ==================== */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    /* Staggered reveal animations */
    .stat-card,
    .feature-card,
    .department-card,
    .team-card {
        animation: fadeInUp 0.8s ease-out backwards;
    }
    
    .stat-card:nth-child(1) { animation-delay: 0.1s; }
    .stat-card:nth-child(2) { animation-delay: 0.2s; }
    .stat-card:nth-child(3) { animation-delay: 0.3s; }
    .stat-card:nth-child(4) { animation-delay: 0.4s; }
    
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    .feature-card:nth-child(5) { animation-delay: 0.5s; }
    .feature-card:nth-child(6) { animation-delay: 0.6s; }
    
    .department-card:nth-child(1) { animation-delay: 0.1s; }
    .department-card:nth-child(2) { animation-delay: 0.2s; }
    .department-card:nth-child(3) { animation-delay: 0.3s; }
    .department-card:nth-child(4) { animation-delay: 0.4s; }
    .department-card:nth-child(5) { animation-delay: 0.5s; }
    .department-card:nth-child(6) { animation-delay: 0.6s; }
    
    .team-card:nth-child(1) { animation-delay: 0.1s; }
    .team-card:nth-child(2) { animation-delay: 0.2s; }
    .team-card:nth-child(3) { animation-delay: 0.3s; }
    .team-card:nth-child(4) { animation-delay: 0.4s; }
    
    .section-badge {
        animation: scaleIn 0.6s ease-out;
    }
    
    .section-title {
        animation: fadeInUp 0.8s ease-out 0.2s backwards;
    }
    
    .section-description {
        animation: fadeInUp 0.8s ease-out 0.3s backwards;
    }
    
    /* Premium micro-interactions */
    .nav-link,
    .footer-link,
    .btn-primary,
    .btn-secondary {
        will-change: transform;
    }
    
    /* Smooth scroll behavior */
    html {
        scroll-behavior: smooth;
    }
    
    /* Premium focus states */
    *:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 4px;
        border-radius: 4px;
    }
    
    /* Reduce 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;
        }
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-logo img {
        width: 240px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .stats-grid,
    .features-grid,
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .cta-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 42px;
    }
    
    .hero-logo img {
        width: 200px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

