/* ========== CSS Variables ========== */
@import 'payment-modal.css';

:root {
  --cream: #fff7e6;
  --cream-2: #fff1d6;
  --blue: #a7d8ff;
  --blue-dark: #5fb6ff;
  --green: #8de27e;
  --green-dark: #53c45b;
  --purple: #22d3ee;
  /* Replacing purple with cyan accent */
  --yellow: #ffe19c;
  --text: #24303a;
  --muted: #4b5964;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --stamp-border: #d9c7a9;
  --nav-h: 64px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --cream: #0f1419;
  --cream-2: #1a1f26;
  --blue: #2563eb;
  --blue-dark: #3b82f6;
  --green: #16a34a;
  --green-dark: #22c55e;
  --purple: #06b6d4;
  /* Dark mode cyan */
  --yellow: #fbbf24;
  --text: #e5e7eb;
  --muted: #dde1e7;
  --card: #1f2937;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --stamp-border: #4b5563;
}

/* ========== Base Styles ========== */
* {
  box-sizing: border-box;
}

html {
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  width: 100%;
  position: relative;
}

/* ========== Custom Scrollbar ========== */
/* Width */
::-webkit-scrollbar {
  width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--cream);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-radius: 10px;
  border: 2px solid var(--cream);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

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

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  border-color: var(--cream);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #667eea var(--cream);
}

[data-theme="dark"] * {
  scrollbar-color: #667eea var(--cream);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Smooth transitions for dark mode */
body,
.nav,
.card,
.modal,
.btn,
section {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  transition: transform 0.12s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue-dark);
  color: #0d1b22;
}

.btn-primary:hover {
  background: #4a9ae6;
  color: #0d1b22;
}

[data-theme="dark"] .btn-primary {
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
  background: #60c5ff;
  color: #0d1b22;
}

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

.btn-outline:hover {
  background: var(--text);
  color: var(--card);
}

.btn-dark {
  background: #111827;
  color: #fff;
}

.btn-dark:hover {
  background: #1f2937;
  color: #fff;
}

[data-theme="dark"] .btn-dark {
  background: #e5e7eb;
  color: #111827;
}

[data-theme="dark"] .btn-dark:hover {
  background: #f3f4f6;
  color: #111827;
}

.btn-lg {
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* Cart Icon */
.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-cart-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

[data-theme="dark"] .nav-cart-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--blue-dark);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--card);
}

/* Cart Modal Styles */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1rem;
}

.cart-item-price {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.cart-item-remove:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fee2e2;
  transform: scale(1.1);
}

[data-theme="dark"] .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cart-item-remove {
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: transparent;
}

/* Cart Modal Layout */
#cartModal .modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 85vh;
}

#cartModal .modal-body {
  overflow-y: auto;
  flex: 1;
}

#cartModal .modal-footer {
  background: var(--card);
  z-index: 10;
}

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  background: var(--card);
  box-shadow: var(--shadow);
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.brand img {
  height: 40px;
  display: block;
}

.nav-center {
  display: flex;
  gap: 20px;
  font-weight: 600;
  color: var(--muted);
}

.nav-center a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-center a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

[data-theme="dark"] .nav-center a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark Mode Toggle */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.theme-toggle:hover {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 10px rgba(102, 126, 234, 0.4);
}

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

[data-theme="dark"] .theme-toggle-slider {
  transform: translateX(30px);
}

/* ========== Hero Section ========== */
.hero {
  background: var(--cream-2);
  min-height: 100dvh;
  display: block;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin-bottom: calc(var(--nav-h) * -1);
  /* pull next section up by navbar height */
}

.hero.carousel-mode {
  min-height: calc(100dvh + var(--nav-h));
  padding-top: 0;
  margin-bottom: calc(var(--nav-h) * -1);
}

.hero-pin {
  position: sticky;
  top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  overflow: hidden;
  padding: 48px 20px;
  gap: 14px;
  text-align: center;
}

.hero.carousel-mode .hero-pin {
  position: relative;
  top: 0;
  min-height: 100dvh;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}

/* GSAP Prototype Sections */
.proto-section {
  position: relative;
  min-height: 140vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
}

