/* CSS Custom Properties - Brand Palette */
:root {
  --poppy: #da2c38ff;
  --dark-spring-green: #226f54ff;
  --pistachio: #87c38fff;
  --lemon-chiffon: #f4f0bbff;
  --bistre: #43291fff;

  /* Additional utility colors */
  --white: #ffffff;
  --black: #000000;
  --shadow: rgba(67, 41, 31, 0.1);
  --shadow-hover: rgba(67, 41, 31, 0.2);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--bistre);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(34, 111, 84, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244, 240, 187, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 25px rgba(67, 41, 31, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Animated Logo */
.nav-logo {
  cursor: pointer;
  flex: 1;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.logo-svg:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(218, 44, 56, 0.4));
}

.animated-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-text {
  color: var(--lemon-chiffon);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.logo-subtitle {
  color: var(--pistachio);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-top: -2px;
  transition: all 0.3s ease;
}

.nav-logo:hover .logo-text {
  background: linear-gradient(
    45deg,
    var(--lemon-chiffon),
    var(--pistachio),
    var(--poppy)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 2s ease-in-out infinite;
}

.nav-logo:hover .logo-subtitle {
  color: var(--poppy);
  transform: translateX(3px);
}

.logo-letter:nth-child(1) {
  animation-delay: 0.1s;
}
.logo-letter:nth-child(2) {
  animation-delay: 0.15s;
}
.logo-letter:nth-child(3) {
  animation-delay: 0.2s;
}
.logo-letter:nth-child(4) {
  animation-delay: 0.25s;
}
.logo-letter:nth-child(5) {
  animation-delay: 0.3s;
}
.logo-letter:nth-child(7) {
  animation-delay: 0.4s;
}
.logo-letter:nth-child(8) {
  animation-delay: 0.45s;
}
.logo-letter:nth-child(9) {
  animation-delay: 0.5s;
}
.logo-letter:nth-child(10) {
  animation-delay: 0.55s;
}
.logo-letter:nth-child(11) {
  animation-delay: 0.6s;
}
.logo-letter:nth-child(13) {
  animation-delay: 0.7s;
}
.logo-letter:nth-child(14) {
  animation-delay: 0.75s;
}
.logo-letter:nth-child(15) {
  animation-delay: 0.8s;
}
.logo-letter:nth-child(16) {
  animation-delay: 0.85s;
}
.logo-letter:nth-child(17) {
  animation-delay: 0.9s;
}
.logo-letter:nth-child(18) {
  animation-delay: 0.95s;
}
.logo-letter:nth-child(19) {
  animation-delay: 1s;
}
.logo-letter:nth-child(20) {
  animation-delay: 1.05s;
}

@keyframes bounceInLetter {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.3);
  }
  50% {
    opacity: 0.8;
    transform: translateY(5px) scale(1.1);
  }
  70% {
    transform: translateY(-2px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-logo:hover .logo-letter {
  animation: wiggleLetter 0.5s ease-in-out;
  background: linear-gradient(
    45deg,
    var(--poppy),
    var(--pistachio),
    var(--lemon-chiffon)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wiggleLetter 0.5s ease-in-out,
    gradientShift 2s ease-in-out infinite;
}

@keyframes wiggleLetter {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg) scale(1.05);
  }
  75% {
    transform: rotate(-2deg) scale(1.05);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes logoSpin {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* Hamburger Menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
  width: 50px;
  height: 50px;
}

.nav-toggle:hover {
  background: rgba(244, 240, 187, 0.15);
  transform: scale(1.05);
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--lemon-chiffon);
  margin: 3px 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-toggle:hover .hamburger-line {
  background: var(--poppy);
  transform: scaleX(1.1);
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  left: -100%;
  top: 70px;
  flex-direction: column;
  background: rgba(34, 111, 84, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  width: 100%;
  min-height: calc(100vh - 70px);
  padding: 2rem 0;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  list-style: none;
  border-top: 1px solid rgba(244, 240, 187, 0.15);
  box-shadow: 0 8px 40px rgba(67, 41, 31, 0.25);
  overflow-y: auto;
}

.nav-menu.active {
  left: 0;
}

.nav-item {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.nav-menu.active .nav-item {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu.active .nav-item:nth-child(1) {
  transition-delay: 0.1s;
}
.nav-menu.active .nav-item:nth-child(2) {
  transition-delay: 0.2s;
}
.nav-menu.active .nav-item:nth-child(3) {
  transition-delay: 0.3s;
}
.nav-menu.active .nav-item:nth-child(4) {
  transition-delay: 0.4s;
}
.nav-menu.active .nav-item:nth-child(5) {
  transition-delay: 0.5s;
}

.nav-link {
  color: var(--lemon-chiffon);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.2rem 2rem;
  border-radius: 25px;
  display: block;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0 1rem;
  background: linear-gradient(
    135deg,
    rgba(244, 240, 187, 0.08),
    rgba(135, 195, 143, 0.12)
  );
  border: 2px solid rgba(244, 240, 187, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 240, 187, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.link-text {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.link-underline {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--poppy), var(--pistachio));
  transition: all 0.4s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.nav-link:hover {
  background: linear-gradient(
    135deg,
    rgba(218, 44, 56, 0.15),
    rgba(135, 195, 143, 0.2)
  );
  border-color: var(--poppy);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(218, 44, 56, 0.25);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover .link-text {
  color: var(--lemon-chiffon);
  text-shadow: 0 0 10px rgba(244, 240, 187, 0.5);
}

/* Hamburger Animation */
.nav-toggle.active {
  background: rgba(218, 44, 56, 0.2);
}

.nav-toggle.active .hamburger-line {
  background: var(--poppy);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--poppy) 0%,
    var(--dark-spring-green) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px; /* Account for fixed navbar */
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.hero-text {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s both;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  color: var(--lemon-chiffon);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 800;
  line-height: 1.1;
  min-height: 0;
  border-right: 3px solid var(--lemon-chiffon);
  animation: blinkCursor 1.5s infinite;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: var(--lemon-chiffon);
  margin-bottom: 2.5rem;
  opacity: 0;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 2.5s both;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 3s both;
}

/* Enhanced Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: linear-gradient(45deg, var(--pistachio), var(--poppy));
  color: var(--lemon-chiffon);
  box-shadow: 0 8px 25px rgba(218, 44, 56, 0.3);
  border: 2px solid transparent;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(218, 44, 56, 0.4);
}

.btn-primary:hover .btn-shine {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--lemon-chiffon);
  border: 2px solid var(--lemon-chiffon);
  position: relative;
}

.btn-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--lemon-chiffon);
  transition: width 0.4s ease;
  z-index: 1;
}

.btn-secondary:hover {
  color: var(--dark-spring-green);
  transform: translateY(-3px) scale(1.05);
}

.btn-secondary:hover .btn-fill {
  width: 100%;
}

.btn-secondary:hover .btn-text {
  color: var(--dark-spring-green);
}

/* Hero Animation */
.hero-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.floating-game-elements {
  width: 100%;
  max-width: 350px;
  height: auto;
  animation: heroFloat 6s ease-in-out infinite;
}

.controller-group {
  animation: controllerFloat 4s ease-in-out infinite;
}

.puzzle-group {
  animation: puzzleFloat 5s ease-in-out infinite;
}

.stars-group {
  animation: starsFloat 3s ease-in-out infinite;
}

.cubes-group {
  animation: cubesFloat 4.5s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blinkCursor {
  0%,
  50% {
    border-color: var(--lemon-chiffon);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes controllerFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes puzzleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-5px) rotate(2deg);
  }
  66% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes starsFloat {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(180deg);
  }
}

@keyframes cubesFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(5deg);
  }
  75% {
    transform: translateY(3px) rotate(-5deg);
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--lemon-chiffon);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.about-illustration {
  width: 100%;
  max-width: 300px;
}

.game-elements {
  width: 100%;
  height: auto;
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.about-text h2 {
  color: var(--dark-spring-green);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--bistre);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Games Section */
.games {
  padding: 5rem 0;
  background: var(--pistachio);
}

.section-title {
  text-align: center;
  color: var(--bistre);
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.game-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.game-thumbnail {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.game-thumbnail svg {
  width: 100%;
  height: auto;
  display: block;
}

.game-info h3 {
  color: var(--dark-spring-green);
  margin-bottom: 0.5rem;
}

.game-info p {
  color: var(--bistre);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--bistre) 0%,
    var(--dark-spring-green) 100%
  );
}

.services .section-title {
  color: var(--lemon-chiffon);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: rgba(244, 240, 187, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 240, 187, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--poppy);
  box-shadow: 0 0 30px rgba(218, 44, 56, 0.3);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.service-card h3 {
  color: var(--lemon-chiffon);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--pistachio);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--lemon-chiffon);
}

.contact .section-title {
  color: var(--dark-spring-green);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-spring-green);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--pistachio);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--poppy);
}

.contact-form .btn {
  width: 100%;
  border: none;
  background: var(--poppy);
  color: var(--lemon-chiffon);
}

.contact-form .btn:hover {
  background: var(--dark-spring-green);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(67, 41, 31, 0.15);
  border: 2px solid rgba(244, 240, 187, 0.3);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 41, 31, 0.2);
  border-color: var(--pistachio);
}

.contact-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  padding: 8px;
  background: linear-gradient(135deg, var(--lemon-chiffon), var(--pistachio));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  color: var(--dark-spring-green);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-item p {
  color: #1a1a1a;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 600;
}

/* Specific styling for email and address text */
.contact-item p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Make email address more prominent */
.contact-item:nth-child(1) p {
  color: var(--dark-spring-green);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
}

/* Make address text more readable */
.contact-item:nth-child(3) p {
  color: #2c2c2c;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--bistre);
  color: var(--lemon-chiffon);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--lemon-chiffon);
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: var(--pistachio);
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--pistachio);
  opacity: 0.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--pistachio);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--poppy);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--dark-spring-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lemon-chiffon);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--poppy);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-spring-green);
  color: var(--pistachio);
  opacity: 0.8;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  /* Navbar Tablet Styles - Start Horizontal Layout */
  .animated-logo {
    font-size: 1.4rem;
  }

  .nav-menu {
    position: static !important;
    flex-direction: row !important;
    background: none !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    top: 0 !important;
    border: none !important;
    box-shadow: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    display: flex !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-item {
    margin: 0 0.5rem !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: inline-block !important;
  }

  .nav-link {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.9rem !important;
    margin: 0 0.3rem !important;
    background: linear-gradient(
      135deg,
      rgba(244, 240, 187, 0.08),
      rgba(135, 195, 143, 0.12)
    ) !important;
    border: 2px solid rgba(244, 240, 187, 0.2) !important;
    border-radius: 20px !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
    text-transform: capitalize !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
  }

  /* Hero Tablet Styles */
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }

  .hero-text {
    text-align: left;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    max-width: 100%;
    margin-left: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-animation {
    justify-content: flex-end;
  }

  .floating-game-elements {
    max-width: 400px;
  }

  .about-content {
    flex-direction: row;
    text-align: left;
  }

  .about-illustration {
    max-width: 400px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-form {
    flex: 2;
  }

  .contact-info {
    flex: 1;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
  /* Desktop Navigation */
  .nav-menu {
    position: static !important;
    flex-direction: row !important;
    background: none !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    top: 0 !important;
    border: none !important;
    box-shadow: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    display: flex !important;
    transform: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-item {
    margin: 0 0.5rem !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: inline-block !important;
  }

  .nav-link {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    background: linear-gradient(
      135deg,
      rgba(244, 240, 187, 0.08),
      rgba(135, 195, 143, 0.12)
    );
    border: 2px solid rgba(244, 240, 187, 0.2);
    border-radius: 25px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
    letter-spacing: 0.6px;
    font-weight: 700;
  }

  .nav-link:hover {
    background: linear-gradient(
      135deg,
      rgba(218, 44, 56, 0.15),
      rgba(135, 195, 143, 0.2)
    );
    border-color: var(--poppy);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(218, 44, 56, 0.25);
  }

  .animated-logo {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
  }

  /* Desktop Hero */
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
  }

  .hero-text {
    text-align: left;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 100%;
    margin-left: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .floating-game-elements {
    max-width: 450px;
  }

  .section-title {
    font-size: 3rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    padding: 0 3rem;
  }

  .about-content {
    gap: 5rem;
  }

  .contact-content {
    gap: 5rem;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-attachment: fixed;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }

  .hero {
    height: auto;
    background: var(--lemon-chiffon);
    color: var(--bistre);
  }

  .btn {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: rgba(0, 0, 0, 0.8);
    --shadow-hover: rgba(0, 0, 0, 0.9);
  }

  .btn {
    border-width: 3px;
  }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
  .contact-form,
  .contact-item,
  .game-card {
    background: rgba(67, 41, 31, 0.9);
    color: var(--lemon-chiffon);
  }

  .form-group input,
  .form-group textarea {
    background: rgba(244, 240, 187, 0.1);
    color: var(--lemon-chiffon);
    border-color: var(--dark-spring-green);
  }
}
