/* =========================================
   V12 | Ultra-Luxury Premium Car Protection
   ========================================= */

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

:root {
  /* Strict Color Palette */
  --main-black: #000000;
  --main-red: #ee2742;
  --main-red-glow: rgba(238, 39, 66, 0.4);
  --secondary-gray: #dfdee0;
  --secondary-white: #ffffff;
  --surface-dark: #0b0b0c;
  
  /* Luxury Physics & Transitions */
  --ease-luxury: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.4s var(--ease-luxury);
  --transition-slow: 0.8s var(--ease-luxury);
  
  /* Typography */
  --font-primary: 'Cairo', sans-serif;
  --font-secondary: 'Outfit', sans-serif;

  /* JS Controlled */
  --filter-transition: 300ms;
}

/* ================== RESET & BASE ================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--main-black);
  color: var(--secondary-white);
  font-family: var(--font-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  overflow-x: hidden;
  
  background: 
    radial-gradient(rgba(223, 222, 224, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, #000000 0%, #0b0b0c 100%);
  background-size: 24px 24px, 100% 100%;
  background-attachment: fixed;
  background-position: var(--bg-offset-x, 0px) var(--bg-offset-y, 0px);
}

::selection {
  background: var(--main-red);
  color: var(--secondary-white);
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 2px solid var(--main-red);
  outline-offset: 4px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-secondary);
}

.svg-icon {
  width: 100%;
  height: 100%;
}

/* ================== SCROLL PROGRESS ================== */
#scroll-progress {
  position: fixed;
  top: 0;
  right: 0; /* Starts from right because RTL */
  width: 0%;
  height: 2.5px;
  background: linear-gradient(to left, var(--secondary-white), var(--main-red));
  z-index: 9999;
  box-shadow: 0 0 10px var(--main-red);
}

/* ================== TYPOGRAPHY ================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--main-red);
  margin-bottom: 0.5rem;
  display: block;
  font-family: var(--font-secondary);
  text-transform: uppercase;
}

.hero-eyebrow {
  opacity: 0.5;
  font-size: 0.75rem;
}

.text-gray {
  color: var(--secondary-gray);
}

.text-red {
  color: var(--main-red);
}

/* Metallic English Headings */
h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 900;
  font-family: var(--font-secondary);
  background: linear-gradient(135deg, #ffffff 0%, #dfdee0 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: shimmerH1 2s var(--ease-luxury) forwards;
}

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

h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* ================== BUTTONS & SHIMMER ================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-fast);
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-45deg);
  z-index: -1;
  animation: buttonShimmer 8s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::after {
  left: 200%;
  transition: left 0.6s var(--ease-luxury);
}

@keyframes buttonShimmer {
  0%, 90% { left: -100%; }
  100% { left: 200%; }
}

/* Primary Breathing Glow */
.btn-primary {
  background-color: var(--main-red);
  color: var(--secondary-white);
  box-shadow: 0 0 15px rgba(238, 39, 66, 0.2);
  animation: breatheGlow 4s infinite alternate var(--ease-luxury);
}

@keyframes breatheGlow {
  0% { box-shadow: 0 0 10px rgba(238, 39, 66, 0.2); }
  100% { box-shadow: 0 0 25px rgba(238, 39, 66, 0.6); }
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #ff3a54;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--secondary-white);
  background-color: transparent;
}

.btn-outline:hover {
  border-color: var(--secondary-white);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
}

.spinner-svg {
  animation: spin 1s linear infinite;
}

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

.btn.loading .btn-text {
  opacity: 0;
}
.btn.loading .btn-spinner {
  display: block !important;
}

/* ================== HEADER & SMART NAVBAR ================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  padding: 1.5rem 0;
  transition: transform 0.6s var(--ease-luxury), background 0.6s var(--ease-luxury), padding 0.6s var(--ease-luxury), backdrop-filter 0.6s var(--ease-luxury);
}

.header.hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
}

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

.logo-img {
  height: 40px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 600;
  color: var(--secondary-gray);
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--main-red);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  color: var(--secondary-white);
  font-size: 1.5rem;
}

/* ================== SECTIONS & DIVIDERS ================== */
section {
  position: relative;
}

