/* Modern Animations and Transitions for Sharif Education Site */

/* CSS Variables for Animation Timing */
:root {
  --animation-fast: 0.2s;
  --animation-normal: 0.3s;
  --animation-slow: 0.5s;
  --animation-slower: 0.8s;
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--animation-slow) var(--ease-out-cubic);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn var(--animation-slow) var(--ease-out-cubic) forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp var(--animation-slow) var(--ease-out-cubic) forwards;
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(50px);
  animation: slideLeft var(--animation-slow) var(--ease-out-cubic) forwards;
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideRight var(--animation-slow) var(--ease-out-cubic) forwards;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn var(--animation-slow) var(--ease-bounce) forwards;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Hero Section Animations */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(139, 92, 246, 0.1) 25%, 
    rgba(34, 197, 94, 0.1) 50%, 
    rgba(59, 130, 246, 0.1) 75%, 
    rgba(139, 92, 246, 0.1) 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  z-index: -1;
}

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

.hero__text {
  animation: slideUp var(--animation-slower) var(--ease-out-cubic) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero__text h1 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.hero__text h1 .brand-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #22c55e);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 6s ease infinite;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  display: inline-block;
}

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

.hero__text p {
  animation: slideUp var(--animation-slower) var(--ease-out-cubic) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero__actions {
  animation: slideUp var(--animation-slower) var(--ease-out-cubic) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero__actions .btn {
  animation: scaleIn var(--animation-slow) var(--ease-bounce) forwards;
  opacity: 0;
}

.hero__actions .btn:nth-child(1) {
  animation-delay: 0.8s;
}

.hero__actions .btn:nth-child(2) {
  animation-delay: 0.9s;
}

.hero__actions .btn:nth-child(3) {
  animation-delay: 1s;
}

.hero__image {
  animation: slideLeft var(--animation-slower) var(--ease-out-cubic) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero__image img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Enhanced Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.btn::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 var(--animation-slow) ease;
}

.btn:hover::before {
  left: 100%;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--animation-normal) ease, height var(--animation-normal) ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn--outline:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--brand);
}

.btn--ghost:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.3);
}

/* Card Animations */
.card {
  transition: all var(--animation-normal) var(--ease-out-cubic);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--animation-normal) var(--ease-out-cubic);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.card .feature i {
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.card:hover .feature i {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent);
}

/* Service Box Animations */
.service-box {
  animation: slideUp var(--animation-slow) var(--ease-out-cubic) forwards;
  opacity: 0;
}

.service-box:nth-child(1) { animation-delay: 0.1s; }
.service-box:nth-child(2) { animation-delay: 0.2s; }
.service-box:nth-child(3) { animation-delay: 0.3s; }
.service-box:nth-child(4) { animation-delay: 0.4s; }

.service-box__icon {
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.service-box:hover .service-box__icon {
  transform: scale(1.1) rotate(10deg);
}

/* Section Title Animations */
.section__header {
  animation: slideUp var(--animation-slow) var(--ease-out-cubic) forwards;
  opacity: 0;
}

.section__header h2 {
  position: relative;
  overflow: hidden;
}

.section__header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width var(--animation-slow) var(--ease-out-cubic);
}

.section__header:hover h2::after {
  width: 100%;
}

/* Stats Animation */
.stat {
  animation: scaleIn var(--animation-slow) var(--ease-bounce) forwards;
  opacity: 0;
}

.stat:nth-child(1) { animation-delay: 0.1s; }
.stat:nth-child(2) { animation-delay: 0.2s; }
.stat:nth-child(3) { animation-delay: 0.3s; }
.stat:nth-child(4) { animation-delay: 0.4s; }

.stat:hover {
  transform: scale(1.05);
}

/* Form Animations */
.contact__form input,
.contact__form textarea {
  transition: all var(--animation-normal) var(--ease-out-cubic);
  position: relative;
}

.contact__form input:focus,
.contact__form textarea:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  border-color: var(--brand);
}

.contact__form label {
  transition: color var(--animation-normal) var(--ease-out-cubic);
}

