/* Halla Brand Color Palette - Cultured Luxury Direction */
:root {
  /* Primary Brand Colors - Cultured Luxury */
  --desert-bloom: #6b46c1; /* Regal Purple - inspired by lavender fields, expressing national identity, aspiration, and refined elegance */
  --najdi-gold: #d97706; /* Burnished Gold - inspired by Najdi architecture and desert dunes, symbolizing luxury, craftsmanship, and timeless pride */

  /* Secondary & Background Colors */
  --lavender-haze: #a78bfa; /* Gentle Lilac - light counterpart to Desert Bloom, evoking serenity and understated luxury */
  --desert-sun: #f5e6d3; /* Soft Beige - reflecting sunlit sands, providing warmth, calm, and grounding elegance */

  /* Supporting Colors */
  --arabian-depth: #065f46; /* Dark green for secondary text */
  --oasis-green: #10b981; /* Vibrant green for decorative elements */

  /* Color Pairing Approach 1: High Contrast & Luxurious */
  /* Background: Desert Sun or Lavender Haze (light and serene) */
  /* Text/Logo: Desert Bloom (primary brand voice) */
  /* Accent: Najdi Gold (for luxurious touches) */
  --primary-color: var(--desert-bloom);
  --secondary-color: var(--arabian-depth);
  --accent-color: var(--najdi-gold);
  --text-color: var(--desert-bloom);
  --light-text: #ffffff;
  --background-color: var(--desert-sun);
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 8px 32px rgba(107, 70, 193, 0.08);
  --shadow-hover: 0 16px 48px rgba(107, 70, 193, 0.12);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 24px;
  --success-color: var(--oasis-green);
  --error-color: #ef4444;

  /* Alternative Approach 2: Bold & Brand-Forward */
  /* Uncomment the following lines to switch to the bold approach: */
  /* Background: Desert Bloom (making a strong, immediate brand statement) */
  /* Text/Logo: Najdi Gold or white/light color (for maximum readability) */
  /*
  --background-color: var(--desert-bloom);
  --text-color: var(--najdi-gold);
  --card-bg: rgba(255, 255, 255, 0.98);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
  */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Almarai", "Helvetica", "Arial", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Elegant gradient background - Cultured Luxury */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(107, 70, 193, 0.04) 0%,
    rgba(167, 139, 250, 0.03) 30%,
    rgba(217, 119, 6, 0.02) 70%,
    rgba(245, 230, 211, 0.05) 100%
  );
  z-index: -2;
}

/* Subtle accent overlay - Desert Bloom inspired */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at top,
    rgba(107, 70, 193, 0.06) 0%,
    rgba(167, 139, 250, 0.03) 30%,
    transparent 60%
  );
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header Styles */
header {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 3rem;
  font-weight: 400;
  color: var(--desert-bloom);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  letter-spacing: 0.02em;
  position: relative;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.logo-icon {
  font-size: 3.2rem;
  color: var(--oasis-green);
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Language Toggle Styles */
.language-toggle {
  position: absolute;
  top: 1.5rem;
  right: 0;
  z-index: 100;
}

.language-btn {
  background: var(--card-bg);
  border: 2px solid var(--desert-bloom);
  border-radius: 50px;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--desert-bloom);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  font-size: 1rem;
  min-width: 90px;
  justify-content: center;
}

.language-btn:hover {
  background: var(--desert-bloom);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.language-btn:active {
  transform: translateY(0);
}

.lang-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* RTL Support */
[dir="rtl"] {
  font-family: "Almarai", "Helvetica", sans-serif;
}

[dir="rtl"] .language-toggle {
  right: auto;
  left: 0;
}

[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .launch-message {
  flex-direction: row-reverse;
}

[dir="rtl"] .form-group {
  flex-direction: row-reverse;
}

[dir="rtl"] .input-wrapper {
  flex-direction: row-reverse;
}

[dir="rtl"] .input-icon {
  right: auto;
  left: 1rem;
}

[dir="rtl"] input {
  padding-left: 3rem;
  padding-right: 1rem;
  text-align: right;
}

[dir="rtl"] .footer-grid {
  flex-direction: row-reverse;
}

[dir="rtl"] .social-links {
  flex-direction: row-reverse;
}

/* Arabic font optimization */
[dir="rtl"] .tagline,
[dir="rtl"] .launch-message p,
[dir="rtl"] .countdown-container h2,
[dir="rtl"] .subscription-header h2 {
  line-height: 1.8;
  font-weight: 500;
}

/* Enhanced Arabic text styling for launch message */
[dir="rtl"] .launch-message p {
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: right;
  direction: rtl;
  unicode-bidi: bidi-override;
}

[dir="rtl"] .time-label {
}

/* Responsive Design for Language Toggle */
@media (max-width: 768px) {
  .language-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }

  [dir="rtl"] .language-toggle {
    left: auto;
    justify-content: center;
  }

  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .logo-container {
    order: 1;
    display: flex;
    justify-content: center;
  }

  .language-toggle {
    order: 2;
    width: auto;
  }

  .language-btn {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .language-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    min-width: 70px;
  }

  .lang-text {
    font-size: 0.9rem;
  }
}

/* Main Content Styles */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.hero {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  animation: slideUp 1s ease-in-out;
  padding: 2rem 0;
}

.hero-content {
  position: relative;
  padding: 4rem 3rem;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 2rem 0;
}

.hero-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.tagline {
  font-size: 2.5 rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--desert-bloom);
  line-height: 1.1;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
  animation: fadeInUp 1s ease-out;
  text-align: center;
}

.tagline::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--najdi-gold);
  border-radius: 2px;
}

