* {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Drawer Menu Styles */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.drawer-overlay.active {
  display: block;
}

.drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 50;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.drawer-menu.active {
  right: 0;
}

/* Hide drawer on desktop */
@media (min-width: 768px) {
  .drawer-menu {
    display: none !important;
  }

  .drawer-overlay {
    display: none !important;
  }
}

/* Header Wrapper */
.header-wrapper {
  background-image: url(assets/imgs/header-captin/bg.png);
  background-repeat: no-repeat;
  height: 700px;
  background-size: 100% 100%;
  position: relative;
  padding-bottom: 80px;
  overflow: visible;
  width: 100%;
}

nav {
  position: relative;
  width: 100%;
  z-index: 25;
}

.footer-curved-top {
  position: relative;
  padding-top: 50px;
  margin-top: -40px;
  z-index: 2;
}

/* Icon Logo */
.icon-logo {
  vertical-align: middle;
  display: inline-block;
  width: 3.8em;
  height: 1em;
  mask: url("assets/imgs/logo.svg") no-repeat center / contain;
  -webkit-mask: url("assets/imgs/logo.svg") no-repeat center / contain;
  background-color: currentColor;
  content: "";
}

/* Footer mobile: smaller icon so it's not clipped */
@media (max-width: 768px) {
  footer .icon-logo {
    font-size: 42px !important;
  }
  .footer-curved-top {
    margin-top: -20px;
  }
  footer, .footer-bg {
    overflow: visible;
  }
}

/* Sharp Divs with Rounded Corners */
.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

/* Smooth Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Shadow Effects */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Daily Commutes Section Shapes */
.daily-commutes-shape-1 {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: #16a34a;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(40px);
  z-index: 0;
}

.daily-commutes-shape-2 {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: #16a34a;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(50px);
  z-index: 0;
}

/* Responsive Adjustments */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.man-pic {
  &::before {
    display: none !important;
  }
}
.daily {
  width: 80%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("assets/imgs/header-captin/bg-man.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.footer-bg {
  background-image: url("assets/imgs/captin/footer-bg.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 769px) {
  .footer-bg {
    /* Slanted top keeps its real proportions (no stretching as the footer grows);
       solid black fills everything below it */
    background-image: url("assets/imgs/captin/footer-bg.png"),
      linear-gradient(#000, #000);
    background-size: 100% auto, 100% calc(100% - 15vw);
    background-position: top center, bottom center;
    background-repeat: no-repeat, no-repeat;
    border-radius: 0 0 40px 40px;
    /* The slant is ~8.3% of the width deep on the left; % padding scales with width */
    padding-top: calc(8.5% + 24px) !important;
  }
}
@media (max-width: 768px) {
  .daily {
    width: 100%;
  }
  .footer-bg {
    /* Slanted top keeps its real proportions (no stretching as the footer grows);
       solid black fills everything below it */
    background-image: url("assets/imgs/captin/footer-phone-bg.png"),
      linear-gradient(#000, #000);
    background-size: 100% auto, 100% calc(100% - 60vw);
    background-position: top center, bottom center;
    background-repeat: no-repeat, no-repeat;
    border-radius: 0 0 24px 24px;
    /* Start content below the slant (about 25% of the width deep on the left) */
    padding-top: calc(25vw + 14px) !important;
  }
  /* ===== HERO HEADER MOBILE FIX ===== */
  /* Home pages get their black mobile background from the body class (bg-black md:bg-white);
     forcing it here also turned the privacy and terms pages black */
  body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .header-wrapper {
    background-color: #000000 !important;
    background-image: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 10px !important;
    padding-bottom: 40px !important;
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-wrapper::after {
    display: none !important;
  }

  .header-wrapper::after {
    bottom: -30px;
    height: 60px;
  }

  /* Hero section: stack text on top, image below — NO overlap */
  #home {
    padding-top: 16px !important;
    padding-bottom: 20px !important;
    min-height: unset !important;
  }

  /* Grid: single column, text first then image */
  #home .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: unset !important;
  }

  /* Text block: order 1, full width, no overflow */
  #home .grid > div.order-1 {
    order: 1 !important;
    width: 100% !important;
    z-index: 20 !important;
    position: relative !important;
    padding-bottom: 16px;
  }

  /* Title: smaller on mobile */
  #home h1 {
    font-size: 22px !important;
    margin-bottom: 12px !important;
    line-height: 1.45 !important;
  }

  /* Subtitle text */
  #home p {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  /* Buttons row: wrap properly */
  #home .flex.flex-wrap {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  /* Download buttons row */
  #home .flex.flex-row {
    margin-top: 12px !important;
    gap: 8px !important;
  }

  /* Image block: order 2, contained, centered, no overflow */
  #home .grid > div.order-2 {
    order: 2 !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 10 !important;
    padding: 10px 0 20px 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* man-pic container: sleek centered card */
  .man-pic {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 0 !important;
    border-radius: 32px !important;
  }

  /* Image: complete visual card with Libyan man, Libyan woman with hijab, and student */
  .man-pic img {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    position: static !important;
    display: block !important;
    border-radius: 32px !important;
    box-shadow: 0 16px 40px -12px rgba(22, 163, 74, 0.45) !important;
  }

  .man-pic > div {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Trust badge:  pin to bottom-left of image area */
  #home .absolute.bottom-\[18\%\] {
    bottom: 8px !important;
    left: 4px !important;
    right: auto !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    z-index: 30 !important;
  }

  #home .absolute.bottom-\[18\%\] p {
    font-size: 11px !important;
  }

  .section-curved-top {
    background-color: #ffffff !important;
    border-radius: 32px 32px 0 0 !important;
    margin-top: -24px !important;
    position: relative !important;
    z-index: 20 !important;
    padding-top: 45px !important;
  }

  .section-curved-top::before {
    display: none !important;
  }

  .footer-curved-top {
    padding-top: 40px;
    margin-top: -30px;
  }

  .footer-curved-top::before {
    top: -30px;
    height: 60px;
  }

  .hero-green-shape-1 {
    width: 80%;
    height: 60%;
  }

  .hero-green-shape-2 {
    width: 40%;
    height: 30%;
  }
}
@media (max-width: 480px) {
  .daily {
    width: 100%;
    img:nth-child(2) {
      right: 1%;
      width: 100px;
    }
    img:nth-child(3) {
      right: 10%;
      bottom: 1%;
      width: 110px;
    }
  }
}
#download {
  @media (min-width: 768px) {
    background-image: url("assets/imgs/captin/download-bg-en.png");
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

#success-overlay,
#subscribers-db-overlay {
  align-items: center;
  justify-content: center;
}

