/* Base Styles and Reset */
:root {
    --primary-color: #e63946;
    --secondary-color: #2b2d42;
    --tertiary-color: #8d99ae;
    --light-color: #edf2f4;
    --dark-color: #1d3557;
    --accent-color: #ffb703;
    
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-special: 'Russo One', sans-serif;
    
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}

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

.btn-secondary:hover {
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-tertiary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* Section Styles */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo a {
    color: var(--light-color);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-special);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

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

.main-nav ul li a {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--light-color);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: var(--light-color);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* Featured Games Section */
.featured-games {
    background-color: var(--light-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-icon {
    margin-bottom: 15px;
}

.rating {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rating-value {
    color: var(--secondary-color);
    font-weight: 700;
}

/* About Us Section */
.about-us .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card svg {
    margin-bottom: 15px;
}

/* Latest Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-content {
    padding: 20px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--tertiary-color);
    margin-bottom: 15px;
}

.view-all-articles {
    text-align: center;
    margin-top: 30px;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: var(--light-color);
}

.testimonials h2 {
    color: var(--light-color);
}

.testimonials h2::after {
    background-color: var(--light-color);
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    min-width: 300px;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    scroll-snap-align: start;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    color: var(--light-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    margin: 0;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    background-color: #f8f9fa;
}

.newsletter p {
    max-width: 700px;
    margin: 0 auto 30px;
}

#newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--tertiary-color);
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
}

.form-checkbox input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-checkbox label {
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-media {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo,
.footer-nav,
.footer-legal {
    flex: 1;
}

.footer-logo p {
    margin-top: 15px;
    max-width: 250px;
}

.footer-nav h4,
.footer-legal h4 {
    color: var(--light-color);
    margin-bottom: 20px;
}

.footer-nav ul,
.footer-legal ul {
    list-style: none;
}

.footer-nav ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a,
.footer-legal ul li a {
    color: var(--tertiary-color);
}

.footer-nav ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--light-color);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .about-us .container {
        flex-direction: column;
    }
    
    .about-content {
        margin-bottom: 40px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo,
    .footer-nav,
    .footer-legal {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active ul {
        flex-direction: column;
    }
    
    .main-nav.active ul li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .games-grid,
    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
