:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --color-orange-50: #fff7ed;
  --color-orange-100: #ffedd5;
  --color-orange-200: #fed7aa;
  --color-orange-300: #fdba74;
  --color-orange-400: #fb923c;
  --color-orange-500: #f97316;
  --color-orange-600: #ea580c;
  --color-orange-700: #c2410c;
  --color-orange-800: #9a3412;
  --color-orange-900: #7c2d12;

  /* Elegant color palette */
  --color-primary: #f97316;
  --color-secondary: #1e293b;
  --color-accent: #06b6d4;
  --color-light: #f8fafc;
  --color-dark: #0f172a;
  --color-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
}

/* ====== TYPOGRAPHY RHYTHM ====== */
body {
  letter-spacing: -0.01em;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
}

p {
  line-height: 1.75;
  color: #475569; /* slate-600 */
}

/* ====== SECTION RHYTHM ====== */
section {
  position: relative;
  scroll-margin-top: 120px;
}

section + section {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

/* ================= NAVBAR POWER ================= */
header {
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

header.scrolled {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
}

nav a {
  position: relative;
  font-weight: 600;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg,#ff7a18,#ffb347);
  transition: width 0.4s ease;
}

nav a:hover::after,
nav a.text-orange-500::after {
  width: 100%;
}

/* ================= GLOBAL MOTION ================= */
@keyframes floatSlow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 0 rgba(255,122,24,0.0); }
  50% { box-shadow: 0 0 40px rgba(255,122,24,0.45); }
  100% { box-shadow: 0 0 0 rgba(255,122,24,0.0); }
}

/* Enhanced Floating Animations */
@keyframes elegantFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(1deg);
  }
  66% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ====== MOBILE MENU ANIMATIONS ====== */
@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpMenu {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

@keyframes fadeOverlay {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

/* Typing indicator dots */
.typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingBounce 1s infinite;
}
.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.typing .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

#mobile-menu {
  animation: slideDownMenu 0.6s cubic-bezier(0.23, 1, 0.320, 1) forwards;
  transform-origin: top;
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.closing {
  animation: slideUpMenu 0.5s cubic-bezier(0.7, 0, 1, 0.5) forwards;
}

#mobile-menu.hidden {
  display: none !important;
}

.mobile-backdrop {
  animation: fadeOverlay 0.6s ease-out forwards;
  display: block !important;
}

.mobile-backdrop.closing {
  animation: fadeOverlay 0.5s ease-in forwards reverse;
}

.mobile-backdrop.hidden {
  display: none !important;
  pointer-events: none;
}

/* ====== CHATBOT ====== */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 6px rgba(132, 204, 22, 0.18);
}

#chat-window {
  backdrop-filter: saturate(150%) blur(2px);
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}
#chat-messages::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 999px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.chip:hover {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
  transform: translateY(-1px);
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
}
.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}
.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.42);
}

/* Hamburger to X animation */
.hamburger-line {
  transition: all 0.4s ease;
  transform-origin: center;
}

#mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

