/* ==========================================================================
   Refined Gaming - Standalone Homepage Styles
   ========================================================================== */

/* --- Variables & Theming --- */
:root {
    --bg-main: #050505;
    /* Deeper black */
    --bg-surface: rgba(15, 10, 10, 0.7);
    /* Deep dark red-tinted surface */
    --bg-surface-hover: rgba(25, 12, 12, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);
    /* Softer borders */
    --border-hover: rgba(220, 38, 38, 0.3);
    /* Red hover border */

    --accent-primary: #dc2626;
    /* Deep crimson red */
    --accent-glow: rgba(220, 38, 38, 0.4);

    --text-primary: #f0f0f0;
    /* Silver-ish white */
    --text-secondary: #a0a0a0;
    /* Pure silver */
    --text-muted: #666666;

    --navbar-height: 90px;
    --section-spacing: 120px;
    /* Increased spacing */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* --- Globals & Utilities --- */
.text-gradient {
    background: linear-gradient(135deg, #f0f0f0 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-spacing) 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    /* Sweeping space */
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    color: #fff;
}

.btn-glow {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-glow:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

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

.btn-discord:hover {
    background-color: #4752C4;
    color: white;
}

/* --- Layout & Sections --- */

/* Video Background */
.video-background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    /* Prevents edge flickering */
    filter: blur(4px);
    /* Premium blurry background like Solyx */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(5, 5, 5, 0.6) 0%,
            rgba(5, 5, 5, 0.95) 100%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

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

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.brand-accent {
    color: var(--accent-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--navbar-height);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(220, 38, 38, 0.05);
    /* Faint red */
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: var(--accent-primary);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 6rem);
    margin-bottom: 30px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-transform: lowercase;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.server-stats {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.stat-info {
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
    margin: 0 25px;
}

/* Features Section */
.features {
    background-color: var(--bg-main);
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    /* Loosened spacing */
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px 30px;
    /* Taller cards */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 38, 38, 0.05);
    /* Faint red fill */
    color: var(--accent-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.feature-card:hover .feature-icon {
    background: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Updates Section */
.updates {
    background-color: #0b0b0e;
    /* Slightly different dark */
    position: relative;
    z-index: 2;
}

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

.update-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.update-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.update-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%);
}

.ui-bg {
    background-image: linear-gradient(135deg, #7f1d1d, #450a0a);
}

.job-bg {
    background-image: linear-gradient(45deg, #1f2937, #111827);
}

.test-bg {
    background-image: linear-gradient(to right, #450a0a, #000000);
}

/* In a real scenario, use images */
/* .ui-bg { background-image: url('../img/ui-update.jpg'); } */

.update-content {
    padding: 35px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.update-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.badge-feature {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

.badge-new {
    background: rgba(156, 163, 175, 0.15);
    color: #d1d5db;
}

.badge-info {
    background: rgba(75, 85, 99, 0.15);
    color: #9ca3af;
}

.update-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.update-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.update-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex: 1;
}

.read-more {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.read-more:hover {
    gap: 12px;
}

.view-all-container {
    text-align: center;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-main);
    padding: 60px 20px 100px;
    position: relative;
    z-index: 2;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cta-content {
    background: linear-gradient(135deg, rgba(20, 5, 5, 0.6), rgba(5, 5, 5, 0.9));
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 24px;
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    padding: 80px 20px 30px;
    position: relative;
    z-index: 2;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 5px;
    font-size: 0.75rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu JS later if needed */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .server-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }
}