/* Glassmorphism Overrides for Gemini Background Integration */

/* ===== HEADER & NAVIGATION ===== */

header.logo-header {
  background: rgba(13, 13, 13, 0.7) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 255, 224, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  padding: 1.5rem 1rem 1.2rem 1rem !important;
}

header.logo-header h1 {
  color: #00FFE0 !important;
  text-shadow: 0 0 20px rgba(0, 255, 224, 0.4), 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

header.logo-header .tagline {
  color: #F2F2F2 !important;
  opacity: 0.95 !important;
}

/* Navigation wrapper */
.nav-dropdown {
  position: relative !important;
  display: inline-block !important;
}

/* Button element reset for Services dropdown */
.dropdown-toggle,
button.dropdown-toggle {
  all: revert !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0.6rem 1.1rem !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.main-nav {
  background: rgba(13, 13, 13, 0.5) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 255, 224, 0.2) !important;
  box-shadow: 0 4px 20px rgba(0, 255, 224, 0.1) !important;
  padding: 0.4rem 1.2rem !important;
  border-radius: 8px !important;
  margin-top: 0.8rem !important;
}


/* Unified nav link and dropdown styling */
.main-nav a,
.main-nav .dropdown-toggle,
.main-nav button.dropdown-toggle {
  color: #F2F2F2 !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 0.6rem 1.1rem !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  margin: 0 !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00FFE0;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover::before,
.main-nav a[aria-current="page"]::before {
  width: 80%;
}

.main-nav a:hover {
  color: #00FFE0 !important;
  text-shadow: 0 0 12px rgba(0, 255, 224, 0.6) !important;
  transform: translateY(-1px) !important;
}

.main-nav a[aria-current="page"] {
  color: #00FFE0 !important;
  text-shadow: 0 0 12px rgba(0, 255, 224, 0.6) !important;
}

.dropdown-toggle {
  background: transparent !important;
  color: #F2F2F2 !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  cursor: pointer !important;
  padding: 0.6rem 1.1rem !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
  position: relative !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  vertical-align: middle !important;
}

.dropdown-toggle::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00FFE0;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.dropdown-toggle:hover::before,
.nav-dropdown.open .dropdown-toggle::before {
  width: 80%;
}

.dropdown-toggle:hover {
  color: #00FFE0 !important;
  text-shadow: 0 0 12px rgba(0, 255, 224, 0.6) !important;
  transform: translateY(-1px) !important;
}

.dropdown-menu {
  background: rgba(26, 26, 26, 0.8) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;

  @media (max-width: 768px) {
    header.logo-header {
      margin-bottom: 0 !important;
      padding-bottom: 0.8rem !important;
    }
    .main-nav {
      position: fixed !important;
      left: 50% !important;
      bottom: 1.2rem !important;
      transform: translateX(-50%) !important;
      width: 96vw !important;
      max-width: 420px !important;
      z-index: 1002 !important;
      background: rgba(13, 13, 13, 0.65) !important;
      border-radius: 18px !important;
      box-shadow: 0 8px 32px rgba(0,255,224,0.10), 0 2px 8px rgba(0,0,0,0.18) !important;
      border: 1.5px solid rgba(0,255,224,0.18) !important;
      padding: 0.2rem 0.5rem !important;
      display: flex !important;
      flex-wrap: nowrap !important;
      justify-content: space-between !important;
      align-items: center !important;
      gap: 0.1rem !important;
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
      transition: box-shadow 0.2s;
    }
    .main-nav a,
    .main-nav .dropdown-toggle,
    .main-nav button.dropdown-toggle {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.15rem !important;
      padding: 0.7rem 0.2rem !important;
      font-size: 1.05rem !important;
      margin: 0 0.1rem !important;
      flex: 1 1 0 !important;
      text-align: center !important;
      border-radius: 12px !important;
      border-bottom: 2px solid transparent !important;
      color: #F2F2F2 !important;
      font-weight: 700 !important;
      background: transparent !important;
      min-width: 48px !important;
      min-height: 44px !important;
      transition: background 0.18s, color 0.18s;
    }
    .main-nav a::before,
    .main-nav .dropdown-toggle::before {
      display: none !important;
    }
    .main-nav a:hover,
    .main-nav .dropdown-toggle:hover {
      background: rgba(0,255,224,0.13) !important;
      color: #00FFE0 !important;
      border-bottom-color: #00FFE0 !important;
      box-shadow: 0 2px 8px rgba(0,255,224,0.12);
    }
    .main-nav a[aria-current="page"],
    .main-nav .dropdown-toggle[aria-expanded="true"] {
      border-bottom-color: #00FFE0 !important;
      background: rgba(0,255,224,0.18) !important;
      color: #00FFE0 !important;
      box-shadow: 0 2px 8px rgba(0,255,224,0.18);
    }
    .nav-dropdown {
      position: relative !important;
      flex: 1 1 0 !important;
      display: flex !important;
      min-width: 48px !important;
    }
    .dropdown-menu {
      position: absolute !important;
      left: 0 !important;
      bottom: 110% !important;
      width: 100vw !important;
      min-width: 180px !important;
      max-width: 420px !important;
      margin-left: -12px !important;
      display: none !important;
      background: rgba(13,13,13,0.98) !important;
      border-radius: 16px !important;
      box-shadow: 0 8px 32px rgba(0,255,224,0.10), 0 2px 8px rgba(0,0,0,0.18) !important;
      border: 1.5px solid rgba(0,255,224,0.18) !important;
      padding: 0.5rem 0.5rem !important;
      z-index: 1003 !important;
      backdrop-filter: blur(18px) !important;
      -webkit-backdrop-filter: blur(18px) !important;
    }
    .nav-dropdown.open .dropdown-menu {
      display: block !important;
    }
    .dropdown-menu a {
      padding: 0.8rem 1.2rem !important;
      font-size: 1.05rem !important;
      font-weight: 700 !important;
      border-bottom: 1px solid rgba(0,255,224,0.10) !important;
      display: block !important;
      white-space: normal !important;
      color: #F2F2F2 !important;
      background: transparent !important;
      border-radius: 10px !important;
      margin: 0.1rem 0 !important;
      min-width: 120px !important;
      min-height: 44px !important;
      text-align: left !important;
      transition: background 0.18s, color 0.18s;
    }
    .dropdown-menu a:last-child {
      border-bottom: none !important;
    }
    .dropdown-menu a:hover {
      background: rgba(0,255,224,0.13) !important;
      color: #00FFE0 !important;
      padding-left: 1.4rem !important;
      box-shadow: 0 2px 8px rgba(0,255,224,0.12);
    }
    .main-nav + * {
      margin-top: 0 !important;
    }
    .main-nav + section,
    .main-nav + main > section:first-child {
      margin-top: 0 !important;
    }
    /* Add extra bottom padding to body so nav doesn't overlap content */
    body {
      padding-bottom: 90px !important;
    }
  }
  }
.testimonial-slide,
.testimonial-card {
  background: rgba(26, 26, 26, 0.6) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 255, 224, 0.15) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Call-to-Action Sections */
.cta-banner,
.cta-section {
  background: rgba(13, 13, 13, 0.4) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(0, 255, 224, 0.15) !important;
  box-shadow: 0 4px 24px rgba(0, 255, 224, 0.1) !important;
}

/* Tech Tip Cards */
.tech-tip-card {
  background: rgba(26, 26, 26, 0.6) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 255, 224, 0.2) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ===== MOBILE OPTIMIZATION ===== */

@media (max-width: 768px) {
  /* Mobile Header */
  header.logo-header {
    background: rgba(13, 13, 13, 0.65) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1rem 0.8rem 0.8rem 0.8rem !important;
  }

  header.logo-header h1 {
    font-size: 2rem !important;
  }

  header.logo-header .tagline {
    font-size: 0.95rem !important;
  }

  .main-nav {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.65) 0%, rgba(0, 255, 224, 0.08) 100%) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(0, 255, 224, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 255, 224, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    padding: 0.8rem !important;
    width: 95vw !important;
    max-width: 95vw !important;
    border-radius: 12px !important;
  }

  .main-nav a {
    width: 100% !important;
    text-align: center !important;
    padding: 1rem 1.2rem !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #F2F2F2 !important;
    background: rgba(26, 26, 26, 0.4) !important;
    border: 1px solid rgba(0, 255, 224, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 224, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
  }

  .main-nav a:hover::before {
    left: 0;
  }

  .main-nav a:hover {
    background: rgba(26, 26, 26, 0.6) !important;
    color: #00FFE0 !important;
    text-shadow: 0 0 12px rgba(0, 255, 224, 0.6) !important;
    border-color: rgba(0, 255, 224, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 255, 224, 0.2) !important;
  }

  .main-nav a[aria-current="page"] {
    background: rgba(0, 255, 224, 0.15) !important;
    color: #00FFE0 !important;
    border-color: rgba(0, 255, 224, 0.5) !important;
    text-shadow: 0 0 12px rgba(0, 255, 224, 0.6) !important;
    box-shadow: 0 0 20px rgba(0, 255, 224, 0.2) !important;
  }

  .dropdown-toggle {
    width: 100% !important;
    text-align: center !important;
    padding: 1rem 1.2rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #F2F2F2 !important;
    background: rgba(26, 26, 26, 0.4) !important;
    border: 1px solid rgba(0, 255, 224, 0.15) !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
    display: block !important;
  }

  .dropdown-toggle::after {
    content: ' ▼' !important;
    font-size: 0.7rem !important;
    margin-left: 0.3rem !important;
  }

  .dropdown-toggle:hover {
    background: rgba(26, 26, 26, 0.6) !important;
    color: #00FFE0 !important;
    text-shadow: 0 0 12px rgba(0, 255, 224, 0.6) !important;
    border-color: rgba(0, 255, 224, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 255, 224, 0.2) !important;
  }

  .dropdown-menu {
    width: 100% !important;
    margin-top: 0.4rem !important;
    background: rgba(13, 13, 13, 0.7) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 255, 224, 0.25) !important;
    border-radius: 8px !important;
    padding: 0.6rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    display: block !important;
  }

  .dropdown-menu a {
    display: block !important;
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    color: #F2F2F2 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    background: rgba(26, 26, 26, 0.5) !important;
    border: 1px solid rgba(0, 255, 224, 0.1) !important;
    margin-bottom: 0.3rem !important;
    text-align: center !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
  }

  .dropdown-menu a:last-child {
    margin-bottom: 0 !important;
  }

  .dropdown-menu a:hover {
    background: rgba(0, 255, 224, 0.15) !important;
    color: #00FFE0 !important;
    border-color: rgba(0, 255, 224, 0.3) !important;
    text-shadow: 0 0 10px rgba(0, 255, 224, 0.5) !important;
    transform: translateY(-1px) !important;
  }

  /* Reduce blur and opacity slightly for better mobile visibility of background */
  .modern-hero,
  .hero-section,
  .page-intro {
    background: rgba(13, 13, 13, 0.35) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
  }

  .hero-content,
  .page-intro-content {
    background: rgba(13, 13, 13, 0.45) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.5rem 1rem !important;
  }

  .features {
    background: rgba(13, 13, 13, 0.25) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    padding: 2rem 0 !important;
  }

  .feature-card,
  .service-card,
  .product-card {
    background: rgba(26, 26, 26, 0.5) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  .tickets-container,
  .billing-container {
    background: rgba(13, 13, 13, 0.5) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.5rem 1rem !important;
    margin: 1.5rem auto !important;
    max-width: 95vw !important;
  }

  .glass-card,
  .brand-story {
    background: rgba(13, 13, 13, 0.5) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
  }

  .stats-section {
    background: rgba(13, 13, 13, 0.35) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    padding: 2rem 1rem !important;
  }

  .service-section {
    background: rgba(26, 26, 26, 0.45) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .cta-banner {
    background: rgba(13, 13, 13, 0.35) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    padding: 1.5rem !important;
  }
}

/* ===== REMOVE CONFLICTING BACKGROUNDS ===== */

.hero-bg-animated,
.hero-bg-gradient {
  display: none !important;
}

/* Remove old gradient overlays */
main::before,
section::before {
  display: none !important;
}

/* ===== TEXT COLOR ADJUSTMENTS FOR READABILITY ===== */

.modern-hero h1,
.hero-content h1,
.tickets-container h2,
.tickets-container h3,
.billing-container h2,
.brand-story h2 {
  color: #F8FAFC !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.feature-card h3,
.service-card h3,
.testimonial-card h4 {
  color: #00FFE0 !important;
}

.feature-card p,
.service-card p,
.tickets-container p,
.testimonial-card p {
  color: #F2F2F2 !important;
  opacity: 0.95 !important;
}

/* ===== BORDER & SHADOW CONSISTENCY ===== */

.feature-card,
.service-card,
.product-card,
.tickets-container,
.glass-card {
  border-radius: 14px !important;
}

/* Ensure smooth transitions */
* {
  transition-property: background, backdrop-filter, border-color, box-shadow, transform !important;
  transition-duration: 0.3s !important;
  transition-timing-function: ease !important;
}

/* Prevent motion on reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== COMPREHENSIVE MOBILE SPACING & DECLUTTERING ===== */

@media (max-width: 768px) {
  /* Global mobile spacing improvements */
  main {
    padding: 0 !important;
  }

  /* Sections: consistent padding and margins */
  section {
    padding: 2rem 1rem !important;
    margin: 0.5rem 0 !important;
  }

  /* Remove excessive top/bottom margins */
  h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
  }

  p {
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Hero section cleanup */
  .modern-hero,
  .hero-section,
  .page-intro {
    padding: 1.5rem 1rem !important;
    margin: 0.5rem 0 !important;
    border-radius: 12px !important;
  }

  .hero-content {
    padding: 1.5rem 1rem !important;
  }

  /* Feature cards: consistent grid spacing */
  .features {
    gap: 1rem !important;
    padding: 1.5rem 0.5rem !important;
  }

  .feature-card,
  .service-card,
  .product-card {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    gap: 0.8rem !important;
  }

  .feature-card h3,
  .service-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.6rem !important;
  }

  .feature-card p,
  .service-card p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
  }

  /* Stats section: compact layout */
  .stats-section {
    padding: 1.5rem 1rem !important;
    gap: 1rem !important;
  }

  .stat-item {
    padding: 1rem !important;
    gap: 0.4rem !important;
  }

  .stat-number {
    font-size: 1.8rem !important;
  }

  .stat-label {
    font-size: 0.9rem !important;
  }

  /* Cards: reduce excessive padding */
  .card,
  .glass-card,
  .brand-story,
  .testimonial-card {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
  }

  /* Forms: better mobile layout */
  .contact-section,
  .form-container,
  .tickets-container,
  .billing-container {
    padding: 1.5rem 1rem !important;
    margin: 1rem 0 !important;
  }

  form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="phone"],
  input[type="password"],
  select,
  textarea {
    padding: 0.75rem 1rem !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 0.4rem !important;
  }

  label {
    margin-bottom: 0.3rem !important;
    font-size: 0.95rem !important;
  }

  /* Buttons: mobile-friendly sizes */
  button,
  .btn,
  .cta-btn,
  .cta-primary,
  .hero-btn,
  input[type="submit"] {
    padding: 0.9rem 1.5rem !important;
    min-height: 44px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    margin-top: 0.4rem !important;
  }

  /* Lists: better spacing */
  ul, ol {
    margin-left: 1.2rem !important;
    margin-bottom: 1rem !important;
    gap: 0.6rem !important;
  }

  li {
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
  }

  /* Tables: mobile-friendly */
  table {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }

  th, td {
    padding: 0.6rem 0.4rem !important;
  }

  /* Blog section: clean spacing */
  .blog-post,
  .blog-article {
    padding: 1.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .blog-post h2,
  .blog-article h2 {
    margin-bottom: 0.8rem !important;
  }

  .blog-meta {
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
    gap: 1rem !important;
  }

  /* Navigation dropdown: mobile optimization */
  .dropdown-menu {
    gap: 0.2rem !important;
    padding: 0.4rem !important;
  }

  .dropdown-menu a {
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.2rem !important;
  }

  /* Remove excessive whitespace between major sections */
  .modern-hero + section,
  section + section {
    margin-top: 0.5rem !important;
  }

  /* Testimonials: compact card spacing */
  .testimonial-card {
    padding: 1.2rem !important;
    gap: 0.6rem !important;
  }

  .testimonial-quote {
    font-size: 0.95rem !important;
    margin-bottom: 0.8rem !important;
  }

  .testimonial-author {
    font-size: 0.85rem !important;
  }

  /* Tech tips & featured content */
  .tech-tip-card,
  .featured-box,
  .info-box {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Service list items: better spacing */
  .service-item,
  .feature-list-item {
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .service-item:last-child,
  .feature-list-item:last-child {
    border-bottom: none !important;
  }

  /* CTA sections: mobile-friendly */
  .cta-banner,
  .cta-section {
    padding: 1.5rem 1rem !important;
    margin: 1rem 0 !important;
    text-align: center !important;
  }

  .cta-banner h2,
  .cta-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.8rem !important;
  }

  .cta-banner p,
  .cta-section p {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }

  /* Footer spacing */
  footer {
    padding: 1.5rem 1rem !important;
    margin-top: 2rem !important;
  }

  footer p {
    margin-bottom: 0.8rem !important;
    font-size: 0.9rem !important;
  }

  /* Link styling for mobile */
  a {
    word-break: break-word !important;
  }

  /* Align grid items properly on mobile */
  .features,
  .product-grid,
  .service-grid,
  .card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Ensure proper max-width on mobile containers */
  .container,
  .content-wrapper,
  .page-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Remove floating elements for mobile */
  .floating-element {
    position: static !important;
    margin: 0 !important;
  }

  /* Ensure text doesn't overflow */
  * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

/* Extra small screens (< 480px) - further refinements */
@media (max-width: 480px) {
  section {
    padding: 1.5rem 0.8rem !important;
  }

  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.4rem !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }

  .feature-card,
  .service-card,
  .product-card {
    padding: 1rem !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="phone"],
  input[type="password"],
  select,
  textarea {
    padding: 0.7rem 0.8rem !important;
    font-size: 16px !important;
  }

  button,
  .btn,
  .cta-btn {
    padding: 0.8rem 1.2rem !important;
    font-size: 0.95rem !important;
  }

  .stats-section {
    padding: 1rem 0.8rem !important;
  }

  .stat-item {
    padding: 0.8rem !important;
  }

  .stat-number {
    font-size: 1.5rem !important;
  }

  /* Stack navigation on very small screens */
  .main-nav {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }

  .main-nav a {
    width: 100% !important;
    padding: 0.7rem !important;
  }
}

