/* --- Reset and Base Styles --- */
:root {
    --primary-color: #2c5c34; /* Dark Green from logo */
    --secondary-color: #f0f0f0;
    --accent-color: #ffd700; /* Gold for featured ribbon */
    --text-color: #333;
    --bg-color: #ffffff;
    --header-height: 80px;
    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Roboto', cursive;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-top: var(--header-height); /* Prevent content from hiding behind fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-title {
    font-family: var(--font-display);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Header and Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo-link {
    height: 60%;
}

.logo-img {
    height: 100%;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a:focus {
    color: #1a3a20;
}

.nav-links a:hover::after, .nav-links a:focus::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    padding: 0.5rem 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a::after {
    display: none; /* No underline for dropdown items */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mobile-nav-toggle {
    display: none;
}

/* --- Hero Carousel --- */
.hero-carousel-section {
    width: 100%;
    background-color: #111;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1600px; /* For widescreen feel */
    aspect-ratio: 16 / 8; /* Adjust as needed */
    margin: 0 auto;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.carousel-slide img, .carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    background-color: rgba(0,0,0,0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    z-index: 12;
}

.featured-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    z-index: 15;
}

.featured-ribbon span {
    position: absolute;
    display: block;
    width: 275px;
    padding: 15px 0;
    background-color: var(--accent-color);
    color: #333;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg) translateY(-40px) translateX(30px);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 1rem;
    font-size: 1.5rem;
    z-index: 20;
    transition: background-color 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev { left: 1rem; }
.carousel-button.next { right: 1rem; }

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: white;
}

/* --- About Section --- */
.about-section {
    background-color: var(--secondary-color);
    text-align: center;
}

.about-section h2 {
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Games Grid Page --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.game-card-container {
    text-align: center;
}

.game-card-container h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.game-card {
    aspect-ratio: 4 / 5;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.game-card::before { /* Shine effect */
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

.game-card-container:hover .game-card {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 92, 52, 0.3);
}

.game-card-container:hover .game-card::before {
    left: 120%;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 92, 52, 0.7); /* Dimming effect */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.game-card-container:hover .card-overlay {
    opacity: 0;
}

.play-button {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 5;
}

.game-card-container:hover .play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* --- Contact Page --- */
.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 92, 52, 0.2);
}

.button-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.button-primary:hover {
    background-color: #1a3a20;
    transform: translateY(-2px);
}

/* --- Privacy Page --- */
.text-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.text-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* --- Footer --- */
.main-footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0 0 0 30%; /* From top 0, right 0, bottom 0, left 30% */
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        gap: 2em;
        background: hsl(0 0% 100% / 0.9);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .nav-links[data-visible="true"] {
        transform: translateX(0%);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 9999;
        background-color: transparent;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(44, 92, 52)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        width: 2rem;
        height: 2rem;
        border: 0;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
    }

    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(44, 92, 52)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }

    .dropdown .dropbtn::after {
        content: ' ▾';
    }

    .dropdown-content {
        position: static;
        display: block;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        background-color: transparent;
    }

    .carousel-caption {
        font-size: 1rem;
        bottom: 1rem;
        left: 1rem;
    }

    .carousel-button {
        padding: 0.5rem;
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }

    .page-title {
        font-size: 1.5rem;
    }
}