.gradient-text {
  background: linear-gradient(135deg, #26296a 0%, #7b87c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(38, 41, 106, 0.2);
}

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

/* Base state for animated elements - hidden initially */
[data-animate] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When element becomes visible */
[data-animate].animate-visible {
  opacity: 1;
}

/* Fade Up Animation */
[data-animate="fade-up"] {
  transform: translateY(40px);
}
[data-animate="fade-up"].animate-visible {
  transform: translateY(0);
}

/* Fade Down Animation */
[data-animate="fade-down"] {
  transform: translateY(-40px);
}
[data-animate="fade-down"].animate-visible {
  transform: translateY(0);
}

/* Fade Left Animation */
[data-animate="fade-left"] {
  transform: translateX(40px);
}
[data-animate="fade-left"].animate-visible {
  transform: translateX(0);
}

/* Fade Right Animation */
[data-animate="fade-right"] {
  transform: translateX(-40px);
}
[data-animate="fade-right"].animate-visible {
  transform: translateX(0);
}

/* Scale Up Animation */
[data-animate="scale-up"] {
  transform: scale(0.9);
}
[data-animate="scale-up"].animate-visible {
  transform: scale(1);
}

/* Zoom In Animation */
[data-animate="zoom-in"] {
  transform: scale(0.8);
}
[data-animate="zoom-in"].animate-visible {
  transform: scale(1);
}

/* Flip Animation */
[data-animate="flip"] {
  transform: perspective(1000px) rotateY(20deg);
}
[data-animate="flip"].animate-visible {
  transform: perspective(1000px) rotateY(0);
}

/* Stagger delay classes */
[data-delay="100"] {
  transition-delay: 100ms;
}
[data-delay="200"] {
  transition-delay: 200ms;
}
[data-delay="300"] {
  transition-delay: 300ms;
}
[data-delay="400"] {
  transition-delay: 400ms;
}
[data-delay="500"] {
  transition-delay: 500ms;
}
[data-delay="600"] {
  transition-delay: 600ms;
}
[data-delay="700"] {
  transition-delay: 700ms;
}
[data-delay="800"] {
  transition-delay: 800ms;
}

/* ==================== CONTINUOUS ANIMATIONS ==================== */

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(253, 191, 48, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(253, 191, 48, 0.2);
  }
}
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Bounce Animation */
@keyframes bounce-subtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-rotate-slow {
  animation: rotate-slow 20s linear infinite;
}

/* Slide In from Left */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide In from Right */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Wiggle Animation for icons */
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}
.group:hover .animate-wiggle {
  animation: wiggle 0.5s ease-in-out;
}

/* Card Hover Lift */
.card-animate {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-animate:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(38, 41, 106, 0.25);
}

/* Icon Pop on Hover */
.icon-pop {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.group:hover .icon-pop {
  transform: scale(1.1) rotate(5deg);
}

/* Text Reveal Animation */
@keyframes textReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.text-reveal {
  animation: textReveal 1s ease-out forwards;
}

/* Background Gradient Animation */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
}

/* ==================== HEADER ENTRY ANIMATIONS ==================== */

/* Header slide down animation */
/* @keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-animate {
  animation: headerSlideDown 0.6s ease-out forwards;
} */

/* Top bar fade in */
/* @keyframes topBarFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar-animate {
  animation: topBarFadeIn 0.5s ease-out forwards;
} */

/* Logo animation */
/* @keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.logo-animate {
  animation: logoReveal 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
} */

/* Header text slide in */
/* @keyframes headerTextSlide {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header-text-animate {
  animation: headerTextSlide 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
} */

/* Apply button pop in */
/* @keyframes buttonPopIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
} */
/* 
.button-pop-animate {
  animation: buttonPopIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  animation-delay: 0.4s;
  opacity: 0;
} */

/* ==================== NAVIGATION DROPDOWN ANIMATIONS ==================== */

/* Navigation fade in */
/* @keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* .nav-animate {
  animation: navFadeIn 0.4s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
} */

/* Nav item stagger animation */

