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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FEECE2 0%, #F9D5A7 25%, #D8B4F8 75%, #A3C9A8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B5CF6;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: #6B7280;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B5CF6;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #8B5CF6;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sections */
.section {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.section.active {
    display: block;
}

/* Home Section */
.home-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.emoji {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.emoji:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.emoji:nth-child(2) { top: 60%; left: 85%; animation-delay: 1s; }
.emoji:nth-child(3) { top: 80%; left: 20%; animation-delay: 2s; }
.emoji:nth-child(4) { top: 30%; left: 80%; animation-delay: 3s; }
.emoji:nth-child(5) { top: 70%; left: 60%; animation-delay: 4s; }
.emoji:nth-child(6) { top: 40%; left: 30%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.main-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.typing-text {
    display: block;
    color: #8B5CF6;
    font-weight: 600;
    animation: typing 3s steps(20) 1s both;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #8B5CF6;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.glowing-title {
    display: block;
    background: linear-gradient(45deg, #8B5CF6, #EC4899, #F59E0B, #10B981);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    font-weight: 700;
    margin-top: 0.5rem;
}

@keyframes glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.5rem;
    color: #6B7280;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enter-btn {
    background: linear-gradient(45deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    animation: fadeInUp 1s ease-out 2.5s both;
}

.enter-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

/* Games Section */
.games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #8B5CF6;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.game-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.game-card h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-card p {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.play-btn {
    background: linear-gradient(45deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* About Section */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: #6B7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.feature {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.contact-content {
    margin-top: 2rem;
}

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

.contact-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-item h3 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #8B5CF6;
    font-weight: 500;
    margin: 0;
}

.contact-message {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-message p {
    font-size: 1.2rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #FEECE2, #F9D5A7);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #8B5CF6;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #EC4899;
}

/* Game Styles */
.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title {
    font-size: 2rem;
    color: #8B5CF6;
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-score {
    font-size: 1.2rem;
    color: #374151;
    font-weight: 600;
}

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

/* Balloon Pop Game */
.balloon-container {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatUp 4s linear infinite;
}

.balloon:hover {
    transform: scale(1.2);
}

@keyframes floatUp {
    from {
        bottom: -50px;
        opacity: 1;
    }
    to {
        bottom: 450px;
        opacity: 0;
    }
}

/* Words Game */
.word-display {
    font-size: 2rem;
    color: #8B5CF6;
    margin: 2rem 0;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.word-input {
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #D1D5DB;
    border-radius: 10px;
    margin: 1rem;
    text-align: center;
    width: 300px;
    max-width: 100%;
}

.word-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Riddles Game */
.riddle-text {
    font-size: 1.3rem;
    color: #374151;
    margin: 2rem 0;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
}

.riddle-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.riddle-option {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #D1D5DB;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.riddle-option:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* Memory Game */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(45deg, #8B5CF6, #EC4899);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: transparent;
}

.memory-card.flipped {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
}

.memory-card.matched {
    background: linear-gradient(45deg, #10B981, #059669);
    color: white;
}

.memory-card:hover:not(.flipped) {
    transform: scale(1.05);
}

/* Game Buttons */
.game-btn {
    background: linear-gradient(45deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.game-btn.secondary {
    background: linear-gradient(45deg, #6B7280, #4B5563);
}

/* Game Messages */
.game-message {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-weight: 600;
    text-align: center;
}

.game-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    border: 2px solid #10B981;
}

.game-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #DC2626;
    border: 2px solid #EF4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 1rem;
    }
    
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 300px;
    }
    
    .word-input {
        width: 250px;
    }
    
    .balloon-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
    }
}



/* Snake Game */
.snake-game-area {
  background: #2d3748;
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem 0;
}

.snake-canvas {
  background: #1a202c;
  border: 2px solid #4a5568;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.snake-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 200px;
  margin: 1rem auto;
}

.snake-control-btn {
  background: linear-gradient(45deg, #4a5568, #2d3748);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.snake-control-btn:hover {
  background: linear-gradient(45deg, #718096, #4a5568);
  transform: scale(1.05);
}

.snake-control-btn:nth-child(1) {
  grid-column: 2;
} /* Up */
.snake-control-btn:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
} /* Left */
.snake-control-btn:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
} /* Right */
.snake-control-btn:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
} /* Down */

.snake-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  color: white;
  font-weight: 600;
}

/* Number Guessing Game */
.number-game-area {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 2rem;
  color: white;
  text-align: center;
}

.number-display {
  font-size: 3rem;
  margin: 2rem 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.number-input {
  padding: 1rem;
  font-size: 1.5rem;
  border: none;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  margin: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.number-input:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.number-hint {
  font-size: 1.3rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.number-attempts {
  font-size: 1.1rem;
  margin: 1rem 0;
  opacity: 0.9;
}

/* Mobile Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

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

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 1000;
  }

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

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
  }
}


/* Snake Game */
.snake-game-area {
  background: #2d3748;
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem 0;
}

.snake-canvas {
  background: #1a202c;
  border: 2px solid #4a5568;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.snake-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 200px;
  margin: 1rem auto;
}

.snake-control-btn {
  background: linear-gradient(45deg, #4a5568, #2d3748);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.snake-control-btn:hover {
  background: linear-gradient(45deg, #718096, #4a5568);
  transform: scale(1.05);
}

.snake-control-btn:nth-child(1) {
  grid-column: 2;
} /* Up */
.snake-control-btn:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
} /* Left */
.snake-control-btn:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
} /* Right */
.snake-control-btn:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
} /* Down */

.snake-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  color: white;
  font-weight: 600;
}

/* Number Guessing Game */
.number-game-area {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 2rem;
  color: white;
  text-align: center;
}

.number-display {
  font-size: 3rem;
  margin: 2rem 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.number-input {
  padding: 1rem;
  font-size: 1.5rem;
  border: none;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  margin: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.number-input:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.number-hint {
  font-size: 1.3rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.number-attempts {
  font-size: 1.1rem;
  margin: 1rem 0;
  opacity: 0.9;
}

/* Mobile Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

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

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 1000;
    display: none;
  }

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

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
  }
}

.footer {
  background-color: #d6a1b5; /* soft pink from your palette */
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}

.footer-content p {
  margin: 0.3rem 0;
  letter-spacing: 0.5px;
}