.proto-section:nth-of-type(2n) {
  background: #c7d2fe;
  /* darker indigo-200 */
}

.proto-section:nth-of-type(2n+1) {
  background: #d8b4fe;
  /* darker purple-300 */
}

[data-theme="dark"] .proto-section {
  background: var(--cream);
}

[data-theme="dark"] .proto-section:nth-of-type(2n) {
  background: #182230;
  /* medium blue slate */
}

[data-theme="dark"] .proto-section:nth-of-type(2n+1) {
  background: #1e1a2b;
  /* medium purple slate */
}

.proto-inner {
  width: 100%;
  max-width: min(1200px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 64px 20px;
}

.proto-plane-col {
  position: relative;
}

.proto-content-col h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 12px 0;
}

.proto-content-col p {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: var(--muted);
}

.proto-content-col .btn {
  padding: 12px 18px;
}

.side-left .proto-plane-col {
  order: 1;
}

.side-left .proto-content-col {
  order: 2;
}

.side-right .proto-plane-col {
  order: 2;
}

.side-right .proto-content-col {
  order: 1;
}

.gsap-plane-track {
  position: relative;
  height: 100%;
  min-height: 100vh;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: visible;
}

.gsap-plane {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(120px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.15));
  pointer-events: none;
  z-index: 2;
}

.side-left .gsap-plane {
  left: 15%;
}

.side-right .gsap-plane {
  left: 85%;
}