/* Registration Modal - Mobile: Slides up from bottom, Desktop: Centered with fade */
.registration-modal {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 24px 24px 0 0;
  padding: 2rem 1.5rem;
  position: relative;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .registration-modal {
  transform: translateY(0);
  opacity: 1;
}

/* Desktop: Centered with fade effect */
@media (min-width: 768px) {
  #registration-overlay,
  #subscribers-db-overlay {
    align-items: center;
    justify-content: center;
  }

  .registration-modal {
    border-radius: 24px;
    transform: translateY(0) scale(0.9);
    opacity: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    max-height: none;
    overflow-y: visible;
  }

  .modal-overlay.active .registration-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .modal-illustration {
    height: 120px;
  }

  .modal-title {
    margin-bottom: 0.5rem;
    font-size: 1.375rem;
  }

  .modal-description {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
  }

  .modal-form {
    gap: 1.25rem;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  height: auto;
  flex-shrink: 0;
  overflow: visible;
}

.modal-illustration svg,
.modal-illustration img {
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 0.75rem;
}

.modal-description {
  font-size: 20px;
  color: #4b5563;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  direction: ltr;
}

.phone-input-wrapper:focus-within {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(35, 177, 200, 0.1);
}

.country-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  order: 1;
  padding: 0.875rem 1rem !important;
}

.saudi-flag,
.libya-flag {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}


.phone-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #1f2937;
  background: white;
  direction: ltr;
  text-align: right;
  order: 2;
  min-width: 0;
  width: 100%;
}

.phone-input-wrapper input::placeholder {
  color: #9ca3af;
}

.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-right: 1rem;
  padding-left: 3rem;
}

.form-group select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(35, 177, 200, 0.1);
}

.error-message {
  font-size: 0.75rem;
  color: #ef4444;
  text-align: right;
  min-height: 1.25rem;
  display: block;
}

.submit-btn {
  background: #16a34a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 0.5rem;
  width: 40%;
  margin-right: auto;
  margin-left: 0;
}

