/* =========================================================
   FULL MOBILE OPTIMIZATION FOR PSR COMPUTERS
   Designed for best performance on 320px–768px screens
   ========================================================= */

@media (max-width: 768px) {

  /* ------------------------------------------
     GLOBAL
  -------------------------------------------*/
  body {
    font-size: 15px !important;
    line-height: 1.6 !important;
    overflow-x: hidden !important;
  }

  section {
    padding: 25px 5% !important;
    margin: 22px 0 !important;
  }

  h1 {
    font-size: 1.6rem !important;
  }
  h2, .section-title {
    font-size: 1.45rem !important;
    white-space: normal !important;
    text-align: center !important;
    
  }
  h3 {
    font-size: 1.2rem !important;
  }
  p {
    font-size: 0.98rem !important;
  }

  .btn-learn,
  .read-more,
  .send-btn {
    font-size: 1rem !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
  }

  /* ------------------------------------------
     NAVBAR
  -------------------------------------------*/
  .nav-blur {
    padding: 4px 0 !important;
    height: auto !important;
  }

  .nav-flex {
    padding: 0 6% !important;
  }

  .company-name {
    font-size: 1.3rem !important;
  }

 

  /* Mobile nav menu */
  .nav-links {
    width: 75vw !important;
    padding-top: 22px !important;
  }

  .nav-links li a {
    font-size: 1.1rem !important;
    padding: 10px 14px !important;
  }

 /* -------------------------------------------------------
   FINAL MOBILE HERO RE-DESIGN (WORKS WITH YOUR HTML)
   Clean, modern, professional layout for mobile screens
-------------------------------------------------------*/
@media (max-width: 768px) {

    .hero-slide {
        position: relative !important;
        height: 500px !important;
        min-height: 480px !important;
        max-height: 520px !important;

        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;

        display: flex !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;

        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    /* hide inline image */
    .hero-slide .hero-image img {
        display: none !important;
    }

    /* your image paths */
    .hero-slide:nth-child(1) { background-image: url("images/mobilesoft.png"); }
    .hero-slide:nth-child(2) { background-image: url("images/herosecslide.png"); }
    .hero-slide:nth-child(3) { background-image: url("images/taxconsult.png"); }

    /* Better overlay (cleaner, professional) */
    .hero-slide::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.55)
        );
        z-index: 1;
    }

    /* soft fade at bottom (premium look) */
    .hero-slide::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 120px;
        background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
        z-index: 2;
    }

    /* Layout reset */
    .hero-slide .container,
    .hero-flex {
        display: block !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hero text placed above fade */
    .hero-content {
        position: relative !important;
        z-index: 3 !important;
        text-align: center !important;
        padding: 0 20px 55px !important;
        color: #fff !important;

        opacity: 0;
        transform: translateY(20px);
        animation: fadeup 0.8s ease-out forwards;
    }

    .hero-content h1 {
        font-size: 1.55rem !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
        color: #ffffff !important;
        text-shadow: 0px 2px 10px rgba(0,0,0,0.6);
    }

    .hero-content p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        color: #f3f3f3 !important;
        margin: 0 auto 22px !important;
        max-width: 340px !important;
        text-shadow: 0px 1px 6px rgba(0,0,0,0.4);
        font-family:  'Outfit', sans-serif;
    }

    .read-more {
        padding: 12px 26px !important;
        background: #7c0f24 !important;
        border-radius: 12px !important;
        color: #fff !important;
        font-size: 1rem !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.35);
        transition: 0.3s ease;
    }

    .read-more:hover {
        transform: translateY(-2px);
    }

    @keyframes fadeup {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .arrow {
        z-index: 6 !important;
        color: rgba(255,255,255,0.8) !important;
        font-size: 35px !important;
        top: 50% !important;
    }

    .dots {
        position: absolute !important;
        bottom: 14px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 7 !important;
    }

}



  /* ------------------------------------------
     TRUSTED SECTION
  -------------------------------------------*/
  .trusted-section {
    padding: 30px 4% 45px !important;
  }

  .trusted-label {
    font-size: 1.4rem !important;
  }

  .brand-track {
    gap: 30px !important;
  }

  /* ------------------------------------------
     ABOUT US SECTIONS
  -------------------------------------------*/
  .about-us-section {
    padding: 40px 5% !important;
    margin: 25px 0 !important;
    border-radius: 18px !important;
    text-align: center !important;
  }

  .about-content {
    max-width: 100% !important;
  }

  .about-image img {
    max-width: 85% !important;
    margin: 0 auto !important;
  }

  .info-list li {
    font-size: 0.95rem !important;
    justify-content: center !important;
    font-family:  'Outfit', sans-serif;
  }

  .stats {
    justify-content: center !important;
    gap: 20px !important;
  }
  

  /* ===============================================
   MODERN CONTACT PAGE (Mobile Refinement)
   =============================================== */