.wind-line {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
  bottom: -80px;
  opacity: 0.85;
  animation: windUp 1.2s linear infinite;
  mix-blend-mode: normal;
  /* brighter on light backgrounds */
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 18px rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .wind-line {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.15) 15%,
      rgba(255, 255, 255, 0.35) 40%,
      rgba(255, 255, 255, 0.45) 60%,
      rgba(255, 255, 255, 0.2) 85%,
      rgba(255, 255, 255, 0) 100%);
  border-radius: 999px;
  /* smoother ends */
  mix-blend-mode: normal;
  /* match hero trail behavior */
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.25), 0 0 12px rgba(255, 255, 255, 0.15);
  filter: blur(0.8px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%, #000 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%, #000 88%, rgba(0, 0, 0, 0) 100%);
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes windUp {
  0% {
    transform: translate(-50%, 80px);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -140px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .proto-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .side-right .proto-plane-col,
  .side-left .proto-plane-col {
    order: 1;
  }

  .side-right .proto-content-col,
  .side-left .proto-content-col {
    order: 2;
  }

  .gsap-plane-track {
    max-width: 420px;
  }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
  margin: 0;
}

.plane-stage {
  height: 260px;
  width: min(1200px, 95vw);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(155, 89, 182, 0.25));
  border: 1px dashed rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.hero-sub {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0;
}

.hero-kicker {
  color: var(--muted);
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.hero-carousel {
  width: 100%;
  max-width: 100vw;
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-slide.hero-slide {
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.carousel-slide:not(.hero-slide) {
  text-align: left;
}

.carousel-slide.signup-slide {
  background: var(--card) !important;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--cream);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
  background: var(--blue);
  border-color: var(--blue-dark);
  color: var(--text);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-arrow svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

[data-theme="dark"] .carousel-arrow {
  background: var(--card);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-arrow:hover {
  background: var(--blue);
  border-color: var(--blue-dark);
  color: var(--card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.arrow-left {
  left: 24px;
}

.arrow-right {
  right: 24px;
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 48px;
    height: 48px;
  }

  .carousel-arrow svg {
    width: 24px;
    height: 24px;
  }

  .arrow-left {
    left: 16px;
  }

  .arrow-right {
    right: 16px;
  }
}

@media (max-width: 480px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .arrow-left {
    left: 12px;
  }

  .arrow-right {
    right: 12px;
  }
}

.carousel-indicators {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
  padding: 8px 16px;
  background: var(--cream);
  border-radius: 20px;
  border: 2px solid var(--purple);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-indicator:hover {
  background: var(--green);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: var(--purple);
  width: 24px;
  border-radius: 4px;
}

[data-theme="dark"] .carousel-indicators {
  background: var(--card);
  border-color: var(--purple);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-indicator {
  background: var(--yellow);
}

[data-theme="dark"] .carousel-indicator:hover {
  background: var(--green);
}

[data-theme="dark"] .carousel-indicator.active {
  background: var(--purple);
}

@media (max-width: 768px) {
  .carousel-indicators {
    top: 16px;
    gap: 8px;
    padding: 6px 12px;
  }

  .carousel-indicator {
    width: 6px;
    height: 6px;
  }

  .carousel-indicator.active {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .carousel-indicators {
    top: 12px;
    gap: 6px;
    padding: 5px 10px;
  }

  .carousel-indicator {
    width: 5px;
    height: 5px;
  }

  .carousel-indicator.active {
    width: 16px;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.8;
}

.scroll-indicator span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Main container */
main {
  width: 100%;
}

/* ========== Stack Sections ========== */
.stack-section {
  min-height: 350vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

.stack-pin {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
}

/* ========== Typography ========== */
.ewf {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: var(--text);
}

.filler {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
  opacity: 0.85;
}

.big-word {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  color: var(--text);
  position: relative;
  transform: translateY(100vh);
  will-change: transform;
}

.body {
  font-size: clamp(16px, 1.1vw, 19px);
  color: var(--text);
  max-width: 65ch;
  margin: 16px 0;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: normal;
}

.cta {
  margin-top: 12px;
}

/* ========== Grid Layout ========== */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 20px;
  align-items: center;
  max-width: min(1400px, 100vw);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.grid-layout.side-left .content-col {
  grid-column: 1;
}

.grid-layout.side-left .plane-col {
  grid-column: 2;
}

.grid-layout.side-right .content-col {
  grid-column: 2;
}

.grid-layout.side-right .plane-col {
  grid-column: 1;
}

.content-col {
  min-height: 100px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.plane-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: visible;
  width: 100%;
}

/* Destination Animation System */
.destination-container {
  position: relative;
  width: 100%;
  max-width: min(1000px, 95vw);
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.destination-map {
  width: 100%;
  max-width: 1000px;
  height: auto;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.destination-map.active {
  opacity: 1;
  transform: scale(1);
}

/* Plane Landing Container */
.plane-landing-container {
  position: absolute;
  width: 280px;
  height: 112px;
  z-index: 10;
  pointer-events: none;
  /* Starting position: top right, off screen */
  top: -100px;
  right: -100px;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease-out, top 0.3s ease-out, transform 0.3s ease-out;
  will-change: left, top, transform, opacity;
}

.plane-landing-container.active {
  opacity: 1;
}

/* Plane Images */
.plane-with-gear,
.plane-no-gear {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
}

.plane-with-gear {
  opacity: 0;
}

.plane-no-gear {
  opacity: 1;
}

/* Show plane with gear when on ground */
.plane-landing-container.on-ground .plane-with-gear {
  opacity: 1;
}

.plane-landing-container.on-ground .plane-no-gear {
  opacity: 0;
}

/* Mirror plane for side-right layout (section 2) */
.grid-layout.side-right .plane-with-gear,
.grid-layout.side-right .plane-no-gear {
  transform: scaleX(-1);
}

.path-trail {
  position: fixed;
  width: 3px;
  height: 200px !important;
  background: linear-gradient(to top,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 15%,
      rgba(255, 255, 255, 0.5) 40%,
      rgba(255, 255, 255, 0.6) 60%,
      rgba(255, 255, 255, 0.3) 85%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transform-origin: bottom;
  border-radius: 50px;
  filter: blur(0.5px);
}

[data-theme="dark"] .path-trail {
  background: linear-gradient(to top,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.15) 15%,
      rgba(255, 255, 255, 0.35) 40%,
      rgba(255, 255, 255, 0.45) 60%,
      rgba(255, 255, 255, 0.2) 85%,
      rgba(255, 255, 255, 0) 100%);
}

@keyframes trail-rise {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(calc(var(--trail-distance) * -1));
  }
}

.path-trail.trail-1.active {
  animation: trail-rise 4s ease-out infinite;
  animation-delay: 0s;
}

.path-trail.trail-2.active {
  animation: trail-rise 5s ease-out infinite;
  animation-delay: 1.5s;
}

.path-trail.trail-3.active {
  animation: trail-rise 4.5s ease-out infinite;
  animation-delay: 3s;
}

/* Hero horizontal trails */
.hero-trail {
  position: absolute;
  width: 180px;
  height: 3px;
  background: linear-gradient(to left,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 15%,
      rgba(255, 255, 255, 0.5) 40%,
      rgba(255, 255, 255, 0.6) 60%,
      rgba(255, 255, 255, 0.3) 85%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 50px;
  filter: blur(0.5px);
}

[data-theme="dark"] .hero-trail {
  background: linear-gradient(to left,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.15) 15%,
      rgba(255, 255, 255, 0.35) 40%,
      rgba(255, 255, 255, 0.45) 60%,
      rgba(255, 255, 255, 0.2) 85%,
      rgba(255, 255, 255, 0) 100%);
}

@keyframes trail-slide {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(calc(var(--hero-trail-distance) * -1));
  }
}

.hero-trail.active.hero-trail-1 {
  animation: trail-slide 4s ease-out infinite;
  animation-delay: 0s;
}

.hero-trail.active.hero-trail-2 {
  animation: trail-slide 5s ease-out infinite;
  animation-delay: 1.2s;
}

.hero-trail.active.hero-trail-3 {
  animation: trail-slide 4.5s ease-out infinite;
  animation-delay: 2.4s;
}

.hero-trail.active.hero-trail-4 {
  animation: trail-slide 5.5s ease-out infinite;
  animation-delay: 0.8s;
}

.hero-trail.active.hero-trail-5 {
  animation: trail-slide 4.2s ease-out infinite;
  animation-delay: 3.2s;
}

.hero-trail.active.hero-trail-6 {
  animation: trail-slide 4.8s ease-out infinite;
  animation-delay: 1.8s;
}

/* ========== Plane Animation ========== */
#plane-2d {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  width: 350px;
  height: auto;
  top: 50%;
  left: -15%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: left 2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.1s ease-out, opacity 2s ease;
  will-change: left, transform, opacity;
}

#plane-2d.loaded {
  left: 50%;
  opacity: 1;
}

/* ========== Reveal Animations ========== */
.reveal {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reveal.in {
  opacity: 1;
}

.content-col.locked .reveal,
.content-col.locked .big-word,
.content-col.locked .ewf {
  transition: none;
  opacity: 1;
  transform: translateY(0);
}

/* ========== Signup Section ========== */
.signup {
  padding: 20vh 0;
  background: var(--card);
  width: 100%;
  max-width: 100vw;
}

.signup-inner {
  width: min(900px, 92vw);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.signup-inner h3 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
}

/* ========== Modal System ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--card);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.modal::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .modal-close {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  padding: 24px 32px 32px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ========== Form Elements ========== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  border-color: rgba(255, 255, 255, 0.1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(95, 182, 255, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}


.btn-link {
  background: none;
  border: none;
  color: var(--blue-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-google {
  background: var(--card);
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: var(--text);
  gap: 10px;
}

[data-theme="dark"] .btn-google {
  border-color: rgba(255, 255, 255, 0.2);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .divider::before,
[data-theme="dark"] .divider::after {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.divider::before {
  margin-right: 16px;
}

.divider::after {
  margin-left: 16px;
}

/* ========== Card Components ========== */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
  margin-bottom: 16px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Course Cards ========== */
.course-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

[data-theme="dark"] .course-badge {
  background: rgba(31, 41, 55, 0.95);
  color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.course-content {
  padding: 20px;
}

.course-level {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.course-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .course-meta {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.course-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* ========== Dashboard Components ========== */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.dashboard-header {
  margin-bottom: 48px;
}

.dashboard-greeting {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 8px;
}

.dashboard-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.stat-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.stat-change {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--green-dark);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}

[data-theme="dark"] .progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-dark), var(--purple));
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ========== Filter System ========== */
.course-filters-mobile {
  display: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--card);
  border: 2px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .filter-btn {
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}

/* ========== Badge System ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-free {
  background: var(--green);
  color: #1a4d2e;
}

.badge-premium {
  background: var(--yellow);
  color: #6b4500;
}

.badge-new {
  background: var(--blue);
  color: #0d3b66;
}

[data-theme="dark"] .badge-free {
  color: #ffffff;
}

[data-theme="dark"] .badge-premium {
  color: #ffffff;
}

[data-theme="dark"] .badge-new {
  color: #ffffff;
}

/* ========== Page Layouts ========== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  min-height: calc(100vh - var(--nav-h));
}

.page-header {
  text-align: center;
  margin-bottom: 64px;
  padding-top: 48px;
}

.page-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
}

.section {
  margin-bottom: 64px;
}

/* ========== Mobile Menu ========== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  /* Center items horizontally */
  gap: 20px;
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.mobile-menu.active {
  display: flex;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 12px;
  font-weight: 600;
  color: var(--text);
  border-radius: 12px;
  width: 100%;
  /* Full width for easier tapping */
  max-width: 300px;
  /* Constrain width */
  text-align: center;
}

/* Fix toggle distortion */
.mobile-menu .theme-toggle {
  width: 60px !important;
  /* Override inline 100% */
  margin: 12px auto !important;
  flex-shrink: 0;
}

/* Center buttons */
.mobile-menu .btn {
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.mobile-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== Toast Notifications ========== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: var(--cream);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========== Loading States ========== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--blue-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Admin Dashboard ========== */
.admin-sidebar {
  width: 260px;
  background: var(--card);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-item {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.admin-nav-item.active {
  background: var(--blue);
  color: var(--text);
}

.admin-content {
  margin-left: 260px;
  padding: 32px;
}

.data-table {
  width: 100%;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
  /* Enable horizontal scroll */
  -webkit-overflow-scrolling: touch;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========== Utility Classes for Dark Mode ========== */
.border-light {
  border: 2px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .border-light {
  border-color: rgba(255, 255, 255, 0.1);
}

.border-bottom-light {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .border-bottom-light {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.border-top-light {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .border-top-light {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bg-subtle {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .bg-subtle {
  background: rgba(255, 255, 255, 0.02);
}

/* ========== Responsive Design ========== */
@media (max-width: 900px) {
  .nav-center {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Hide extra buttons in nav-right on mobile, keep cart */
  .nav-right .btn,
  .nav-right .theme-toggle {
    display: none !important;
  }

  /* Ensure cart remains visible */
  .nav-right .nav-cart-btn {
    display: flex !important;
    margin-right: 8px;
  }

  .grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid-layout.side-left .content-col,
  .grid-layout.side-left .plane-col,
  .grid-layout.side-right .content-col,
  .grid-layout.side-right .plane-col {
    grid-column: auto;
  }

  .plane-col {
    order: 2;
    min-height: 300px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: 24px 24px 0 0;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }

  .toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }

  /* Adjust destination animation for mobile */
  .destination-container {
    height: 350px;
  }

  .destination-map {
    max-width: 500px;
  }

  .plane-landing-container {
    width: 180px;
    height: 72px;
  }
}

@media (max-width: 500px) {

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 24px 20px;
  }

  /* Mobile Dropdown for Filters */
  .filters {
    display: none;
    /* Hide default buttons */
  }

  .course-filters-mobile {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .mobile-filter-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--card);
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
  }
}

/* ========== Profile Completion Tooltip Animation ========== */
@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  to {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }
}

#profileCompletionTooltip.hide {
  animation: slideDown 0.3s ease forwards;
}

@media (max-width: 768px) {
  #profileCompletionTooltip {
    bottom: 10px;
    padding: 16px 20px;
  }

  #profileCompletionTooltip>div {
    flex-direction: column;
    text-align: center;
  }

  #profileCompletionTooltip button:last-child {
    width: 100%;
    margin-top: 12px;
  }
}

/* ========== Modern Profile Photo Upload ========== */
.profile-photo-upload {
  position: relative;
  width: 100%;
  margin-top: 16px;
}

.profile-photo-preview {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.profile-photo-preview:hover {
  transform: scale(1.05);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white;
  border: 3px solid var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

.photo-edit-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}



.photo-upload-dropzone {
  border: 2px dashed var(--muted);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--cream);
}

.photo-upload-dropzone:hover,
.photo-upload-dropzone.drag-over {
  border-color: var(--blue-dark);
  background: var(--blue);
  transform: translateY(-2px);
}

.photo-upload-dropzone.drag-over {
  border-style: solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.photo-upload-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.photo-upload-hint {
  font-size: 14px;
  color: var(--muted);
}

.photo-remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-photo-upload:hover .photo-remove-btn {
  opacity: 1;
}

.photo-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.photo-upload-progress {
  margin-top: 16px;
  display: none;
}

.photo-upload-progress.active {
  display: block;
}

.progress-bar-modern {
  width: 100%;
  height: 6px;
  background: var(--cream-2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-dark), var(--green));
  border-radius: 10px;
  width: var(--progress, 0%);
  transition: width 0.3s ease;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--card);
  padding: 64px 24px 24px;
  margin-top: 64px;
  border-top: 1px solid var(--stamp-border);
  width: 100%;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
}

.footer-section h3 {
  font-size: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue-dark), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text);
  margin-top: 0;
}

.footer-section p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: var(--blue-dark);
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--stamp-border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--blue);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--stamp-border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--stamp-border);
}

.social-link:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Stripe Spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #667eea;
  animation: spin 1s ease infinite;
  margin: 0 auto;
}

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

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

.hidden {
  display: none !important;
}

/* ========== Skeleton Loader ========== */
.skeleton {
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--card) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
  pointer-events: none;
  min-height: 1em;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%) !important;
  background-size: 200% 100% !important;
  animation: skeleton-loading 1.5s infinite linear !important;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  width: 100%;
  margin-bottom: 0.5em;
  display: inline-block;
  border-radius: 4px;
}

.skeleton-rect {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.skeleton-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.skeleton-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========== Redesign Home Styles: Apple Minimal ========== */
:root {
  /* Mapped to Main Theme Colors */
  --bg-primary: var(--cream);
  --bg-secondary: var(--cream-2);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --accent-blue: var(--blue-dark);
  --accent-dark: var(--text);

  /* Redesign Specifics */
  --hero-height: 92vh;
  --section-padding: 100px;
  /* Adjusted for better proportions */
  --card-radius: 24px;
  --card-shadow: var(--shadow);
  /* Use a slightly stronger shadow for hover state, inheriting color from theme shadow if possible, 
     but hardcoding a safe semitransparent black for common compatibility */
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Typography & Layout Reset for New Sections */
.main-wrapper {
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* === Hero Section === */
.hero-new {
  position: relative;
  position: relative;
  min-height: var(--hero-height);
  /* Fallback */
  min-height: 100dvh;
  /* Modern mobile browsers */
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  /* Pull behind transparent nav if needed, or just standard */
  padding-top: var(--nav-h);
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Tablet / Smaller Desktop */
@media (max-width: 1100px) {
  .hero-container {
    gap: 40px;
  }

  .hero-heading {
    font-size: clamp(48px, 6vw, 80px);
  }
}

.hero-text-content {
  flex: 0 0 45%;
  z-index: 10;
}

.hero-eyebrow {
  display: block;
  font-size: 21px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-heading {
  font-size: clamp(64px, 8vw, 110px);
  /* Increased size */
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 24px 0;
}

.hero-desc {
  font-size: 28px;
  /* Increased size */
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 40px 0;
  max-width: 600px;
  /* Increased width */
}

.hero-cta-group {
  display: flex;
  gap: 16px;
}

.hero-btn {
  padding: 18px 32px;
  border-radius: 980px;
  /* Pill shape */
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.hero-btn-primary {
  background: var(--accent-blue);
  color: white;
  border: none;
}

.hero-btn-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Apple-style floating elements */
.passport-wrapper {
  width: 90%;
  max-width: 580px;
  z-index: 2;
  animation: passportWave 6s ease-in-out infinite;
}

.passport-float {
  width: 100%;
  height: auto;
  transform: rotate(-12deg);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

@keyframes passportWave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-new:hover .passport-float {
  transform: rotate(-8deg) translateY(-20px) scale(1.02);
}

.plane-float {
  position: absolute;
  width: 220px;
  top: 15%;
  left: -20px;
  z-index: 3;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: gentleFloat 8s ease-in-out infinite;
}

@keyframes gentleFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(5deg);
  }

  50% {
    transform: translate(0, -20px) rotate(8deg);
  }
}

/* === Bento Grid Values === */
.values-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  text-align: center;
  font-weight: 700;
  margin-bottom: 80px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--card);
  border-radius: var(--card-radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.bento-card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
  background: var(--card);
  /* Maintain card color */
  filter: brightness(1.02);
  /* Subtle lift */
}

[data-theme="dark"] .bento-card:hover {
  background: var(--card);
  /* Ensure no hardcoded black */
  filter: brightness(1.1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

.card-content h3 {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.card-content p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 500;
}

/* === Immersive Visuals === */
.visual-break {
  padding: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
}

.full-bleed-image {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  display: block;
}

.overlay-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  /* Smart placement overrides via classes */
}

.overlay-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: 24px;
  max-width: 600px;
  margin-left: 10%;
  /* Default placement */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .overlay-content {
  background: rgba(0, 0, 0, 0.65);
  color: white;
}

.overlay-content h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

[data-theme="dark"] .overlay-content h2 {
  color: #fff;
}

.overlay-content p {
  font-size: 20px;
  color: var(--text-primary);
  opacity: 0.8;
}

[data-theme="dark"] .overlay-content p {
  color: #fff;
}

/* === Tree / World Section === */
.world-connect-section {
  padding-top: var(--section-padding);
  padding-bottom: 0;
  /* Keep tree planted */
  background: var(--bg-secondary);
  overflow: hidden;
  /* Handle potential image bleed */
}

/* Add specific padding for the text side so button has space */
.connect-content {
  padding-bottom: 80px;
}

.split-tree-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  /* Give more space to tree */
  align-items: flex-end;
  /* Align to bottom */
  gap: 40px;
  /* Reduced gap */
}

.tree-image-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.tree-img {
  width: 140%;
  /* Make it even larger to fill right side space */
  max-width: none;
  /* remove constraint */
  margin-left: -20%;
  /* Keep left pull */
  margin-bottom: -5px;
  /* Ensure strictly planted */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  transition: transform 0.5s ease;
}

.tree-image-container:hover .tree-img {
  transform: scale(1.03);
}

.connect-content .feature-list {
  margin-top: 24px;
  /* Reduced margin */
}

.feature-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  /* Reduced padding */
}

[data-theme="dark"] .feature-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.feature-item p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 0;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid>.card {
    grid-column: auto !important;
  }
}

/* === About Page === */
.mission-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
}

.impact-card {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .mission-card {
    padding: 32px 20px;
  }

  .impact-card {
    padding: 40px 20px;
  }
}

/* === Door to Freedom (The Reveal) === */
.freedom-reveal {
  position: relative;
  height: 100vh;
  min-height: 600px;
  /* Prevent it from being too short on small landscape screens */
  width: 100%;
  overflow: hidden;
  background: #000;
}

.door-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 1s ease, transform 10s ease;
}

.freedom-reveal:hover .door-bg {
  transform: scale(1.05);
  opacity: 0.6;
  /* Darken slightly to make text pop */
}

.freedom-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  width: 100%;
  padding: 0 20px;
}

.freedom-text-overlay h2 {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.freedom-text-overlay p {
  font-size: 24px;
  margin-top: 24px;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 960px) {
  :root {
    --section-padding: 60px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }

  .hero-text-content {
    order: 1;
  }

  .hero-heading {
    font-size: 42px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    height: 350px;
    order: 2;
  }

  .passport-float {
    width: 250px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .split-tree-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tree-image-container {
    order: 1;
    display: flex;
    justify-content: center;
  }

  .tree-img {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }

  .connect-content {
    order: 2;
    padding-bottom: 40px;
  }

  .overlay-content {
    margin: 20px;
    max-width: none;
    background: rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 768px) {
  .hero-text-content {
    margin-top: 20px;
  }

  .hero-heading {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero-desc {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .hero-btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  .passport-float {
    width: 230px;
  }

  .plane-float {
    width: 160px;
    top: 10%;
  }

  /* Values Section Mobile */
  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .bento-card {
    min-height: 300px;
    padding: 24px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin-bottom: 24px;
  }

  .card-content h3 {
    font-size: 24px;
  }

  .card-content p {
    font-size: 16px;
  }

  /* World Connect Mobile */
  .connect-content .feature-list {
    margin-top: 10px;
  }

  .feature-item h3 {
    font-size: 20px;
  }

  .feature-item p {
    font-size: 15px;
  }

  /* Freedom Mobile */
  .freedom-text-overlay h2 {
    font-size: 42px;
  }

  .freedom-text-overlay p {
    font-size: 18px;
  }
}

/* Scroll Timeline Plane */
.scroll-timeline-container {
  position: fixed;
  top: 64px;
  /* Slightly below navbar (assuming nav-h is 64px) */
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 999;
  pointer-events: none;
  /* background: rgba(0,0,0,0.05); Optional track line */
}

.timeline-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.timeline-plane {
  position: absolute;
  top: 50%;
  left: 0;
  width: 120px;
  height: auto;
  transform: translate(0, -50%);
  transition: left 0.1s linear;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.timeline-plane img {
  width: 100%;
  display: block;
  animation: planeWave 2.5s ease-in-out infinite;
}

@keyframes planeWave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Ensure Hero is full viewport height */
.hero-new {
  min-height: 100vh;
  margin-top: -64px;
  /* Pull up behind nav */
  padding-top: 64px;
}

/* Freedom Section Split Layout */
/* Freedom Section Split Layout - Refined */
/* The layout is now Text Content (Left) and Door/Button (Right) to match the visual */
.freedom-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  pointer-events: none;
  z-index: 10;
}

/* Ensure no dark overlay interferes */
.door-bg {
  opacity: 1 !important;
  /* Force full visibility */
  filter: none !important;
  /* Remove brightness filters */
}

/* Left side holds all text now */
.freedom-side.left {
  flex: 1;
  text-align: left;
  padding-left: 8%;
  /* Increased padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Right side holds the button in the doorway */
.freedom-side.right {
  display: none;
  /* Removed as per new layout structure, text is all on left */
}

.freedom-center-spacer {
  display: none;
  /* Removed */
}

.freedom-side h2 {
  font-size: clamp(70px, 7vw, 120px);
  /* Increased size */
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 0.9;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.freedom-side p {
  font-size: clamp(28px, 3.5vw, 48px);
  /* Increased size */
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-top: 24px;
  max-width: 500px;
  /* Adjusted width to accommodate larger text */
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Button container positioned in the doorway */
.freedom-button-container {
  position: absolute;
  bottom: 26%;
  /* Moved Up */
  right: 20%;
  left: auto;
  transform: none;
  /* Remove previous offsets */
  z-index: 11;
  pointer-events: auto;
}

/* Mobile Adjustments for Freedom */
@media (max-width: 900px) {
  .freedom-content-wrapper {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }

  /* Show more of the right side of the door on mobile */
  .door-bg {
    object-position: 75% center;
  }

  /* Push text up slightly to make room for button */
  .freedom-side.left {
    text-align: center;
    padding: 0;
    align-items: center;
    justify-content: center;
    /* Center vertically */
    padding-bottom: 100px;
    /* Make room for button */
    padding-top: 0;
  }

  .freedom-side h2 {
    font-size: 60px;
  }

  .freedom-side p {
    font-size: 24px;
  }

  /* Position button at the bottom center */
  .freedom-button-container {
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
    margin-top: 0;
    right: auto;
    top: auto;
    width: auto;
  }
}

@media (max-width: 600px) {
  .freedom-side h2 {
    font-size: 42px;
  }

  .freedom-side p {
    font-size: 20px;
  }

  .bento-card {
    min-height: auto;
  }

  .nav-inner {
    padding: 0 12px;
  }

  .page-container {
    padding: 24px 16px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-description {
    font-size: 16px;
  }

  /* Simplify stacking for very small screens */
  .split-tree-layout {
    gap: 20px;
  }
}