.contact__form input:focus + label,
.contact__form textarea:focus + label {
  color: var(--brand);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  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 1.5s infinite;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Mobile Menu Animations */
.mobile-menu-btn {
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.hamburger-line {
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Animations */
.nav {
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.nav.open {
  animation: slideRight var(--animation-normal) var(--ease-out-cubic);
}

.nav a {
  position: relative;
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--animation-normal) var(--ease-out-cubic);
}

.nav a:hover::before {
  width: 100%;
}

/* Footer Animations */
.footer__content {
  animation: slideUp var(--animation-slow) var(--ease-out-cubic) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

/* Sticky Button Animation */
.sticky {
  animation: slideUp var(--animation-slow) var(--ease-out-cubic) forwards;
  opacity: 0;
  animation-delay: 1s;
}

.sticky .btn {
  /* Animation removed for better UX */
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Parallax Effects */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero__image img {
    animation: none;
  }
  
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Intersection Observer Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--animation-slow) var(--ease-out-cubic);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all var(--animation-slow) var(--ease-out-cubic);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--animation-slow) var(--ease-out-cubic);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--animation-slow) var(--ease-out-cubic);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero__text h1 {
    animation-duration: 0.8s;
  }
  
  .hero__text p,
  .hero__actions {
    animation-duration: 0.6s;
  }
  
  .card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .btn:hover {
    transform: translateY(-2px) scale(1.01);
  }
}

/* High Performance Animations */
@media (prefers-reduced-motion: no-preference) {
  .smooth-scroll {
    scroll-behavior: smooth;
  }
  
  .will-change-transform {
    will-change: transform;
  }
  
  .will-change-opacity {
    will-change: opacity;
  }
}

/* Course Details Page Specific Animations */
.course-card-enhanced {
  position: relative;
  overflow: hidden;
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.course-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--animation-normal) var(--ease-out-cubic);
}

.course-card-enhanced:hover::before {
  transform: scaleX(1);
}

.course-card-enhanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.course-card-enhanced .icon-animated {
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.course-card-enhanced:hover .icon-animated {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent);
}

/* Special Offer Enhanced */
.special-offer-enhanced {
  position: relative;
  overflow: hidden;
}

.special-offer-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 25%, 
    rgba(34, 197, 94, 0.05) 50%, 
    rgba(59, 130, 246, 0.05) 75%, 
    rgba(139, 92, 246, 0.05) 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  z-index: -1;
}

.special-offer-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

.glow-effect {
  animation: glow 2s ease-in-out infinite alternate;
}

/* Schedule Section Enhanced */
.schedule-enhanced {
  position: relative;
  overflow: hidden;
}

.schedule-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--animation-normal) var(--ease-out-cubic);
}

.schedule-enhanced:hover::before {
  transform: scaleX(1);
}

.schedule-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.calendar-icon {
  animation: bounce 2s ease-in-out infinite;
}

/* Enhanced Button Styles */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transition: all var(--animation-normal) var(--ease-out-cubic);
}

.btn-enhanced::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 var(--animation-slow) ease;
}

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

.btn-enhanced:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-enhanced:active {
  transform: translateY(-1px) scale(1.02);
}

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

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

/* Floating Icons */
.icon-animated {
  animation: float 3s ease-in-out infinite;
}

/* Enhanced Certificate Header */
.certificate-header {
  position: relative;
  overflow: hidden;
}

.certificate-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.03) 0%, 
    rgba(139, 92, 246, 0.03) 50%, 
    rgba(34, 197, 94, 0.03) 100%);
  z-index: -1;
}