@media(max-width: 768px) {

  /* Wrapper spacing */
  .contact-wrapper {
      padding: 20px 5% !important;
      margin-top: 20px !important;
  }

  /* Section Heading */
  .contact-section h1 {
      font-size: 1.6rem !important;
      font-weight: 700;
      color: #5a0f22;
      margin-bottom: 10px;
      text-align: center;
  }

  .contact-section p {
      font-size: 1rem;
      color: #555;
      text-align: center;
      max-width: 90%;
      margin: 0 auto 25px;
      line-height: 1.5;
  }

  /* Contact Cards (Email, Phone, Address) */
  .contact-card {
      background: #fff5f7;
      padding: 25px 20px !important;
      margin: 18px auto !important;
      border-radius: 20px !important;
      max-width: 350px !important;
      box-shadow: 0 4px 14px rgba(0,0,0,0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      text-align: center;
  }

  .contact-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

  /* Contact icons */
  .contact-card img {
      width: 60px;
      height: 60px;
      margin-bottom: 12px;
      filter: drop-shadow(0 3px 6px rgba(90,15,34,0.15));
  }

  /* Titles */
  .contact-card h3 {
      font-size: 1.25rem !important;
      font-weight: 700;
      color: #5a0f22;
      margin-bottom: 6px;
  }

  /* Links */
  .contact-card a {
      font-size: 1rem;
      color: #0077ff !important;
      text-decoration: none;
      font-weight: 500;
      word-break: keep-all !important;
  }

  .contact-card a:hover {
      text-decoration: underline;
  }

  /* Input fields (form) */
  .contact-container {
      margin-top: 25px;
      padding: 25px 22px !important;
      border-radius: 18px !important;
      background: #ffffff;
      box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  }

  .input-group {
      margin-bottom: 16px !important;
  }

  .input-group input,
  .input-group textarea {
      padding: 14px !important;
      border-radius: 12px !important;
      border: 1.4px solid #ddd;
      background: #f8f8fc !important;
      font-size: 1rem !important;
  }

  .send-btn {
      width: 100%;
      padding: 14px !important;
      background: #5a0f22 !important;
      border-radius: 12px !important;
      font-size: 1.1rem !important;
      margin-top: 12px;
      box-shadow: 0 4px 14px rgba(90,15,34,0.25);
  }

  .send-btn:hover {
      background: #7b1433 !important;
      transform: translateY(-2px);
  }
}

/* ===============================================
   CONTACT PAGE — FIXED & IMPROVED
   =============================================== */
@media(max-width: 768px) {

  /* Fix header hitting navbar */
  .contact-section {
      padding-top: 110px !important;
  }

  .contact-section h1 {
      margin-top: 0 !important;
  }

  /* Center paragraph */
  .contact-section p {
      max-width: 90%;
      margin: 10px auto 25px !important;
  }

  /* Grid wrapper alignment */
  .contact-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 22px;
  }

  /* Equal-size contact cards */
  .contact-card {
      width: 100%;
      max-width: 350px !important;
      min-height: 210px !important;  /* ✔ same card height */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      background: #fff5f7;
      padding: 25px 18px !important;
      border-radius: 20px !important;
      box-shadow: 0 4px 14px rgba(0,0,0,0.08);
      text-align: center;
      transition: 0.2s ease;
  }

  .contact-card h3 {
      margin: 12px 0 6px !important;
  }

  .contact-card p,
  .contact-card a {
      margin: 0 !important;
      font-size: 1rem;
      line-height: 1.5;
  }

  /* Icon circle */
  .icon-circle {
      width: 70px;
      height: 70px;
      background: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      margin-bottom: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  }
}

  /* ------------------------------------------
     PRODUCT PAGES / DEMO POPUPS
  -------------------------------------------*/
  @media (max-width: 768px) {
  .features h2 {
      margin-bottom: 5px !important;
  }

  .feature-grid {
      margin-top: 5px !important;
      gap: 15px !important;   /* reduce gap between cards */
  }

  .feature {
      padding: 10px !important;
  }
}





  /* ------------------------------------------
     NEWS PAGE
  -------------------------------------------*/
  .news-card {
    width: 100% !important;
    margin: 12px 0 !important;
  }

  .news-card img {
    height: auto !important;
    max-height: 180px !important;
  }

  /* ------------------------------------------
     FOOTER
  -------------------------------------------*/
  .main-footer {
    padding: 45px 6% 35px !important;
    text-align: center !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .footer-brand {
    justify-content: center !important;
  }

  .footer-social {
    justify-content: center !important;
  }

  .map-preview {
    margin: 0 auto !important;
  }

  /* ------------------------------------------
     SOCIAL MEDIA FLOAT BAR
  -------------------------------------------*/
  .social-bar {
    position: fixed !important;
    bottom: 14px !important;
    right: 10px !important;
    top: auto !important;
    flex-direction: row !important;
    gap: 8px !important;
  }

  .social-bar a {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  /* ------------------------------------------
     WHATSAPP BUTTON
  -------------------------------------------*/
  .whatsapp-float-btn {
    bottom: 85px !important;
    right: 16px !important;
  }

  .whatsapp-float-btn a {
    width: 58px !important;
    height: 58px !important;
  }
}

/* Smallest screens */
@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 1.28rem !important;
  }
  p {
    font-size: 0.9rem !important;
  }
}


