/* ============================================
   TrExOra Global — Design System
   The Future of Travel. Simplified.
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Handel Gothic D Bold';
  src: url('HandelGothicDBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --bg-primary: #FFF8E7;
  --bg-secondary: #FDF3DA;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;

  --accent: #0047FF;
  --accent-hover: #0035C2;
  --accent-glow: rgba(0, 71, 255, 0.12);
  --accent-glow-strong: rgba(0, 71, 255, 0.25);
  --accent-cyan: #009BE5;
  --accent-gradient: linear-gradient(135deg, #0047FF, #009BE5);
  --accent-gradient-hover: linear-gradient(135deg, #0035C2, #007BB8);

  --text-primary: #181B27;
  --text-secondary: #4C5162;
  --text-muted: #7E8497;
  --text-accent: #0047FF;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-hover: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-hover: rgba(255, 255, 255, 0.6);

  /* Typography */
  --font-display: 'Handel Gothic D Bold', 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-xs: clamp(0.7rem, 0.8vw, 0.75rem);
  --fs-sm: clamp(0.8rem, 0.9vw, 0.875rem);
  --fs-base: clamp(0.9rem, 1vw, 1rem);
  --fs-md: clamp(1rem, 1.2vw, 1.125rem);
  --fs-lg: clamp(1.1rem, 1.5vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 2vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --fs-3xl: clamp(1.8rem, 3vw, 2.5rem);
  --fs-4xl: clamp(2.2rem, 4vw, 3.5rem);
  --fs-5xl: clamp(2.8rem, 5vw, 4.5rem);
  --fs-hero: clamp(3rem, 6vw, 5.5rem);

  /* Spacing */
  --section-py: clamp(4rem, 10vh, 8rem);
  --section-px: clamp(1.25rem, 5vw, 6rem);
  --container-max: 1280px;
  --container-wide: 1440px;

  /* Effects */
  --blur: blur(24px) saturate(180%);
  --blur-heavy: blur(40px);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-glow: 0 0 20px rgba(0, 71, 255, 0.08);
  --shadow-glow-lg: 0 0 40px rgba(0, 71, 255, 0.12);
  --shadow-card: 0 30px 60px rgba(107, 80, 54, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.4);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: var(--fs-4xl);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.container-wide {
  max-width: var(--container-wide);
}

section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 8px 20px rgba(107, 80, 54, 0.11);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 12px 28px rgba(0, 71, 255, 0.28), 0 4px 10px rgba(0, 71, 255, 0.15);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(14, 165, 233, 0.1);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

/* Button shimmer effect */
.btn-primary::after {
  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::after {
  left: 100%;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  background: #FFFBF2;
  border-color: rgba(0, 71, 255, 0.25);
  box-shadow: var(--shadow-glow-lg), 0 8px 30px rgba(0, 71, 255, 0.05);
}

/* ---------- 3D Tilt Cards ---------- */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.4s ease,
              background 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

[data-tilt]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(14, 165, 233, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

[data-tilt]:hover::before {
  opacity: 1;
}

[data-tilt] > * {
  position: relative;
  z-index: 2;
}

/* ---------- Icon Container ---------- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.icon-box i {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.icon-box:hover,
.glass-card:hover .icon-box {
  background: rgba(0, 71, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 71, 255, 0.2);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px) rotate3d(0, 1, 0, 5deg);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0) rotate3d(0, 1, 0, 0deg);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px) rotate3d(0, 1, 0, -5deg);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0) rotate3d(0, 1, 0, 0deg);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85) perspective(600px) rotateX(5deg);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1) perspective(600px) rotateX(0deg);
}

/* 3D Flip reveal - card flips from edge to full face */
.reveal-flip {
  opacity: 0;
  transform: perspective(1200px) rotateY(-90deg) scale(0.95);
  transform-origin: center;
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-flip.revealed {
  opacity: 1;
  transform: perspective(1200px) rotateY(0deg) scale(1);
}

/* 3D Depth reveal — emerges from behind */
.reveal-depth {
  opacity: 0;
  transform: perspective(800px) translateZ(-80px) translateY(20px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-depth.revealed {
  opacity: 1;
  transform: perspective(800px) translateZ(0) translateY(0);
}

/* 3D Tilt reveal — slight perspective tilt on entry */
.reveal-tilt {
  opacity: 0;
  transform: perspective(600px) rotateX(8deg) translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-tilt.revealed {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
}

/* Parallax floating elements */
.parallax-layer {
  transition: transform 0.1s linear;
  will-change: transform;
}

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

/* ---------- Keyframe Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.2); }
  50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.4); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scroll-hint {
  0% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes typing-cursor {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

@keyframes count-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ---------- Splash / Loading Screen ---------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fade-in 1s ease;
}

.splash-loader {
  width: 120px;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.splash-loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --section-py: clamp(3rem, 8vh, 5rem);
    --section-px: 1.25rem;
  }

  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
}

@media (max-width: 480px) {
  .btn { padding: 0.75rem 1.5rem; font-size: var(--fs-xs); }
  .btn-lg { padding: 0.85rem 2rem; font-size: var(--fs-sm); }
}

/* ---------- Cookie Consent Banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  z-index: 9999;
  padding: 1.25rem;
  box-shadow: 0 -10px 30px rgba(107, 80, 54, 0.08);
  animation: slideUpBanner 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-content p {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
  min-width: 250px;
}
.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-content a:hover {
  color: var(--accent-hover);
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}
.cookie-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.cookie-accept {
  background: var(--accent-gradient);
  color: white;
  border: none;
  box-shadow: var(--shadow-glow);
}
.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}
.cookie-decline {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.cookie-decline:hover {
  background: var(--glass-hover);
}

@keyframes slideUpBanner {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Animated Background Effects ---------- */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  animation: orbit 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation-duration: 25s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: 50%;
  right: -10%;
  animation-duration: 20s;
  animation-delay: -5s;
}

@keyframes orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.02); }
}

/* Subtle dot grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Mouse-Follow Interactive Glow */
.cursor-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 71, 255, 0.15) 0%, rgba(0, 71, 255, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}

/* Floating Particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  animation: rise linear infinite;
  background: var(--accent); /* fallback */
}

@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}
