/* Base Styles and CSS Reset */
:root {
    --primary-color: #00796B;
    --secondary-color: #009688;
    --accent-color: #FF9800;
    --text-color: #333333;
    --light-text: #FFFFFF;
    --dark-bg: #212121;
    --light-bg: #F5F5F5;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #F57C00;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--light-text);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.logo img {
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    display: flex;
}

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

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
    padding: 120px 0;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Games Section */
.games-section {
    background-color: var(--light-bg);
    text-align: center;
}

.games-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.games-section > p {
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.game-card {
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* News Section */
.news-section {
    background-color: #FFFFFF;
    text-align: center;
}

.news-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

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

.news-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: left;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, var(--dark-bg), #424242);
    color: var(--light-text);
    text-align: center;
}

.about-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-section > p {
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

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

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

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--light-text);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .games-grid, 
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .game-card, 
    .news-card {
        padding: 20px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .games-section, .news-section, .about-section, .contact-section {
    animation: fadeIn 1s ease-out;
}

.game-card, .news-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.4s; }
.game-card:nth-child(4) { animation-delay: 0.6s; }

.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.4s; }
