/* TryVyntra - Toons Theme Styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Comic+Neue:wght@300;400;700&display=swap');

:root {
  /* Toons Theme Colors - Matching Game */
  --primary-blue: #4A90E2;
  --secondary-purple: #7B68EE;
  --accent-orange: #FF8C42;
  --bright-pink: #FF6B9D;
  --sunny-yellow: #FFD93D;
  --mint-green: #6BCF7F;
  --dark-navy: #1a1a2e;
  --deep-space: #16213e;
  --light-bg: #f8f9ff;
  --card-bg: #ffffff;
  --text-dark: #2c2c54;
  --text-light: #6c7293;
  --border-soft: #e8ecf7;
}

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

body {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8f4fd 100%);
  min-height: 100vh;
}

/* GRADIENT WAVE NAVBAR - UNIQUE DESIGN */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-purple) 50%, var(--bright-pink) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 85% 85%, 75% 100%, 65% 85%, 55% 100%, 45% 85%, 35% 100%, 25% 85%, 15% 100%, 5% 85%, 0 100%);
  padding: 0 0 25px 0;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(10px);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px 0;
}

.navbar-logo img {
  height: 45px;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
  transition: transform 0.3s ease;
}

.navbar-logo:hover img {
  transform: scale(1.1) rotate(2deg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* MAIN CONTENT */
main {
  margin-top: 100px;
}

.section {
  padding: 60px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.sec-head {
  text-align: center;
  margin-bottom: 50px;
}

.sec-head h1 {
  font-family: 'Comic Neue', cursive;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple), var(--bright-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  text-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.sec-head p {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* HERO SECTION - TOONS STYLE */
.hero {
  /* Layered background: dark overlay -> hero image -> colorful gradient fallback */
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple), var(--bright-pink));
}

.hero::before {
  content: '🎮';
  position: absolute;
  top: 20%;
  right: 10%;
  font-size: 8rem;
  opacity: 0.1;
  animation: float 3s ease-in-out infinite;
  z-index: 1; /* keep decorative emoji behind content */
}

.hero::after {
  content: '🎪';
  position: absolute;
  bottom: 20%;
  left: 8%;
  font-size: 6rem;
  opacity: 0.1;
  animation: float 4s ease-in-out infinite reverse;
  z-index: 1; /* keep decorative emoji behind content */
}

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

.hero-content {
  text-align: center;
  position: relative;
  z-index: 3; /* ensure hero text and CTA sit above overlay and decorations */
}

.hero h1 {
  font-family: 'Comic Neue', cursive;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  /* Use a gradient-filled text effect */
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple), var(--bright-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* fallback color for very old browsers */
  color: var(--primary-blue);
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-orange), var(--sunny-yellow));
  color: var(--text-dark);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 140, 66, 0.6);
}

/* FEATURES GRID - BALLOON CARDS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feat {
  background: var(--card-bg);
  padding: 35px 25px;
  border-radius: 25px;
  text-align: center;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

.feat::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 25px;
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple), var(--bright-pink), var(--accent-orange));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feat:hover::before {
  opacity: 1;
}

.feat:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}

.feat h3 {
  font-family: 'Comic Neue', cursive;
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.feat p {
  color: var(--text-light);
  line-height: 1.6;
}

/* REVIEWS SECTION - BUBBLE STYLE */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.review {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f0f7ff 100%);
  padding: 30px;
  border-radius: 30px;
  position: relative;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.12);
  border: 2px solid var(--border-soft);
  transition: transform 0.3s ease;
}

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

.review::before {
  content: '💬';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 2rem;
  background: var(--card-bg);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-soft);
}

.review-stars {
  color: var(--sunny-yellow);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.review p {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-style: italic;
}

.review-author {
  font-weight: 600;
  color: var(--primary-blue);
}

/* GAME SECTION */
.game-container {
  background: var(--card-bg);
  border-radius: 25px;
  padding: 40px;
  margin: 50px 0;
  box-shadow: 0 15px 40px rgba(74, 144, 226, 0.15);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 25px;
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple), var(--bright-pink));
  z-index: -1;
}

