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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1D2023;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(53, 69, 116, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(53, 69, 116, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    font-size: 100%;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #2647a5;
}

/* Sections Common Styles */
section {
    min-height: 100vh;
    padding: 100px 0 80px;
    position: relative;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.35);
    z-index: 1;
}

section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

/* Hero Section */
.hero-section {
    background: url('../images/hero-bg.png') no-repeat center center;
    background-size: cover;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-content {
    padding: 40px 20px;
}

.hero-title {
    font-size: 46.8px; /* 130% of 36px */
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* News Section */
.news-section {
    background-color: #1C1C1C;
    color: #ffffff;
    padding: 80px 0;
}

.news-section .section-title {
    color: #ffffff;
}

.news-content {
    text-align: center;
    margin-top: 20px;
}

.news-content h4 {
    font-size: 18px;
    line-height: 1.6;
}

.news-content a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-content a:hover {
    color: #2647a5;
}

/* Games Section */
.games-section {
    background: url('../images/games-bg.jpg') no-repeat center center;
    background-size: cover;
    background-color: #1C1C1C;
    color: #ffffff;
}

.games-section .section-title {
    color: #ffffff;
}

.games-content {
    text-align: center;
    padding: 40px 0;
}

/* Contact Section */
.contact-section {
    background: url('../images/contact-bg.jpg') no-repeat center center;
    background-size: cover;
    background-color: transparent;
    color: #ffffff;
}

.contact-section .section-title {
    color: #ffffff;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 1000px;
    background: #2647a5;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #2d55c6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 71, 165, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    color: #858a8c;
    font-size: 14.04px;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Loading Animation for Background Images */
section[style*="background-image"] {
    position: relative;
}

/* Smooth Transitions */
section {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Form Validation Styles */
.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    border: 2px solid rgba(255, 77, 77, 0.5);
}

.form-group input:valid,
.form-group textarea:valid {
    border: 2px solid transparent;
}

/* Success Message */
.success-message {
    display: none;
    background: rgba(156, 206, 6, 0.9);
    color: #ffffff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.success-message.error {
    background: rgba(255, 77, 77, 0.9);
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

/* Loading state for submit button */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
