/* =========================================================================
   GLOBAL VARIABLES & RESETS
   ========================================================================= */
:root {
  --primary-color: #d4af37;
  /* Gold */
  --primary-hover: #ebd076;
  --bg-dark: #0f1012;
  --bg-card: #16181b;
  --text-light: #f5f5f5;
  --text-muted: #b0b0b0;
  --transition-speed: 0.3s;
  --font-primary: 'Outfit', sans-serif;
  --font-heading: 'Funnel Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 3.5rem;
  position: relative;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 2px;
  background: var(--primary-color);
  margin: 1.5rem auto 0;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 1rem 2.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* =========================================================================
   NAVIGATION BAR
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(15, 16, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: padding var(--transition-speed);
}

.navbar.scrolled {
  padding: 0.6rem 6%;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  color: var(--primary-color);
  letter-spacing: 3px;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  transition: color var(--transition-speed);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.lang-selector {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.nav-reserve-btn {
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem !important;
  font-weight: 600;
  margin-left: 1rem;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

.nav-reserve-btn:hover {
  background: var(--primary-hover);
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  border-radius: 5px;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('uploads/massage_hero.png') no-repeat center center/cover;
  z-index: -2;
  transition: transform 10s ease-out;
}

.hero:hover .hero-bg {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 16, 18, 0.4) 0%, rgba(15, 16, 18, 0.95) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 850px;
  margin-top: 5rem;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: var(--text-light);
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* =========================================================================
   LAYOUT SECTIONS
   ========================================================================= */
section {
  padding: 7rem 6%;
  max-width: 1250px;
  margin: 0 auto;
}

/* About Section */
.about-container {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-muted);
  text-align: justify;
}

.about-image {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 60px rgba(15, 16, 18, 0.4);
  z-index: 1;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.about-image:hover img {
  transform: scale(1.08);
  /* slight zoom on hover */
}

/* Services Section */
.services-desc {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 300;
}

.price-list {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.price-item:last-child {
  border-bottom: none;
}

.price-item:hover {
  background: rgba(212, 175, 55, 0.05);
  border-radius: 10px;
  padding-left: 20px;
  padding-right: 20px;
  transform: scale(1.01);
}

.service-name {
  font-size: 1.25rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-name::before {
  content: '✦';
  color: var(--primary-color);
  font-size: 0.9rem;
}

.service-price {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
  text-align: right;
  font-family: var(--font-heading);
}

.discount-box {
  margin-top: 3.5rem;
  padding: 1.8rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed var(--primary-color);
  border-radius: 14px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Reviews Section */
.reviews-section {
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

.reviews-section .section-title,
.reviews-subtitle {
  text-align: center;
  padding: 0 6%;
}

.reviews-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: -2.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: reviewsScroll 40s linear infinite;
  padding: 1.5rem 1rem 2rem;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviewsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: default;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 18px 18px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.review-card:hover::before {
  transform: scaleX(1);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.2);
}

.review-stars {
  color: var(--primary-color);
  font-size: 1.15rem;
  letter-spacing: 3px;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.review-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
}

.review-service {
  font-size: 0.8rem;
  color: var(--primary-color);
  opacity: 0.8;
  margin-top: 2px;
}

/* Reviews CTA */
.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-write-review {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  padding: 0.85rem 2.4rem;
  border-radius: 40px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-write-review:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* Loading spinner */
.reviews-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.reviews-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.15);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty state */
.reviews-empty {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.reviews-empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

/* ─── Review Modal ─────────────────────────────── */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.review-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.review-modal {
  background: #1a1c20;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 2.8rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 90vh;
  overflow-y: auto;
}

.review-modal-overlay.open .review-modal {
  transform: translateY(0);
}

.review-modal h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.review-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0.3rem;
}

.review-modal-close:hover {
  color: var(--text-light);
}

/* Form fields */
.form-group {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.25s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.04);
}

.form-group select option {
  background: #1a1c20;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Star picker */
.star-picker {
  display: flex;
  gap: 0.4rem;
}

.star-pick {
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
  line-height: 1;
}

.star-pick:hover,
.star-pick.active {
  color: var(--primary-color);
  transform: scale(1.15);
}

/* Error & Submit */
.form-error {
  color: #e07070;
  font-size: 0.875rem;
  margin-bottom: 0.8rem;
}

.btn-submit-review {
  width: 100%;
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 40px;
  padding: 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-submit-review:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-submit-review:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Success state */
.form-success {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.form-success p:first-of-type {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.success-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  padding: 2.5rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.contact-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.contact-address {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-link:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

/* Footer */
footer {
  background: #08090a;
  text-align: center;
  padding: 3rem;
  color: #777;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

/* Floating Reserve Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* =========================================================================
   RTL SUPPORT (Arabic)
   ========================================================================= */
html[dir="rtl"] {
  font-family: 'Tajawal', var(--font-primary), sans-serif;
}

html[dir="rtl"] body {
  font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .section-title {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
}

html[dir="rtl"] .logo {
  font-family: var(--font-heading);
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .lang-selector {
  margin-left: 0;
  margin-right: 1.5rem;
  flex-direction: row-reverse;
}

html[dir="rtl"] .price-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .service-price {
  text-align: left;
}

html[dir="rtl"] .about-text {
  text-align: right;
}

html[dir="rtl"] .service-name {
  flex-direction: row-reverse;
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }

  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }

  .lang-selector {
    margin: 0;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .price-item {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  html[dir="rtl"] .price-item {
    align-items: flex-end;
  }

  .service-price {
    padding-left: 30px;
  }

  html[dir="rtl"] .service-price {
    padding-right: 30px;
    padding-left: 0;
  }
}