@keyframes rotateIn {
  from {
    transform: rotate(-180deg) scale(0);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes bounceInUp {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation Utility Classes */
.animate-slideInUp {
  animation: slideInUp 0.6s ease-out forwards;
}

.animate-fadeInScale {
  animation: fadeInScale 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeInScale 0.8s ease-out;
}

/* Elegant Section Styles */
.elegant-section {
  position: relative;
  overflow: hidden;
}

.elegant-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(249, 115, 22, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  pointer-events: none;
}

.hero-elegant {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
  min-height: 90vh;
  padding-bottom: 6rem;
  padding-top: 7rem;
}

.hero-elegant::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  animation: gentlePulse 8s ease-in-out infinite;
}

.hero-elegant h1 {
  line-height: 1.1;
}

.stats-elegant {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.features-elegant {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
}

.features-elegant::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: elegantFloat 6s ease-in-out infinite;
}

.testimonials-elegant {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.cta-elegant {
  background: var(--color-gradient);
  position: relative;
  overflow: hidden;
}

.cta-elegant::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: gentlePulse 4s ease-in-out infinite;
  transform: rotate(45deg);
}

.footer-elegant {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  animation: elegantFloat 6s ease-in-out infinite;
  opacity: 0.6;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.floating-element:nth-child(4) {
  bottom: 10%;
  right: 10%;
  animation-delay: 1s;
}

/* Enhanced Card Styles */
/* ================= PREMIUM CARDS ================= */
.elegant-card {
  position: relative;
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc, #ffffff);
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
  border: 2px solid rgba(15,23,42,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  transition: transform 0.4s ease;
}

.elegant-card:hover {
  transform: translateY(-14px) scale(1.03);
}

/* ====== BUTTONS ====== */
.elegant-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elegant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.45);
}

.elegant-btn-secondary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--color-primary);
  border: 2px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.elegant-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), rgba(6, 182, 212, 0.1), transparent);
  transition: left 0.8s ease;
}

.elegant-btn-secondary::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.elegant-btn-secondary:hover::before {
  left: 100%;
}

.elegant-btn-secondary:hover::after {
  opacity: 0.3;
}

.elegant-btn-secondary:hover {
  background: linear-gradient(135deg, #fef7f0 0%, #fdf2e9 100%);
  color: var(--color-primary);
  border-color: rgba(249, 115, 22, 0.6);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

/* Continuous Section Animations */
.section-active {
  animation: sectionPulse 10s ease-in-out infinite;
}

@keyframes sectionPulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.02) saturate(1.05);
  }
}

