/**
 * Travel Command Center Home Page Styles
 * Glass morphism effects with travel theme for the landing page
 */

/* Travel Command Center Background */
.command-center-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 191, 255, 0.08) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%);
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Travel Particles */
.travel-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  animation: float-particle 15s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(90deg); }
  50% { transform: translateY(-60px) rotate(180deg); }
  75% { transform: translateY(-30px) rotate(270deg); }
}

/* Hero Title Gradient */
.hero-title-gradient {
  background: linear-gradient(135deg, #ffd700, #ffed4e, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
  animation: titlePulse 6s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { 
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    transform: scale(1);
  }
  50% { 
    text-shadow: 0 0 80px rgba(255, 215, 0, 0.8);
    transform: scale(1.02);
  }
}

/* Travel Emoji Animations */
.travel-emoji-bar {
  animation: emojiFloat 8s ease-in-out infinite;
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

/* Action Button Styles */
.action-btn {
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

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

.action-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

/* ===== SECTION PADDING ===== */
.section-padding {
  padding: var(--space-32) 0;
}

/* ===== HERO SECTION ===== */
.hero-glass {
  position: relative;
  background: transparent;
}

/* Legacy floating elements - keeping for compatibility but updated for travel theme */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0.3;
}

.floating-element-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation-duration: 6s;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 191, 255, 0.1));
}

.floating-element-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-duration: 8s;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(255, 215, 0, 0.1));
}

.floating-element-3 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 25%;
  animation-duration: 7s;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 191, 255, 0.1));
}

.hero-title {
  position: relative;
}

.hero-emoji {
  display: inline-block;
  animation: bounce-emoji 2s ease-in-out infinite;
}

@keyframes bounce-emoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-5deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
  75% { transform: translateY(-10px) rotate(-2deg); }
}

.btn-hero {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all var(--timing-normal) var(--easing-spring);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--bg-gradient-aurora);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--timing-normal);
}

.btn-hero:hover::before {
  opacity: 1;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  transition: all var(--timing-fast) var(--easing-smooth);
  box-shadow: var(--shadow-sm);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  position: relative;
  transition: all var(--timing-normal) var(--easing-spring);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow-strong);
}

.feature-icon-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon-bg {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.15;
  animation: pulse-glow 3s ease-in-out infinite;
}

.feature-icon {
  position: relative;
  z-index: 2;
  transition: all var(--timing-normal) var(--easing-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.feature-card:hover .feature-icon-bg {
  opacity: 0.25;
  transform: scale(1.1);
}

/* ===== STEP CARDS ===== */
.step-card {
  position: relative;
  transition: all var(--timing-normal) var(--easing-smooth);
}

.step-number {
  transition: all var(--timing-normal) var(--easing-spring);
  position: relative;
  overflow: hidden;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: rotate 3s linear infinite;
  opacity: 0;
  transition: opacity var(--timing-normal);
}

.step-card:hover .step-number::before {
  opacity: 1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-content {
  position: relative;
}

.quote-icon {
  position: relative;
}

.quote-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--bg-gradient-primary);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.testimonial-image {
  position: relative;
}

.testimonial-image::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: var(--bg-gradient-secondary);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

.testimonial-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 120px;
  height: 120px;
  background: var(--bg-gradient-aurora);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
  animation: pulse-glow 5s ease-in-out infinite reverse;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(240, 147, 251, 0.08) 0%, transparent 50%);
  animation: gradient-shift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-bg {
  pointer-events: none;
  animation: cta-pulse 6s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes hero-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); 
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6); 
    transform: scale(1.02);
  }
}

.animate-hero-glow {
  animation: hero-glow 3s ease-in-out infinite;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-20) 0;
  }
  
  .hero-glass {
    min-height: 90vh !important;
  }
  
  .floating-element {
    display: none;
  }
  
  .hero-actions .d-flex {
    gap: var(--space-3) !important;
  }
  
  .btn-hero {
    min-width: auto !important;
    width: 100%;
    max-width: 280px;
  }
  
  .trust-item {
    flex-direction: column;
    text-align: center;
    padding: var(--space-3);
  }
  
  .feature-icon-bg {
    width: 80px;
    height: 80px;
  }
  
  .step-number {
    width: 60px !important;
    height: 60px !important;
    font-size: var(--font-size-2xl) !important;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: var(--space-16) 0;
  }
  
  .hero-glass {
    padding: var(--space-8) 0;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
  }
  
  .trust-item {
    gap: var(--space-1);
  }
  
  .trust-item i {
    font-size: var(--font-size-lg) !important;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.feature-card,
.step-card,
.testimonial-image {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .floating-element,
  .hero-emoji,
  .feature-icon-bg,
  .step-number::before,
  .cta-bg {
    animation: none !important;
  }
  
  .animate-float,
  .animate-pulse-glow,
  .animate-hero-glow {
    animation: none !important;
  }
}

/* ===== LOADING STATES ===== */
.content-loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--easing-spring);
}

.content-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-contrast: high) {
  .text-glass,
  .text-glass-muted {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  }
  
  .card-glass,
  .btn-glass {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
  }
}

/* Focus indicators for better accessibility */
.btn-hero:focus,
.card-glass:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

a[href^="#"] {
  scroll-behavior: smooth;
}