/* ============================================
   Animations & micro-interactions
   Eye-catching, unique animations for all pages
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================
   SCROLL PROGRESS BAR (top of page)
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--royal-blue, #1E3A8A), var(--soft-gold, #D4AF37));
  z-index: 9999;
  transition: width 0.12s ease-out;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue, #1E3A8A), #1e40af);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.25s;
  z-index: 1040;
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.5);
  transform: translateY(-3px);
}

@media (max-width: 767.98px) {
  .back-to-top {
    bottom: 5.5rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ============================================
   KEYFRAMES - Advanced animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hero entrance with scale */
@keyframes heroScaleIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5); }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.3);
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* Button shine effect */
@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.06; }
  33% { transform: translate(15px, -15px) scale(1.05); opacity: 0.08; }
  66% { transform: translate(-10px, 10px) scale(0.98); opacity: 0.05; }
}

/* Navbar slide down on load */
@keyframes navbarSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon rotate on hover */
@keyframes iconRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Arrow slide on button hover */
@keyframes arrowSlide {
  0% { transform: translateX(0); }
  50% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* Button shine sweep on hover */
@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Subtle glow pulse for hero CTA (idle) */
@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3); }
  50% { box-shadow: 0 6px 24px rgba(30, 58, 138, 0.45); }
}

/* Icon bounce on card hover */
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
}

/* Gentle float for globe */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Fade + scale in for cards */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Country flags orbit around globe */
@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Universities marquee scroll */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Gradient glow animation */
@keyframes gradientGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.1);
  }
}

/* ============================================
   NAVBAR ANIMATIONS
   ============================================ */

.navbar-custom,
.navbar-ea {
  animation: navbarSlideDown 0.6s ease-out;
}

.navbar-custom .nav-link {
  transition: color 0.25s, background 0.25s, transform 0.2s !important;
  position: relative;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1E3A8A, #D4AF37);
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 80%;
  left: 50%;
}

.navbar-custom .nav-link:hover {
  transform: translateY(-1px);
}

.navbar-ea .nav-link {
  transition: color 0.25s, background 0.25s, transform 0.2s !important;
}

.navbar-ea .nav-link:hover {
  transform: translateY(-1px);
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

/* Hero entrance (staggered with scale) */
.hero.hero-times .hero-inner .hero-tagline,
.hero-ea .hero-ea-content .hero-tagline {
  animation: heroScaleIn 0.8s ease-out forwards;
  opacity: 0;
}

.hero.hero-times .hero-inner .hero-headline,
.hero-ea .hero-ea-content .hero-headline {
  animation: heroScaleIn 0.9s ease-out 0.2s forwards;
  opacity: 0;
}

.hero.hero-times .hero-inner .hero-subline,
.hero-ea .hero-ea-content .hero-subline {
  animation: heroScaleIn 0.9s ease-out 0.4s forwards;
  opacity: 0;
}

.hero.hero-times .hero-inner .hero-buttons,
.hero-ea .hero-ea-content .hero-buttons {
  animation: heroScaleIn 0.9s ease-out 0.6s forwards;
  opacity: 0;
}

/* Hero floating shapes (subtle) */
.hero.hero-times::before,
.hero.hero-times::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  animation: floatShape 12s ease-in-out infinite;
}

.hero.hero-times::before {
  width: 280px;
  height: 280px;
  top: 10%;
  right: 5%;
}

.hero.hero-times::after {
  width: 180px;
  height: 180px;
  bottom: 15%;
  left: 8%;
  animation-delay: -4s;
}

/* Hero EA background gradient animation */
.hero-ea-bg-shapes {
  animation: gradientGlow 8s ease-in-out infinite;
}

/* Hero CTA – subtle idle glow pulse (pauses on hover) */
.btn-hero-apply {
  animation: subtleGlow 3s ease-in-out infinite;
}

.btn-hero-apply:hover {
  animation: none;
}

/* Page hero (inner pages) - fade in up */
.page-hero {
  animation: fadeInUp 0.8s ease-out;
}

.page-hero h1 {
  animation: slideInUp 0.8s ease-out 0.2s both;
  opacity: 0;
}