.certificate-icon {
  animation: float 3s ease-in-out infinite;
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Mobile Optimizations for Course Details */
@media (max-width: 768px) {
  .course-card-enhanced:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .btn-enhanced:hover {
    transform: translateY(-2px) scale(1.02);
  }
  
  .special-offer-enhanced:hover {
    transform: translateY(-2px);
  }
  
  .schedule-enhanced:hover {
    transform: translateY(-2px);
  }
  
  .icon-animated {
    animation-duration: 2s;
  }
  
  .pulse-icon {
    animation-duration: 1.5s;
  }
  
  .calendar-icon {
    animation-duration: 1.5s;
  }
}

/* Diploma Details Enhanced Styles */
.requirement-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.requirement-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.requirement-enhanced:hover::before {
  opacity: 1;
}

.diploma-card-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.diploma-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.diploma-card-enhanced:hover::before {
  opacity: 1;
}

.skill-tag-animated {
  position: relative;
  transition: all 0.3s ease;
}

.skill-tag-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.skill-tag-animated:hover::before {
  opacity: 1;
}

.duration-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.duration-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.duration-enhanced:hover::before {
  opacity: 1;
}

/* Additional Enhancements for Associate Continuous Details */
.associate-details-enhanced {
  position: relative;
  overflow: hidden;
}

.associate-details-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.02) 0%, 
    rgba(139, 92, 246, 0.02) 25%, 
    rgba(34, 197, 94, 0.02) 50%, 
    rgba(59, 130, 246, 0.02) 75%, 
    rgba(139, 92, 246, 0.02) 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  z-index: -1;
}

/* Enhanced University Cards */
.university-card-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.university-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.university-card-enhanced:hover::before {
  transform: scaleX(1);
}

.university-card-enhanced:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Enhanced Field Cards */
.field-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.field-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.field-enhanced:hover::before {
  opacity: 1;
}

.field-enhanced:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Enhanced Info Cards */
.info-card-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.info-card-enhanced:hover::before {
  opacity: 1;
}

.info-card-enhanced:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Enhanced Price Display */
.price-display-enhanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.price-display-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(139, 92, 246, 0.1) 25%, 
    rgba(34, 197, 94, 0.1) 50%, 
    rgba(59, 130, 246, 0.1) 75%, 
    rgba(139, 92, 246, 0.1) 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  z-index: -1;
}

.price-display-enhanced:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

/* Enhanced Action Buttons Container */
.action-buttons-enhanced {
  position: relative;
  padding: 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.action-buttons-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Enhanced Section Titles */
.section-title-enhanced {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.section-title-enhanced::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
  transition: width 0.3s ease;
}

.section-title-enhanced:hover::after {
  width: 100%;
}

.section-title-enhanced:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Enhanced Loading States */
.loading-enhanced {
  position: relative;
  overflow: hidden;
}

.loading-enhanced::after {
  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 2s infinite;
}

/* Enhanced Mobile Animations */
@media (max-width: 768px) {
  .university-card-enhanced:hover,
  .field-enhanced:hover,
  .info-card-enhanced:hover {
    transform: translateY(-2px) scale(1.01);
  }
  
  .price-display-enhanced:hover {
    transform: translateY(-3px) scale(1.01);
  }
  
  .action-buttons-enhanced:hover {
    transform: translateY(-2px);
  }
  
  .section-title-enhanced:hover {
    transform: translateY(-1px);
  }
}

/* Enhanced Focus States for Accessibility */
.btn-enhanced:focus,
.field-enhanced:focus,
.info-card-enhanced:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .associate-details-enhanced::before {
    background: linear-gradient(135deg, 
      rgba(59, 130, 246, 0.03) 0%, 
      rgba(139, 92, 246, 0.03) 25%, 
      rgba(34, 197, 94, 0.03) 50%, 
      rgba(59, 130, 246, 0.03) 75%, 
      rgba(139, 92, 246, 0.03) 100%);
  }
  
  .price-display-enhanced {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  }
  
  .action-buttons-enhanced {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
  }
}

/* Reduced Motion Support for Course Details */
@media (prefers-reduced-motion: reduce) {
  .course-card-enhanced:hover,
  .btn-enhanced:hover,
  .special-offer-enhanced:hover,
  .schedule-enhanced:hover,
  .requirement-enhanced:hover,
  .diploma-card-enhanced:hover,
  .skill-tag-animated:hover,
  .duration-enhanced:hover,
  .university-card-enhanced:hover,
  .field-enhanced:hover,
  .info-card-enhanced:hover,
  .price-display-enhanced:hover,
  .action-buttons-enhanced:hover,
  .section-title-enhanced:hover {
    transform: none;
  }
  
  .icon-animated,
  .pulse-icon,
  .calendar-icon,
  .certificate-icon {
    animation: none;
  }
  
  .glow-effect {
    animation: none;
  }
  
  .associate-details-enhanced::before,
  .price-display-enhanced::before {
    animation: none;
  }
}