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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #adadad; /* Darker background */
    color: #6e6e6e;
}

.container {
    width: 90%; /* Wider container */
    max-width: 1200px; /* Max width for large screens */
    margin: auto;
    overflow: hidden;
    padding: 0 15px; /* Added padding for smaller screens */
}

/* Header & Nav */
header {
    background: #adadad;
    color: #adadad;
    padding: 1rem 0;
    border-bottom: 3px solid #11661e; /* Brighter accent color */
    box-shadow: 0 2px 10px #adadad;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

nav .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #11661e;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links li a {
    color: #4f4f4f;
    text-decoration: none;
    font-weight: 1000;
    padding: 5px 0;
    
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #11661e;
    border-bottom: 2px solid #11661e;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #11661e;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px #11661e;
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 10px; /* Space from parent link */
}

.dropdown-content a {
    color: #e0e0e0 !important; /* Override parent link color */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: none !important; /* Remove border from dropdown items */
}

.dropdown-content a:hover {
    background-color: #11661e;
    color: #fff !important;
    border-radius: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to the right */
    background: #414141;
    border-radius: 10px;
    overflow: hidden;
    padding: 2px 5px;
}

.search-bar input {
    border: none;
    background: none;
    padding: 10px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    width: 200px;
}

.search-bar button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-bar button:hover {
    color: #7a7c7a;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-left: 20px;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(166, 164, 164, 0.7), rgba(0,0,0,0.7)), url('banner.png') no-repeat center center/cover;
    height: 600px; /* Taller hero */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 0 20px; /* Add padding for smaller screens */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem; /* Larger heading */
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn.primary {
    background: #11661e;
    color: #fff;
}

.btn.primary:hover {
    background: #848484;
    transform: translateY(-2px);
}

.btn.secondary {
    background: #444;
    color: #fff;
    border: 2px solid #666;
}

.btn.secondary:hover {
    background: #555;
    border-color: #888;
    transform: translateY(-2px);
}

.btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn.large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Game Sections */
.game-section {
    padding: 60px 0;
    text-align: center;
}

.game-section h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #11661e;
    position: relative;
    display: inline-block;
}

.game-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: #11661e;
    border-radius: 2px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Slightly smaller cards */
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: #555;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex; /* Use flex for internal layout */
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.6);
}

.game-card img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #11661e;
}

.game-card h3 {
    font-size: 1.6rem;
    margin: 15px 15px 5px;
    color: #fff;
}

.game-card p {
    font-size: 1rem;
    color: #b0b0b0;
    margin: 0 15px 15px;
    flex-grow: 1; /* Pushes actions to the bottom */
}

.card-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px 15px 15px;
    gap: 10px;
}

.card-actions .btn {
    flex: 1; /* Make buttons take equal width */
}

/* Call to Action Section */
.call-to-action {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('footer.png') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

.call-to-action h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.call-to-action p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: #adadad;
    color: #000000;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid #11661e;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping */
    margin-bottom: 30px;
    gap: 30px; /* Space between sections */
}

.footer-section {
    flex: 1; /* Equal width sections */
    min-width: 250px; /* Minimum width before wrapping */
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #11661e;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
}

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

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

.footer-section ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #11661e;
}

.social-icons a {
    color: #000000;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #11661e;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #000000;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links {
        margin-left: 40px; /* Adjust for mobile menu */
    }
    .search-bar {
        margin-top: 15px;
        order: 3; /* Move search bar below nav links on smaller screens */
        flex-basis: 100%; /* Take full width */
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-links {
        display: none; /* Hide nav links by default for mobile */
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 15px;
        background: #000000;
        padding: 15px 0;
        border-radius: 5px;
        order: 2; /* Position after logo/toggle */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .dropdown-content {
        position: static; /* Make dropdown flow naturally */
        background: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }

    .dropdown-content a {
        padding-left: 30px !important; /* Indent dropdown items */
    }

    .menu-toggle {
        display: flex; /* Show toggle button */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .game-section h2 {
        font-size: 2.2rem;
    }

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

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

    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 30px;
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }

    .call-to-action h2 {
        font-size: 2.5rem;
    }
    .call-to-action p {
        font-size: 1.1rem;
    }
    .call-to-action .btn.large {
        display: block;
        width: 90%;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons .btn {
        margin: 0;
    }
    .search-bar input {
        width: 150px;
    }
    .footer-section h3 {
        font-size: 1.5rem;
    }
}