/* ==========================================================================
   FLYHUB TRAVELS & TOURS — LUXURY ENTERPRISE DESIGN SYSTEM
   Brand Palette strictly derived from FlyHub Logo:
   - Primary Emerald Green:  #077844 / #059669 / #ECFDF5
   - Primary Crimson Red:    #E80324 / #DC2626 / #FEF2F2
   - Enterprise Aviation:    #0B192C / #0F172A / #1E293B
   - Clean Neutrals:         #F8FAFC / #FFFFFF / #E2E8F0 / #475569
   ========================================================================== */

:root {
  --fh-navy: #0B192C;
  --fh-dark: #0F172A;
  --fh-green: #077844;
  --fh-green-dark: #065F46;
  --fh-green-soft: #ECFDF5;
  --fh-red: #E80324;
  --fh-red-dark: #B91C1C;
  --fh-red-soft: #FEF2F2;
  --fh-surface: #F8FAFC;
  --fh-card: #FFFFFF;
  --fh-border: #E2E8F0;
  --fh-text: #0F172A;
  --fh-muted: #475569;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fh-text);
  background-color: var(--fh-surface);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--fh-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   FLYHUB LUXURY ANIMATED BRAND BALL MOUSE POINTER
   - Precision center core dot
   - 3D Animated Emerald & Crimson glowing brand ball
   - Smooth trailing orbital halo ring with physics easing
   - Magnetic hover expansion & click shockwave
   - Strictly disabled on touch/coarse devices
   ========================================================================== */
.fh-cursor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fh-cursor-layer.is-active {
  opacity: 1;
}

/* Precision Center Core Dot */
.fh-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 9999px;
  background: #34D399;
  box-shadow: 0 0 8px #34D399, 0 0 2px #FFFFFF;
  pointer-events: none;
  z-index: 100002;
  transition: transform 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
  will-change: transform;
}

/* 3D Animated Floating Brand Ball */
.fh-cursor-ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 9999px;
  background: radial-gradient(circle at 32% 28%, #6EE7B7 0%, #10B981 25%, #077844 65%, #044E2C 90%, #0B192C 100%);
  box-shadow: 0 0 16px rgba(7, 120, 68, 0.75),
              0 0 30px rgba(7, 120, 68, 0.35),
              inset 0 1px 2px rgba(255, 255, 255, 0.75);
  pointer-events: none;
  z-index: 100001;
  animation: fhBallBreathe 2.4s ease-in-out infinite alternate;
  will-change: transform, width, height;
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.24s ease,
              box-shadow 0.24s ease;
}

@keyframes fhBallBreathe {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 14px rgba(7, 120, 68, 0.65), 0 0 22px rgba(7, 120, 68, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(7, 120, 68, 0.9), 0 0 34px rgba(232, 3, 36, 0.28), inset 0 1.5px 3px rgba(255, 255, 255, 0.85);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 14px rgba(7, 120, 68, 0.65), 0 0 22px rgba(7, 120, 68, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  }
}

/* Trailing Orbital Aura Ring */
.fh-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border-radius: 9999px;
  border: 1.5px solid rgba(7, 120, 68, 0.45);
  background: radial-gradient(circle, rgba(7, 120, 68, 0.12) 0%, rgba(232, 3, 36, 0.05) 60%, transparent 100%);
  box-shadow: 0 0 18px rgba(7, 120, 68, 0.2);
  pointer-events: none;
  z-index: 100000;
  will-change: transform;
  transition: width 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.24s ease,
              background 0.24s ease,
              box-shadow 0.24s ease;
}

/* Hover Over Interactive Target (Links, Buttons, Cards) */
.fh-cursor-ball.is-hover {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  background: radial-gradient(circle at 35% 30%, #FCA5A5 0%, #E80324 45%, #991B1B 80%, #0B192C 100%);
  box-shadow: 0 0 24px rgba(232, 3, 36, 0.85),
              0 0 40px rgba(7, 120, 68, 0.4),
              inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

.fh-cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  margin-left: -29px;
  margin-top: -29px;
  border-color: rgba(232, 3, 36, 0.8);
  background: radial-gradient(circle, rgba(232, 3, 36, 0.16) 0%, rgba(7, 120, 68, 0.1) 70%, transparent 100%);
  box-shadow: 0 0 28px rgba(232, 3, 36, 0.35);
}

.fh-cursor-dot.is-hover {
  transform: scale(0.6);
  background: #E80324;
  box-shadow: 0 0 8px #E80324;
}

/* Active Clicking Physics */
.fh-cursor-ball.is-clicking {
  transform: scale(0.68) !important;
  box-shadow: 0 0 28px rgba(232, 3, 36, 1), 0 0 12px rgba(255, 255, 255, 0.9);
}

.fh-cursor-ring.is-clicking {
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-color: #E80324;
}

/* Expanding Click Ripple Wave */
.fh-click-ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border-radius: 9999px;
  border: 2px solid #077844;
  background: radial-gradient(circle, rgba(7, 120, 68, 0.25) 0%, rgba(232, 3, 36, 0.18) 50%, transparent 75%);
  box-shadow: 0 0 18px rgba(7, 120, 68, 0.6);
  pointer-events: none;
  z-index: 99998;
  animation: fhRippleExpand 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fhRippleExpand {
  0% {
    transform: scale(0.3);
    opacity: 1;
    border-color: #E80324;
  }
  50% {
    border-color: #077844;
  }
  100% {
    transform: scale(4.2);
    opacity: 0;
    border-color: rgba(7, 120, 68, 0);
  }
}

/* Floating Stardust Particle Trail */
.fh-cursor-sparkle {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 99997;
  animation: fhSparkleFade 0.45s ease-out forwards;
}

@keyframes fhSparkleFade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.1);
    opacity: 0;
  }
}

/* Strictly hide custom cursor on touch screens, mobile devices, and tablets */
@media (hover: none) and (pointer: coarse), (max-width: 1024px) {
  .fh-cursor-layer,
  .fh-cursor-dot,
  .fh-cursor-ball,
  .fh-cursor-ring,
  .fh-click-ripple,
  .fh-cursor-sparkle {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ==========================================================================
   PAGE TRANSITIONS & CARD MICRO-INTERACTIONS
   ========================================================================== */
.fh-page-view {
  animation: fhPageFadeIn 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Elevated Card Hover Physics */
.fh-card-hover {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.fh-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.1),
              0 4px 12px -2px rgba(7, 120, 68, 0.06);
  border-color: rgba(7, 120, 68, 0.3);
}

/* ==========================================================================
   FEATURE CARDS & PROMO GRADIENT (MATCHING LOGO COLORS ONLY)
   ========================================================================== */
/* FlyHub Emerald Mint Card */
.fh-pastel-mint {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
}

/* FlyHub Slate Executive Card */
.fh-pastel-lavender {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
}

/* FlyHub Crimson Soft Red Card */
.fh-pastel-lime {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 1px solid #FECACA;
}

/* Rich Emerald-Aviation Promo Banner (NO Orange/Yellow) */
.fh-promo-gradient {
  background: linear-gradient(135deg, #064E3B 0%, #077844 55%, #0B192C 100%);
}

/* Glassmorphism Navigation */
.fh-glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Active Nav Pill with FlyHub Red-to-Green Underline */
.fh-nav-link {
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.fh-nav-link.active {
  color: #077844;
  background-color: #F0FDF4;
  font-weight: 700;
}

.fh-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #E80324 0%, #077844 100%);
}

/* Utilities for touch devices & responsive scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Touch targets and responsive fixes */
@media (max-width: 640px) {
  select, input, textarea, button {
    font-size: 14px !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #077844;
}