.launch-message {
  background: linear-gradient(
    135deg,
    rgba(107, 70, 193, 0.15) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(217, 119, 6, 0.08) 100%
  );
  padding: 3.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(107, 70, 193, 0.2),
    0 8px 16px rgba(107, 70, 193, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin: 4rem 0;
  font-size: 1.4rem;
  border: 1px solid rgba(107, 70, 193, 0.2);
  border-left: 5px solid var(--najdi-gold);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  backdrop-filter: blur(20px);
  width: 100%;
  color: var(--desert-bloom);
  overflow: hidden;
  font-weight: 500;
  line-height: 1.6;
}

.launch-message::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.05) 0%,
    rgba(107, 70, 193, 0.03) 50%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
  z-index: 0;
}

.launch-message::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(217, 119, 6, 0.05) 50%,
    rgba(107, 70, 193, 0.05) 100%
  );
  z-index: 1;
  border-radius: 24px;
}

.launch-message p {
  margin: 0;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 2;
}

.message-icon {
  font-size: 2.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(217, 119, 6, 0.2) 0%,
    rgba(217, 119, 6, 0.1) 100%
  );
  color: var(--najdi-gold);
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(217, 119, 6, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 20px rgba(217, 119, 6, 0.2);
  }
}

.launch-message:hover {
  box-shadow: 0 32px 64px rgba(107, 70, 193, 0.18),
    0 16px 32px rgba(107, 70, 193, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-8px) scale(1.02);
  border-left-color: var(--najdi-gold);
}

.launch-message:hover .message-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(217, 119, 6, 0.3) 0%,
    rgba(217, 119, 6, 0.2) 100%
  );
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Image Gallery Styles */
.image-gallery {
  width: 100%;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  animation: slideUp 0.8s ease-out;
}

.gallery-container {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  box-shadow: 0 24px 48px rgba(107, 70, 193, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  contain: layout style paint;
}

.gallery-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(107, 70, 193, 0.06) 0%,
    rgba(167, 139, 250, 0.04) 50%,
    rgba(217, 119, 6, 0.05) 100%
  );
  z-index: 0;
  border-radius: var(--border-radius);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.gallery-header h2 {
  font-size: 2.5rem;
  color: var(--desert-bloom);
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.gallery-header p {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  font-weight: 500;
}

.gallery-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.gallery-main {
  flex: 1;
  position: relative;
}

.gallery-image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(107, 70, 193, 0.15);
  background: white;
  aspect-ratio: 16/9;
}

.gallery-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  will-change: transform;
}

.gallery-image-container:hover img {
  transform: scale(1.02);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  padding: 1.5rem;
  color: white;
}

.gallery-counter {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
  background: var(--card-bg);
  border: 2px solid var(--desert-bloom);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  color: var(--desert-bloom);
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  will-change: transform;
}

.gallery-nav:hover {
  background: var(--desert-bloom);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.gallery-nav:active {
  transform: translateY(0) scale(1.02);
}

.gallery-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.gallery-nav:disabled:hover {
  background: var(--card-bg);
  color: var(--desert-bloom);
  transform: none;
}

.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 3px solid transparent;
  position: relative;
  will-change: transform;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  will-change: transform;
}

