/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Comic Sans MS', 'Trebuchet MS', cursive, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== HEADER STYLES ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #ff6b6b;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: all 0.3s ease;
}

.logo-section .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-size 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #ff6b6b;
    padding-left: 30px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Search Section */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 12px 50px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    width: 250px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    width: 300px;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-icon {
    font-size: 1.2rem;
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%);
    padding: 100px 0 120px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s infinite linear;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 249, 250, 0.1) 100%);
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.banner-content {
    z-index: 3;
    position: relative;
    animation: fadeInLeft 1s ease-out;
}

.banner-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #ffd93d);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-shadow: none;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #ffd93d);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.banner-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
}

.banner-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.btn-outline:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ===== FEATURED CAROUSEL ===== */
.featured-carousel {
    position: relative;
    z-index: 3;
    animation: fadeInRight 1s ease-out 0.3s both;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 25px;
    overflow: hidden;
    color: #2c3e50;
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    color: #2c3e50;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 25px;
}

.carousel-next {
    right: 25px;
}

.carousel-btn:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 107, 107, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.indicator.active::after {
    opacity: 1;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: #f8f9fa;
}

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

/* ===== SECTION STYLES ===== */
.game-categories {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
    text-decoration: none;
    color: white;
}

.btn-icon {
    font-size: 1.1rem;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tab-icon {
    font-size: 1.1rem;
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.game-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-category {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-weight: 600;
}

.play-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== LOAD MORE SECTION ===== */
.load-more-section {
    text-align: center;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== POPULAR GAMES SECTION ===== */
.popular-games {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.popular-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 40px;
}

.popular-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    padding: 20px 0;
}

.popular-card {
    min-width: 320px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.popular-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.popular-card::before {
    content: '🔥';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.popular-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-card:hover .popular-image {
    transform: scale(1.1);
}

.popular-info {
    padding: 20px;
}

.popular-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.popular-category {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.popular-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== NEW GAMES SECTION ===== */
.new-games {
    padding: 80px 0;
    background: white;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.masonry-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    overflow: hidden;
    color: white;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.masonry-card:nth-child(odd) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.masonry-card:nth-child(3n) {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.masonry-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.masonry-card::before {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 2;
    animation: wiggle 2s infinite;
}

.masonry-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.masonry-card:hover .masonry-image {
    opacity: 1;
    transform: scale(1.05);
}

.masonry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
}

.masonry-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.masonry-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
}

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

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #4ecdc4;
}

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

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4ecdc4;
}

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

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #4ecdc4;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .banner-container {
        gap: 40px;
        padding: 0 15px;
    }

    .slide-content {
        padding: 25px;
        gap: 25px;
    }

    .banner-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        grid-template-rows: auto auto auto;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        height: 60px;
    }

    .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
    }

    .logo-section {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
    }

    .mobile-search-toggle {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    .banner-buttons{
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .search-section {
        display: none;
        position: fixed;
        top: 63px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 100px 20px 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        grid-column: 1 / -1;
        grid-row: 3;
        overflow-y: auto;
        height: 100vh;
    }

    .search-section.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateY(0);
    }

    .search-section.active .search-container {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .search-section.active .search-input {
        width: 100%;
        font-size: 1.2rem;
        padding: 15px 60px 15px 20px;
        border-radius: 15px;
    }

    .search-section.active .search-btn {
        width: 50px;
        height: 50px;
        right: 8px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1000;
        touch-action: manipulation;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-search-toggle {
        display: flex !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 1000;
        touch-action: manipulation;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-search-toggle:hover {
        /* background: rgba(255, 107, 107, 0.1); */
    }

    .mobile-search-toggle:hover .search-line,
    .mobile-search-toggle:hover .search-circle {
        /* background: #ff6b6b; */
        /* border-color: #ff6b6b; */
    }

    .mobile-search-toggle {
        position: relative;
    }

    .search-circle {
        width: 16px;
        height: 16px;
        border: 3px solid #2c3e50;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .search-line {
        width: 8px;
        height: 3px;
        background: #2c3e50;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translate(7px, 7px) rotate(45deg);
        transform-origin: center;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-search-toggle.active .search-circle {
        transform: translate(-50%, -50%) rotate(45deg);
        border-radius: 2px;
        width: 20px;
        height: 3px;
        border: none;
        background: #2c3e50;
    }

    .mobile-search-toggle.active .search-line {
        transform: translate(-50%, -50%) rotate(-45deg);
        width: 20px;
        height: 3px;
    }

    .banner-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 15px;
    }

    .banner-title {
        font-size: 2.8rem;
    }

    .banner-subtitle {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .featured-carousel {
        margin-top: 20px;
    }

    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .slide-image img {
        height: 220px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-meta {
        flex-direction: column;
        gap: 15px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        justify-content: center;
        text-decoration: none;
        color: inherit;
    }

    .footer-description {
        text-align: center;
    }

    /* Popular and New Games Responsive */
    .popular-card {
        min-width: 280px;
    }

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

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .slider-prev {
        left: 15px;
    }

    .slider-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .search-input {
        width: 180px;
    }

    .search-input:focus {
        width: 200px;
    }

    .banner-container {
        padding: 0 10px;
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-image img {
        height: 180px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .carousel-prev {
        left: 15px;
    }

    .carousel-next {
        right: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Popular and New Games */
    .popular-track {
        gap: 15px;
        padding: 15px 0;
    }

    .popular-card {
        min-width: 250px;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .masonry-image {
        height: 160px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

/* ===== ADDITIONAL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}



/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-wiggle:hover {
    animation: wiggle 0.8s ease;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Prevent body scroll when mobile menu/search is open */
.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* ===== GAME CARD VARIATIONS ===== */
.game-card.featured {
    border: 3px solid #ff6b6b;
    position: relative;
}

.game-card.featured::before {
    content: '⭐ FEATURED';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.game-card.new {
    border: 3px solid #4ecdc4;
    position: relative;
}

.game-card.new::before {
    content: '✨ NEW';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.game-card.popular {
    border: 3px solid #ffc107;
    position: relative;
}

.game-card.popular::before {
    content: '🔥 HOT';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ffc107, #ff8f00);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 70%;
}

.skeleton-image {
    height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff5252, #26a69a);
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
*:focus {
    /* outline: 2px solid #ff6b6b; */
    outline-offset: 2px;
}

.btn:focus,
.nav-link:focus,
.search-input:focus {
    outline: 3px solid rgba(255, 107, 107, 0.5);
    outline-offset: 2px;
}

/* ===== CAROUSEL SLIDE STYLES ===== */
.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 30px;
    min-height: 300px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    border-radius: 25px;
    z-index: -1;
}

.slide-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.slide-image:hover {
    transform: scale(1.02);
}

.slide-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide-image:hover img {
    transform: scale(1.05);
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-image:hover::after {
    opacity: 1;
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 18px;
    line-height: 1.2;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-description {
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 400;
}

.slide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 10px;
}

.slide-category {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.slide-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.slide-category:hover::before {
    left: 100%;
}

.slide-play-btn {
    flex-shrink: 0;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.slide-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

/* ===== MOBILE MENU STYLES ===== */
.nav-menu.active {
    display: flex;
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    height: calc(100vh - 63px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu.active .nav-list {
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.nav-menu.active .nav-link {
    justify-content: center;
    width: 100%;
    padding: 15px;
}

/* Mobile dropdown styles */
.nav-menu.active .dropdown {
    width: 100%;
}

.nav-menu.active .dropdown > .nav-link {
    position: relative;
    cursor: pointer;
}

.nav-menu.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu.active .dropdown.active .dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for mobile dropdown */
.nav-menu.active .dropdown-menu {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar {
    width: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.6);
    border-radius: 2px;
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}

/* Show dropdown scrollbar when scrolling */
.nav-menu.active .dropdown-menu.scrolling::-webkit-scrollbar {
    opacity: 1;
}

/* Custom scrollbar for entire mobile menu */
.nav-menu.active {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.nav-menu.active::-webkit-scrollbar {
    width: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu.active::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-menu.active::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.4);
    border-radius: 3px;
}

.nav-menu.active::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.6);
}

/* Show scrollbar when scrolling */
.nav-menu.active.scrolling::-webkit-scrollbar {
    opacity: 1;
}

.nav-menu.active .dropdown-menu {
    text-align: center;
}

.nav-menu.active .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu.active .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    border-radius: 8px;
    margin: 2px auto;
    text-decoration: none;
    text-align: center;
    max-width: 200px;
    transition: all 0.3s ease;
}

.nav-menu.active .dropdown-menu a:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateX(5px);
}

.nav-menu.active .dropdown-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.nav-menu.active .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HEADER SCROLL EFFECT ===== */
/* 桌面端保留滚动效果 */
@media (min-width: 769px) {
    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }

    .header.scrolled .nav-container {
        height: 70px;
    }
}

/* 移动端无滚动效果 */
@media (max-width: 768px) {
    .header {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }
}

/* ===== ERROR MESSAGE STYLES ===== */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== GAME CARD INITIAL STATE ===== */
.game-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.game-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.game-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.game-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-image-container::after {
    opacity: 1;
}

.game-image-container::before {
    content: '▶️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-image-container::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* ===== RESPONSIVE CAROUSEL ===== */
@media (max-width: 768px) {
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .slide-meta {
        flex-direction: column;
        gap: 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

/* ===== LOADING ANIMATION FOR GAMES GRID ===== */
.games-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.games-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== SEARCH SUGGESTIONS ===== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-suggestion:hover {
    background-color: #f8f9fa;
}

.search-suggestion:last-child {
    border-bottom: none;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .back-to-top,
    .loading-screen,
    .error-message {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .game-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-banner {
        background: white !important;
        color: black !important;
    }

    .btn {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
}

/* ===== POLICY PAGES STYLES ===== */
.policy-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.policy-header {
    text-align: center;
    margin-bottom: 60px;
}

.policy-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.policy-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 10px;
}

.last-updated {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-section-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.policy-section-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section-item h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section-item p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 15px;
}

.policy-section-item ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-section-item li {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 8px;
}

.policy-section-item a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.policy-section-item a:hover {
    color: #4ecdc4;
    text-decoration: underline;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-method {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.contact-method h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-method p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #4ecdc4;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.contact-form-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

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

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

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #5a6c7d;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.faq-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-item p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Social Section */
.social-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.social-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.social-section p {
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.social-icon {
    font-size: 1.3rem;
}

.social-text {
    font-size: 1rem;
}

/* ===== RESPONSIVE STYLES FOR POLICY/CONTACT PAGES ===== */
@media (max-width: 768px) {
    .policy-content,
    .contact-form-section,
    .faq-section,
    .social-section {
        padding: 25px;
        margin: 0 15px;
    }

    .policy-title,
    .contact-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .social-links-large {
        flex-direction: column;
        align-items: center;
    }

    .social-link-large {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .policy-section,
    .contact-section {
        padding: 40px 0;
    }

    .policy-content,
    .contact-form-section,
    .faq-section,
    .social-section {
        padding: 20px;
        margin: 0 10px;
    }

    .policy-title,
    .contact-title {
        font-size: 1.8rem;
    }

    .policy-section-item h2 {
        font-size: 1.3rem;
    }

    .contact-method {
        padding: 20px;
    }

    .method-icon {
        font-size: 2.5rem;
    }

    /* Footer mobile optimization */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    .social-links {
        justify-content: center;
        gap: 20px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
