/* XXL devices (very large screens, 1400px and up) */
@media (min-width: 1400px) {
}

/* Extra large devices (large desktops, 1200px to 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
}

/* Large devices (desktops, 992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .app-download-section {
    padding: 4rem 0;
    background-color: var(--dark-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  section {
    padding: 70px 0;
    position: relative;
  }
}

/* Medium devices (tablets, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Banner adjustments for tablet */
  .banner-section {
    padding-top: 130px;
  }

  /* About section - stack content */
  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  /* Step cards better spacing */
  .step-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  section {
    padding: 60px 0;
    position: relative;
  }

  .app-download-section {
    padding: 4rem 0;
    background-color: var(--dark-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  .app-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
  }
}

/* Small devices (phones, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Banner adjustments */
  .banner-section {
    padding-top: 120px;
  }

  /* About content stack */
  .about-content {
    flex-direction: column;
    gap: 25px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section {
    padding: 50px 0;
    position: relative;
  }

  .app-download-section {
    padding: 3rem 0;
    background-color: var(--dark-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  .app-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Header adjustments */
  .navbar-brand img {
    height: 50px;
  }


  .my-breadcu {
    background-color: var(--primary-dark);
    width: 100%;
    display: flex;
    margin-top: 70px;
    height:150px ;
    align-items: center;
    justify-content: center;
    text-align: center;
}

  /* Banner section */
  .banner-section {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  /* App buttons */
  .app-btn {
    padding: 7px 14px;
    font-size: 0.9rem;
  }

  .app-btn i {
    font-size: 1.5rem;
    margin-right: 8px;
    width: fit-content;
  }

  .app-buttons {
    display: flex;
    /* flex-direction: column; */
    gap: 12px;
    margin-bottom: 30px;
    margin-top: 0px;
  }

  /* About section */
  .about-content {
    flex-direction: column;
    gap: 15px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  /* Sections spacing */
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  section {
    padding: 40px 0;
  }

  /* Step cards */
  .step-card {
    text-align: center;
    padding: 0px 10px 20px;
    position: relative;
    z-index: 1;
  }

  .step-card img {
    height: 222px;
    margin-bottom: 20px;
  }

  /* Feature cards */
  .feature-card {
    padding: 30px 20px;
  }

  /* Contact form */
  .contact-form {
    padding: 25px;
  }

  /* Footer adjustments */
  footer {
    background-color: #0a0f1f;
    color: white;
    padding: 40px 0 0px;
    position: relative;
    overflow: hidden;
  }

  /* Download section app buttons */
  .download-section .app-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    background-color: #093967;
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .app-download-section {
    padding: 2rem 0;
    background-color: var(--dark-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  /* Download image phones */
  .my-download-collection {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .phone-mockup {
    width: 100px !important;
  }
}

/* --------------------------- */
/* Offcanvas and typography fixes */
/* --------------------------- */

/* Fix offcanvas display issues - CRITICAL */
.offcanvas {
  z-index: 2000 !important;
  height: 100% !important;
  min-height: 100vh !important;
}

.offcanvas-backdrop {
  z-index: 1999 !important;
}

/* Offcanvas header styling */
.offcanvas .offcanvas-header {
  background: linear-gradient(135deg, #093967, #3999f0);
  color: white;
  padding: 1.5rem 1rem;
}

.offcanvas-title {
  font-weight: 900;
  font-size: 1.5rem;
  color: white !important;
}

.offcanvas-title span {
  color: #ffffff;
}

/* Make offcanvas comfortable width on tablets and mobiles */
@media (max-width: 991.98px) {
  .offcanvas.offcanvas-end {
    width: 85% !important;
    max-width: 380px !important;
    height: 100% !important;
  }
}

/* Make offcanvas body readable and preserve design */
.offcanvas .offcanvas-body {
  background: white !important;
  color: var(--text-dark) !important;
  padding: 1.5rem 1rem;
  height: auto !important;
}

/* Offcanvas navigation styling */
.offcanvas .navbar-nav {
  width: 100%;
}

.offcanvas .navbar-nav .nav-item {
  margin-bottom: 0.5rem;
}

.offcanvas .navbar-nav .nav-link {
  padding: 12px 15px;
  color: var(--text-dark) !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.offcanvas .navbar-nav .nav-link:hover {
  background-color: rgba(57, 153, 240, 0.1);
  color: var(--primary-dark) !important;
  transform: translateX(5px);
}

.offcanvas .navbar-nav .nav-link::after {
  display: none;
}

/* Offcanvas close button */
.offcanvas .btn-close {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* Responsive typography (use clamp to preserve design across sizes) */
.section-title {
  font-size: clamp(1.8rem, 2.2vw + 1rem, 3rem);
}

.banner-title {
  font-size: clamp(1.8rem, 4vw + 1rem, 3.5rem);
}

.banner-text {
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.2rem);
}

.navbar-nav .nav-link {
  font-size: clamp(0.95rem, 0.6vw + 0.6rem, 1.05rem);
}

.app-btn {
  font-size: clamp(0.9rem, 0.8vw + 0.4rem, 1rem);
}

/* Navbar toggler visibility */
.navbar-toggler {
  border: 2px solid var(--primary-dark);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler i {
  font-size: 1.25rem;
  color: var(--primary-dark);
}

/* Additional mobile optimizations */
@media (max-width: 991.98px) {
  /* Hide desktop navbar, show mobile toggler */
  .navbar-collapse:not(.offcanvas) {
    display: none !important;
  }

  .navbar-toggler {
    display: block;
  }
}

/* Responsive images */
@media (max-width: 767.98px) {
  .banner-image img {
    transform: perspective(1000px) rotateY(0deg);
    margin-top: 30px;
  }

  .about-image img,
  .download-image img {
    margin-bottom: 20px;
  }
}
