* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-padding-top: 50px; /* Adjust based on navbar height */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.logo-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-header img {
    height: 50px;
    width: auto;
}

.logo-header h1 {
    font-size: 1.5rem;
    color: #3a3a3a;
    font-weight: 600;
}

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

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    display: block;
}

nav a:hover {
    color: #f4c430;
}

.member-login {
    border: 2px solid #f4c430;
    padding: 8px 20px;
    border-radius: 5px;
    color: #f4c430;
    font-weight: 600;
}

.member-login:hover {
    background: #f4c430;
    color: #3a3a3a;
}

/* Hero Section */
.hero {
    background: #3a3a3a;
    color: white;
    padding: 60px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    padding-right: 40px;
}

.hero-left h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
}

.hero-tagline {
    font-size: 1.8rem;
    color: #f4c430;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-image {
    position: relative;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    color: #666;
    font-size: 1.2rem;
    padding: 40px;
    text-align: center;
}

.hero-right p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: white;
}

.cta-button {
    display: inline-block;
    background: #f4c430;
    color: #3a3a3a;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.5);
}

.hero-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 80px;
    opacity: 0.3;
}

/* Featured Section */
.featured {
    background: #f4c430;
    padding: 50px 20px;
}

.featured h2 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.featured-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card-icon {
    background: #3a3a3a;
    padding: 20px;
    text-align: center;
}

.featured-card-icon img {
    height: 60px;
    width: auto;
}

.featured-card-image {
    height: 300px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-content {
    padding: 30px;
    text-align: center;
}

.featured-card-content h3 {
    color: #3a3a3a;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.featured-button {
    display: inline-block;
    border: 2px solid #f4c430;
    color: #3a3a3a;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.featured-button:hover {
    background: #f4c430;
    color: white;
}

/* Welcome Section */
.welcome {
    background: #4a5a6a;
    color: white;
    padding: 60px 20px;
}

.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.welcome-image {
    position: relative;
    background: #3a4a5a;
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    background: #3a3a3a;
    padding: 15px;
    border-radius: 5px;
}

.welcome-icon img {
    height: 60px;
    width: auto;
}

.decorative-dots {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #f4c430 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.5;
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.welcome-signature {
    margin-top: 40px;
    font-style: italic;
}

.welcome-signature p {
    margin-bottom: 5px;
}

.join-button {
    display: inline-block;
    background: white;
    color: #4a5a6a;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
}

.join-button:hover {
    background: #f4c430;
    color: #3a3a3a;
}

/* Games List Section */
.games-list {
    padding: 60px 20px;
    background: white;
}

.games-list h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #3a3a3a;
    margin-bottom: 50px;
}

.games-scroller-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.games-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding-bottom: 10px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.games-scroller::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f4c430;
    background: white;
    color: #3a3a3a;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-btn:hover {
    background: #f4c430;
    color: #3a3a3a;
}

.game-card {
    width: 350px;
    height: 400px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;

    background-image: url('../assets/Game-Card/game-card-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(58, 58, 58, 0.1) 0%, rgba(58, 58, 58, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    z-index: 1;
}

.game-card-overlay h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

/* Map Section */
.map-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.map-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #3a3a3a;
}

.map-details {
    text-align: center;
    margin-bottom: 40px;
}

.map-details p {
    font-size: 1.2rem;
    color: #666;
    margin: 10px 0;
}

.map-details strong {
    color: #3a3a3a;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Footer */
footer {
    background: #3a3a3a;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin-bottom: 15px;
}

footer a {
    color: #f4c430;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-container,
    .welcome-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-left {
        padding-right: 0;
        text-align: center;
    }

    .hero-left h2 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

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

    .hero-right p {
        text-align: left;
    }

    .hero-image {
        min-height: 300px;
    }

    .featured-container {
        grid-template-columns: 1fr;
    }

    .featured h2 {
        font-size: 2rem;
    }

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

    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .logo-header h1 {
        font-size: 1.2rem;
    }

    .logo-header img {
        height: 40px;
    }

    .welcome-content h2,
    .games-list h2,
    .map-section h2 {
        font-size: 2rem;
    }

    .welcome-image {
        min-height: 300px;
    }

    .game-card {
        width: 280px;
        height: 350px;
    }

    .game-card-overlay h3 {
        font-size: 1.5rem;
    }

    .map-container iframe {
        height: 350px;
    }

    .detail-card {
        padding: 20px;
    }

    .cta-button,
    .join-button {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .featured-button {
        width: 100%;
        text-align: center;
        display: block;
        padding: 12px 20px;
    }

    .hero {
        padding: 40px 20px;
    }

    .featured,
    .welcome,
    .games-list,
    .map-section {
        padding: 40px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-left h2 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-right p {
        font-size: 1rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }

    .game-card {
        width: 250px;
        height: 320px;
    }

    .game-card-overlay h3 {
        font-size: 1.3rem;
    }

    .game-card-overlay {
        padding: 20px;
    }

    .featured h2,
    .welcome-content h2,
    .games-list h2,
    .map-section h2 {
        font-size: 1.8rem;
    }

    .map-details p {
        font-size: 1rem;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: #f4c430;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        width: 100%;
    }
}