/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

#homePage, #tourDetailPage {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Glow Orbs (Luxury Background) */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.glow-orb-1 {
  top: 15%;
  left: -10%;
}

.glow-orb-2 {
  top: 60%;
  right: -10%;
}

/* Hieroglyphs / Desert Line Background Overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201, 168, 76, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

/* Section Common Styles */
section {
  padding: 10rem 4rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  section {
    padding: 6rem 2rem;
  }
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.section-tag {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  transition: font-size 0.3s ease;
}

@media (max-width: 991px) {
  .section-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
}

.section-title .acc {
  color: var(--color-gold);
}

/* Premium diamond styled divider */
.divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 50%, transparent);
  margin: 2rem 0;
  position: relative;
}

.divider::after {
  content: '♦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-gold);
  background: var(--bg-primary);
  padding: 0 0.5rem;
  font-size: 0.85rem;
  transition: background-color 0.4s ease;
}

/* RTL layout alignment support */
[dir="rtl"] nav,
[dir="rtl"] .tours-header,
[dir="rtl"] .tour-footer,
[dir="rtl"] .faq-question {
  flex-direction: row-reverse;
}

[dir="rtl"] .about-text,
[dir="rtl"] .form-group,
[dir="rtl"] .faq-container,
[dir="rtl"] .dest-content,
[dir="rtl"] .essential-card {
  text-align: right;
}

[dir="rtl"] .about-text {
  padding-left: 0;
  padding-right: 2rem;
}

[dir="rtl"] .exp-badge {
  left: auto;
  right: -2rem;
}

[dir="rtl"] .tour-tag {
  left: auto;
  right: 1.2rem;
}

[dir="rtl"] .tour-duration {
  right: auto;
  left: 1.2rem;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

nav.scrolled {
  padding: 1rem 4rem;
  box-shadow: var(--shadow-premium);
}

.logo {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo span {
  color: var(--text-main);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-control {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.btn-control:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
  background: rgba(201, 168, 76, 0.05);
}

.nav-cta {
  background: var(--color-gold);
  color: var(--bg-primary);
  border: none;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-decoration: none;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
}

.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

@media (max-width: 991px) {
  nav {
    padding: 0.8rem 1rem;
  }
  .logo {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }
  .nav-cta {
    display: none;
  }
  .nav-controls {
    gap: 0.6rem;
  }
  .btn-control {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
  }
  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .burger-menu {
    display: flex;
    z-index: 1001;
  }
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* HERO SECTION */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  z-index: 1;
}

[data-theme="light"] .hero-video {
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 7, 9, 0) 0%, rgba(7, 7, 9, 0.1) 75%, var(--bg-primary) 100%);
  z-index: 2;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(to bottom, rgba(250, 246, 238, 0) 0%, rgba(250, 246, 238, 0.1) 75%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.05);
  color: var(--color-gold);
  padding: 0.5rem 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(4px);
  border-radius: 50px;
  box-shadow: inset 0 0 10px rgba(201, 168, 76, 0.1);
}

.hero h1 {
  font-family: var(--font-header);
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero h1 .gold {
  color: var(--color-gold);
  background: linear-gradient(135deg, var(--color-gold) 30%, var(--color-gold-light) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-guide {
  font-size: 1.4rem;
  color: var(--color-sand);
  margin-bottom: 3.5rem;
  font-weight: 400;
  max-width: 700px;
}

[data-theme="light"] .hero-guide {
  color: var(--text-main);
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  .hero-guide {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  .hero-badge {
    padding: 0.4rem 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
  }
}

/* STATS SECTION */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

[data-theme="light"] .stats {
  box-shadow: inset 0 0 20px rgba(179, 142, 45, 0.05);
}

.stat {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(201, 168, 76, 0.1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.stat:hover::before {
  transform: scaleX(1);
}

.stat:hover {
  background: rgba(201, 168, 76, 0.02);
  transform: translateY(-2px);
}

.stat:last-child {
  border-right: none;
}

.stat-n {
  font-family: var(--font-header);
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  line-height: 1;
}

.stat-l {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.8rem;
  font-weight: 500;
}

@media (max-width: 991px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(1), .stat:nth-child(2) {
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }
  .stat:last-child {
    border-bottom: none;
  }
}

/* ABOUT SECTION */
.about-section {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-media-collage {
  position: relative;
  height: 550px;
  width: 100%;
}

.collage-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 80%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-offset {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 55%;
  border-radius: 4px;
  overflow: hidden;
  border: 4px solid var(--bg-primary);
  outline: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  background: var(--bg-secondary);
  z-index: 5;
  transition: var(--transition-smooth);
}

.collage-offset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-offset:hover {
  transform: translateY(-5px) scale(1.03);
  outline-color: var(--color-gold);
}

.offset-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-gold);
  color: var(--bg-primary);
  padding: 0.6rem 1rem;
  text-align: center;
  border-radius: 2px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  line-height: 1;
  z-index: 6;
}

.offset-badge .num {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}

.offset-badge .txt {
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.2rem;
  display: block;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.2rem 0;
}

.highlight-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.hl-icon {
  font-size: 1.6rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  color: var(--color-gold);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.highlight-item:hover .hl-icon {
  background: var(--color-gold);
  color: var(--bg-primary);
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
}

.hl-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hl-text h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-gold-light);
}

[data-theme="light"] .hl-text h4 {
  color: var(--color-gold);
}

.hl-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-text {
  padding-left: 2rem;
}

.about-p {
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.langs {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.lang {
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.03);
  color: var(--color-gold-light);
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.lang:hover {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-media-collage {
    height: 450px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }
  .about-text {
    padding-left: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  [dir="rtl"] .about-text {
    padding-right: 0;
    text-align: center;
  }
  .about-text .divider {
    margin: 2rem auto;
  }
  .about-highlights {
    align-items: flex-start;
    max-width: 500px;
    margin: 2.2rem auto;
    width: 100%;
  }
  .langs {
    justify-content: center;
  }
  .destinations {
    text-align: center;
  }
  .destinations .divider {
    margin: 2rem auto;
  }
}

@media (max-width: 576px) {
  .about-media-collage {
    height: 300px;
  }
  .collage-offset {
    display: none;
  }
  .collage-main {
    width: 100%;
    height: 100%;
  }
}

/* GALLERY MARQUEE SLIDER */
.gallery-marquee {
  direction: ltr;
  overflow: hidden;
  width: 100%;
  height: 300px;
  position: relative;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  z-index: 2;
  /* Force hardware acceleration and clipping in WebKit */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* Soft edges mask - fades left and right edges into the background */
  mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: scrollMarquee 40s linear infinite;
}

.gallery-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img {
  width: 450px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0.65) contrast(105%) grayscale(15%);
  transition: var(--transition-smooth);
  cursor: pointer;
  border-right: 1px solid rgba(201, 168, 76, 0.15);
}

.marquee-track img:hover {
  filter: brightness(0.95) contrast(110%) grayscale(0%);
  transform: scale(1.02);
  z-index: 5;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .gallery-marquee {
    height: 200px;
  }
  .marquee-track img {
    width: 300px;
  }
}

/* FOOTER */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glow);
  padding: 4rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 4px;
}

.footer-logo span {
  color: var(--text-main);
  font-weight: 300;
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 2rem;
    flex-direction: column;
    text-align: center;
  }
}