.submit-btn:hover {
  background: #16a34a;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Success Modal - Centered */
.success-modal {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  position: relative;
  transform: scale(0.8) translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-overlay.active .success-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.success-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  height: 150px;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.confetti {
  font-size: 1.5rem;
  animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.success-message {
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.success-description {
  font-size: 20px;
  color: #414651;
  margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .registration-modal {
    border-radius: 20px 20px 0 0;
    padding: 1rem 1rem;
    max-height: 100vh;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
  }

  .modal-illustration {
    min-height: 80px;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
  }

  .modal-illustration svg,
  .modal-illustration img {
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
  }

  .modal-title {
    font-size: 20px;

    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .modal-description {
    font-size: 20px;
    color: #414651;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .modal-form {
    gap: 0.875rem;
    flex: 1;
    min-height: 0;
  }

  .form-group {
    gap: 0.375rem;
    flex-shrink: 0;
  }

  .form-group label {
    font-size: 0.8125rem;
  }

  .phone-input-wrapper,
  .phone-input-wrapper input,
  .form-group select {
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
  }

  .submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    margin-top: 0;
    flex-shrink: 0;
  }

  .success-modal {
    width: 95%;
    padding: 2rem 1.5rem;
  }

  .success-title {
    font-size: 1.5rem;
  }
}


/* ===== Mobile Responsiveness & Order Now Modal Styles ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.order-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
.order-now-btn:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.45);
  color: #ffffff !important;
}

.mobile-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.mobile-order-btn:hover {
  background: #15803d;
}

/* Order Modal Styles */
.order-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.order-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.order-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 980px;
  height: 92vh;
  max-height: 860px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.order-modal-overlay.active .order-modal-container {
  transform: scale(1);
}

@media (max-width: 768px) {
  .order-modal-overlay {
    padding: 0;
  }
  .order-modal-container {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Language Switcher Styles */
.desktop-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.desktop-lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff !important;
}

.mobile-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease-in-out;
}
.mobile-lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff !important;
}


/* ===== Wasila Luxury Splash Screen Styles ===== */
.wasila-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0f3322 0%, #081c13 60%, #040e09 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.wasila-splash.splash-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-glow-sphere {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.22) 0%, rgba(22, 163, 74, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: splashPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.splash-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(22, 163, 74, 0.15);
  animation: splashRipple 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.splash-circle.circle-1 {
  width: 320px;
  height: 320px;
}

.splash-circle.circle-2 {
  width: 520px;
  height: 520px;
  animation-delay: 1.5s;
  border-color: rgba(22, 163, 74, 0.08);
}

.splash-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  max-width: 90vw;
  width: 100%;
}

.splash-logo-wrap {
  position: relative;
  margin-bottom: 24px;
  animation: splashLogoEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo {
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(22, 163, 74, 0.45));
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .splash-logo {
    height: 72px;
    max-width: 280px;
  }
}

.splash-slogan {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  opacity: 0;
  animation: splashFadeUp 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .splash-slogan {
    font-size: 18px;
  }
}

.splash-loader-bar {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .splash-loader-bar {
    width: 220px;
    height: 5px;
  }
}

.splash-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #4ade80, #86efac);
  border-radius: 9999px;
  box-shadow: 0 0 12px #4ade80;
  animation: splashFill 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.splash-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 1px;
  animation: splashFadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes splashLogoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes splashFadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.18;
  }
  100% {
    transform: scale(1.15);
    opacity: 0.32;
  }
}

@keyframes splashRipple {
  0% {
    transform: scale(0.85);
    opacity: 0.3;
  }
  50% {
    opacity: 0.15;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes splashFill {
  0% {
    width: 0%;
  }
  40% {
    width: 55%;
  }
  80% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

/* ===== Splash Screen Enhancements ===== */
.wasila-splash {
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(22, 163, 74, 0.28) 0%, rgba(22, 163, 74, 0) 70%),
    radial-gradient(circle at center, #0f3322 0%, #081c13 60%, #030a06 100%);
}

/* Faint "map" dot grid, fading out towards the edges */
.wasila-splash::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(rgba(134, 239, 172, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
  animation: splashGridDrift 6s linear infinite;
  pointer-events: none;
}

.splash-logo-wrap {
  display: inline-block;
  line-height: 0;
}

/* Light sweep that follows the logo shape */
.splash-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(74, 222, 128, 0.95) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-mask: url("assets/imgs/logo-wasila-white.png") no-repeat center / contain;
  mask: url("assets/imgs/logo-wasila-white.png") no-repeat center / contain;
  animation: splashShine 1.1s 0.55s ease-in-out forwards;
  pointer-events: none;
}

.splash-loader-bar {
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Glowing head on the progress bar */
.splash-loader-progress::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcfce7;
  box-shadow: 0 0 10px 3px rgba(74, 222, 128, 0.85);
  transform: translateY(-50%);
}

/* Exit: content zooms softly while the screen fades */
.splash-content {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, filter 0.5s ease;
}

.wasila-splash.splash-hidden .splash-content {
  transform: scale(1.12);
  opacity: 0;
  filter: blur(6px);
}

/* Already shown this visit: never paint it again */
html.splash-seen .wasila-splash {
  display: none !important;
}

@keyframes splashGridDrift {
  from { background-position: 0 0; }
  to { background-position: 26px 26px; }
}

@keyframes splashShine {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wasila-splash *,
  .wasila-splash::before,
  .wasila-splash *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .splash-loader-progress {
    width: 100%;
  }
}


/* ===== WhatsApp Green Accent ===== */
a[href*="wa.me"] .icon {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.3s ease !important;
}

a[href*="wa.me"]:hover .icon {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6) !important;
  background-color: #20ba59 !important;
}

a[href*="wa.me"] .icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

a[href*="wa.me"] #Phonelb,
a[href*="wa.me"] #phonelb {
  color: #25D366 !important;
}

/* Keep phone numbers on one line */
#Phonelb,
#phonelb,
#phonelb2 {
  white-space: nowrap;
}
