/* Root Variables */
:root {
    --forest-green: #2d5016;
    --moss-green: #4a7c59;
    --earth-brown: #8b4513;
    --bark-brown: #654321;
    --mist-white: rgba(255, 255, 255, 0.8);
    --glow-yellow: #ffd700;
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --stone-gray: #696969;
    --leaf-fall: #8fbc8f;
}

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

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--forest-green) 0%, #1a3d0a 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* Background Animation */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        url('/public/asstes/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Fireflies Animation */
.fireflies {
    position: absolute;
    width: 100%;
    height: 100%;
}

.fireflies::before,
.fireflies::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--glow-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-yellow), 0 0 20px var(--glow-yellow);
    animation: firefly 8s infinite ease-in-out;
}

.fireflies::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.fireflies::after {
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes firefly {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
    50% {
        transform: translateY(-60px) translateX(-10px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(-30px);
        opacity: 0.6;
    }
}

/* Fog Layers */
.fog-layer {
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(90deg, transparent, var(--mist-white), transparent);
    opacity: 0.3;
    animation: drift 20s infinite linear;
}

.fog-1 {
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.fog-2 {
    top: 30%;
    left: -20%;
    animation-duration: 35s;
    animation-delay: -10s;
}

.fog-3 {
    top: 60%;
    left: -15%;
    animation-duration: 30s;
    animation-delay: -20s;
}

@keyframes drift {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(100px);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--moss-green);
}

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

.nav-logo h2 {
    color: var(--glow-yellow);
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--glow-yellow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(74, 124, 89, 0.3);
    backdrop-filter: blur(5px);
}

.nav-link:hover,
.nav-link.active {
    background: var(--moss-green);
    box-shadow: 0 0 15px rgba(74, 124, 89, 0.5);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

.hero-content {
    max-width: 800px;
    color: white;
    z-index: 1;
}

.bark-font {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px var(--shadow-dark);
    background: linear-gradient(45deg, var(--glow-yellow), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--glow-yellow);
    }
    to {
        text-shadow: 0 0 30px var(--glow-yellow), 0 0 40px var(--glow-yellow);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--mist-white);
    text-shadow: 1px 1px 3px var(--shadow-dark);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Stone Button */
.stone-button {
    background: linear-gradient(145deg, var(--stone-gray), var(--bark-brown));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.stone-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(74, 124, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stone-button:active {
    transform: translateY(-1px);
}

/* Section Titles */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--glow-yellow);
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

.feature-card {
    background: rgba(45, 80, 22, 0.8);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--moss-green);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--glow-yellow);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-card h3 {
    color: var(--glow-yellow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.feature-card p {
    color: white;
    line-height: 1.8;
}

/* Games Section */
.games-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.9), rgba(26, 61, 10, 0.9));
}

.games-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.game-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-card.active {
    display: block;
    opacity: 1;
}

.wooden-frame {
    background: 
        linear-gradient(45deg, var(--bark-brown), var(--earth-brown)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0 0h100v100H0z" fill="%23654321"/><path d="M20 20h60v60H20z" fill="%238b4513"/></svg>');
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    border: 3px solid var(--bark-brown);
}

.wooden-frame img {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--moss-green);
}

.game-info h3 {
    color: var(--glow-yellow);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.game-info p {
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.play-button {
    margin-top: 1rem;
}

.slider-controls {
    text-align: center;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--moss-green);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--glow-yellow);
    color: var(--forest-green);
    transform: scale(1.1);
}

/* About Preview */
.about-preview {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.4);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--moss-green);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.about-text {
    color: white;
    position: relative;
}

.about-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--glow-yellow);
    margin-bottom: 1.5rem;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.campfire {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--glow-yellow), orange, red);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 2s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        transform: rotate(-2deg) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(2deg) scale(1.1);
        opacity: 1;
    }
}

/* Disclaimer Section */
.disclaimer {
    padding: 4rem 0;
    background: rgba(45, 80, 22, 0.9);
}

.disclaimer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
}

.disclaimer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--glow-yellow);
}

.disclaimer-text {
    color: white;
}

.disclaimer-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--glow-yellow);
    margin-bottom: 1rem;
}

.disclaimer-text p {
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--forest-green), #0a1f05);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    border-top: 2px solid var(--moss-green);
}

.falling-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.falling-leaves::before,
.falling-leaves::after {
    content: '🍃';
    position: absolute;
    font-size: 1.5rem;
    animation: fall 10s infinite linear;
    opacity: 0.7;
}

.falling-leaves::before {
    left: 20%;
    animation-delay: 0s;
}

.falling-leaves::after {
    left: 70%;
    animation-delay: 5s;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(360deg);
        opacity: 0;
    }
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--glow-yellow);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--glow-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--moss-green);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--glow-yellow);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--moss-green);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(45, 80, 22, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .bark-font {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .disclaimer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .bark-font {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .stone-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}