
/*====================
   BULLETPROOF FIXED POSITIONING FIX
   Add at the very top of responsive.css
================================ */

html {
  overflow-x: clip;              /* clip preserves fixed positioning, hidden does not on mobile */
  overflow-y: auto;
  height: auto;
}

body {
  overflow-x: clip;
  overflow-y: visible;
  transform: none !important;    /* kill any transform on body */
  filter: none !important;
  perspective: none !important;
  will-change: auto !important;
  position: static;
  min-height: 100vh;
}

/* Force header fixed regardless of markup used */
header,
.site-header,
#header,
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* Force ALL floating elements to stay fixed */
.social-floating,
.whatsapp-float,
.whatsapp,
.floating-phone,
.phone-float,
#topBtn,
#progress-bar {
  position: fixed !important;
}
/* ===========================
   RESPONSIVE STYLES
   Breakpoints:
   1200px - large screens
   991px  - tablets
   768px  - mobile
   480px  - small phones
=========================== */


/* ===========================
   LARGE DEVICES (max 1200px)
=========================== */
@media (max-width: 1200px) {

  .hero-content h1 { font-size: 55px; }

  .service-grid,
  .portfolio-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===========================
   TABLET (max 991px)
=========================== */
@media (max-width: 991px) {

  .section-padding { padding: 80px 5%; }

  header,
  .site-header { padding: 20px 5%; }

  .menu-btn {
    color: #0f172a;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  header.sticky .menu-btn,
  .site-header.sticky .menu-btn { color: #0f172a; }

  nav,
  #nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: .5s;
    padding-top: 100px;
  }

  nav.active,
  #nav.active { right: 0; }

  nav ul,
  #nav ul { gap: 0; flex-direction: column; }

  nav ul li,
  #nav ul li { margin: 0; width: 100%; }

  nav ul li a,
  #nav ul li a {
    display: block;
    padding: 18px;
    border-bottom: 1px solid #eee;
  }

  .hero-content { left: 5%; width: 90%; }
  .hero-content h1 { font-size: 45px; }
  .hero-content p { font-size: 18px; }
  .hero-buttons { gap: 15px; }

  .why-us .container { grid-template-columns: 1fr; }
  .counter-section { gap: 20px; }

  .footer-content {
    gap: 40px;
    text-align: center;
  }

  .contact-section { padding: 80px 5%; }
  .contact-container { flex-direction: column; gap: 50px; }
  .contact-form,
  .contact-image { width: 100%; }
  .contact-form h2 { font-size: 40px; }
  .contact-image { order: -1; }

  .before-grid { grid-template-columns: 1fr; gap: 35px; }
  .before-card img { height: 420px; object-fit: cover; }

  .brands { padding: 80px 5%; }
  .brands-track img { width: 140px; height: 60px; margin: 0 30px; }
  .brands-track { animation-duration: 40s; }

  .testimonial-slider { padding: 20px 10px; }
  .testimonial { padding: 30px; }
  .testimonial p { font-size: 17px; line-height: 1.8; }
}


/* ===========================
   MOBILE (max 768px)
=========================== */
@media (max-width: 768px) {

  .section-title h2 { font-size: 35px; }

  .hero { height: 90vh; }
  .hero-content h1 { font-size: 38px; }
  .hero-content p { font-size: 16px; }

  .service-grid,
  .portfolio-grid,
  .blog-grid,
  .before-grid { grid-template-columns: 1fr; }

  .counter-section { grid-template-columns: 1fr; }
  .counter-box h2 { font-size: 45px; }

  .cta h2 { font-size: 36px; }

  .popup-content { width: 90%; }

  /* Social Icons - forced fixed on mobile */
  .social-floating {
    position: fixed !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-direction: column;
    gap: 12px;
    z-index: 9999 !important;
  }
  .social-floating a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  /* Process */
  .process { padding: 80px 5%; }
  .process-heading { margin-bottom: 60px; }
  .process-heading h2 { font-size: 32px; }
  .process-heading p { font-size: 16px; }
  .timeline-step { margin-bottom: 45px; }
  .step-number { font-size: 48px; }
  .step-icon { width: 75px; height: 75px; font-size: 28px; }
  .timeline-step h3 { font-size: 22px; white-space: normal; }
  .timeline-step p { max-width: 100%; font-size: 15px; }

  /* Contact */
  .contact-section { padding: 70px 5%; }
  .contact-container { gap: 40px; }
  .contact-form h2 { font-size: 34px; }
  .contact-form input,
  .contact-form textarea { padding: 16px 18px; font-size: 15px; }
  .contact-form button { width: 100%; }
  .contact-image img { max-width: 85%; }

  .before-card img { height: 320px; }

  /* Brands */
  .brands { padding: 70px 5%; }
  .brands-slider { margin-top: 25px; }
  .brands-track img { width: 110px; height: 50px; margin: 0 20px; }
  .brands-track { animation-duration: 45s; }
/* get your quote */


  /* Floating elements */
  .phone-float,
  .floating-phone {
    width: 200px;
    height: 50px;
    bottom: 50px;
    left: 20px;
    border-radius: 0 0 10px 10px;
    transform: rotate(-90deg);
    transform-origin: left center;
    top: auto;
    right: auto;
    
  }
  .phone-float i { font-size: 24px; }

  .whatsapp,
  .whatsapp-float { right: 20px; bottom: 80px; }

  #topBtn { right: 20px; bottom: 20px; }

  .testimonial { padding: 25px; }
  .testimonial p { font-size: 16px; }
  .testimonial-author img { width: 65px; height: 65px; }
  
  
  .portfolio .section-title span {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .portfolio .section-title h2 {
    font-size: 30px;
    line-height: 1.3;
  }

  .portfolio .section-title p {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 15px;
  }
}


/* ===========================
   SMALL PHONES (max 480px)
=========================== */
@media (max-width: 480px) {

  .logo { font-size: 26px; }

  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 15px; }

  .btn { padding: 14px 28px; font-size: 15px; }

  .section-title h2 { font-size: 30px; }
  .why-content h2 { font-size: 32px; }
  .cta h2 { font-size: 30px; }
  .counter-box { padding: 30px; }
  .blog-card h3 { font-size: 20px; }

  .social-floating a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .contact-section { padding: 60px 5%; }
  .contact-container { gap: 30px; }
  .contact-form h2 { font-size: 28px; }

  .before-card img { height: 250px; }

  .brands { padding: 60px 5%; }
  .brands-slider { margin-top: 20px; }
  .brands-track img { width: 85px; height: 40px; margin: 0 15px; }
  .brands-track { animation-duration: 50s; }

  .process { padding: 60px 5%; }
  .process-heading h2 { font-size: 28px; }
  .step-number { font-size: 40px; }
  .step-icon { width: 65px; height: 65px; font-size: 24px; }
  .timeline-step h3 { font-size: 20px; }
  .timeline-step p { font-size: 14px; }

  .phone-float,
  .floating-phone {
    width: 200px;
    height: 50px;
    left: 25px; 
    bottom: 50px;
    border-radius: 0 0 10px 10px;
    right: 120px;                       /* stick to the right edge */
    transform: rotate(-90deg);       /* +90 instead of -90 */
    transform-origin: left center;
  }
  .phone-float i { font-size: 22px; }

  .whatsapp,
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
    right: 15px;
    bottom: 75px;
  }

  #topBtn {
    width: 45px;
    height: 45px;
    right: 15px;
    bottom: 15px;
  }
}