/* Top Banner */
.top-banner {
  background: #000;
  color: white;
  font-size: 12px;
  height: var(--top-bar-height, 40px);
  display: flex;
  align-items: center;
}

.banner-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #fbbf24;
}

.banner-right {
  display: flex;
  gap: 20px;
}

.banner-right a:hover {
  opacity: 0.8;
}

/* Header */
.main-header {
  height: var(--header-height, 80px);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg, rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted, #475569);
}

.nav-links a:hover {
  color: var(--primary, #3b82f6);
}

.nav-links a.active,
.mobile-nav-links a.active {
  color: var(--primary, #3b82f6) !important;
  font-weight: 600;
}

/* ── Dropdown ── */
.nav-links li.has-dropdown {
  position: relative;
}

.nav-links li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  display: inline-block;
  margin-top: 1px;
}

.nav-links li.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 10px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  transform: translateX(-50%) translateY(8px);
  z-index: 999;
}

.nav-links li.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Small caret arrow pointing up */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid var(--border-color, rgba(0,0,0,0.1));
  border-top: 1px solid var(--border-color, rgba(0,0,0,0.1));
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted, #475569) !important;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--bg-light, #f8fafc);
  color: var(--primary, #3b82f6) !important;
}

.nav-dropdown a .dd-icon {
  width: 30px;
  height: 30px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary, #3b82f6);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-text {
  font-weight: 600;
  color: var(--text-main, #0f172a);
}

/* Footer */
.main-footer {
  background: #0b1120;
  color: white;
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-col h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  margin-bottom: 24px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: #94a3b8;
  transition: var(--transition, all 0.3s ease);
}

.footer-socials a:hover {
  color: white;
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 12px;
  list-style: none;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: var(--transition, all 0.3s ease);
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
/* Mobile Responsiveness */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 270px;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 70px 20px 20px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

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

      .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
        text-align: center;
        margin-bottom: 48px;
        list-style: none;
        padding: 0;
      }

      .mobile-nav-links .has-dropdown {
        position: relative;
        width: 100%;
      }

      .mobile-nav-links .has-dropdown > a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
      }

      /* Hide arrow if permanently open */
      .mobile-nav-links .has-dropdown > a .dropdown-arrow {
        display: none;
      }

      .mobile-nav-links .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 4px 16px;
        margin: 8px auto 0; /* Centered with auto margin */
        display: block; /* Permanent open */
        background: rgba(0, 0, 0, 0.03);
        border-radius: 12px;
        border: none;
        min-width: auto;
        width: 85%; /* Further reduced width */
      }

      .mobile-nav-links .nav-dropdown a {
        padding: 12px 0; /* Slightly larger padding */
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        color: var(--text-muted) !important;
        justify-content: flex-start; /* Align to left */
        font-size: 0.95rem; /* Smaller size */
        font-weight: 500;
        width: 100%; /* Ensure full width click area */
        display: flex;
        align-items: center;
      }

      .mobile-nav-links .nav-dropdown a:last-child {
        border-bottom: none;
      }

      .mobile-nav-links .nav-dropdown a .dd-icon {
        width: 24px;
        height: 24px;
      }

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  color: var(--text-main);
}

.mobile-actions {
  text-align: center;
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --top-bar-height: auto;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
  }

  .container {
    padding: 0 15px; /* Slightly reduced padding for more space on small screens */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Top Banner Responsive */
  .top-banner {
    height: auto;
    padding: 8px 0;
  }

  .banner-flex {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 5px 10px;
  }

  .banner-left {
    font-size: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .banner-left span:last-child {
    display: block;
    width: 100%;
  }

  .banner-right {
    gap: 15px;
  }

  /* Typography */
  h1 {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  /* Navigation adjustments */
  .logo span {
    font-size: 1.1rem;
  }

  .nav-flex {
    height: var(--header-height);
  }

  /* Standardized Grids for all pages */
  .features-grid, 
  .brand-grid, 
  .portfolio-grid, 
  .why-grid, 
  .road-grid, 
  .solutions-grid,
  .product-grid,
  .work-grid,
  .build-grid,
  .pricing-grid,
  .stats-grid,
  .why-us-flex,
  .hero-ws-flex,
  .infra-flex,
  .infra-stats-flex,
  .two-col-flex,
  .about-stats {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }

  .product-grid.reverse {
    flex-direction: column !important;
  }

  .product-grid.reverse .product-content,
  .product-grid.reverse .product-image {
    order: unset !important;
  }

  .hero-btns, .cta-btns {
    flex-direction: column !important;
    width: 100% !important;
  }

  .btn-large {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Spacing */
  section {
    padding: 60px 0 !important;
  }

  .reveal {
    transform: translateY(20px) !important;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr !important;
    display: grid !important; /* Reset display to grid for footer */
    gap: 40px;
    text-align: center;
  }

  .footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 15px !important;
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
  }

  /* Global fixes for potential overflow elements */
  img, svg, video, canvas {
    max-width: 100%;
    height: auto;
  }

  section {
    overflow: hidden; /* Clip any absolute decor that might stick out */
  }
}

/* Fix for small phones */
@media (max-width: 480px) {
  h1 {
    font-size: 2.1rem !important;
  }
  
  h2 {
    font-size: 1.8rem !important;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-badge, .trust-pill {
    font-size: 11px !important;
    padding: 4px 12px !important;
  }
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  display: inline-block;
}
