/* ===================================
   Flight-X Homepage - Modern Premium Design
   =================================== */

/* === ANIMATED GRADIENT BACKGROUND === */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fb 0%, #e8f4ff 50%, #f0f9ff 100%);
}

[data-theme="dark"] .hero-modern {
  background: linear-gradient(135deg, #0a1224 0%, #0d1a33 50%, #0a1224 100%);
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(11, 95, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 210, 210, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 184, 0, 0.04) 0%, transparent 30%);
  animation: gradientShift 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(1deg); }
  50% { transform: translate(0, 4%) rotate(0deg); }
  75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* Animated grid pattern */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(11, 95, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* Floating orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.3) 0%, rgba(0, 210, 210, 0.2) 100%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(0, 210, 210, 0.25) 0%, rgba(11, 95, 255, 0.15) 100%);
  bottom: -5%;
  left: -5%;
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15) 0%, rgba(11, 95, 255, 0.1) 100%);
  top: 40%;
  left: 15%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero content styling */
.hero-modern .container {
  position: relative;
  z-index: 10;
}

.hero-modern-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-modern-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-text {
  max-width: 600px;
}

@media (max-width: 1024px) {
  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(11, 95, 255, 0.1);
  border: 1px solid rgba(11, 95, 255, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #0B5FFF 0%, #00D2D2 50%, #0B5FFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 4s linear infinite;
}

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

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

@media (max-width: 1024px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0B5FFF 0%, #0952E0 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(11, 95, 255, 0.35), 0 0 0 0 rgba(11, 95, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-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 ease;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(11, 95, 255, 0.45), 0 0 0 4px rgba(11, 95, 255, 0.15);
  color: white;
}

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

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] .hero-btn-secondary {
  background: rgba(30, 38, 54, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 95, 255, 0.15);
}

.hero-btn-secondary svg {
  transition: transform 0.3s ease;
}

.hero-btn-secondary:hover svg {
  transform: translateX(4px);
}

