:root {
    --primary-color: #6c5ce7;
    --accent-color: #a29bfe;
    --dark-bg: #0f0f0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --red-section: rgba(255, 99, 132, 0.1);
    --blue-section: rgba(54, 162, 235, 0.1);
    --yellow-section: rgba(255, 206, 86, 0.1);
    --red-accent: #ff6384;
    --blue-accent: #36a2eb;
    --yellow-accent: #ffce56;
}

::selection {
    background: var(--primary-color);
    color: white;
}

body {
    background-color: var(--dark-bg);
    font-family: 'Inter', sans-serif;
    color: #f8f9fa;
}

/* Navbar Styles */
.navbar {
    transition: background-color 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled, .navbar.scrolled {
    background-color: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.75rem;
    letter-spacing: 2px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.join-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
    color: white !important;
    background: linear-gradient(45deg, rgba(108, 92, 231, 0.8), rgba(162, 155, 254, 0.8));
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* Background Effects */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.1), transparent);
    z-index: -1;
}

/* Card Styles */
.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon Styles */
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* Rules Section Styles */
.rules-container {
    max-width: 900px;
    margin: 7rem auto 3rem;
    padding: 0 1rem;
}

.rules-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rules-header {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    padding: 1.5rem;
    text-align: center;
}

.rules-body {
    padding: 2rem;
}

.rule-section {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.red-section {
    background-color: var(--red-section);
    border: 1px solid rgba(255, 99, 132, 0.3);
}

.blue-section {
    background-color: var(--blue-section);
    border: 1px solid rgba(54, 162, 235, 0.3);
}

.yellow-section {
    background-color: var(--yellow-section);
    border: 1px solid rgba(255, 206, 86, 0.3);
}

.section-title {
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.red-section .section-title {
    color: var(--red-accent);
}

.blue-section .section-title {
    color: var(--blue-accent);
}

.yellow-section .section-title {
    color: var(--yellow-accent);
}

.rule-list {
    list-style-type: none;
    padding-left: 0;
}

.rule-item {
    display: flex;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-bullet {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.red-section .rule-bullet {
    color: var(--red-accent);
}

.blue-section .rule-bullet {
    color: var(--blue-accent);
}

.yellow-section .rule-bullet {
    color: var(--yellow-accent);
}

/* Command Section */
.command-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.command-category h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.command-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.command-item:last-child {
    margin-bottom: 0;
}

.command-item code {
    background: rgba(108, 92, 231, 0.4);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 1rem;
    color: #fff;
    min-width: 120px;
}

.command-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Join Card */
.join-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Animation */
.floating-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.animate-text {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.animate-button {
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

/* Footer */
.footer {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #f8f9fa;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--accent-color);
}

.social-icons {
    margin-bottom: 1.5rem;
}

.social-icon {
    color: #f8f9fa;
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .rules-container {
        margin-top: 5rem;
    }
    
    .rules-body {
        padding: 1.5rem;
    }
    
    .footer-link {
        margin: 0 0.5rem 0.5rem;
    }
}