:root {
    --primary-color: #5C9E31;
    --secondary-color: #8B4513;
    --accent-color: #FFD700;
    --text-color: #2C3E50;
    --background-color: #F5F5DC;
    --card-background: #FFFFFF;
    --pixel-size: 2px;
  }

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

body {
    font-family: 'VT323', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

.pixel-cursor {
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    image-rendering: pixelated;
}

.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/background.png') repeat;
    z-index: -1;
    animation: parallax 20s linear infinite;
}

@keyframes parallax {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

h1, h2, h3 {
    font-family: 'Press Start 2P', cursive;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 var(--secondary-color);
}

.pixel-text {
    position: relative;
    animation: pixel-text 0.5s steps(2) infinite;
}

@keyframes pixel-text {
    0% { transform: translate(0, 0); }
    50% { transform: translate(var(--pixel-size), var(--pixel-size)); }
}

header {
    background-color: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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: 40px;
    height: 40px;
    image-rendering: pixelated;
}

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

nav a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    color: var(--background-color);
    transform: translateY(-2px);
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    /* padding-top: 10rem; */
    position: relative;
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.pixel-cloud {
    position: absolute;
    width: 200px;
    height: 100px;
    background: url('assets/cloud.png') no-repeat;
    animation: float 20s linear infinite;
    image-rendering: pixelated;
}

.pixel-sun {
    position: absolute;
    width: 100px;
    height: 100px;
    background: url('assets/sun.png') no-repeat;
    top: 50px;
    right: 100px;
    animation: rotate 20s linear infinite;
    image-rendering: pixelated;
}

@keyframes float {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.pixel-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-family: 'Press Start 2P', cursive;
}

.pixel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pixel-button:active {
    transform: translateY(0);
}

.demo-section {
    background-image: url('assets/gameplay0.png');
    background-size: cover;
    background-position: center;
    height: 500px; /* or 100vh for full screen height */
    width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  

.about-content {
    /* display: grid; */
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    font-size: x-large;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 5px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.screenshot-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.screenshot {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
    image-rendering: pixelated;
}

.screenshot-container:hover .screenshot {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.screenshot-container:hover .screenshot-overlay {
    transform: translateY(0);
}

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

.character-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    image-rendering: pixelated;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.team-member {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    image-rendering: pixelated;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.member-social a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.member-social a:hover {
    color: var(--accent-color);
}

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

.instruction-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.instruction-card:hover {
    transform: translateY(-5px);
}

.instruction-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.footer-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

.demo-text {
    font-size: x-large;
}

.character-text {
    font-size: x-large;
}

.bio-text {
    font-size: larger;
}

/* === Hamburger Menu === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: 0.3s;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
    nav ul {
      display: none;
      flex-direction: column;
      gap: 1rem;
      text-align: center;
      margin-top: 1rem;
    }
    nav ul.open {
      display: flex;
    }
  }
  
  /* === Modal === */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .modal.hidden {
    display: none;
  }
  
  .modal-content {
    position: relative;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    width: 90vw;
    max-width: 800px;
    height: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  .modal-content iframe {
    width: 100%;
    height: 45vh;
    border: none;
  }
  
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--accent-color);
    font-family: 'Press Start 2P', cursive;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
  }
  
  /* === AOS Animation Reset === */
  [data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  [data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
  }
  
  