:root {
    --nexus-red: #d13639;
    --nexus-red-glow: rgba(209, 54, 57, 0.5);
    --rust-orange: #ce422b;
    --bg-dark: #0f1014;
    --bg-card: rgba(20, 22, 28, 0.7);
    --text-main: #f0f0f0;
    --text-muted: #a0a5b5;
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(209, 54, 57, 0.15) 0%, rgba(15, 16, 20, 1) 60%);
    z-index: -2;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
}

.nexus {
    color: var(--text-main);
    font-weight: 700;
}

.rust {
    color: var(--nexus-red);
    font-weight: 700;
    text-shadow: 0 0 10px var(--nexus-red-glow);
}

.highlight {
    color: var(--nexus-red);
    text-shadow: 0 0 15px var(--nexus-red-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(15, 16, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--nexus-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--nexus-red-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: white;
}

/* STEAM LOGIN BUTTON */
.steam-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #171a21, #0d0f12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.steam-btn:hover {
    background: linear-gradient(135deg, #1b2029, #12151a);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.steam-btn i {
    font-size: 1.2rem;
}

/* User Profile Info */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--nexus-red);
    box-shadow: 0 0 10px var(--nexus-red-glow);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 0.9rem;
}

.logout-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: var(--nexus-red);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(15, 16, 20, 0.2), rgba(15, 16, 20, 1)), url('https://files.facepunch.com/rust/item/wall.external.high.stone_512.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--nexus-red);
    color: white;
    border: 2px solid var(--nexus-red);
    box-shadow: 0 0 20px var(--nexus-red-glow);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--nexus-red);
    box-shadow: 0 0 30px var(--nexus-red-glow) inset, 0 0 20px var(--nexus-red-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-indicator.online {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
    animation: pulse 2s infinite;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--nexus-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(209, 54, 57, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(209, 54, 57, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--nexus-red);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--nexus-red-glow);
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Rules Section */
.rules {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: url('https://files.facepunch.com/rust/item/blueprintbase_512.png') no-repeat center center;
    background-size: contain;
    background-blend-mode: overlay;
}

.rules-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.rules-list {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

.rules-list li {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.rules-list li::marker {
    color: var(--nexus-red);
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Teko', sans-serif;
}

.rules-list strong {
    display: block;
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(10, 11, 14, 0.9);
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.disclaimer {
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}