/* ===== Hero Section Mobile Fixes ===== */

/* Disable hero transforms on mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 100px 0 50px;
    background-position: center center;
    background-size: cover;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-content {
    padding: 20px 0;
    text-align: center;
    max-width: 100%;
    width: 100%;
  }

  .hero-content h2 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    width: 100%;
    max-width: 100%;
  }

  .hero .btn {
    display: inline-block;
    margin: 0 auto;
  }

  /* Ensure no overflow */
  .hero,
  .hero > .container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 375px) {
  .hero {
    min-height: 50vh;
    padding: 80px 0 40px;
  }

  .hero-content h2 {
    font-size: 22px;
  }

  .hero-content p {
    font-size: 14px;
  }
}

@media (max-width: 320px) {
  .hero {
    min-height: 45vh;
    padding: 70px 0 35px;
  }

  .hero-content h2 {
    font-size: 20px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .hero .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Fix overlapping decorative elements */
@media (max-width: 768px) {
  .decorative-shape,
  .floating-decoration,
  .bg-pattern-overlay {
    display: none;
  }

  .absolute-center,
  .absolute-positioned {
    position: relative !important;
    transform: none !important;
  }
}

/* Fix images on mobile */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .feature-card img,
  .service-card img,
  .about-image img {
    max-height: 250px;
    object-fit: cover;
  }
}

/* Fix text overflow */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .container {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Fix buttons on mobile */
@media (max-width: 768px) {
  .btn {
    width: auto;
    max-width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
  }

  .header-cta {
    display: none;
  }
}

/* Fix grid layouts on mobile */
@media (max-width: 768px) {
  .features .container,
  .services-grid,
  .portfolio-grid,
  .about-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
}