.game-container h2 {
  text-align: center;
  font-family: 'Comic Neue', cursive;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 30px;
  font-weight: 700;
}

.game-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 20px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: var(--dark-navy);
  z-index: 99;
}

/* STACKED CARD FOOTER - UNIQUE DESIGN */
.footer {
  /* Match navbar gradient colors for a cohesive header/footer theme */
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-purple) 50%, var(--bright-pink) 100%);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  margin-top: 80px;
  box-shadow: 0 -6px 30px rgba(74,144,226,0.12);
}

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

.footer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.footer-card {
  /* Slightly translucent cards so the footer gradient shows through */
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
  padding: 30px 25px;
  border-radius: 20px;
  position: relative;
  transform: translateY(0);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.footer-card:nth-child(1) { transform: translateY(-10px); }
.footer-card:nth-child(2) { transform: translateY(5px); }
.footer-card:nth-child(3) { transform: translateY(-5px); }
.footer-card:nth-child(4) { transform: translateY(10px); }

.footer-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
}

.footer-card h4 {
  font-family: 'Comic Neue', cursive;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--sunny-yellow);
  font-weight: 700;
}

.footer-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 5px 0;
}

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

.footer-disclaimer-card {
  background: linear-gradient(45deg, var(--accent-orange), var(--bright-pink));
  padding: 25px;
  border-radius: 20px;
  margin: 30px 0;
  text-align: center;
}

.footer-disclaimer-card p {
  color: white;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* CONTACT FORM - TOONS STYLE */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-form {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(74, 144, 226, 0.12);
  border: 3px solid var(--border-soft);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-soft);
  border-radius: 15px;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #f8f9ff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* LEGAL CONTENT */
.legal-content {
  background: var(--card-bg);
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(74, 144, 226, 0.12);
  margin-top: 30px;
}

.legal-content h2 {
  font-family: 'Comic Neue', cursive;
  color: var(--primary-blue);
  margin: 30px 0 15px;
  font-weight: 700;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin: 15px 0 15px 30px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-light);
}

.disclaimer-highlight {
  background: linear-gradient(135deg, var(--accent-orange), var(--bright-pink));
  color: white;
  padding: 30px;
  border-radius: 20px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

.disclaimer-highlight h2 {
  color: white !important;
  margin-bottom: 15px;
}

/* AGE MODAL - TOONS STYLE */
.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.age-modal-content {
  background: linear-gradient(135deg, var(--card-bg) 0%, #f0f7ff 100%);
  padding: 50px 40px;
  border-radius: 30px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.age-modal-content::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 30px;
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple), var(--bright-pink));
  z-index: -1;
}

.age-modal h2 {
  font-family: 'Comic Neue', cursive;
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-weight: 700;
}

.age-modal p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.6;
}

.age-modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.age-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Fredoka', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.age-btn.yes {
  background: linear-gradient(45deg, var(--mint-green), var(--primary-blue));
  color: white;
}

.age-btn.no {
  background: linear-gradient(45deg, var(--accent-orange), var(--bright-pink));
  color: white;
}

.age-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .navbar-inner {
    padding: 15px 20px 0;
  }
  
  .nav-menu {
    gap: 15px;
  }
  
  .nav-menu a {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .sec-head h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-card {
    transform: translateY(0) !important;
  }
  
  .legal-content {
    padding: 30px 25px;
  }
  
  .age-modal-content {
    padding: 35px 25px;
    margin: 20px;
  }
  
  .age-modal-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .sec-head h1 {
    font-size: 2rem;
  }
  
  .navbar-inner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 15px 0;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.mb-30 { margin-bottom: 30px; }
.mt-50 { margin-top: 50px; }

/* HIDDEN CLASS */
.hidden { display: none !important; }