@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

body {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

.font-display {
  font-family: var(--font-display);
}

/* Custom Animations */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll-left {
  display: inline-flex;
  animation: scroll-left 40s linear infinite;
}

.animate-scroll-left:hover {
  animation-play-state: paused;
}

/* Spin Slow Animation */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 30s linear infinite;
}

/* Glassmorphism utilities */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-glass-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3D Interactive Cards */
.card-3d {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease;
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  perspective: 1000px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
}

.card-3d:hover {
  transform: translateY(-10px) scale(1.03) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 30px 60px -20px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.card-3d .icon-3d {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover .icon-3d {
  transform: translateZ(30px) scale(1.1);
}

/* Premium 3D Touch Hover Effect for Images */
.touch-3d {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.touch-3d:hover {
  transform: translateY(-8px) scale(1.025) rotateX(2.5deg) rotateY(-2.5deg);
  box-shadow: 0 25px 45px -15px rgba(79, 70, 229, 0.16),
              0 0 0 1px rgba(79, 70, 229, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(79, 70, 229, 0.35);
}

/* Interactive Accordion Transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: #6366f1;
}

.accordion-item.active {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 25px -10px rgba(99, 102, 241, 0.08);
  background-color: #ffffff;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #6366f1, #ec4899, #f59e0b);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Custom ambient light pulses */
.ambient-glow-indigo {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
}

.ambient-glow-pink {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0) 70%);
}

.ambient-glow-amber {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
}

/* Pulse animation for CTA */
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.6); }
}

.pulse-cta {
  animation: cta-pulse 3s infinite ease-in-out;
}

/* Grid layout custom sizes */
@media (min-width: 768px) {
  .teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Video iframe containers */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Scroll Reveal Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-slide-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-slide-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Dotted grid pattern overlay */
.grid-bg-dot {
  background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Dynamic text blinking cursor */
#dynamic-text::after {
  content: '|';
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Certification styling */
.badge-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.4);
}

