html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:root {
    --primary-color: #32DBF0;
    --primary-light: #A0F0FF;
    --primary-dark: #00B5CC;
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 0.9rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(50, 219, 240, 0.4);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 219, 240, 0.6);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 3rem;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background-image: url('img/Hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 10rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero .hero-title,
#hero .hero-subtitle,
#hero .btn {
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--white);
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections General */
section {
    padding-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-light);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Games Section */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.game-card {
    flex: 0 0 30%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(50, 219, 240, 0.2);
}

.game-image {
    height: 200px;
    width: 100%;
    background-color: #eee;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.placeholder-cyan {
    background: linear-gradient(45deg, #32DBF0, #A0F0FF);
}

.placeholder-cyan-light {
    background: linear-gradient(45deg, #A0F0FF, #E6FAFF);
}

.placeholder-cyan-dark {
    background: linear-gradient(45deg, #00B5CC, #32DBF0);
}

.game-info {
    padding: 25px;
    text-align: center;
}

.game-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.game-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    /* cho phép xuống dòng nếu quá nhiều badge */
    justify-content: center;
    /* căn giữa các badge */
    gap: 8px;
    /* khoảng cách giữa các badge */
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    /* hug content */
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    background-color: #E6FAFF;
    color: var(--primary-dark);
    white-space: nowrap;
    /* không xuống dòng bên trong badge */
}


/* Partners Section */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ddd;
    text-transform: uppercase;
    transition: color var(--transition-speed);
}

.partner-logo:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #F9F9F9;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.email-link {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0;
}

.social-links a {
    margin-right: 20px;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

#ghost-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.copyright {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    background-color: var(--white);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Language Switcher */
.language-selector {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
}

#language-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 10px 40px 10px 18px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22%2332DBF0%22%20d%3D%22M4%206l4%204%204-4H4z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    box-shadow: 0 2px 8px rgba(50, 219, 240, 0.15);
    letter-spacing: 0.5px;
}

#language-select:hover {
    background-color: var(--primary-color);
    color: var(--white);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M4%206l4%204%204-4H4z%22%2F%3E%3C%2Fsvg%3E");
    box-shadow: 0 4px 16px rgba(50, 219, 240, 0.35);
    transform: translateY(-1px);
}

#language-select:focus {
    box-shadow: 0 0 0 4px rgba(50, 219, 240, 0.2);
    border-color: var(--primary-dark);
}

#language-select:active {
    transform: translateY(0);
}

#language-select option {
    background-color: var(--white);
    color: var(--text-color);
    padding: 12px;
    font-weight: 600;
}


/* Media Queries - Responsive */
@media (max-width: 768px) {

    /* Header */
    .logo {
        display: none;
    }

    #main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.8rem;
    }

    /* Language Switcher */
    .language-selector {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    #language-select {
        min-width: 100px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    /* Stats Section */
    .stats {
        flex-direction: column;
        gap: 30px;
    }

    /* Games Section */
    .game-card {
        flex: 0 0 100%;
    }
}


/* Privacy Policy links */
section.container a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-speed);
}

section.container a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Privacy Policy spacing */
section.container {
    line-height: 1.8;
    font-size: 1rem;
}

/* Headings */
section.container h1.section-title {
    margin-bottom: 40px;
}

section.container h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Paragraphs */
section.container p {
    margin-bottom: 20px;
}

/* Lists */
section.container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

section.container ul li {
    margin-bottom: 10px;
}

/* Links */
section.container a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-speed);
}

section.container a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}