/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@800;1100;900&family=Raleway:wght@300;400;600;800&display=swap');

/* CSS Reset and Normalization */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color and Typography Variables */
:root {
    /* Color Palette */
    --primary-color: #2C3E50;       /* Deep blue-gray */
    --secondary-color: #34495E;     /* Slightly lighter blue-gray */
    --accent-color: #E74C3C;        /* Vibrant red */
    --background-light: #ECF0F1;    /* Light gray-blue */
    --background-dark: #F8F9FA;     /* Very light gray */
    --text-primary: #2C3E50;        /* Dark blue-gray */
    --text-secondary: #34495E;      /* Slightly lighter blue-gray */

    /* Typography */
    --heading-font: "Times New Roman", Times, serif;
    --body-font: "Times New Roman", Times, serif;

    /* Transitions */
    --transition-speed: 0.3s;
}



/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 20px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 1100;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 5%;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.logo-link {
    text-decoration: none;
    color: var(--primary-color); /* or whatever color you want */
}

.logo-link:hover {
    color: var(--accent-color); /* optional hover effect */
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    transition: color var(--transition-speed) ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}


/* Hamburger Menu (Mobile) */
.mobile-menu-toggle {
    display: none;
}

.hamburger-menu {
    display: none;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 12rem 2rem;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

#games-btn {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#games-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
    background-color: #d0d080;
}

/* About Section */
/* About Section Redesign */
.about-section {
    background-color: white;
    padding: 6rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.about-image {
    flex: 0 0 50%;
    position: relative;
    height: 500px; /* Fixed height */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the entire container */
    object-position: center; /* Center the image */
}

.about-text {
    flex: 0 0 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text .section-label {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    line-height: 1.2;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }

    .about-image, .about-text {
        flex: 0 0 100%;
        width: 100%;
    }

    .about-image {
        height: 300px;
    }

    .about-text {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 1rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }
}

/* Games Section */
.games-section {
    background-color: var(--background-dark);
    padding: 6rem 5%;
    text-align: center;
}

.games-section h2 {
    margin-bottom: 3rem;
}

.games-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.game-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 350px;
    transition: all var(--transition-speed) ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.game-card h3 {
    padding: 1.5rem;
    background-color: white;
    border-bottom: 1px solid #f1f1f1;
}

.game-card button {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.game-card button:hover {
    background-color: #d0d080;
}

/* Disclaimer Section */
.disclaimer-section {
    background-color: white;
    padding: 6rem 5%;
    text-align: center;
}

.disclaimer-section h2 {
    margin-bottom: 2rem;
}

.disclaimer-section p {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.game-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transition: all 0.6s ease;
}

.game-btn:hover {
    background-color: #C0392B;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-btn {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-section {
        flex-direction: column;
        gap: 2rem;
    }

    .games-container {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Mobile Menu and Responsiveness */
@media (max-width: 768px) {
    /* Hamburger Menu */
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1000;
        position: relative;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-icon {
        width: 30px;
        height: 4px;
        background-color: var(--primary-color);
        position: relative;
        transition: background-color 0.3s ease;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        width: 30px;
        height: 4px;
        background-color: var(--primary-color);
        position: absolute;
        transition: all 0.3s ease;
    }

    .hamburger-icon::before {
        top: -10px;
    }

    .hamburger-icon::after {
        top: 10px;
    }

    /* Hamburger Transform to X */
    .hamburger-menu.active .hamburger-icon {
        background-color: transparent;
    }

    .hamburger-menu.active .hamburger-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .hamburger-menu.active .hamburger-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }

    /* Navigation Styles for Mobile */
    nav {
        position: relative;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transition: transform 0.3s ease;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
    }

    nav ul li a {
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    /* Hamburger Menu Positioning */
    .logo {
        z-index: 1000;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    /* Responsive Adjustments */
    .hero {
        padding: 8rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .games-container {
        flex-direction: column;
        align-items: center;
    }

    .game-card {
        width: 90%;
        max-width: 400px;
        margin-bottom: 1.5rem;
    }
}