/* Hero visual / dashboard preview */
.hero-visual-container {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (max-width: 1024px) {
  .hero-visual-container {
    max-width: 600px;
    margin: 0 auto;
  }
}

.dashboard-preview {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(11, 95, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

[data-theme="dark"] .dashboard-preview {
  background: rgba(18, 24, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #ff5f56; }
.dashboard-dot.yellow { background: #ffbd2e; }
.dashboard-dot.green { background: #27ca40; }

.dashboard-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dashboard-stat {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}

.dashboard-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.dashboard-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.dashboard-chart {
  grid-column: span 2;
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 12px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, var(--teal) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

/* Floating elements around dashboard */
.floating-card {
  position: absolute;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  animation: floatCard 4s ease-in-out infinite;
  z-index: 5;
}

[data-theme="dark"] .floating-card {
  background: #1e2636;
}

.floating-card svg {
  width: 18px;
  height: 18px;
}

.floating-card-1 {
  top: -10px;
  right: -20px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  left: -30px;
  animation-delay: -2s;
}

.floating-card-3 {
  bottom: -10px;
  right: 20%;
  animation-delay: -1s;
}

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

.floating-card .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

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

/* === TRUSTED BY SECTION === */
.trusted-section {
  padding: 3rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trusted-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trusted-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.trusted-logo {
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  max-height: 40px;
}

.trusted-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* === FEATURES GRID MODERN === */
.features-modern {
  padding: 6rem 0;
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.features-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.section-header-modern {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(11, 95, 255, 0.1);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title-modern {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle-modern {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Feature cards */
.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid-modern {
    grid-template-columns: 1fr;
  }
}

.feature-card-modern {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.05) 0%, rgba(0, 210, 210, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 95, 255, 0.15);
  border-color: rgba(11, 95, 255, 0.3);
}

.feature-card-modern:hover::before {
  opacity: 1;
}

.feature-icon-modern {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.1) 0%, rgba(0, 210, 210, 0.1) 100%);
  transition: all 0.4s ease;
}

.feature-icon-modern svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  transition: all 0.4s ease;
}

.feature-card-modern:hover .feature-icon-modern {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  transform: scale(1.1) rotate(5deg);
}

.feature-card-modern:hover .feature-icon-modern svg {
  stroke: white;
}

.feature-title-modern {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.feature-desc-modern {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  position: relative;
}

/* === STATS SECTION MODERN === */
.stats-modern {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0a1224 0%, #0d1a33 50%, #0a1224 100%);
  position: relative;
  overflow: hidden;
}

.stats-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(11, 95, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 210, 210, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .stats-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid-modern {
    grid-template-columns: 1fr;
  }
}

.stat-card-modern {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.stat-card-modern:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 210, 210, 0.3);
}

.stat-icon-modern {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 210, 210, 0.2) 0%, rgba(11, 95, 255, 0.2) 100%);
  border-radius: 12px;
}

.stat-icon-modern svg {
  width: 24px;
  height: 24px;
  stroke: var(--teal);
  stroke-width: 1.5;
  fill: none;
}

.stat-value-modern {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00D2D2 0%, #0B5FFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label-modern {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin: 0;
}

/* === MODULES SECTION === */
.modules-modern {
  padding: 6rem 0;
  background: var(--white);
}

.modules-grid-modern {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .modules-grid-modern {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .modules-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .modules-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

.module-card-modern {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.module-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(11, 95, 255, 0.12);
  border-color: var(--primary);
}

.module-icon-modern {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.1) 0%, rgba(0, 210, 210, 0.1) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.module-icon-modern svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  transition: all 0.3s ease;
}

.module-card-modern:hover .module-icon-modern {
  background: var(--primary);
}

.module-card-modern:hover .module-icon-modern svg {
  stroke: white;
}

.module-name-modern {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

/* === TESTIMONIALS MODERN === */
.testimonials-modern {
  padding: 6rem 0;
  background: var(--light-bg);
}

.testimonial-card-modern {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card-modern::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-quote-modern {
  font-size: 1.375rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}

.testimonial-author-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.author-role {
  font-size: 0.9rem;
  color: var(--muted);
}

/* === CTA SECTION MODERN === */
.cta-modern {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0B5FFF 0%, #0952E0 50%, #0B5FFF 100%);
  background-size: 200% auto;
  animation: gradientMove 5s linear infinite;
  position: relative;
  overflow: hidden;
}

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

.cta-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 210, 210, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.cta-content-modern {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title-modern {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.cta-desc-modern {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.cta-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: white;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cta-btn-modern:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: var(--primary);
}

.cta-btn-modern svg {
  transition: transform 0.3s ease;
}

.cta-btn-modern:hover svg {
  transform: translateX(4px);
}

/* === SECURITY STRIP === */
.security-strip-modern {
  padding: 2rem 0;
  background: var(--navy);
}

.security-items-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.security-item-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.security-item-modern svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  stroke-width: 1.5;
  fill: none;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

/* === ENHANCED EFFECTS === */

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

/* Gradient border animation */
.gradient-border {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--teal), var(--primary));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradientBorder 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

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

/* 3D Tilt Effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}

/* Glow effect on buttons */
.glow-btn {
  position: relative;
}

.glow-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.glow-btn:hover::after {
  opacity: 0.6;
}

/* Animated text highlight */
.text-highlight {
  position: relative;
  display: inline;
}

.text-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.2) 0%, rgba(0, 210, 210, 0.2) 100%);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.text-highlight.animated::after {
  transform: scaleX(1);
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 35%; top: 50%; animation-delay: -10s; animation-duration: 28s; }
.particle:nth-child(4) { left: 50%; top: 30%; animation-delay: -15s; animation-duration: 22s; }
.particle:nth-child(5) { left: 65%; top: 70%; animation-delay: -2s; animation-duration: 24s; }
.particle:nth-child(6) { left: 80%; top: 40%; animation-delay: -8s; animation-duration: 26s; }
.particle:nth-child(7) { left: 90%; top: 60%; animation-delay: -12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 5%; top: 90%; animation-delay: -18s; animation-duration: 23s; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Animated counter */
.counter {
  display: inline-block;
}

/* Logo marquee */
.logo-marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.logo-track {
  display: flex;
  animation: marquee 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

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

/* Typing cursor effect */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Enhanced card shine effect */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.shine-effect:hover::before {
  left: 150%;
}

/* Pulse ring effect */
.pulse-ring {
  position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
}

.pulse-ring:hover::before {
  animation: pulseRing 1.5s ease-out infinite;
}

.pulse-ring:hover::after {
  animation: pulseRing 1.5s ease-out 0.5s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Magnetic button effect */
.magnetic-btn {
  transition: transform 0.3s ease;
}

/* Feature card enhanced */
.feature-card-modern.gradient-border {
  background: var(--card-bg);
}

/* Stats counter animation */
.stat-value-modern.counting {
  animation: countPulse 0.3s ease;
}

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

/* Hover spotlight effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(11, 95, 255, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Text scramble animation prep */
.scramble-text {
  display: inline-block;
}

/* Smooth underline animation */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.animated-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Enhanced module cards */
.module-card-modern.shine-effect::before {
  background: linear-gradient(90deg, transparent, rgba(11, 95, 255, 0.15), transparent);
}

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

/* Interactive label badge */
.section-label {
  position: relative;
  overflow: hidden;
}

.section-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: labelShine 3s infinite;
}

@keyframes labelShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Floating badge enhancement */
.hero-badge {
  animation: fadeInUp 0.6s ease-out, floatBadge 4s ease-in-out 1s infinite;
}

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

/* Enhanced testimonial quote marks */
.testimonial-card-modern::before {
  animation: quoteFloat 5s ease-in-out infinite;
}

@keyframes quoteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

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

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--teal));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0952E0, #00b8b8);
}

/* Dark mode scrollbar */
[data-theme="dark"]::-webkit-scrollbar-track {
  background: var(--navy);
}

/* Interactive dots behind hero */
.interactive-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 30px;
  padding: 50px;
  opacity: 0.3;
}

.grid-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* Blob morphing animation */
.morph-blob {
  animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}