.thumbnail:hover {
  transform: translateY(-3px);
  border-color: var(--lavender-haze);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.2);
}

.thumbnail.active {
  border-color: var(--desert-bloom);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.3);
  transform: translateY(-2px);
}

.thumbnail.active img {
  transform: scale(1.05);
}

/* RTL Support for Gallery */
[dir="rtl"] .gallery-wrapper {
  flex-direction: row-reverse;
}

[dir="rtl"] .gallery-nav-left {
  order: 0;
}

[dir="rtl"] .gallery-nav-right {
  order: 2;
}

[dir="rtl"] .gallery-main {
  order: 1;
}

/* Responsive Gallery Styles */
@media (max-width: 768px) {
  .image-gallery {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .gallery-container {
    padding: 2rem 1.5rem;
  }

  .gallery-header h2 {
    font-size: 2rem;
  }

  .gallery-header p {
    font-size: 1rem;
  }

  .gallery-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  /* إخفاء أزرار التنقل على الموبايل */
  .gallery-nav {
    display: none;
  }

  .gallery-main {
    width: 100%;
  }

  .gallery-thumbnails {
    gap: 0.75rem;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    padding: 1.5rem 1rem;
  }

  .gallery-header h2 {
    font-size: 1.8rem;
  }

  /* إخفاء أزرار التنقل على الموبايل الصغير */
  .gallery-nav {
    display: none;
  }

  .gallery-thumbnails {
    gap: 0.5rem;
  }

  .thumbnail {
    width: 50px;
    height: 38px;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .gallery-counter {
    font-size: 1rem;
  }
}

/* Subscription Styles */
.subscription {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  box-shadow: 0 24px 48px rgba(107, 70, 193, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: slideUp 0.8s ease-out;
}

.subscription::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(107, 70, 193, 0.06) 0%,
    rgba(167, 139, 250, 0.04) 50%,
    rgba(217, 119, 6, 0.05) 100%
  );
  z-index: 0;
  border-radius: var(--border-radius);
}

.subscription::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.04) 0%,
    rgba(167, 139, 250, 0.02) 50%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  z-index: 0;
}

.subscription-content {
  position: relative;
  z-index: 1;
}

.subscription-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.subscription-icon {
  font-size: 2.8rem;
  color: var(--oasis-green);
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.subscription h2 {
  font-size: 2.5rem;
  color: var(--desert-bloom);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

.cta-text {
  text-align: center;
  color: var(--desert-bloom);
  margin-bottom: 3rem;
  font-size: 1.25rem;
  line-height: 1.7;
  opacity: 0.9;
  position: relative;
  padding: 0 1rem;
  font-weight: 500;
}

.cta-text::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 3rem;
  color: var(--najdi-gold);
  opacity: 0.3;
  font-family: serif;
}

.cta-text::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  left: -10px;
  font-size: 3rem;
  color: var(--najdi-gold);
  opacity: 0.3;
  font-family: serif;
}

.form-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: relative;
}

.input-wrapper {
  flex: 1;
  position: relative;
  min-width: 300px;
  transform: translateY(0);
  transition: var(--transition);
}

.input-wrapper:hover {
  transform: translateY(-2px);
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--oasis-green);
  opacity: 0.8;
  transition: var(--transition);
  z-index: 2;
  font-size: 1.1rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.input-wrapper:hover .input-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Unified field styles */
input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.06);
  transition: var(--transition);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 1;
  font-family: "Almarai", sans-serif;
  color: var(--arabian-depth);
  line-height: 1.4;
}

/* RTL field adjustments */
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] select {
  padding: 1.5rem 4rem 1.5rem 1.5rem;
  text-align: right;
}

[dir="rtl"] .input-icon {
  left: auto;
  right: 1.25rem;
}

input[type="text"]:hover,
input[type="email"]:hover,
select:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 1);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: var(--oasis-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 8px 25px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

/* Adjust select arrow spacing */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b46c1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  cursor: pointer;
}

/* RTL select caret position */
[dir="rtl"] select {
  background-position: left 1.5rem center;
}

/* Enhanced responsive select styling */
@media (max-width: 768px) {
  select {
    background-position: right 1rem center;
    background-size: 1.2em 1.2em;
  }

  [dir="rtl"] select {
    background-position: left 1rem center;
  }

  .input-icon {
    left: 1rem;
    font-size: 1.1rem;
    color: var(--oasis-green);
    opacity: 0.9;
  }

  [dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
  }

  /* Fix input field padding for better icon visibility */
  input[type="text"],
  input[type="email"] {
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  }

  [dir="rtl"] input[type="text"],
  [dir="rtl"] input[type="email"] {
    padding: 1.2rem 3.5rem 1.2rem 1.2rem;
  }
}

