/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farm Theme Colors */
    --color-primary: #8B7355; /* Warm brown */
    --color-secondary: #A67C52; /* Light brown */
    --color-accent: #6B8E23; /* Olive green */
    --color-accent-light: #9ACD32; /* Light green */
    --color-background: #F5F5DC; /* Beige */
    --color-background-dark: #E6E6D3; /* Dark beige */
    --color-text: #2F2F2F; /* Dark gray */
    --color-text-light: #5A5A5A; /* Medium gray */
    --color-white: #FFFFFF;
    --color-free-badge: #FF6B35; /* Warm orange */
    --color-border: #D4A574; /* Tan border */
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.03) 2px,
            rgba(139, 115, 85, 0.03) 4px
        );
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Banner */
.age-banner {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    padding: 12px 20px;
    text-align: center;
    border-bottom: 3px solid var(--color-primary);
}

.age-banner p {
    color: var(--color-white);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.age-icon {
    width: 21px;
    height: 21px;
    display: inline-block;
    vertical-align: middle;
}

/* Header */
.header {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-bottom: 5px solid var(--color-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--color-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.header-hero {
    padding: 60px 20px;
    text-align: center;
}

.main-title {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-background-dark);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-border);
    color: var(--color-white);
}

/* Games Section */
.games-section {
    padding: 80px 20px;
    background: var(--color-white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 30px;
    font-weight: bold;
}

.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    margin: 30px auto;
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.game-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.15);
    transition: all 0.3s ease;
    border: 3px solid var(--color-border);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.25);
    border-color: var(--color-accent);
}

.game-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.btn-play {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    animation: pulse-button 2s infinite;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

@keyframes pulse-button {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.free-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-free-badge);
    color: var(--color-white);
    padding: 8px 20px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-white);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.game-title {
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    margin: 0;
}

.game-title {
    color: var(--color-primary);
}

.cta-center {
    text-align: center;
    margin-top: 50px;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: var(--color-background-dark);
}

.content-text {
    max-width: 900px;
    margin: 0 auto;
}

.content-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
    background: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--color-background);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.15);
    border-color: var(--color-accent);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.7;
}

.testimonial-author {
    font-weight: bold;
    color: var(--color-primary);
    text-align: right;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
}

.cta-section .section-title {
    color: var(--color-white);
}

.cta-section .content-text p {
    color: rgba(255, 255, 255, 0.95);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--color-primary) 0%, #6B5B47 100%);
    padding: 50px 20px 20px;
    border-top: 5px solid var(--color-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section {
    color: var(--color-white);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-white);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-accent-light);
    padding-left: 5px;
}

.footer-age-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: block;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-age-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-disclaimer {
    max-width: 900px;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.6;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 20px;
}

/* Popups */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--color-accent);
}

.popup-content h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.popup-content p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-buttons button {
    cursor: pointer;
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Overlay for mobile menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-radius: 8px;
        font-size: 18px;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateX(5px);
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-hero {
        padding: 40px 20px;
    }
    
    .age-banner p {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .games-section,
    .about-section,
    .testimonials-section,
    .cta-section {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .popup-content {
        padding: 25px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-buttons button {
        width: 100%;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .games-section,
    .about-section,
    .testimonials-section,
    .cta-section {
        padding: 40px 15px;
    }
    
    .game-card {
        border-radius: 8px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .footer {
        padding: 40px 15px 15px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
}