/* ==========================================================
   FINAL FIXES FOR NAVBAR + SPACING + IMAGE ORDER ON MOBILE
   ========================================================== */
@media (max-width: 768px) {

    /* --------------------------------------
       1) Reduce vertical spacing everywhere
    ---------------------------------------*/
    section.about-us-section {
        padding: 20px 5% !important;
        margin: 10px 0 !important;
    }

    .section-divider {
        margin: 0 !important;
        padding: 0 !important;
        height: 40px !important; /* reduce wave size */
    }

    
    /* --------------------------------------
       3) FORCE content above image in all sections
    ---------------------------------------*/

     /* ------------------------------------------
     ABOUT US SECTIONS
  -------------------------------------------*/
  .about-us-section {
    padding: 40px 5% !important;
    margin: 25px 0 !important;
    border-radius: 18px !important;
    text-align: center !important;
  }

  .about-content {
    max-width: 100% !important;
  }

  .about-image img {
    max-width: 85% !important;
    margin: 0 auto !important;
  }

  .info-list li {
    font-size: 0.95rem !important;
    justify-content: center !important;
  }

  .stats {
    justify-content: center !important;
    gap: 20px !important;
  }
  
    .about-us-section {
        display: flex !important;
        flex-direction: column !important;   /* forces content first */
        gap: 15px !important;
    }

    /* all images go below content automatically */
    .about-us-section .about-image {
        order: 2 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .about-us-section .about-image img {
        max-width: 90% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* all text/content goes above image */
    .about-us-section .about-content {
        order: 1 !important;
    }

    /* --------------------------------------
       4) Tighten stats block spacing
    ---------------------------------------*/
    .stats {
        margin-top: 10px !important;
        gap: 15px !important;
    }

    .stat h3 {
        font-size: 1.3rem !important;
    }
}
  
/* Remove extra space between About Us and Software Development */
.section-divider {
    margin: 0 !important;
    padding: 0 !important;
    height: 20px !important;      /* reduce wave height */
}

.section-divider.wave-divider {
    margin-bottom: -10px !important;   /* pull next section upward */
}

/* Also reduce padding on all about sections */
.about-us-section {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Reduce extra top padding inside ABOUT CONTENT and ABOUT IMAGE */
.about-us-section .about-content,
.about-us-section .about-image {
    margin-top: 0 !important;
    padding-top: 0 !important;
}



/* ============================
   PREMIUM MODERN HAMBURGER
   ============================ */
@media (max-width: 768px) {

  /* HAMBURGER BUTTON */
  .hamburger {
      width: 32px;
      height: 26px;
      display: flex !important;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      background: transparent !important;
      border: none !important;
      padding: 0 !important;
      position: absolute;
      top: 22px;
      right: 22px;
      z-index: 99999;
  }

  /* LINES */
  .hamburger .line {
      width: 100%;
      height: 3px;
      background: #5a0f22;      /* maroon */
      border-radius: 4px;
      transition: 0.35s ease;
  }

  /* 🔥 Animate into X */
  .hamburger.active .line:nth-child(1) {
      transform: rotate(45deg) translateY(9px);
  }
  .hamburger.active .line:nth-child(2) {
      opacity: 0;
  }
  .hamburger.active .line:nth-child(3) {
      transform: rotate(-45deg) translateY(-9px);
  }

  /* ============================
     SLIDE-IN MOBILE NAV PANEL
     ============================ */
  .nav-links {
      background: #5a0f22;
      position: fixed;
      top: 72px;
      right: 0;
      height: 100vh;
      width: 72vw;
      max-width: 310px;
      border-top-left-radius: 20px;
      border-bottom-left-radius: 20px;
      padding: 35px 25px;
      transform: translateX(100%);
      transition: transform 0.32s ease-out;
      display: flex;
      flex-direction: column;
      gap: 22px;
      overflow-y: auto;
  }

  .nav-links.open {
      transform: translateX(0);
  }

  /* MENU LINKS */
  .nav-links li a {
      font-size: 1.2rem !important;
      color: white !important;
      padding: 8px 0 !important;
  }

  .nav-links li a:hover {
      color: #ffdbe1 !important;
  }

  /* ============================
     MOBILE DROPDOWNS
     ============================ */
  .dropdown-menu {
      display: none !important;
      flex-direction: column;
      gap: 10px;
      padding-left: 18px;
  }

  .dropdown.open .dropdown-menu {
      display: flex !important;
  }

  .dropdown-icon {
      transition: transform 0.3s ease;
  }

  .dropdown.open .dropdown-icon {
      transform: rotate(180deg);
  }
}
.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}


/* MOBILE FIX: Remove spacing under navbar on NEWS page */
@media (max-width: 768px) {

    body.luxury-mode .news-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.luxury-mode section.news-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* If any padding/margin still comes from container */
    body.luxury-mode .hero-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}
/* FIX CTA → FOOTER GAP ON MOBILE */
@media (max-width: 768px) {

  .cta {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
  }

  .main-footer {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }

  /* If your CTA wrapper has inner spacing */
  .cta-box {
    margin-bottom: 0 !important;
  }
}
/* =============================================
   REMOVE GAP BETWEEN NEWS HERO & TRENDING STRIP
   ============================================= */
   @media (max-width: 768px){
.news-hero,
.hero-container {
    margin: 0 !important;
    padding: 0 !important;
}

.trending-strip {
    margin-top: 0 !important;
    padding-top: 8px !important;  /* small breathing space */
}

/* If the <h1> adds extra spacing */
.news-hero h1 {
    margin-top: 0 !important;
}

/* If <p> inside hero adds spacing */
.news-hero p {
    margin-bottom: 5px !important;
}
   }
/* Mobile Fix */
@media (max-width: 768px) {
    .news-hero {
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-container {
        padding: 15px 6% !important;   /* clean but tight */
        margin: 0 !important;
    }

    .trending-strip {
        margin-top: -5px !important;   /* pulls it upward */
    }
}




/* =============================
   FIX CAROUSEL DOTS ON MOBILE
   ============================= */
@media (max-width: 768px) {

    /* Carousel wrapper must be relative */
    .carousel-wrap {
        position: relative !important;
        padding-bottom: 35px !important;  /* space for dots */
    }

    /* Slider images full width */
    .carousel-wrap img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* DOTS — fixed placement */
    .dots {
        position: absolute !important;
        left: 50% !important;
        bottom: 10px !important; /* distance under image */
        transform: translateX(-50%) !important;
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        z-index: 20 !important;
    }

    .dot {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50%;
        background: #c8c8c8 !important;
        transition: 0.3s;
    }

    .dot.active {
        background: #5a0f22 !important;
        transform: scale(1.2);
    }
}
@media (max-width: 768px) {

  @media (max-width: 768px) {

  /* Fix hero spacing issue */
  .hero {
    padding: 60px 15px 40px !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: auto !important;
  }

  /* remove extra background block below heading */
  .hero::after,
  .hero::before {
    display: none !important;
  }

  /* prevent extra space caused by line separator after hero */
  .hero + * {
    margin-top: 10px !important;
  }
}
}