/* .nav-item {
  opacity: 0;
  animation: navItemFade 0.4s ease-out forwards;
}

@keyframes navItemFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item:nth-child(1) {
  animation-delay: 0.35s;
}
.nav-item:nth-child(2) {
  animation-delay: 0.4s;
}
.nav-item:nth-child(3) {
  animation-delay: 0.45s;
}
.nav-item:nth-child(4) {
  animation-delay: 0.5s;
}
.nav-item:nth-child(5) {
  animation-delay: 0.55s;
}
.nav-item:nth-child(6) {
  animation-delay: 0.6s;
}
.nav-item:nth-child(7) {
  animation-delay: 0.65s;
}
.nav-item:nth-child(8) {
  animation-delay: 0.7s;
}
.nav-item:nth-child(9) {
  animation-delay: 0.75s;
}
 */
/* Dropdown animations */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: top center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Dropdown item stagger */
.dropdown-item {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease-out;
}

.group:hover .dropdown-item {
  opacity: 1;
  transform: translateX(0);
}

.group:hover .dropdown-item:nth-child(1) {
  transition-delay: 0.05s;
}
.group:hover .dropdown-item:nth-child(2) {
  transition-delay: 0.1s;
}
.group:hover .dropdown-item:nth-child(3) {
  transition-delay: 0.15s;
}
.group:hover .dropdown-item:nth-child(4) {
  transition-delay: 0.2s;
}
.group:hover .dropdown-item:nth-child(5) {
  transition-delay: 0.25s;
}

/* Dropdown hover effect on items */
.dropdown-item a {
  position: relative;
  overflow: hidden;
}

.dropdown-item a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #fdbf30;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.dropdown-item a:hover::before {
  transform: scaleY(1);
}

/* Chevron rotation on hover */
.nav-chevron {
  transition: transform 0.3s ease;
}

.group:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Nav link underline animation */
.nav-link-animate {
  position: relative;
}

.nav-link-animate::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fdbf30;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-animate:hover::after {
  width: 80%;
}

/* ==================== HAMBURGER MENU ANIMATIONS ==================== */

/* Hamburger Button Container */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hamburger Lines */
.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #26296a;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Active State - X animation */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Menu Slide Animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
    transform 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu.open {
  max-height: 80vh;
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
}

/* Mobile Menu Items Animation */
.mobile-menu-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.mobile-menu.open .mobile-menu-item {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for mobile menu items */
.mobile-menu.open .mobile-menu-item:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.open .mobile-menu-item:nth-child(2) {
  transition-delay: 0.15s;
}
.mobile-menu.open .mobile-menu-item:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-menu.open .mobile-menu-item:nth-child(4) {
  transition-delay: 0.25s;
}
.mobile-menu.open .mobile-menu-item:nth-child(5) {
  transition-delay: 0.3s;
}
.mobile-menu.open .mobile-menu-item:nth-child(6) {
  transition-delay: 0.35s;
}
.mobile-menu.open .mobile-menu-item:nth-child(7) {
  transition-delay: 0.4s;
}
.mobile-menu.open .mobile-menu-item:nth-child(8) {
  transition-delay: 0.45s;
}
.mobile-menu.open .mobile-menu-item:nth-child(9) {
  transition-delay: 0.5s;
}
.mobile-menu.open .mobile-menu-item:nth-child(10) {
  transition-delay: 0.55s;
}
.mobile-menu.open .mobile-menu-item:nth-child(11) {
  transition-delay: 0.6s;
}
.mobile-menu.open .mobile-menu-item:nth-child(12) {
  transition-delay: 0.65s;
}

/* Mobile dropdown animation */
.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-dropdown-content.open {
  max-height: 600px;
  opacity: 1;
}

/* Mobile dropdown items */
.mobile-dropdown-content li {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.mobile-dropdown-content.open li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-dropdown-content.open li:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-dropdown-content.open li:nth-child(2) {
  transition-delay: 0.15s;
}
.mobile-dropdown-content.open li:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-dropdown-content.open li:nth-child(4) {
  transition-delay: 0.25s;
}

/* Mobile dropdown chevron rotation */
.mobile-chevron {
  transition: transform 0.3s ease;
}

.mobile-chevron.rotate {
  transform: rotate(180deg);
}

/* Mobile link hover effect */
.mobile-link {
  position: relative;
  transition: all 0.3s ease;
}

.mobile-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: #fdbf30;
  border-radius: 0 4px 4px 0;
  transition: width 0.3s ease;
}

.mobile-link:hover::before {
  width: 4px;
}

.mobile-link:hover {
  padding-left: 12px;
}
