/* Aceternity UI Inspired Styles for Ambition Science Zone */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
  --aurora-gradient: radial-gradient(ellipse at top, #667eea 0%, transparent 50%), radial-gradient(ellipse at bottom, #764ba2 0%, transparent 50%);
  --blur-bg: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 50px rgba(102, 126, 234, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--primary-gradient);
}

.bg-gradient-secondary {
  background: var(--secondary-gradient);
}

.bg-gradient-accent {
  background: var(--accent-gradient);
}

.glass-morphism {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-effect {
  box-shadow: var(--shadow-glow);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.8); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  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 rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out;
}

.animate-fade-in-down {
  animation: fade-in-down 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fade-in-left 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fade-in-right 0.8s ease-out;
}

/* Hero Section Enhancements */
.hero-background {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2" d="M0 0h1000v1000H0z"/><path fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1" d="M0 100h1000M0 200h1000M0 300h1000M0 400h1000M0 500h1000M0 600h1000M0 700h1000M0 800h1000M0 900h1000M100 0v1000M200 0v1000M300 0v1000M400 0v1000M500 0v1000M600 0v1000M700 0v1000M800 0v1000M900 0v1000"/></svg>');
  background-size: 100px 100px;
  opacity: 0.1;
}

/* Card Enhancements */
.card-enhanced {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--primary-gradient);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-enhanced:hover::before {
  opacity: 1;
}

.card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Button Enhancements */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Enhanced Navigation Styles */
.nav-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.nav-glass.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Top Header Bar Styles */
.top-header-bar {
  background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #1f2937 100%);
  position: relative;
  overflow: hidden;
}

.top-header-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Main Navigation Enhancements */
.main-nav {
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Logo Enhancement */
.logo-container {
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

/* Navigation Link Hover Effects */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

/* Section Spacing */
.section-padding {
  padding: 5rem 0;
}

/* Enhanced Mobile Menu Styles */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu:not(.hidden) {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-toggle {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle.active {
  transform: rotate(90deg);
}

/* Mobile Menu Animation */
.mobile-menu a {
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu:not(.hidden) a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu:not(.hidden) a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu:not(.hidden) a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu:not(.hidden) a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu:not(.hidden) a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu:not(.hidden) a:nth-child(5) { transition-delay: 0.3s; }

/* FAQ Styles */
.faq-answer {
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Top Header Bar - Hide on tablets and mobile */
  .top-header-bar {
    display: none;
  }

  /* Adjust main nav height */
  .main-nav .h-20 {
    height: 4rem;
  }
}

@media (max-width: 768px) {
  .hero-background {
    padding: 2rem 0;
  }

  .card-enhanced {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  /* Mobile Navigation Adjustments */
  .main-nav {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .logo-container .text-xl {
    font-size: 1rem;
  }

  .mobile-menu {
    border-top: 2px solid #f3f4f6;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .top-header-bar .flex-col {
    text-align: center;
  }

  .top-header-bar .space-x-6 > * {
    margin: 0.25rem 0;
  }

  .main-nav .h-20 {
    height: 3.5rem;
  }

  .logo-container .w-10 {
    width: 2rem;
    height: 2rem;
  }

  .logo-container .w-12 {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(0, 0, 0, 0.1);
    --blur-bg: rgba(0, 0, 0, 0.2);
  }
  
  .card-enhanced {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-glass.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Interactive Elements */
.interactive-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-hover:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Gradient Text Animation */
.animated-gradient-text {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* Testimonial Cards */
.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

/* Stats Counter Animation */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Form Enhancements */
.form-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Loading Animation */
.loading-animation {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Parallax Effect */
.parallax-element {
  transform: translateZ(0);
  will-change: transform;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Text Hover Animation Improvements */
.text-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-hover-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.text-hover-effect:hover::after {
  left: 100%;
}

/* Container Scroll Animation Enhancements */
.container-scroll-wrapper {
  perspective: 1200px;
  perspective-origin: center center;
}

.container-scroll-wrapper .sticky > div {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Activities Section Enhancements */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.activity-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Testimonial Animation Improvements */
.animated-testimonials-container {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(100px) rotateY(15deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

/* Stats Counter Glow Effect */
.stat-number {
  position: relative;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.stats-counter.animate .stat-number {
  animation: statGlow 2s ease-in-out;
}

@keyframes statGlow {
  0% { text-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
  50% { text-shadow: 0 0 25px rgba(102, 126, 234, 0.8), 0 0 35px rgba(118, 75, 162, 0.6); }
  100% { text-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
}