:root {
    --primary: #006400;
    --primary-light: #124b12;
    --primary-dark: #004000;
    --accent: #90EE90;
    --secondary: #FFD700;
    --text: #E0E0E0;
    --text-dark: #333333;
    --background: #001400;
    --card-bg: #013201;
    --header-bg: rgba(0, 100, 0, 0.92);
    --border: #2E8B57;
}

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 80px; /* Adjust as needed */
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 1.2rem 2rem;
    z-index: 1000;
    border-bottom: 2px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--secondary);
    transform: scale(1.08);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--secondary);
    color: var(--accent);
}

/* Active link indication */
.nav-links a.active {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(144,238,144,0.15);
}

/* Also highlight active in mobile menu */
.nav-links.mobile-visible a.active {
    background: var(--accent);
    color: var(--primary-dark) !important;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    transition: all 0.3s ease;
}

.nav-links.mobile-hidden {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--header-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-visible {
        display: flex;
    }
}

/* Hero Section */
.hero {
    padding-top: 100px;
    min-height: 85vh;
    /* Use a scenic trail image for the hero background. Image from Unsplash (external) */
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Fallback gradient for very small or blocked image loads */
    background-color: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Decorative SVG layer (kept subtle) */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="%2390EE90" opacity="0.18"/><circle cx="75" cy="75" r="1.5" fill="%23FFD700" opacity="0.18"/><circle cx="50" cy="10" r="1" fill="%2390EE90" opacity="0.12"/></svg>');
    animation: float 20s ease-in-out infinite;
    z-index: 1; /* sit above the image but below content */
}

/* Dark overlay to improve text contrast on the image */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.35));
    z-index: 1; /* same stacking context as decorative layer */
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInHero 1.2s ease-in-out both;
}

/* Elegant gradient title */
.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ffae42 0%, #ff7b00 40%, #c94b00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 25px rgba(255, 128, 0, 0.25);
    animation: floatTitle 5s ease-in-out infinite;
}

/* Refined supporting text */
.hero p {
    font-size: 1.25rem;
    color: #f5f5f5;
    margin-bottom: 2.2rem;
    line-height: 1.7;
    opacity: 0.95;
    animation: fadeUpText 1.2s ease-in-out 0.3s both;
}

/* ✨ Button Style (optional addition for CTA) */
.hero .btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff7b00, #ffae42);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 126, 0, 0.3);
    transition: all 0.3s ease;
}
.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 126, 0, 0.45);
}
/* Play Now Button */
.btn-play {
  display: inline-block;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  color: #fff;
  padding: 14px 38px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(229, 46, 113, 0.4);
  transition: all 0.3s ease;
}

.btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(229, 46, 113, 0.6);
  background: linear-gradient(90deg, #e52e71, #ff8a00);
}

/* ✨ Smooth Animations */
@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatTitle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeUpText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Game Frame */
.game-container {
    max-width: 900px;
    margin: 3rem auto;
    aspect-ratio: 16/9;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 100, 0, 0.25);
    border: 3px solid var(--border);
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

/* Reusable section title to replace inline styles */
.section-title {
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* About section image layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

/* Make the about card appear landscape (wide) on larger screens */
.about-card {
    /* Keep the content-card visual style but allow flexible height */
    padding: 2.5rem;
    overflow: visible;
    border-radius: 20px;
    display: block;
    max-width: 900px;
    width: 100%;
}

.about-card .about-grid {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    align-items: stretch; /* let both columns expand with content */
}

@media (min-width: 1000px) {
    .about-card {
        /* keep a wide, pleasant layout on desktop but avoid forcing height */
        display: block;
    }
    .about-card .about-grid {
        padding: 2rem;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    .about-card .about-img img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
}

/* Safe image container so tall images don't push layout or hide content */
.about-img {
    display: block;
    max-height: 680px;
    overflow: hidden;
    border-radius: 12px;
}

.about-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 3px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    object-fit: cover;
}

.about-text p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

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

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

/* Card Styles */
.content-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 700px;
    border: 2px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 100, 0, 0.15);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 100, 0, 0.25);
}

.content-card h1, .content-card h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-card p, .content-card li {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.content-card ul {
    text-align: left;
    margin: 1rem 0;
}

.content-card a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
}

.content-card a:hover {
    color: var(--accent);
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #FF6B6B;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.3);
}

.disclaimer-box h2 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Features Grid */
.features-container {
    margin-top: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 100, 0, 0.2);
    border-color: var(--accent);
}

.feature-card h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text);
    font-size: 1.05rem;
}

/* Reviews Section */
.reviews {
    background: var(--background);
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.review-card p {
    color: var(--text);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.review-card span {
    color: var(--secondary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #000800 100%);
    padding: 4rem 2rem 2rem 2rem;
    border-top: 3px solid var(--border);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--border);
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 8px 32px rgba(0, 100, 0, 0.15);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    transform: translateY(-2px);
}

/* Disclaimer Popup */
.disclaimer-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 3px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 100, 0, 0.3);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    display: none;
    color: var(--text);
}

.disclaimer-popup.show {
    display: block;
    animation: popIn 0.4s ease-out;
}

.disclaimer-popup h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
}

.disclaimer-popup ul {
    margin: 1.5rem 0;
    color: var(--text);
}

.disclaimer-popup button {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.disclaimer-popup button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    transform: translateY(-3px);
}

/* Animations */
@keyframes popIn {
    from {
        transform: translate(-50%, -60%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .game-container {
        height: auto;
        margin: 2rem 1rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.btn-read-disclaimer {
    margin-top: 1.5rem;
    display: inline-block;
}