:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --accent-red: #e63946;
    --accent-red-glow: rgba(230, 57, 70, 0.3);
    --accent-purple: #7b2cbf;
    --accent-purple-glow: rgba(123, 44, 191, 0.3);
    --accent-cyan: #00b4d8;
    --accent-cyan-glow: rgba(0, 180, 216, 0.3);
    --accent-green: #2dc653;
    --accent-orange: #ff9f1c;
    --accent-yellow: #ffd60a;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6c6c80;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --theme-accent: #ff6b35;
    --theme-glow: rgba(255, 107, 53, 0.3);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 44, 191, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 180, 216, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.navbar {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--theme-accent), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.hero-brand {
    text-align: center;
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 1;
}

.hero-brand img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 53, 0.3));
    transition: all 0.5s ease;
}

.hero-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 30px rgba(255, 107, 53, 0.5));
}

#myCarousel {
    margin-top: 56px !important;
    position: relative;
    z-index: 1;
}

.carousel-item img {
    height: 520px;
    object-fit: cover;
    filter: brightness(0.35) saturate(1.2);
}

.carousel-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(1.2);
    z-index: 0;
}

.slide-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 80%; max-width: 700px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.88), rgba(26, 26, 46, 0.85));
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.slide-content h1 {
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--theme-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content h2 { color: var(--text-secondary); font-weight: 400; }

.slide-content .btn {
    border-radius: 10px; padding: 0.6rem 1.5rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    font-size: 0.8rem; transition: all 0.3s ease; border-width: 2px;
}

.slide-content .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }

main { position: relative; z-index: 1; }

.section-header {
    text-align: center; margin-bottom: 3rem; padding-top: 2rem;
}

.section-header h2 {
    font-weight: 800; font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--theme-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.5rem;
}

.section-header .subtitle { color: var(--text-muted); font-size: 1.1rem; }

.featurette-card {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.5rem;
    margin-bottom: 2rem; transition: all 0.4s ease; position: relative; overflow: hidden;
}

.featurette-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--theme-accent), var(--accent-purple), var(--accent-cyan));
    opacity: 0; transition: opacity 0.4s ease;
}

.featurette-card:hover {
    transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--theme-glow);
}

.featurette-card:hover::before { opacity: 1; }

.featurette-heading { font-weight: 700; font-size: 1.8rem; color: var(--text-primary); margin-bottom: 1rem; }
.featurette-heading .icon { margin-right: 0.5rem; }
.featurette-card p.lead { color: var(--text-secondary); line-height: 1.8; font-size: 1rem; }

.feature-image-wrapper {
    position: relative; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-image-wrapper::after {
    content: ''; position: absolute; inset: 0; border-radius: 16px;
    border: 1px solid var(--glass-border); pointer-events: none;
}

.feature-image-wrapper img {
    width: 100%; height: 320px; object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.9) saturate(1.1);
}

.feature-image-wrapper:hover img { transform: scale(1.03); filter: brightness(1) saturate(1.2); }

.btn-gradient {
    background: linear-gradient(135deg, var(--theme-accent), var(--accent-purple));
    border: none; color: #fff; font-weight: 600; padding: 0.65rem 1.8rem;
    border-radius: 12px; transition: all 0.3s ease; text-transform: uppercase;
    letter-spacing: 0.5px; font-size: 0.85rem;
}

.btn-gradient:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px var(--theme-glow); color: #fff;
}

.btn-outline-cyan {
    border: 2px solid var(--accent-cyan); color: var(--accent-cyan); font-weight: 600;
    padding: 0.65rem 1.8rem; border-radius: 12px; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85rem; background: transparent;
}

.btn-outline-cyan:hover {
    background: var(--accent-cyan); color: #fff; box-shadow: 0 8px 25px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

.btn-outline-orange {
    border: 2px solid var(--accent-orange); color: var(--accent-orange); font-weight: 600;
    padding: 0.65rem 1.8rem; border-radius: 12px; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85rem; background: transparent;
}

.btn-outline-orange:hover {
    background: var(--accent-orange); color: #fff; box-shadow: 0 8px 25px rgba(255, 159, 28, 0.3);
    transform: translateY(-2px);
}

.page-header {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    margin-bottom: 1rem;
}

.page-header-title {
    font-weight: 800;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--text-primary), var(--theme-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.page-header-title .fa-gamepad {
    background: linear-gradient(135deg, var(--theme-accent), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.page-header-divider {
    width: 120px;
    height: 3px;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--theme-accent), var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
}

.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 2rem 0; }

.quick-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: 50px; padding: 0.5rem 1.2rem; color: var(--text-secondary);
    text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--bg-card-hover); color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); text-decoration: none;
}

.quick-link.active {
    background: linear-gradient(135deg, var(--theme-accent), var(--accent-purple));
    color: #fff; border-color: transparent;
}

.game-card {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden;
    transition: all 0.4s ease; margin-bottom: 1.5rem;
}

.game-card:hover {
    transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px var(--theme-glow);
}

.game-card-img {
    height: 200px; overflow: hidden; position: relative;
}

.game-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.9) saturate(1.1);
}

.game-card:hover .game-card-img img { transform: scale(1.05); filter: brightness(1) saturate(1.2); }

.game-card-badge {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, var(--theme-accent), var(--accent-purple));
    color: #fff; padding: 0.25rem 0.75rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}

.game-card-body { padding: 1.5rem; }
.game-card-body h5 { font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.game-card-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

.discord-section {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.5rem; margin-bottom: 3rem;
}

.discord-section h2 { font-weight: 700; color: #5865F2; margin-bottom: 0.5rem; }
.discord-widget-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }

footer {
    background: var(--bg-secondary) !important; border-top: 1px solid var(--border-subtle);
    padding: 2rem 0 !important; margin-top: 3rem;
}

footer p { color: var(--text-muted); font-size: 0.9rem; }
footer a { color: var(--accent-cyan); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: #fff; }

.counter-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: 50px; padding: 0.5rem 1.5rem; color: var(--text-secondary); font-size: 0.9rem;
}

.counter-badge .count { font-weight: 700; color: var(--theme-accent); font-size: 1.1rem; }

.section-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 3rem 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card, .featurette-card, .discord-section { animation: fadeInUp 0.6s ease forwards; }

@media (max-width: 768px) {
    .carousel-item img { height: 380px; }
    .slide-content { padding: 1.5rem 2rem; max-width: 90%; }
    .section-header h2 { font-size: 2rem; }
    .featurette-card { padding: 1.5rem; }
}
