/* Custom Pixel Font */
@font-face {
    font-family: 'Press Start 2P';
    src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
}

:root {
    --jungle-primary: #2E7D32;
    --jungle-secondary: #7CB342;
    --jungle-accent: #F9A825;
    --jungle-ground: #5D4037;
    --jungle-undergrowth: #8D6E63;
    --jungle-light: #F1F8E9;
    --jungle-dark: #1B5E20;
    --jungle-neutral: #616161;
    --jungle-sunlight: #FFF9C4;

    --bg-primary: var(--jungle-light);
    --bg-secondary: var(--jungle-undergrowth);
    --bg-accent: var(--jungle-primary);

    --btn-primary-bg: var(--jungle-secondary);
    --btn-primary-text: var(--jungle-light);
    --btn-secondary-bg: var(--jungle-accent);
    --btn-secondary-text: var(--jungle-dark);
    --btn-neutral-bg: var(--jungle-neutral);
    --btn-neutral-text: var(--jungle-light);

    --pixel-size: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
}

body {
    background-color: var(--bg-primary);
    color: var(--jungle-dark);
    overflow-x: hidden;
    line-height: 1.6;
    
}
::-webkit-scrollbar{
    display: none;
}

/* Pixel Art Styling */
.pixel-border {
    border-style: solid;
    border-width: var(--pixel-size);
    border-image-slice: 2;
    border-image-width: 2;
    border-image-repeat: stretch;
    border-image-source: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="UTF-8" ?><svg version="1.1" width="8" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h8v8H0z" fill="%232E7D32"/><path d="M0 0h8v1H0zM0 7h8v1H0zM0 0h1v8H0zM7 0h1v8H7z" fill="%231B5E20"/></svg>');
    image-rendering: pixelated;
}

/* Header & Navigation */
header {
    background-color: var(--jungle-dark);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 var(--pixel-size) 0 var(--jungle-ground);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.logo h1 {
    color: var(--jungle-accent);
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 var(--jungle-ground);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--jungle-light);
    text-decoration: none;
    font-size: 0.8rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--jungle-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(27, 94, 32, 0.7), rgba(27, 94, 32, 0.5)),
        url('https://images.unsplash.com/photo-1476231682828-37e571bc172f?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    color: var(--jungle-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--jungle-ground), transparent);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    transform: translateY(-50px);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 0 var(--jungle-ground);
    animation: float 3s ease-in-out infinite;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 2px 2px 0 var(--jungle-dark);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--jungle-accent);
    color: var(--jungle-dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--jungle-ground);
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--jungle-ground);
}

.cta-button:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.monkey-sprite {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2" y="2" width="12" height="12" fill="%23F9A825"/><rect x="4" y="4" width="2" height="2" fill="%231B5E20"/><rect x="10" y="4" width="2" height="2" fill="%231B5E20"/><rect x="6" y="8" width="4" height="2" fill="%231B5E20"/><rect x="4" y="10" width="8" height="2" fill="%236D4C41"/></svg>');
    background-size: contain;
    image-rendering: pixelated;
    animation: swing 5s infinite ease-in-out;
    z-index: 3;
}

.monkey-sprite:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.monkey-sprite:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.monkey-sprite:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: var(--jungle-light);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, var(--jungle-ground), transparent);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.pixel-frame {
    width: 100%;
    height: 400px;
    background-color: var(--jungle-secondary);
    position: relative;
    padding: var(--pixel-size);
    box-shadow: 8px 8px 0 var(--jungle-ground);
}

.pixel-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--jungle-dark);
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--jungle-accent);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Games Section */
.games {
    padding: 5rem 2rem;
    background-color: var(--jungle-undergrowth);
    position: relative;
}

.games::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, var(--jungle-light), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--jungle-light);
    font-size: 2rem;
    text-shadow: 4px 4px 0 var(--jungle-dark);
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.game-card {
    width: 220px;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.game-card:hover .game-card-inner {
    transform: rotateY(180deg);
}

.game-card-front,
.game-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-shadow: 8px 8px 0 var(--jungle-ground);
}

.game-card-front {
    background-color: var(--jungle-secondary);
    color: var(--jungle-light);
}

.game-card-back {
    background-color: var(--jungle-accent);
    color: var(--jungle-dark);
    transform: rotateY(180deg);
    justify-content: space-between;
}

.game-icon {
    width: 100px;
    height: 100px;
    background-color: var(--jungle-primary);
    margin-bottom: 1rem;
    image-rendering: pixelated;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.game-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.game-description {
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.play-button {
    padding: 0.7rem 1.5rem;
    background-color: var(--jungle-dark);
    color: var(--jungle-light);
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 var(--jungle-ground);
}

.play-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--jungle-ground);
}

/* Storyline Section */
.storyline {
    padding: 5rem 2rem;
    background-color: var(--jungle-primary);
    color: var(--jungle-light);
    position: relative;
}

.storyline::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, var(--jungle-undergrowth), transparent);
}

.storyline-container {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--jungle-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--jungle-accent);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--jungle-dark);
    position: relative;
    box-shadow: 8px 8px 0 var(--jungle-ground);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--jungle-accent);
}

.timeline-content p {
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Feedback Section */
.feedback {
    padding: 5rem 2rem;
    background-color: var(--jungle-light);
    position: relative;
}

.feedback::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, var(--jungle-primary), transparent);
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feedback-card {
    background-color: var(--jungle-light);
    padding: 1.5rem;
    box-shadow: 8px 8px 0 var(--jungle-ground);
    border: 4px solid var(--jungle-dark);
    position: relative;
}

.feedback-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: var(--jungle-accent);
    opacity: 0.3;
    font-family: serif;
}

.feedback-text {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--jungle-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--jungle-dark);
}

.author-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.7rem;
    color: var(--jungle-neutral);
}

/* Footer */
footer {
    background-color: var(--jungle-dark);
    color: var(--jungle-light);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo h3 {
    font-size: 1.2rem;
    color: var(--jungle-accent);
}

.footer-about p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--jungle-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--jungle-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--jungle-accent);
    color: var(--jungle-dark);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--jungle-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--jungle-light);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--jungle-accent);
}

.contact-info {
    font-size: 0.8rem;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jungle-primary);
    font-size: 0.7rem;
    color: var(--jungle-neutral);
}

.youtube-logo {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    transition: transform 0.3s ease;
}

.youtube-logo:hover {
    transform: scale(1.1);
}

.youtube-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--jungle-accent);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav h1 {
        z-index: 1000;
    }

    .hero .monkey-sprite {
        z-index: 1;
    }


    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .nav-links {
        display: none;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0;
    }
}