:root {
  /* Color Palette */
  --color-forest-green-100: #e6f0ea;
  --color-forest-green-200: #c4dbc9;
  --color-forest-green-300: #9fc6a8;
  --color-forest-green-400: #7aaf87;
  --color-forest-green-500: #569966;
  --color-forest-green-600: #447a51;
  --color-forest-green-700: #335c3d;
  --color-forest-green-800: #213d29;
  --color-forest-green-900: #101e14;
  
  --color-deep-blue-100: #e6ebf2;
  --color-deep-blue-200: #c4d0df;
  --color-deep-blue-300: #9fb5cc;
  --color-deep-blue-400: #7a9ab9;
  --color-deep-blue-500: #567fa6;
  --color-deep-blue-600: #446685;
  --color-deep-blue-700: #334d64;
  --color-deep-blue-800: #213342;
  --color-deep-blue-900: #101921;
  
  --color-warm-brown-100: #f2ebe6;
  --color-warm-brown-200: #dfcfc4;
  --color-warm-brown-300: #ccb39f;
  --color-warm-brown-400: #b9977a;
  --color-warm-brown-500: #a67b56;
  --color-warm-brown-600: #856244;
  --color-warm-brown-700: #644a33;
  --color-warm-brown-800: #423121;
  --color-warm-brown-900: #211810;
  
  --color-sandy-beige-100: #f7f5ed;
  --color-sandy-beige-200: #eae6d3;
  --color-sandy-beige-300: #ddd6b9;
  --color-sandy-beige-400: #d1c79f;
  --color-sandy-beige-500: #c4b885;
  --color-sandy-beige-600: #9d936a;
  --color-sandy-beige-700: #766f50;
  --color-sandy-beige-800: #4e4a35;
  --color-sandy-beige-900: #27251a;
  
  --color-sunrise-orange-100: #feeee6;
  --color-sunrise-orange-200: #fcd4c4;
  --color-sunrise-orange-300: #fab99f;
  --color-sunrise-orange-400: #f89f7a;
  --color-sunrise-orange-500: #f68456;
  --color-sunrise-orange-600: #c56a44;
  --color-sunrise-orange-700: #944f33;
  --color-sunrise-orange-800: #633521;
  --color-sunrise-orange-900: #311a10;
  
  --color-twilight-purple-100: #efe6f2;
  --color-twilight-purple-200: #d8c4df;
  --color-twilight-purple-300: #c09fcc;
  --color-twilight-purple-400: #a97ab9;
  --color-twilight-purple-500: #9256a6;
  --color-twilight-purple-600: #744485;
  --color-twilight-purple-700: #573364;
  --color-twilight-purple-800: #3a2142;
  --color-twilight-purple-900: #1d1021;
  
  /* Text colors */
  --color-text-dark: #213342;
  --color-text-light: #f7f5ed;
  --color-text-muted: #766f50;
  
  /* Font settings */
  font-family: 'Montserrat', system-ui, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  /* Theme defaults */
  color: var(--color-text-dark);
  background-color: var(--color-sandy-beige-100);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-sandy-beige-100);
  color: var(--color-text-dark);
  line-height: 1.6;
}

a {
  color: var(--color-deep-blue-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-forest-green-500);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.primary-btn {
  background-color: var(--color-forest-green-500);
  color: var(--color-sandy-beige-100);
}

.primary-btn:hover {
  background-color: var(--color-forest-green-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
  background-color: var(--color-deep-blue-500);
  color: var(--color-sandy-beige-100);
}

.secondary-btn:hover {
  background-color: var(--color-deep-blue-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.play-btn {
  background-color: var(--color-sunrise-orange-500);
  color: var(--color-sandy-beige-100);
  padding: 10px 20px;
  font-weight: 600;
}

.play-btn:hover {
  background-color: var(--color-sunrise-orange-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background-color: rgba(247, 245, 237, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.scrolled {
  background-color: var(--color-forest-green-600);
  padding: 10px 0;
}

header.scrolled a {
  color: var(--color-sandy-beige-100);
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-forest-green-600);
  margin: 0;
  transition: color 0.3s ease;
}

header.scrolled .logo h1 {
  color: var(--color-sandy-beige-100);
}

.leaf-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  background: var(--color-forest-green-500);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E") no-repeat center center;
  transition: background 0.3s ease;
}

header.scrolled .leaf-icon {
  background: var(--color-sandy-beige-100);
}

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

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--color-forest-green-500);
}

header.scrolled nav ul li a:hover, 
header.scrolled nav ul li a.active {
  color: var(--color-sunrise-orange-300);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-forest-green-500);
  transition: width 0.3s ease;
}

header.scrolled nav ul li a::after {
  background-color: var(--color-sunrise-orange-300);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

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

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  background-color: var(--color-forest-green-600);
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

header.scrolled .menu-toggle span {
  background-color: var(--color-sandy-beige-100);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/bnnr.webp ');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  color: var(--color-sandy-beige-100);
}

.hero-content {
  max-width: 800px;
  animation: fadeIn 1.5s ease;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Features Section */
#features {
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--color-sandy-beige-100), var(--color-sandy-beige-200));
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-forest-green-700);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-forest-green-500);
  border-radius: 3px;
}

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

