/* Fun2Learn Custom Styles */

:root {
  /* Fun2Learn Background - Warm Cream */
  --background: 40 100% 88%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;

  /* Fun2Learn Orange - Primary brand color */
  --primary: 24 97% 57%;
  --primary-foreground: 0 0% 100%;

  /* Fun2Learn Accent Orange - Secondary */
  --secondary: 30 100% 60%;
  --secondary-foreground: 0 0% 100%;

  /* Soft Peach - Supporting */
  --muted: 30 60% 85%;
  --muted-foreground: 222 47% 11%;

  /* Light Orange - Supporting accent */
  --accent: 25 100% 70%;
  --accent-foreground: 222 47% 11%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 30 40% 85%;
  --input: 30 40% 85%;
  --ring: 24 97% 57%;
  --radius: 1rem;

  /* Custom Fun2Learn colors */
  --fun2learn-orange: 24 97% 57%;
  --fun2learn-light-orange: 30 100% 60%;
  --fun2learn-peach: 30 60% 85%;
  --fun2learn-cream: 40 100% 88%;
  --fun2learn-dark-orange: 20 95% 45%;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(24 97% 57%) 0%, hsl(30 100% 60%) 100%);
  --gradient-soft: linear-gradient(180deg, hsl(40 100% 88%) 0%, hsl(30 80% 90%) 100%);

  /* Shadows */
  --shadow-soft: 0 4px 20px hsla(24 97% 57% / 0.15);
  --shadow-card: 0 8px 30px hsla(24 97% 57% / 0.12);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce-soft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
  }

  50% {
    box-shadow: 0 0 40px hsl(var(--primary) / 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes accordion-down {
  from {
    height: 0;
  }

  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }

  to {
    height: 0;
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fade-in-left 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fade-in-right 0.6s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.4s ease-out;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-bounce-soft {
  animation: bounce-soft 2s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Logo - Only Zoom Effect */
nav a img {
  filter: none !important;
  box-shadow: none !important;
  background: none !important;
  border: none !important;
  transition: transform 0.3s ease;
}

nav a:hover img {
  transform: scale(1.05);
}

/* Remove gradient underline from logo link */
nav a:has(img)::after {
  display: none !important;
}

/* Enhanced Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Button Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Navigation Hover */
nav a {
  position: relative;
  transition: all 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Smooth Animations */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border));
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  transform: translateX(0);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
}

.language-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 12rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.language-menu.active {
  display: block;
}

.language-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background-color 0.2s;
}

.language-menu a:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Accordion */
.accordion-item {
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(var(--foreground));
  transition: all 0.2s;
}

.accordion-trigger .icon {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.accordion-trigger.active .icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
  font-size: 0.875rem;
}

.accordion-content.active {
  max-height: 500px;
  padding-bottom: 1rem;
  padding-top: 0;
}

/* Perfect Form Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
  transition: all 0.2s ease;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Button Styles */
.btn-cta {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: hsl(var(--secondary) / 0.9);
  box-shadow: 0 4px 12px hsl(var(--secondary) / 0.3);
  transform: scale(1.05);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover Lift */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}