/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maple-red: #D73B2A;
    --forest-green: #2D5016;
    --meadow-green: #7FB069;
    --sky-blue: #4A90E2;
    --snow-white: #F8F9FA;
    --birch-beige: #F4E8D8;
    --moose-brown: #5C4033;
    --amber-gold: #D4A574;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--moose-brown);
    background-color: var(--snow-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--maple-red), #B8321F);
    color: white;
    box-shadow: 0 4px 12px rgba(215, 59, 42, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 59, 42, 0.4);
}

.btn-secondary {
    background: var(--amber-gold);
    color: var(--moose-brown);
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-contact {
    background: var(--forest-green);
    color: white;
}

.btn-contact:hover {
    background: #234011;
}

.btn-game {
    background: var(--meadow-green);
    color: white;
    width: 100%;
}

.btn-game:hover {
    background: #6FA059;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--moose-brown);
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    font-size: 32px;
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--moose-brown);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--maple-red);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--moose-brown);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--birch-beige) 0%, var(--meadow-green) 100%);
    opacity: 0.3;
}

.hero-background::before {
    content: '🍁';
    position: absolute;
    font-size: 300px;
    opacity: 0.1;
    right: -50px;
    top: -50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, -50px) rotate(-5deg); }
    75% { transform: translate(40px, -20px) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--forest-green);
    margin-bottom: 20px;
    animation: fade-in-up 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--moose-brown);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-up 0.8s ease 0.2s backwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fade-in-up 0.8s ease 0.4s backwards;
}

.hero-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease 0.6s backwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 32px;
}

.feature-text {
    font-weight: 600;
    color: var(--forest-green);
}

/* Games Section */
.games-section {
    padding: 80px 20px;
    background: white;
}

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

.section-header h2 {
    font-size: 42px;
    color: var(--forest-green);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--moose-brown);
    opacity: 0.8;
}

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

.game-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-card h3 {
    font-size: 28px;
    color: var(--forest-green);
    margin-bottom: 15px;
}

.game-card p {
    margin-bottom: 25px;
    color: var(--moose-brown);
    opacity: 0.8;
    line-height: 1.8;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--birch-beige), var(--snow-white));
}

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

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px var(--shadow-lg);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    color: var(--forest-green);
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--moose-brown);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--forest-green);
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--amber-gold);
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.footer-disclaimer h4 {
    color: var(--amber-gold);
    margin-bottom: 15px;
}

.footer-disclaimer p {
    margin-bottom: 15px;
    line-height: 1.8;
    opacity: 0.95;
}

.help-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.help-links a {
    color: var(--amber-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.help-links a:hover {
    color: white;
}

.footer-contact {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-contact p {
    margin: 5px 0;
    opacity: 0.95;
}

.footer-contact strong {
    color: var(--amber-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--forest-green);
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--moose-brown);
    line-height: 1.8;
}

.age-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.age-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.age-checkbox label {
    cursor: pointer;
    user-select: none;
}

.modal-overlay.hidden {
    display: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--moose-brown);
    color: white;
    padding: 20px;
    z-index: 999;
    box-shadow: 0 -2px 10px var(--shadow);
    animation: slide-up 0.3s ease;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--amber-gold);
}

.cookie-banner.hidden {
    display: none;
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--forest-green), var(--meadow-green));
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-content h2 {
    color: var(--forest-green);
    font-size: 32px;
    margin: 40px 0 20px;
}

.page-content h3 {
    color: var(--moose-brown);
    font-size: 24px;
    margin: 30px 0 15px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Game Page Styles */
.game-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h1 {
    font-size: 42px;
    color: var(--forest-green);
    margin-bottom: 15px;
}

.game-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: var(--moose-brown);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--forest-green);
    margin-top: 5px;
}

.game-board {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 30px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .page-header h1 {
        font-size: 36px;
    }
}