@media (max-width: 480px) {
  select {
    background-position: right 0.8rem center;
    background-size: 1.2em 1.2em;
  }

  [dir="rtl"] select {
    background-position: left 0.8rem center;
  }

  .input-icon {
    left: 0.8rem;
    font-size: 1rem;
    color: var(--oasis-green);
    opacity: 1;
    z-index: 10;
  }

  [dir="rtl"] .input-icon {
    left: auto;
    right: 0.8rem;
  }

  /* Fix input field padding for mobile */
  input[type="text"],
  input[type="email"] {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 0.95rem;
  }

  [dir="rtl"] input[type="text"],
  [dir="rtl"] input[type="email"] {
    padding: 1rem 3rem 1rem 1rem;
  }

  /* Better mobile form layout */
  .form-group {
    flex-direction: column;
    gap: 1rem;
  }

  .input-wrapper {
    min-width: 100%;
    width: 100%;
    position: relative;
  }

  /* Improved mobile select options */
  select option {
    padding: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Mobile-specific select enhancements */
  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b46c1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    cursor: pointer;
  }

  /* Header icons mobile fixes */
  .logo-icon {
    font-size: 2.5rem;
    margin-right: 0.5rem;
  }

  [dir="rtl"] .logo-icon {
    margin-right: 0;
    margin-left: 0.5rem;
  }

  .language-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    min-width: 70px;
    gap: 0.5rem;
  }

  .language-btn i {
    font-size: 0.9rem;
  }

  /* Subscription section mobile icon fixes */
  .subscription-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .message-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }

  /* Social icons mobile improvements */
  .social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-icon i {
    font-size: 1rem;
    line-height: 1;
  }
}

/* Error state */
.input-error {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
  animation: shake 0.5s ease-in-out;
}

#other-details-group {
  margin-top: 1rem;
  animation: fadeIn 0.5s ease-out;
}

#register-btn {
  background: var(--najdi-gold);
  color: var(--light-text);
  border: none;
  padding: 1.5rem 4rem;
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.25);
  margin: 0 auto;
  min-width: 240px;
  letter-spacing: 0.02em;
  font-family: "Almarai", sans-serif;
}

#register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s;
}

#register-btn:hover::before {
  left: 100%;
}

#register-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(217, 119, 6, 0.35);
  background: #b45309;
}

#register-btn:active {
  transform: translateY(-1px) scale(1.01);
}

#register-btn i {
  font-size: 1.1rem;
}

#interest-form-message {
  margin-top: 1.5rem;
  text-align: center;
  min-height: 24px;
  font-weight: 500;
}

.success-message {
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeInUp 0.5s ease-out;
}

