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

:root {
  --primary: #00E676;
  --primary-hover: #00C853;
  --text-dark: #0A0A0A;
  --text-light: #666666;
  --bg-white: #FFFFFF;
  --bg-light: #F4F7F6;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-3d: 0 20px 50px rgba(0, 230, 118, 0.15), 0 10px 20px rgba(0,0,0,0.05);
  --radius: 20px;
  --radius-lg: 32px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Bilingual Toggle System */
body.lang-en .ar-text { display: none !important; }
body.lang-ar .en-text { display: none !important; }
body.lang-ar { direction: rtl; text-align: right; }
body.lang-ar .hero-content { align-items: flex-end; text-align: right; }
body.lang-ar .nav-links { flex-direction: row-reverse; }
body.lang-ar .card-grid { direction: rtl; }
body.lang-ar .top-bar-right { flex-direction: row-reverse; }

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--text-dark), #333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #00BFA5);
  border-radius: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 650px;
  margin: 1.5rem auto 4rem;
  font-size: 1.2rem;
  font-weight: 300;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
section {
  padding: 7rem 0;
  background-color: var(--bg-white);
}

section.bg-light {
  background-color: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: rgba(255,255,255,0.2);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00C853);
  color: var(--text-dark);
  box-shadow: 0 8px 20px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 230, 118, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: var(--bg-white);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.top-bar {
  background-color: var(--text-dark);
  color: white;
  font-size: 0.85rem;
  padding: 10px 0;
  font-weight: 300;
}

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

.top-bar-right {
  display: flex;
  gap: 25px;
  align-items: center;
}

.top-bar-right span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.lang-toggle.active, .lang-toggle:hover {
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
}

.main-nav {
  padding: 18px 0;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  white-space: nowrap;
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

/* Hero Slider */
.hero {
  height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background-color: var(--text-dark);
}

.hero-slider-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--text-dark);
}

.hero-slide {
  position: absolute;
  top: -5%; left: -5%; right: -5%; bottom: -5%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-part {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide.active .slide-part {
  animation: kenBurns 15s infinite alternate ease-in-out;
}

/* Split Image Layouts */
.hero-slide.split-diagonal {
  display: block;
}
.hero-slide.split-diagonal .slide-part:nth-child(1) {
  position: absolute;
  top: 0; left: 0; width: 65%; height: 100%;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  z-index: 2;
}
.hero-slide.split-diagonal .slide-part:nth-child(2) {
  position: absolute;
  top: 0; right: 0; width: 100%; height: 100%;
  z-index: 1;
}

.hero-slide.split-vertical {
  display: flex;
}

.hero-slide.split-vertical .slide-part {
  border-right: 2px solid rgba(255,255,255,0.1);
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

/* Adventure Animations */
.adventure-animation {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1; /* Below text, above background */
  overflow: hidden;
}

.cloud {
  position: absolute;
  opacity: 0.15;
}

.cloud svg {
  width: 120px;
  height: 120px;
}

.cloud-1 {
  top: 10%;
  animation: floatCloud 45s infinite linear;
}

.cloud-2 {
  top: 30%;
  animation: floatCloud 60s infinite linear reverse;
  opacity: 0.1;
  transform: scale(1.5);
}

.airplane {
  position: absolute;
  top: 15%;
  opacity: 0.6;
  animation: flyAcross 25s infinite linear;
}

.airplane svg {
  width: 40px;
  height: 40px;
}

@keyframes floatCloud {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(110vw); }
}

@keyframes flyAcross {
  0% { transform: translateX(-100px) translateY(50px) rotate(45deg); }
  100% { transform: translateX(110vw) translateY(-100px) rotate(45deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: opacity 0.5s ease;
}

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

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-weight: 800;
  line-height: 1.1;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Glassmorphism Search Bar */
.search-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 25px 40px;
  border-radius: 60px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: -60px auto 0;
  position: relative;
  z-index: 10;
  gap: 30px;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-field label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-field select {
  border: none;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  outline: none;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  font-family: inherit;
}

.search-divider {
  width: 1px;
  height: 50px;
  background: rgba(0,0,0,0.1);
}

/* 3D Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  perspective: 1000px; /* Enable 3D space */
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.03);
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-15px) rotateX(2deg) rotateY(-1deg);
  box-shadow: var(--shadow-3d);
}

.card-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2;
}

.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 25px;
  flex: 1;
}

/* Accordion */
.accordion {
  max-width: 850px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow-soft);
}

.accordion-header {
  padding: 25px 30px;
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 1.05rem;
}

.accordion-item.active .accordion-content {
  padding: 25px 30px;
  max-height: 400px;
}

/* Footer Ultra Modern */
footer {
  background: var(--primary);
  color: white;
  padding: 120px 0 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: 'YALLA';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18vw;
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  margin-bottom: 25px;
  font-size: 1.3rem;
  color: white;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; width: 30px; height: 3px;
  background: white;
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(10px);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* 3D Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(60px) rotateX(-10deg);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: top center;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-100px) rotateY(-20deg);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

.reveal-right {
  opacity: 0;
  transform: translateX(100px) rotateY(20deg);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Page Header */
.page-header {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--bg-light), #E8F5E9);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,230,118,0.05) 0%, rgba(255,255,255,0) 70%);
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .search-bar {
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 30px;
  }
  .search-divider {
    display: none;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    gap: 20px;
  }
  .search-field {
    width: 100%;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .nav-links, .top-bar-right, .header-cta {
    display: none; 
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2.2rem;
  }
}

/* Custom Scrollbar for Itineraries */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.02);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Itinerary Details Styling */
.itinerary-days h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-dark);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}
.itinerary-days h4:first-child {
  margin-top: 0;
}
.itinerary-days ul {
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-light);
}
.itinerary-days li {
  margin-bottom: 5px;
}
.itinerary-days p {
  margin-bottom: 10px;
}

/* --- Mobile Navigation --- */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 2000;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateY(-20px);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav-content {
  text-align: center;
  width: 100%;
  padding: 20px;
}

.mobile-menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-nav-links a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

/* --- Granular Responsive Updates --- */
@media (max-width: 992px) {
  .hero-slide.split-vertical {
    flex-direction: column;
  }
  .hero-slide.split-vertical .slide-part {
    border-right: none;
    border-bottom: 2px solid rgba(255,255,255,0.1);
  }
  .hero-slide.split-diagonal .slide-part:nth-child(1) {
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 80%);
    width: 100%; height: 60%;
  }
  section { padding: 5rem 0; }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .search-bar {
    padding: 20px;
    margin-top: -30px;
  }
  .card-grid {
    grid-template-columns: minmax(260px, 1fr);
  }
  section { padding: 4rem 0; }
  .page-header { padding: 80px 0; }
  .page-header h1 { font-size: 2.8rem; }
  
  /* Stack split diagonal on mobile */
  .hero-slide.split-diagonal .slide-part:nth-child(1) {
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 60%);
    height: 60%;
  }
}

/* --- Marquee Gallery Animations --- */
.marquee-container {
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--bg-light);
}

.marquee-row {
  display: flex;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.marquee-row.left {
  animation-name: scrollLeft;
  animation-duration: 40s;
}

.marquee-row.right {
  animation-name: scrollRight;
  animation-duration: 45s;
}

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

.marquee-item {
  width: 350px;
  height: 250px;
  margin: 0 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marquee-item:hover img {
  transform: scale(1.1);
}

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

@keyframes marquee-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

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