.page-hero p {
  animation: slideInUp 0.8s ease-out 0.4s both;
  opacity: 0;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children with enhanced delays */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(10) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(11) { transition-delay: 0.55s; }
.reveal-stagger > *:nth-child(12) { transition-delay: 0.6s; }

/* Section heading reveal */
.reveal-heading .section-heading,
.reveal-heading .section-subheading {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-heading.revealed .section-heading,
.reveal-heading.revealed .section-subheading {
  opacity: 1;
  transform: translateY(0);
}

.reveal-heading.revealed .section-subheading {
  transition-delay: 0.15s;
}

/* Section badges pop in when heading is revealed */
.section-support-badge,
.section-requirements-badge,
.section-steps-badge {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-heading.revealed .section-support-badge,
.reveal-heading.revealed .section-requirements-badge,
.reveal-heading.revealed .section-steps-badge {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

.btn-hero-primary {
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s !important;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  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.5s;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.45) !important;
}

.btn-hero-primary i {
  transition: transform 0.3s;
}

.btn-hero-primary:hover i {
  animation: arrowSlide 0.6s ease-in-out infinite;
}

.btn-hero-secondary {
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Hero Apply + section CTAs: shine sweep on hover */
.btn-hero-apply,
.btn-support-cta,
.btn-requirements-cta,
.btn-steps-cta {
  position: relative;
  overflow: hidden;
}

.btn-hero-apply::before,
.btn-support-cta::before,
.btn-requirements-cta::before,
.btn-steps-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: none;
}

.btn-hero-apply:hover::before,
.btn-support-cta:hover::before,
.btn-requirements-cta:hover::before,
.btn-steps-cta:hover::before {
  animation: btnShine 0.6s ease-out forwards;
}

.btn-hero-secondary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.navbar-custom .btn-cta,
.btn-primary-custom,
.btn-support-cta,
.btn-requirements-cta {
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s !important;
  position: relative;
  overflow: hidden;
}

.navbar-custom .btn-cta::before,
.btn-primary-custom::before,
.btn-support-cta::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;
}

.navbar-custom .btn-cta:hover::before,
.btn-primary-custom:hover::before,
.btn-support-cta:hover::before {
  left: 100%;
}

.navbar-custom .btn-cta:hover,
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}

.btn-support-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(1, 33, 105, 0.35);
}

.btn-nav-apply-now {
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-nav-apply-now:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* ============================================
   CARD ANIMATIONS
   ============================================ */

/* Card hover (lift + glow + scale) */
.why-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease, 
              border-color 0.3s !important;
}

.why-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(1, 33, 105, 0.2) !important;
}

.why-card:hover .why-card-icon {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.why-card-icon {
  transition: transform 0.3s ease;
}

.support-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease, 
              border-color 0.3s !important;
}

.support-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 45px rgba(30, 58, 138, 0.15) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

.support-card:hover .support-card-icon {
  transition: transform 0.3s ease;
}

.support-card-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cost-preview-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease, 
              color 0.3s !important;
}

.cost-preview-card:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.testimonial-card {
  transition: transform 0.4s ease, 
              box-shadow 0.4s ease, 
              border-color 0.3s !important;
}

.reveal.revealed .testimonial-card {
  animation: fadeInScale 0.6s ease-out backwards;
}

.reveal-stagger .reveal.revealed:nth-child(1) .testimonial-card { animation-delay: 0.1s; }
.reveal-stagger .reveal.revealed:nth-child(2) .testimonial-card { animation-delay: 0.2s; }
.reveal-stagger .reveal.revealed:nth-child(3) .testimonial-card { animation-delay: 0.3s; }

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(1, 33, 105, 0.25) !important;
}

.university-card {
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease, 
              border-color 0.25s, 
              color 0.25s !important;
}

.university-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 16px 35px rgba(30, 58, 138, 0.15) !important;
}

.step-card {
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease, 
              border-color 0.25s !important;
}

.step-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 16px 35px rgba(30, 58, 138, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
}

.step-card:hover .step-card-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requirements-card {
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease, 
              border-color 0.25s !important;
}

.requirements-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: 0 16px 35px rgba(30, 58, 138, 0.1) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
}

.requirements-card:hover .requirements-card-icon,
.requirements-card:hover .card-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requirements-card .requirements-card-icon,
.requirements-card .card-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card-custom:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   CTA STRIP ANIMATIONS
   ============================================ */

.cta-strip {
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 40px 40px;
  animation: gradientShift 20s linear infinite;
  pointer-events: none;
  opacity: 0.3;
}

.cta-strip .btn-cta-light,
.cta-strip .btn-light {
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s !important;
  position: relative;
  overflow: hidden;
}

.cta-strip .btn-cta-light::before,
.cta-strip .btn-light::before {
  content: '';
  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.5s;
}

.cta-strip .btn-cta-light:hover::before,
.cta-strip .btn-light:hover::before {
  left: 100%;
}