.error-message {
  color: var(--error-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeInUp 0.5s ease-out;
}

/* Confirmation Card */
.confirmation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  animation: fadeInUp 0.5s ease-out;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  background: linear-gradient(45deg, var(--success-color), #34d399);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.confirmation-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.confirmation-message {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* Footer Styles */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.social-icon i {
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover i {
  color: var(--light-text);
}

.copyright {
  text-align: center;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .tagline {
    font-size: 2rem;
  }

  .launch-message {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    gap: 1.5rem;
    text-align: center;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
  }
  [dir="rtl"] .launch-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .message-icon {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }

  .form-group {
    flex-direction: column;
    gap: 1.5rem;
  }

  .input-wrapper {
    min-width: 100%;
    width: 100%;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  /* Enhanced mobile form styling */
  .subscription {
    padding: 2.5rem 1.5rem;
    margin: 1rem 0;
  }

  .subscription-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .subscription h2 {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 2rem;
  }

  .logo-icon {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.5rem;
  }

  .subscription {
    padding: 1.5rem 1rem;
    max-width: 100%;
    margin: 0.5rem 0;
  }

  .subscription-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .subscription-icon {
    font-size: 2rem;
  }

  .subscription h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .cta-text {
    font-size: 1rem;
    padding: 0;
    margin-bottom: 2rem;
  }

  .cta-text::before,
  .cta-text::after {
    display: none;
  }

  .form-group {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .input-wrapper {
    min-width: 100%;
    width: 100%;
  }

  input[type="text"],
  input[type="email"],
  select {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    min-height: 50px;
  }

  #register-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 180px;
    width: 100%;
    max-width: 280px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }

  .social-icon i {
    font-size: 1rem;
  }

  .launch-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-left-width: 4px;
    gap: 1rem;
    border-radius: 16px;
  }
  [dir="rtl"] .launch-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .launch-message p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .message-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  /* Enhanced mobile select styling */
  select {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  select option {
    padding: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Better mobile touch targets */
  .input-wrapper {
    margin-bottom: 0.5rem;
  }

  /* Improved mobile form spacing */
  .hero-content {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }

  /* Enhanced mobile touch targets */
  select,
  input[type="text"],
  input[type="email"] {
    min-height: 48px;
    touch-action: manipulation;
  }

  /* Better mobile select dropdown */
  select:focus {
    transform: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }

  /* Mobile-optimized button */
  #register-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Improved mobile spacing */
  .container {
    padding: 0.5rem;
  }

  main {
    gap: 2rem;
  }

  .hero {
    padding: 1rem 0;
  }
}

.hero-badge {
  position: absolute;
  top: -20px;
  right: 40px;
  background: var(--najdi-gold);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transform-origin: center;
  font-family: "Almarai", sans-serif;
  letter-spacing: 0.02em;
}

.subscription-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.subscription-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

.subscription h2 {
  font-size: 2rem;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-badge {
    right: 50%;
    transform: translateX(50%);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .subscription-header {
    flex-direction: column;
    text-align: center;
    font-size: 1.1rem;
  }
}

/* Additional mobile icon positioning fixes */
@media (max-width: 600px) {
  /* Better input icon positioning on smaller screens */
  .input-wrapper {
    position: relative;
  }

  .input-icon {
    left: 1rem !important;
    font-size: 1rem !important;
    opacity: 1 !important;
    color: var(--oasis-green) !important;
    z-index: 10 !important;
  }

  [dir="rtl"] .input-icon {
    left: auto !important;
    right: 1rem !important;
  }

  /* Ensure proper input padding */
  input[type="text"],
  input[type="email"] {
    padding: 1rem 1rem 1rem 3.2rem !important;
  }

  [dir="rtl"] input[type="text"],
  [dir="rtl"] input[type="email"] {
    padding: 1rem 3.2rem 1rem 1rem !important;
  }

  /* Select field specific fixes */
  select {
    padding: 1rem 2.8rem 1rem 3.2rem !important;
    background-position: right 1rem center !important;
  }

  [dir="rtl"] select {
    padding: 1rem 3.2rem 1rem 2.8rem !important;
    background-position: left 1rem center !important;
  }

  /* Fix hero badge positioning */
  .hero-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
    transform: none;
  }

  /* Improve launch message icon */
  .message-icon {
    flex-shrink: 0;
    margin-right: 1rem;
  }

  [dir="rtl"] .message-icon {
    margin-right: 0;
    margin-left: 1rem;
  }

  /* Social icons container */
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Modal Navigation Buttons */
.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  padding: 1.5rem 1rem;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-radius: 8px;
}

.modal-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.modal-nav-prev {
  left: 20px;
}

.modal-nav-next {
  right: 20px;
}

/* Modal Counter */
.modal-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  z-index: 10001;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-image-container {
  cursor: pointer;
  position: relative;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
  .image-modal {
    padding-top: 40px;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 80vh;
  }

  .modal-nav {
    font-size: 1.5rem;
    padding: 1rem 0.7rem;
  }

  .modal-nav-prev {
    left: 10px;
  }

  .modal-nav-next {
    right: 10px;
  }

  .modal-counter {
    bottom: 20px;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-float:active {
  transform: translateY(-1px) scale(1.05);
}

.whatsapp-float i {
  font-size: 32px;
  line-height: 1;
}

/* WhatsApp pulse animation */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4),
      0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4),
      0 0 0 20px rgba(37, 211, 102, 0);
  }
}

/* RTL Support for WhatsApp button */
[dir="rtl"] .whatsapp-float {
  left: auto;
  right: 30px;
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }

  .whatsapp-float i {
    font-size: 28px;
  }

  [dir="rtl"] .whatsapp-float {
    left: auto;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 24px;
  }

  .whatsapp-float i {
    font-size: 24px;
  }

  [dir="rtl"] .whatsapp-float {
    left: auto;
    right: 15px;
  }
}
