/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 40px; /* Điều chỉnh kích thước phù hợp */
    width: auto;
}



.logo span {
    color: #333;
}

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

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

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b00;
}

.auth-buttons a {
    padding: 8px 20px;
    border-radius: 5px;
    margin-left: 15px;
    font-weight: 500;
}

.login {
    color: #333;
}

.signup {
    background-color: #ff6b00;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff9a00, #ff6b00);
    color: white;
    padding: 150px 5% 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #ff6b00;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    margin: 0 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

/* Features Section */
.features {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('img/mockup.jpg'); /* Thêm dòng này */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Tùy chọn - tạo hiệu ứng parallax */
    position: relative;
    z-index: 1;
}


.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    
    background-color: rgba(255, 255, 255, 0.9);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {

    transform: translateY(-10px);
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8); /* Màu overlay và độ mờ */
    z-index: -1;
}

.feature-icon {
    font-size: 50px;
    color: #ff6b00;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: 80px 5%;
    background-color: #f9f9f9;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.game-image {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.game-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.play-button {
    display: inline-block;
    background-color: #ff6b00;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 60px 5% 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b00;
    margin-bottom: 20px;
    display: block;
     display: flex;
    align-items: center;
    gap: 10px;
}

/* Thêm style cho policy link khi active */
nav ul li a.policy-link.active {
    color: #ff6b00;
    font-weight: bold;
    position: relative;
}

nav ul li a.policy-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6b00;
}


.footer-logo span {
    color: #fff;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.social-icons a {
    color: #fff;
    font-size: 20px;
}

.footer-links h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ff6b00;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin: 20px 0;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .auth-buttons {
        margin-top: 15px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-button {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
}