/* Enhanced Visual Effects */
.elegant-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  animation: backgroundShift 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* ====== FETP FEATURED ====== */
.fetp-featured {
  position: relative;
  border-radius: 32px;
  padding: 4rem;
  background: linear-gradient(120deg, #ff7a18, #ffb347, #ff7a18);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite, glowPulse 3.5s ease infinite;
  color: white;
}

.fetp-featured * {
  color: white !important;
}

.fetp-featured::before {
  content: "FLAGSHIP PROGRAM";
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 6px 16px;
  background: black;
  color: white;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
}

.fetp-featured:hover {
  transform: scale(1.02);
}

/* ====== DARK CTA ====== */
.bg-gray-900 {
  background: linear-gradient(135deg, #0f172a, #020617);
}

@media (max-width: 768px) {
  h1 {
    line-height: 1.15;
  }

  .fetp-featured {
    padding: 2.5rem 1.5rem;
  }
}

/* Continuous Card Animations */

/* remove redundant float animations; card movement handled in hover and gradient */

/* Smooth Section Transitions */
section {
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

/* ================= SECTION MOTION (PAGE BREATHE) ================= */
section {
  animation: floatSlow 18s ease-in-out infinite;
}

/* Subtle continuous background animation */
@keyframes elegantBackground {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.7;
}

.elegant-section ul li {
  line-height: 1.6;
}

/* Controlled transitions only on interactive elements */
button,
a,
.hover-lift,
.elegant-card,
.magnetic,
.interactive-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Advanced Animation Effects */
@keyframes morphingGradient {
  0%, 100% {
    background-position: 0% 50%;
    border-radius: 20px 40px 20px 40px;
  }
  25% {
    background-position: 100% 50%;
    border-radius: 40px 20px 40px 20px;
  }
  50% {
    background-position: 50% 0%;
    border-radius: 20px 40px 40px 20px;
  }
  75% {
    background-position: 50% 100%;
    border-radius: 40px 20px 20px 40px;
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(249, 115, 22, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.6), 0 0 30px rgba(249, 115, 22, 0.4);
  }
}

.boss-highlight {
  color: #f97316; /* Orange color */
  font-weight: 800;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  position: relative;
}

/* Enhanced Particle Effects */
@keyframes particleFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  animation: particleFloat linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

/* Advanced Hover Effects */
.elegant-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-secondary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.elegant-card:hover::after {
  opacity: 0.3;
}

/* Sophisticated Button Effects */
.elegant-btn {
  position: relative;
  overflow: hidden;
}

.elegant-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.elegant-btn:active::before {
  width: 300px;
  height: 300px;
}

/* ================= CTA POWER ================= */
/* ================= BUTTON ACTIVE STATES & UX ================= */
button, .elegant-btn, .elegant-btn-secondary, .fetp-btn-primary, .fetp-btn-secondary {
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button:active, .elegant-btn:active, .elegant-btn-secondary:active {
  transform: scale(0.97) !important;
}

.elegant-btn {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  border-radius: 999px;
  padding: 16px 34px;
  font-weight: 700;
  box-shadow: 0 18px 50px rgba(255,122,24,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.elegant-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 25px 65px rgba(255, 122, 24, 0.55);
}

.elegant-btn:active {
  transform: scale(0.95);
}

/* ================= IMPROVED MODAL UX ================= */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ================= SCROLL-BASED ANIMATIONS ================= */
@keyframes slideInUpSmooth {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade-in {
  opacity: 0;
  animation: slideInUpSmooth 0.6s ease forwards;
}

/* ================= ENHANCED CARD HOVER WITH SHADOW ================= */
.elegant-card {
  position: relative;
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc, #ffffff);
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
  border: 2px solid rgba(15,23,42,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.elegant-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: 0 30px 80px rgba(249, 115, 22, 0.2), 0 0 40px rgba(249, 115, 22, 0.1);
}

/* ================= MOBILE OPTIMIZATIONS ================= */
@media (max-width: 640px) {
  .elegant-card {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .elegant-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
    border-radius: 999px;
  }

  /* Disable animation on mobile for performance */
  section {
    animation: none !important;
  }

  .floating-element {
    animation: none !important;
  }

  /* Reduce glow effects on mobile */
  .animate-pulse {
    animation: none;
    opacity: 0.8;
  }
}

/* Enhanced Scroll Effects */
@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Older active-reveal rules - now handled by main reveal system below */

/* Advanced Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-120%) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateX(-10%) scale(0.95);
    opacity: 0.8;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(120%) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateX(10%) scale(0.95);
    opacity: 0.8;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Reveal Classes - Content visible by default */
.reveal-left {
  opacity: 1;
  transform: none;
  animation: none;
}

.reveal-right {
  opacity: 1;
  transform: none;
  animation: none;
}

.reveal-up {
  opacity: 1;
  transform: none;
  animation: none;
}

.reveal-fade {
  opacity: 1;
  transform: none;
  animation: none;
}

.reveal-scale {
  opacity: 1;
  transform: none;
  animation: none;
}

.reveal-bounce {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Active reveal state - trigger animations */
.reveal-left.active-reveal {
  animation: slideInLeft 0.9s ease forwards;
}

.reveal-right.active-reveal {
  animation: slideInRight 1.2s ease forwards;
}

.reveal-up.active-reveal {
  animation: slideInUp 0.8s ease forwards;
}

.reveal-fade.active-reveal {
  animation: fadeIn 0.8s ease forwards;
}

.reveal-scale.active-reveal {
  animation: scaleIn 0.6s ease forwards;
}

.reveal-bounce.active-reveal {
  animation: bounceIn 0.8s ease forwards;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-glow:hover {
  animation: glow 2s infinite;
}

.gradient-bg {
  background: linear-gradient(-45deg, #f97316, #ea580c, #dc2626, #f97316);
  background-size: 400% 400%;
  animation: gradientShift 4s ease infinite;
}

/* Loading Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #fb923c;
  border-radius: 5px;
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #f97316;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}

.cursor-outline {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid #f97316;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor-hover .cursor-outline {
  transform: scale(1.5) translate(-50%, -50%);
  border-color: #ea580c;
}

.cursor-click .cursor-dot {
  transform: scale(0.5);
}

/* Particle Effects */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(249, 115, 22, 0.6);
  border-radius: 50%;
  animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced Animations */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.8), 0 0 30px rgba(249, 115, 22, 0.6);
  }
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

@keyframes cardFlip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #f97316;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid #f97316;
  white-space: nowrap;
  display: inline-block;
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #f97316;
  }
}

.typewriter-cursor::after {
  content: '|';
  animation: blink-caret 1s infinite;
}

.boss-highlight {
  color: #f97316; /* Orange color */
  font-weight: 800;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  position: relative;
}

.boss-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 2px;
}

.interactive-card:hover {
  transform: rotateY(5deg) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.magnetic {
  transition: transform 0.3s ease;
}

.magnetic:hover {
  transform: scale(1.1);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  z-index: 1000;
  transition: width 0.3s ease;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 2s ease-in-out 3s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* Enhanced Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.3s ease;
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-color {
  transition: color 0.3s ease;
}

.hover-color:hover {
  color: #f97316;
}

/* 3D Effects */
.parallax-layer {
  transform-style: preserve-3d;
}

.parallax-layer:nth-child(1) {
  transform: translateZ(0px);
}

.parallax-layer:nth-child(2) {
  transform: translateZ(-1px);
}

.parallax-layer:nth-child(3) {
  transform: translateZ(-2px);
}

/* Responsive Design Enhancements */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .stats-section .counter {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .mobile-menu {
    padding: 1rem;
  }
}

/* Additional Interactive Animations */
@keyframes wiggle {
  0%, 7% { transform: rotateZ(0); }
  15% { transform: rotateZ(-15deg); }
  20% { transform: rotateZ(10deg); }
  25% { transform: rotateZ(-10deg); }
  30% { transform: rotateZ(6deg); }
  35% { transform: rotateZ(-4deg); }
  40%, 100% { transform: rotateZ(0); }
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

.hover-wiggle:hover {
  animation: wiggle 1s ease-in-out;
}

.hover-heartbeat:hover {
  animation: heartbeat 1s ease-in-out;
}

/* Enhanced Button Effects */
.btn-primary {
  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;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Smooth Scrolling Enhancement */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* ================= IMPROVED LOADING & FEEDBACK ================= */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-state {
  opacity: 0.6;
  pointer-events: none;
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 1000px 100%;
}

/* ================= BETTER LINK INTERACTIONS ================= */
a {
  transition: color 0.3s ease, background-color 0.3s ease;
}

a:not(.elegant-btn):not(.elegant-btn-secondary):not([class*="btn"]):not([class*="fetp"]):not([class*="rounded-full"]):hover {
  color: #f97316;
}

/* ================= SMOOTH TRANSITIONS ON INTERACTIVE ELEMENTS ================= */
button,
a,
.hover-lift,
.elegant-card,
.magnetic,
.interactive-card,
input,
textarea,
select {
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* ================= ENHANCED FORM ELEMENTS ================= */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1), 0 0 0 5px #f97316;
  border-color: #f97316;
}

input,
textarea,
select {
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
}

/* Prevent zoom on mobile input focus */
input,
textarea,
select {
  font-size: 16px;
}

/* ================= IMPROVED NAVIGATION UX ================= */
nav a {
  position: relative;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg,#ff7a18,#ffb347);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
}

nav a:hover::after,
nav a.text-orange-500::after {
  width: 100%;
}

/* ================= CARD STAGGER ANIMATION ================= */
@keyframes staggerIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-stagger-1 { animation: staggerIn 0.4s ease 0.1s backwards; }
.card-stagger-2 { animation: staggerIn 0.4s ease 0.2s backwards; }
.card-stagger-3 { animation: staggerIn 0.4s ease 0.3s backwards; }
.card-stagger-4 { animation: staggerIn 0.4s ease 0.4s backwards; }
.card-stagger-5 { animation: staggerIn 0.4s ease 0.5s backwards; }
.card-stagger-6 { animation: staggerIn 0.4s ease 0.6s backwards; }

/* ================= TOUCH DEVICE OPTIMIZATIONS ================= */
@media (hover: none) and (pointer: coarse) {
  .elegant-btn:hover,
  .elegant-btn-secondary:hover,
  .elegant-card:hover {
    transform: none;
  }

  .elegant-btn:active,
  .elegant-btn-secondary:active {
    transform: scale(0.95);
  }

  /* Larger touch targets on mobile */
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }

  /* Disable pointer-based hovers on touch devices */
  .group:hover > * {
    filter: none;
  }

  /* Reduce animations on touch devices */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* ================= FALLBACK SMOOTH SCROLL ================= */
html {
  scroll-behavior: smooth;
}

@supports not (scroll-behavior: smooth) {
  html {
    scroll-behavior: auto;
  }
}

/* ================= FETP PREMIUM STYLES ================= */

/* FETP Featured Card Premium Enhancement */
.fetp-featured-premium {
  position: relative;
  background: linear-gradient(135deg, #ff7a18, #ffb347, #ff7a18);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite, glowPulse 4s ease infinite;
}

/* FETP Primary Button */
.fetp-btn-primary {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #f97316;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.fetp-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.15), transparent);
  transition: left 0.8s ease;
}

.fetp-btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.fetp-btn-primary:hover::before {
  left: 100%;
}

/* FETP Secondary Button */
.fetp-btn-secondary {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.fetp-btn-secondary::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.8s ease;
}

.fetp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.fetp-btn-secondary:hover::before {
  left: 100%;
}

/* Hero Section Enhancements */
.hero-elegant {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  animation: gentlePulse 8s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Card Glow on Hover */
.elegant-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elegant-card:hover {
  box-shadow: 0 30px 80px rgba(249, 115, 22, 0.2), 0 0 40px rgba(249, 115, 22, 0.1);
}

/* Premium Button Glow */
.elegant-btn {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(255, 122, 24, 0.45);
}

.elegant-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.elegant-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 25px 65px rgba(255, 122, 24, 0.55);
}

/* Floating Animation */
@keyframes floatUp {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: floatUp 3s ease-in-out infinite;
}

/* Section Divider Enhancement */
section + section {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

/* Responsive FETP Card */
@media (max-width: 768px) {
  .fetp-featured-premium {
    padding: 2rem 1.5rem !important;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
}

/* Enhanced Scroll Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-animate {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Skill Card Hover Glow */
.skill-card:hover {
  box-shadow: 0 40px 100px rgba(249, 115, 22, 0.15);
  transform: translateY(-20px) scale(1.03);
}

/* Feature Icon Spin */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-on-hover:hover {
  animation: spinSlow 2s linear infinite;
}

/* FORCE PROGRAMS HERO TO BE COMPACT */
.hero-elegant {
  min-height: unset !important;
  height: auto !important;
}
/* ================= SCROLL REVEAL ANIMATIONS ================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-up {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-up.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animations for groups */
.scroll-reveal-group > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-group.active > * {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-group.active > *:nth-child(1) {
  transition-delay: 0s;
}

.scroll-reveal-group.active > *:nth-child(2) {
  transition-delay: 0.1s;
}

.scroll-reveal-group.active > *:nth-child(3) {
  transition-delay: 0.2s;
}

.scroll-reveal-group.active > *:nth-child(4) {
  transition-delay: 0.3s;
}

.scroll-reveal-group.active > *:nth-child(5) {
  transition-delay: 0.4s;
}

.scroll-reveal-group.active > *:nth-child(6) {
  transition-delay: 0.5s;
}

/* ================= SERVICES PAGE REFINEMENTS ================= */
body.services-page section {
  animation: none;
}

body.services-page .service-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.services-page .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.16);
}

body.services-page .service-card .relative {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.services-page .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.25rem;
}

body.services-page .service-tags li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
}

body.services-page .service-cta {
  margin-top: auto;
}
