:root {
    /* Colors */
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #f7b731;
    --dark: #0f0f13;
    --darker: #050507;
    --light: #f8f9fa;
    --card-bg: #1a1a24;
    
    /* Shadows & Borders */
    --border-width: 2px;
    --border-color: #2b2b36;
    --shadow-color: #000000;
    --shadow-depth: 6px;
    --radius: 12px;
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-header: 'Space Grotesk', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-background {
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: url('../assets/images/bg.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(8px) brightness(0.6);
    z-index: -10;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: var(--font-header);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* 3D Button Style */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary);
    color: white;
    border: var(--border-width) solid var(--darker);
    border-radius: var(--radius);
    box-shadow: var(--shadow-depth) var(--shadow-depth) 0 var(--shadow-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    gap: 10px;
    font-size: 1rem;
}

.btn-3d:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-depth) + 2px) calc(var(--shadow-depth) + 2px) 0 var(--shadow-color);
}

.btn-3d:active {
    transform: translate(var(--shadow-depth), var(--shadow-depth));
    box-shadow: 0 0 0 var(--shadow-color);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--light);
    border-color: var(--border-color);
}

.btn-accent {
    background-color: var(--accent);
}

.btn-discord {
    background-color: #5865F2;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 35px; /* Slightly smaller for compact header */
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(15, 15, 19, 0.9), rgba(15, 15, 19, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232b2b36' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

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

.hero-logo-container {
    perspective: 1000px;
    margin-bottom: 2rem;
}

.hero-logo {
    width: 400px;
    max-width: 90%;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(67, 97, 238, 0.6));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-header);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 0 rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Features / Cards */
.features {
    padding: 100px 0;
    position: relative;
}

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

.feature-card {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 2px var(--primary);
    border-color: transparent;
    z-index: 10;
}

.feature-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px var(--primary);
    border-color: transparent;
}

/* Specific styling for KitPvP (2nd card) to fix visibility */
.feature-card:nth-child(2) .card-icon {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(247, 37, 133, 0.1);
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.3);
}

.feature-card:nth-child(2):hover .card-icon {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 30px var(--accent);
}

.card-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

.card-desc {
    color: #ccc;
    font-size: 1rem;
    transform: translateZ(10px);
}

/* 3D Visual Elements (Vector-like shapes via CSS) */
.shape {
    position: absolute;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.cube-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(500px) rotateX(60deg) rotateZ(30deg);
    top: 10%;
    right: 5%;
}

.floating-circle {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    top: 60%;
    left: 5%;
    animation: spin 20s linear infinite;
}

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

/* Footer */
footer {
    background: var(--darker);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
    font-family: var(--font-header);
    margin-bottom: 20px;
    color: var(--light);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #a0a0a0;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Page Specific: Release */
.release-hero {
    text-align: center;
    padding: 150px 0 80px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    min-width: 100px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
}

/* Page Specific: Store */
.store-container {
    min-height: 100vh;
    padding-top: 100px; /* Account for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Reset centering for section-title inside flex container */
.store-container .section-title {
    left: auto;
    transform: none;
    margin-bottom: 2rem;
}

.store-container .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Page Specific: Announcements */
.news-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    border: 1px solid var(--border-color);
}

.news-content {
    padding: 30px;
    flex: 1;
}

.news-date {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 19, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 280px;
    }
    
    .news-card {
        flex-direction: column;
    }
}