.cta-strip .btn-cta-light:hover,
.cta-strip .btn-light:hover {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================
   FLOAT CONTACT BUTTONS
   ============================================ */

.float-contact {
  animation: fadeIn 0.8s ease-out 1s both;
  opacity: 0;
}

.float-contact .btn-whatsapp,
.float-contact .btn-call {
  transition: transform 0.3s, box-shadow 0.3s !important;
  animation: breathe 3s ease-in-out infinite;
}

.float-contact .btn-whatsapp {
  animation-delay: 0s;
}

.float-contact .btn-call {
  animation-delay: 1.5s;
}

.float-contact .btn-whatsapp:hover,
.float-contact .btn-call:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
  animation: none;
}

/* ============================================
   TOP BAR & FORM BUTTONS
   ============================================ */

.btn-top-cta {
  transition: transform 0.25s, background 0.25s !important;
}

.btn-top-cta:hover {
  transform: scale(1.05);
}

.btn-form-submit,
.btn-consultation-submit {
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s !important;
  position: relative;
  overflow: hidden;
}

.btn-form-submit::before,
.btn-consultation-submit::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;
}

.btn-form-submit:hover::before,
.btn-consultation-submit:hover::before {
  left: 100%;
}

.btn-form-submit:hover,
.btn-consultation-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* ============================================
   UNIVERSITIES MARQUEE
   ============================================ */

.universities-marquee-wrap {
  overflow: hidden;
  position: relative;
}

.universities-marquee {
  display: flex;
  gap: 1rem;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.universities-marquee:hover {
  animation-play-state: paused;
}

.university-block {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.university-block:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
}

/* ============================================
   ACCORDION ANIMATIONS
   ============================================ */

.accordion-custom .accordion-button {
  transition: all 0.3s ease !important;
}

.accordion-custom .accordion-button::after {
  transition: transform 0.35s ease !important;
}

.accordion-custom .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-custom .accordion-collapse {
  transition: height 0.35s ease !important;
}

.accordion-custom .accordion-body {
  animation: slideInUp 0.4s ease-out;
}

/* ============================================
   GLOBE & FLAGS ANIMATION
   ============================================ */

.hero-globe-wrap {
  animation: floatSoft 6s ease-in-out infinite;
}

.hero-globe {
  animation: floatGentle 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hero-flag-icon {
  transition: transform 0.3s ease;
}

.hero-flag-icon:hover {
  transform: scale(1.15) !important;
  z-index: 10;
}

/* University cards – fade in when carousel slide is active */
.universities-slider-wrap .carousel-item.active .university-card {
  animation: fadeInScale 0.5s ease-out backwards;
}

.universities-slider-wrap .carousel-item.active .university-card:nth-child(1) { animation-delay: 0.05s; }
.universities-slider-wrap .carousel-item.active .university-card:nth-child(2) { animation-delay: 0.1s; }
.universities-slider-wrap .carousel-item.active .university-card:nth-child(3) { animation-delay: 0.15s; }
.universities-slider-wrap .carousel-item.active .university-card:nth-child(4) { animation-delay: 0.2s; }

/* ============================================
   ICON ANIMATIONS
   ============================================ */

.support-card-icon i,
.why-card-icon i,
.step-card-icon i,
.requirements-card .card-icon i {
  transition: transform 0.3s ease;
}

.support-card:hover .support-card-icon,
.step-card:hover .step-card-icon,
.requirements-card:hover .requirements-card-icon,
.requirements-card:hover .card-icon {
  animation: iconBounce 0.5s ease-out;
}

.why-card:hover .why-card-icon {
  animation: iconBounce 0.5s ease-out;
}

.support-card:hover .support-card-icon i,
.why-card:hover .why-card-icon i,
.step-card:hover .step-card-icon i,
.requirements-card:hover .card-icon i,
.requirements-card:hover .requirements-card-icon i {
  transition: transform 0.3s ease;
}

/* ============================================
   CONTACT FORM ANIMATIONS
   ============================================ */

.contact-form-card {
  animation: scaleIn 0.6s ease-out;
}

.consultation-form-card {
  animation: scaleIn 0.6s ease-out;
}

.input-group-icon .form-control:focus {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767.98px) {
  .reveal {
    transform: translateY(30px) scale(0.98);
  }
  
  .hero.hero-times .hero-inner .hero-headline,
  .hero-ea .hero-ea-content .hero-headline {
    animation-duration: 0.7s;
  }
  
  .float-contact {
    animation-delay: 0.5s;
  }
}