/* Fading section dividers variants */
section:not(#hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

section:nth-of-type(odd):not(#hero)::before {
  background: linear-gradient(90deg, transparent, rgba(238, 39, 66, 0.4), transparent);
}

section:nth-of-type(even)::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
  transition-delay: var(--delay, 0s);
}

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

/* ================== HERO ================== */
#hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--main-black);
  display: flex;
  align-items: center;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroCinematicZoom 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 0;
}

@keyframes heroCinematicZoom {
  to { transform: scale(1); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  /* Directional Gradient Overlay: left (image) to right (text) */
  background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 45%, #000000 70%, #000000 100%);
  z-index: 1;
}

.hero-content-right {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Right aligned due to RTL */
}

.hero-content-right .hero-text {
  max-width: 50%;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--secondary-gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-fade-item {
  opacity: 0;
  transform: translateY(18px);
  animation: heroTextReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-fade-item:nth-child(1) { animation-delay: 0.3s; }
.hero-fade-item:nth-child(2) { animation-delay: 0.45s; }
.hero-fade-item:nth-child(3) { animation-delay: 0.6s; }
.hero-fade-item:nth-child(4) { animation-delay: 0.75s; }
.hero-fade-item:nth-child(5) { animation-delay: 0.9s; }

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

/* ================== SERVICES ================== */
.services {
  padding: 120px 0;
  background-color: var(--surface-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}


/* Mouse Spotlight Glow */
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0;
  transition: transform 0.4s var(--ease-luxury), border-color 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.why-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3rem 2rem;
  transition: transform var(--transition-slow), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.service-card::before, .why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(238, 39, 66, 0.04), transparent 50%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.service-card:hover::before, .why-card:hover::before {
  opacity: 1;
}

.service-card > *, .why-card > * {
  position: relative;
  z-index: 1;
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(238, 39, 66, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(238, 39, 66, 0.1);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 39, 66, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(238, 39, 66, 0.15);
}

/* Service Img Top */
.service-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-luxury), filter 0.4s var(--ease-luxury);
  filter: brightness(0.9) contrast(1.05);
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 13, 15, 1) 0%, rgba(12, 13, 15, 0.4) 40%, transparent 100%);
  pointer-events: none;
}

.service-card:hover .service-img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.1);
}

.service-content {
  padding: 0 2rem 2.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin-top: -1rem;
}

.service-number {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--secondary-gray);
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--main-red);
  font-weight: 700;
  font-size: 1rem;
}

.arrow-icon {
  transition: transform var(--transition-fast);
}

.service-card:hover .arrow-icon {
  transform: translateX(-5px); /* Move left in RTL */
}

/* ================== WHY US ================== */
.why-us {
  padding: 120px 0;
  counter-reset: why-counter;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-card {
  padding: 2.5rem 2rem;
  border-left: 2px solid var(--main-red);
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.why-card::after {
  counter-increment: why-counter;
  content: "0" counter(why-counter);
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-secondary);
  color: var(--secondary-white);
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ================== GALLERY ================== */
.gallery {
  padding: 120px 0;
  background-color: var(--surface-dark);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.6rem 2rem;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--secondary-gray);
  font-weight: 600;
  transition: all var(--transition-fast);
  background: transparent;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--main-red);
  border-color: var(--main-red);
  color: var(--secondary-white);
  box-shadow: 0 0 15px rgba(238, 39, 66, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition-slow), box-shadow var(--transition-fast);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ================== BEFORE/AFTER SLIDER ================== */
.ba-section {
  padding: 120px 0;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  user-select: none;
  touch-action: none;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0); /* RTL - reveals left side */
}

/* Ultra-clean Neon Red Slit Handle */
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--main-red);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 15px var(--main-red), 0 0 5px var(--main-red);
}

.ba-slider-handle.pulse-anim {
  animation: handlePulse 2s ease infinite;
}

