/* ===================================================================
   نيكسوس للبرمجيات والحلول الرقمية - NEXUS SOFTWARE & TECH SOLUTIONS
   Responsive Stylesheet - Amwerk Munich Corporate Engineering Style
   =================================================================== */

/* ===================================================================
   Mobile Drawer Navigation
   =================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 21, 27, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--bg-white);
  border-left: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.25rem;
}

.drawer-close-btn:hover {
  color: var(--accent);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-links .nav-link {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
  padding: 0.5rem 0;
}

.drawer-links .nav-link.active {
  color: var(--accent);
}

/* Drawer Submenu for Services */
.has-drawer-dropdown {
  position: relative;
}

.drawer-dropdown-btn {
  background: transparent;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  padding: 0.5rem 0;
  cursor: pointer;
  text-align: right;
  font-family: var(--font-arabic);
  transition: color 0.2s ease;
}

.drawer-dropdown-btn:hover {
  color: var(--accent);
}

.drawer-chevron {
  transition: transform 0.25s ease;
}

.has-drawer-dropdown.active .drawer-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.drawer-submenu {
  list-style: none;
  padding-right: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  border-right: 2px solid var(--accent);
}

.has-drawer-dropdown.active .drawer-submenu {
  display: flex;
}

.drawer-submenu a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.drawer-submenu a:hover {
  color: var(--accent);
}

.drawer-submenu a.all-services-link {
  font-weight: 800;
  color: var(--accent);
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border-light);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===================================================================
   Media Queries
   =================================================================== */

/* Desktops and Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .outline-watermark {
    font-size: 4rem;
  }
}

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .topbar-info .topbar-item:nth-child(2) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-floating-stat {
    right: 0;
    bottom: -1.5rem;
  }

  .hero-slide {
    padding: 4.5rem 0 6.5rem;
    min-height: auto;
  }

  .hero-container-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-slider-controls .hero-container-wide {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-tech-pills {
    justify-content: center;
  }

  .slider-pagination {
    justify-content: center;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #delivery-fleet {
    grid-column: span 2 !important;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Small Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .navbar .nav-links,
  .navbar .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    padding: 0;
  }

  .hero-slide {
    padding: 3.5rem 0 6.5rem;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.35rem;
  }

  .slider-pagination {
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .slider-dot {
    min-width: 0;
    flex: 1;
    padding: 0.4rem 0.5rem;
  }

  .slider-dot .slide-num {
    font-size: 1.05rem;
  }

  .slider-dot .slide-label {
    font-size: 0.8rem;
  }

  .slider-arrow {
    width: 42px;
    height: 42px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  #delivery-fleet {
    grid-column: span 1 !important;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .estimator-container {
    padding: 1.75rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .page-title-banner {
    padding: 3.5rem 0 3rem;
  }

  .page-title-banner h1 {
    font-size: 2.2rem;
  }
}

/* Small Smartphones (<= 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.95rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-floating-stat {
    position: static;
    margin-top: 1rem;
  }

  .slider-dot .slide-label {
    display: none;
  }

  .slider-dot {
    align-items: center;
    padding: 0.35rem;
  }
}