.feature-card {
  background: var(--color-sandy-beige-100);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-forest-green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: var(--color-forest-green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-forest-green-700);
}

.feature-card p {
  color: var(--color-text-muted);
}

/* About Section */
#about {
  padding: 100px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/bnnr.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-sandy-beige-100);
}

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

.about-text h2 {
  color: var(--color-sandy-beige-100);
  margin-bottom: 30px;
}

.about-text h2::after {
  background-color: var(--color-sandy-beige-300);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-image {
  height: 400px;
  background: url('/assets/abtus.webp');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right bottom, var(--color-forest-green-500), transparent);
  opacity: 0.3;
  z-index: 1;
}

/* Games Section */
#games {
  padding: 80px 0;
  background-color: var(--color-sandy-beige-100);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.game-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.game-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-image::before {
  opacity: 1;
}

#game1 {
  background-image: url('/assets/triple-dimensions-ice-age.webp');
}

#game2 {
  background-image: url('/assets/redandgreen2.webp');
}

#game3 {
  background-image: url('/assets/ninjabreakout.webp');
}

#game4 {
  background-image: url('/assets//findtheoddout.webp');
}

.game-card h3 {
  font-size: 1.5rem;
  margin: 20px 20px 10px;
  color: var(--color-forest-green-700);
}

.game-card p {
  padding: 0 20px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.game-card .btn {
  margin: 0 20px 20px;
}

/* Contact Section */
#contact {
  padding: 80px 0;
  background: linear-gradient(to right, var(--color-forest-green-800), var(--color-deep-blue-800));
  color: var(--color-sandy-beige-100);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-details {
  margin-top: 30px;
}

.contact-details p {
  margin-bottom: 10px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-sandy-beige-100);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
}

/* Disclaimer Section */
#disclaimer {
  padding: 40px 0;
  background-color: var(--color-sandy-beige-200);
}

.disclaimer-box {
  background-color: rgba(86, 153, 102, 0.1);
  border-left: 4px solid var(--color-forest-green-500);
  padding: 20px;
  border-radius: 0 10px 10px 0;
}

.disclaimer-box h3 {
  color: var(--color-forest-green-700);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.disclaimer-box p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: var(--color-forest-green-800);
  color: var(--color-sandy-beige-200);
  padding: 50px 0 20px;
}

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

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-logo p {
  color: var(--color-sandy-beige-300);
  font-size: 0.9rem;
}

.footer-links h3,
.footer-nav h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-sandy-beige-100);
}

.footer-links ul,
.footer-nav ul {
  list-style: none;
}

.footer-links li,
.footer-nav li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-nav a {
  color: var(--color-sandy-beige-300);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-nav a:hover {
  color: var(--color-sunrise-orange-300);
}

/* Icon Styles */
.tree-icon {
  background: var(--color-forest-green-500);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,3L1,9L12,15L21,10.09V17H23V9M5,13.18V17.18L12,21L19,17.18V13.18L12,17L5,13.18Z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,3L1,9L12,15L21,10.09V17H23V9M5,13.18V17.18L12,21L19,17.18V13.18L12,17L5,13.18Z'/%3E%3C/svg%3E") no-repeat center center;
}

.leaf-icon {
  background: var(--color-forest-green-500);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E") no-repeat center center;
}

.water-icon {
  background: var(--color-deep-blue-500);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,20C8.13,20 5,16.87 5,13C5,8.17 12,2 12,2C12,2 19,8.17 19,13C19,16.87 15.87,20 12,20Z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,20C8.13,20 5,16.87 5,13C5,8.17 12,2 12,2C12,2 19,8.17 19,13C19,16.87 15.87,20 12,20Z'/%3E%3C/svg%3E") no-repeat center center;
}

.mountain-icon {
  background: var(--color-warm-brown-500);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14,6L10.25,11L13.1,14.8L11.5,16C9.81,13.75 7,10 7,10L1,18H23L14,6Z'/%3E%3C/svg%3E") no-repeat center center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14,6L10.25,11L13.1,14.8L11.5,16C9.81,13.75 7,10 7,10L1,18H23L14,6Z'/%3E%3C/svg%3E") no-repeat center center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(86, 153, 102, 0.3);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(86, 153, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(86, 153, 102, 0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .games-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-sandy-beige-100);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav.active ul {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    text-align: center;
    padding: 10px 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}