/* Base Styles and Variables */
:root {
    --color-primary: #5e17eb;
    --color-secondary: #ff9601;
    --color-accent: #01d4ff;
    --color-dark: #212121;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --text-primary: #333333;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--color-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
}

p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.primary:hover {
    background-color: #4a11c7;
    color: var(--text-light);
}

.secondary {
    background-color: var(--color-secondary);
    color: var(--text-light);
}

.secondary:hover {
    background-color: #e58700;
    color: var(--text-light);
}

.play {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.play:hover {
    background-color: #00b8e6;
    color: var(--color-dark);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    margin-right: 10px;
}

.logo h1 {
    color: var(--text-light);
    font-size: 24px;
    margin-bottom: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a:hover {
    color: var(--color-secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(94, 23, 235, 0.9), rgba(1, 212, 255, 0.8)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding-top: var(--header-height);
    margin-top: 0;
}

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

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero h2:after {
    background-color: var(--color-secondary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* Games Section */
.games {
    background-color: #f9f9f9;
    text-align: center;
}

.games p {
    max-width: 700px;
    margin: 0 auto 40px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.game-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.game-image {
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-card h3 {
    margin: 20px 0 5px;
}

.game-card p {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.game-card .btn {
    margin-bottom: 20px;
}

/* Resources Section */
.resources {
    background-color: var(--color-light);
    text-align: center;
}

.resources p {
    max-width: 700px;
    margin: 0 auto 40px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.resource-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.resource-card:hover {
    box-shadow: var(--shadow-lg);
}

.resource-card h3 {
    color: var(--color-primary);
}

.news-feature {
    margin-top: 80px;
    padding: 40px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.media-mention {
    margin-top: 20px;
}

.media-mention a {
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

/* About Section */
.about {
    background-color: var(--color-dark);
    color: var(--text-light);
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 20px;
}

.about h2:after {
    left: calc(50% - 30px);
}

/* Footer Styles */
footer {
    background-color: #151515;
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-logo h3 {
    margin-bottom: 10px;
}

.footer-links h4,
.footer-partners h4 {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
}

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

.footer-links ul li a,
.footer-partners ul li a {
    color: #aaa;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .game-grid,
    .resources-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 70%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-dark);
        padding: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-light);
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
}
