/* Mobile-First Responsive Enhancements for LSB Extreme */

/* Base improvements for all mobile devices */
@media screen and (max-width: 991px) {
  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Better spacing for mobile */
  .hero-section-wrapper {
    overflow: hidden;
  }

  /* Improve logo sizing on tablets */
  .logo-wrappper {
    max-width: 180px;
  }

  .logo-img {
    width: 100%;
    height: auto;
  }

  /* Better menu button positioning */
  .menu-btn {
    top: 30px;
    right: 30px;
    z-index: 1000;
  }

  /* Ensure gallery images are responsive */
  .gallery-list-2 {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .gallery-item-2 {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .background-image {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Services/Tabs section mobile improvements */
  .services-container {
    padding: 20px;
  }

  .tab {
    padding: 15px 10px;
  }

  .service-name {
    font-size: 14px;
    line-height: 1.4;
  }

  .service-details {
    font-size: 14px;
    line-height: 1.6;
    padding: 20px 15px;
  }
}

/* Tablet specific (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-heading {
    font-size: 90px !important;
    line-height: 95px !important;
    padding: 0 20px;
  }

  .about-heading {
    font-size: 38px;
    line-height: 1.3;
  }

  .projects-section {
    width: 100%;
    overflow-x: hidden;
  }

  .projects-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px;
    margin: 0 auto !important;
  }

  .left-column,
  .right-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  .project-1-wrapper,
  .project-2-wrapper {
    width: 100% !important;
  }

  .project-image,
  .project-image-left,
  .project-image-right {
    width: 100% !important;
    height: auto;
  }
}

/* Mobile (max-width: 767px) */
@media screen and (max-width: 767px) {
  /* Better hero text sizing */
  .hero-heading {
    font-size: 60px !important;
    line-height: 65px !important;
    padding: 0 20px;
    width: 90% !important;
  }

  /* Logo improvements */
  .logo-wrappper.w--current {
    width: 140px;
    top: 25px;
    left: 25px;
  }

  /* Menu button */
  .menu-btn {
    top: 25px;
    right: 25px;
  }

  /* About section */
  .about-container {
    width: 90%;
    padding: 40px 20px;
  }

  .about-heading {
    font-size: 28px;
    line-height: 1.4;
    margin-top: 20px;
  }

  .about-paragraph {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* Projects/History section - FIX for side alignment issue */
  .projects-section {
    width: 100%;
    padding: 0;
    overflow-x: hidden;
  }

  .projects-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .left-column,
  .right-column {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .project-1-wrapper,
  .project-2-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px;
    display: block;
  }

  .project-image,
  .project-image-left,
  .project-image-right {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
  }

  /* Testimonials */
  .testimonial-wrapper {
    padding: 30px 20px;
  }

  .testimonial {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Footer/Contact */
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .address {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.6;
  }

  .heading-6 {
    font-size: 22px !important;
    text-align: center;
  }

  /* Contact form improvements */
  .contact-form-wrapper {
    padding: 20px;
  }

  .text-field,
  .full-text-field,
  .text-area {
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
    padding: 12px;
  }

  .text-field.right {
    margin-left: 0;
  }

  /* Separator sections */
  .separator-section {
    padding: 30px 20px;
  }

  .text-block-3,
  .text-block-4 {
    font-size: 16px;
  }
}

/* Small mobile (max-width: 479px) */
@media screen and (max-width: 479px) {
  /* Hero section */
  .hero-heading {
    font-size: 42px !important;
    line-height: 48px !important;
    width: 95% !important;
    padding: 0 10px;
  }

  .italic-text {
    display: block;
  }

  /* Logo */
  .logo-wrappper.w--current {
    width: 120px;
    top: 20px;
    left: 20px;
  }

  /* Menu */
  .menu-btn {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 25px;
  }

  .menu-bar-1,
  .menu-bar-2 {
    width: 25px;
  }

  /* Scroll indicator */
  .scroll-wrapper {
    display: none;
  }

  /* About section */
  .about-container {
    width: 95%;
    padding: 30px 15px;
  }

  .about-heading {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 15px;
  }

  .about-paragraph {
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin-bottom: 15px;
  }

  /* Tabs/Services */
  .tabs-menu {
    padding: 10px;
  }

  .service-name {
    font-size: 12px;
  }

  .service-heading {
    font-size: 22px;
  }

  .service-details {
    font-size: 13px;
    line-height: 1.5;
    padding: 15px 10px;
  }

  /* Gallery */
  .gallery-wrap {
    padding: 0;
  }

  .gallery-item-2 {
    margin-bottom: 10px;
  }

  /* Testimonials */
  .testimonials-container {
    width: 90%;
  }

  .testimonial-wrapper {
    padding: 25px 15px;
  }

  .testimonial {
    font-size: 14px;
    line-height: 1.5;
  }

  .author-name {
    font-size: 13px;
  }

  /* Footer */
  .footer-container {
    padding: 30px 15px;
  }

  .contact-button {
    width: 160px !important;
    margin-bottom: 30px;
  }

  .btn-text {
    font-size: 16px !important;
  }

  .email {
    font-size: 16px !important;
    line-height: 1.4 !important;
    word-break: break-word;
  }

  .heading-6 {
    font-size: 20px !important;
    margin-bottom: 20px;
  }

  .address {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Contact form */
  .contact-heading {
    font-size: 24px;
  }

  .contact-paragraph {
    font-size: 14px;
    line-height: 1.5;
  }

  .form {
    padding: 0;
  }

  .text-field,
  .full-text-field {
    font-size: 14px;
    padding: 10px;
  }

  .text-area {
    min-height: 120px;
    font-size: 14px;
    padding: 10px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  /* Project text overlays */
  .project-text {
    padding: 15px;
  }

  .project-category {
    font-size: 11px;
  }

  .project-name {
    font-size: 20px;
  }
}

/* Very small devices (max-width: 360px) */
@media screen and (max-width: 360px) {
  .hero-heading {
    font-size: 36px !important;
    line-height: 42px !important;
  }

  .about-heading {
    font-size: 22px;
  }

  .about-paragraph {
    font-size: 16px !important;
  }

  .logo-wrappper.w--current {
    width: 100px;
  }
}

/* Landscape orientation fixes for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 100px 0;
  }

  .hero-heading {
    position: relative;
    margin-top: 0;
  }

  .scroll-wrapper {
    display: none;
  }
}

/* Ensure images are always responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent text overflow on small screens */
* {
  word-wrap: break-word;
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  a,
  button,
  .w-tab-link,
  .contact-button {
    min-height: 44px;
    min-width: 44px;
  }
}
