/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
}

.language-switcher {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.language-switcher:hover {
    background: #2980b9;
    color: white;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-banner {
    max-width: 60%;
    width: 60%;
    height: auto;
    margin: 0 auto 2rem auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Section Spacing */
section {
    scroll-margin-top: 100px; /* Offset for fixed header when using anchor links */
}

/* Games Section */
.games-section {
    padding: 4rem 0;
    background: #fff;
}

.games-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.games-section > .container > p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.game-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 350px;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.game-card:hover .game-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.game-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin: 0 auto 1.5rem auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.game-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    text-align: center;
    width: 100%;
    font-weight: 600;
    line-height: 1.3;
}

.game-card p {
    color: #666;
    line-height: 1.7;
    text-align: center;
    width: 100%;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* About Section */
.about-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.about-content {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.company-table,
.company-info {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 600px;
}

.company-table table,
.company-info table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td,
.company-info td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.company-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.company-info td:first-child {
    background: #3498db;
    color: white;
    font-weight: 600;
    width: 40%;
}

.company-table tr:last-child td,
.company-info tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    width: 100%;
    margin: 0;
}

.footer-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-simple p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #bdc3c7;
}

.footer-simple p:last-child {
    margin-bottom: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
}

.footer-simple a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-simple a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Legacy footer styles for backward compatibility */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
/* Extra large screens (large desktops) - 2 columns with max width */
@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .game-card {
        padding: 3rem;
        min-height: 400px;
    }
    
    .game-icon {
        width: 120px;
        height: 120px;
        border-radius: 25px;
        margin: 0 auto 2rem auto;
    }
    
    .game-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .game-card p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Large screens (desktops) - 2 columns */
@media (min-width: 1024px) and (max-width: 1199px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .game-card {
        padding: 2.5rem;
    }
}

/* Medium screens (tablets) - 2 columns with smaller gap */
@media (min-width: 769px) and (max-width: 1023px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 2rem;
    }
}

/* Small screens (mobile) - 1 column */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-banner {
        max-width: 80%;
        width: 80%;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-simple {
        padding: 0 1rem;
    }
    
    .footer-simple p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-banner {
        max-width: 90%;
        width: 90%;
    }
    
    .game-card {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .game-icon {
        width: 80px;
        height: 80px;
        border-radius: 15px;
        margin: 0 auto 1rem auto;
    }
    
    .game-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .game-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Policy and Terms Pages */
.content-page {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    color: #34495e;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.content-page h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: #3498db;
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Active Navigation Link Styles */
nav a.active {
    color: #3498db;
    font-weight: 600;
}

/* Section Transitions */
section {
    transition: all 0.3s ease;
}

/* About Section Additional Styles */
.about-section ul {
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
}

.about-section ul li {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.about-section ul li strong {
    color: #2c3e50;
}