@keyframes handlePulse {
  0% { box-shadow: 0 0 15px var(--main-red), 0 0 5px var(--main-red); }
  50% { box-shadow: 0 0 30px var(--main-red), 0 0 15px var(--main-red); background-color: #ff3a54; }
  100% { box-shadow: 0 0 15px var(--main-red), 0 0 5px var(--main-red); }
}

/* Polished Central Toggle Button */
.ba-slider-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--surface-dark);
  border: 2px solid var(--main-red);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,0,0,0.8), inset 0 0 10px rgba(238, 39, 66, 0.4);
}

/* Slider Status Indicators */
.ba-slider-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.slider-label {
  position: absolute;
  top: 20px;
  padding: 0.4rem 1.2rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--secondary-white);
  transition: opacity 0.2s linear;
}

.label-after { left: 20px; }
.label-before { right: 20px; }

/* ================== BOOKING FORM ================== */
.booking {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--surface-dark), var(--main-black));
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.booking-info h2 {
  margin-bottom: 1.5rem;
}

.booking-info p {
  color: var(--secondary-gray);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(238, 39, 66, 0.05);
  border: 1px solid rgba(238, 39, 66, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-red);
  padding: 12px;
}

.booking-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  color: var(--secondary-gray);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-luxury);
  margin-bottom: 0.5rem;
}

/* Floating Label effect on focus-within */
.form-group:focus-within .form-label {
  color: var(--main-red);
  transform: translateY(-2px);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--secondary-white);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--main-red);
  box-shadow: 0 0 15px rgba(238, 39, 66, 0.15), inset 0 0 10px rgba(238, 39, 66, 0.05);
  background: rgba(0, 0, 0, 0.6);
}

.form-input.error {
  border-color: #ff3333;
}
.error-msg {
  color: #ff3333;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  height: 14px;
}

.form-submit {
  width: 100%;
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

/* ================== FOOTER ================== */
.footer {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-about p {
  color: var(--secondary-gray);
  margin-top: 1.5rem;
  max-width: 350px;
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--secondary-gray);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--main-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

/* ================== MODALS ================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  padding: 2rem 1rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-luxury);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  width: 92%;
  max-width: 600px;
  margin: auto; /* Centers the modal vertically and horizontally if smaller than screen, otherwise stays at top */
  position: relative;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.5s var(--ease-luxury);
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 40px rgba(238, 39, 66, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

/* Modal Body */
.modal-body {
  width: 100%;
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.modal-body .eyebrow {
  color: var(--main-red);
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.modal-body h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.modal-body p {
  color: var(--secondary-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Features List */
.modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-features li {
  position: relative;
  padding-right: 1.75rem;
  color: #dfdee0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-features li::before {
  content: '→';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--main-red);
  font-family: var(--font-secondary);
  font-size: 1rem;
}

/* Warranty Box */
.modal-warranty {
  background: rgba(238, 39, 66, 0.05);
  border: 1px solid rgba(238, 39, 66, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.modal-warranty strong {
  color: var(--main-red);
  margin-left: 0.5rem;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--secondary-white);
  transition: all 0.3s ease;
  z-index: 20;
}

.modal-close:hover {
  background: var(--main-red);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--main-red);
}

/* Staggered Reveal inside Modal */
.modal-body > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--ease-luxury), transform 0.5s var(--ease-luxury);
}

.modal-overlay.active .modal-body > :nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.modal-overlay.active .modal-body > :nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.modal-overlay.active .modal-body > :nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.modal-overlay.active .modal-body > :nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.modal-overlay.active .modal-body > :nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.modal-overlay.active .modal-body > :nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
  border-color: var(--main-red);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(238, 39, 66, 0.4);
}

.modal-body h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.modal-body p {
  color: var(--secondary-gray);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.modal-features {
  margin-bottom: 2.5rem;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--secondary-gray);
}

.modal-features li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--main-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--main-red);
}

.modal-warranty {
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--main-red);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .hero-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 40%, #000000 70%, #000000 100%);
  }
  
  .hero-content-right {
    justify-content: center;
    align-items: flex-end;
    padding-top: 40vh;
  }
  
  .hero-content-right .hero-text {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-text p {
    margin: 0 auto 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .booking-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 12, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path var(--transition-fast);
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
@media (max-width: 768px) {
  .modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}
