:root {
    --primary: #6e45e2;
    --secondary: #88d3ce;
    --dark: #0a0a12;
    /* Darkened for better contrast */
    --light: #ffffff;
    /* Pure white for better readability */
    --accent: #ff4e50;
    --bg-dark: #121225;
    /* Darkened background */
    --bg-darker: #080812;
    /* Darker for contrast */
    --text-primary: #ffffff;
    /* Primary text color */
    --text-secondary: #cccccc;
    /* Secondary text */
    --text-muted: #999999;
    /* Muted text */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    /* Using text color variable */
    overflow-x: hidden;
    line-height: 1.6;
    /* Better readability */
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    /* Ensuring headings are visible */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* Adding subtle shadow for contrast */
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: none;
    /* Remove shadow for gradient text */
}

/* Navbar */
.navbar {
    background-color: rgba(10, 10, 20, 0.98) !important;
    /* Darker navbar */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
}

.nav-link {
    color: var(--text-primary) !important;
    margin: 0 10px;
    position: relative;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary) !important;
    /* Hover effect */
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
    /* Ensure button text is white */
}

.btn-outline-light {
    border: 2px solid var(--light);
    color: var(--light);
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 20, 0.9), rgba(10, 10, 20, 0.7));
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero-content p {
    color: var(--text-secondary);
    /* Slightly muted for contrast */
    font-size: 1.2rem;
}

/* Game Cards */
.game-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(20, 20, 40, 0.5);
    /* Slightly lighter background */
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(110, 69, 226, 0.4);
    border-color: rgba(110, 69, 226, 0.7) !important;
}

.game-card .card-body {
    padding: 1.5rem;
}

.game-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Text Contrast Improvements */
.text-muted {
    color: var(--text-muted) !important;
}

/* Form Controls */
.form-control {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
    padding: 12px 15px;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(110, 69, 226, 0.25);
    border-color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Game Modal */
.game-modal .modal-content {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.game-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* VR Section */
.vr-feature h3 {
    color: var(--text-primary);
}

.vr-feature p {
    color: var(--text-secondary);
}

/* About Section */
.about-features h3 {
    color: var(--text-primary);
}

.about-features p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-info h4 {
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary);
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .navbar-collapse {
        background: var(--bg-darker);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
}