/* =========================
   Responsive Fixes for Navbar
========================= */

/* Mobile (max 480px) */
@media (max-width: 480px) {

    .navbar-nav {
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-right: 0 !important;
    }

    .navbar-nav .nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .navbar-nav .nav-link.active {
        border-bottom: 2px solid #198754;
    }

    /* hero-section */
    .carousel-item {
        height: 70vh;
    }

    .carousel-item img {
        height: 70vh;
        object-fit: cover;
    }

    .carousel-caption {
        top: 10%;
        left: 0px;
        text-align: left;
    }

    .carousel-caption hr {
        width: 200px !important;
    }

    .carousel-caption h1 {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .carousel-caption p {
        max-width: 90% !important;
        font-size: 14px;
    }

    .btn-custom {
        padding: 8px 14px;
        font-size: 14px;
    }

    .why-choose-section {
        padding: 30px 15px;
    }

    .why-choose-section h2 {
        font-size: 22px;
    }

    .why-choose-section p {
        font-size: 16px;
    }

    .bg-logo {
        max-width: 150px;
        right: 10px;
        opacity: 0.1;
    }

    .rooftop-section {
        padding: 40px 15px;
    }

    .rooftop-section h2 {
        font-size: 20px;
    }

    .rooftop-section .card h3 {
        font-size: 20px;
    }

    .rooftop-section .card p {
        font-size: 16px;
    }

    .industries-section h2 {
        font-size: 20px;
    }

    .industry-cards {
        justify-content: center !important;
        margin-right: 30px;
    }

    .industry-card {
        flex-direction: column;
    }

    .industry-card .icon-box {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .industry-card .icon-box img {
        width: 60px;
        height: 60px;
    }

    .industry-card .text-box p {
        font-size: 16px;
    }

    .categories-section h2 {
        font-size: 20px;
        text-align: center;
        padding-bottom: 20px;
    }

    .Categories-list {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .custom-list {
        padding-left: 15px;
    }

    .custom-list li {
        font-size: 16px;
        text-align: start;
    }

    .process-section h2 {
        font-size: 20px;
    }

    .process-flow {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .process-step .circle {
        width: 50px;
        height: 50px;
    }

    .process-step .circle img {
        width: 100%;
        height: auto;
    }

    .arrow {
        margin-top: 20px;
        width: 60px;
        height: 60px;
    }

    .process-step p {
        font-size: 6px;
        margin-top: 0px;
    }

    .process-list li {
        font-size: 18px;
    }

    .process-lists {
        padding-left: 20px;
    }

    .contact-section h4 {
        font-size: 22px;
        text-align: center;
    }

    .contact-section ul li a {
        font-size: 16px;
        text-align: start;
        display: block;
    }

    .contact-section .form-control {
        font-size: 12px;
    }

    .footer-col {
        padding: 0 10px !important;
        width: 100%;
        border-left: none !important;
        margin-bottom: 20px;
    }
    .footer-mail {
        margin-bottom: 25px !important;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-copy {
        font-size: 14px;
        padding-top: 20px;
    }
    .contact-section h5{
        margin-bottom: 0px;
        padding-top: 10px;
    }
     .contact-section p a {
       font-size: 14px;
   }

    .service-header {
        padding: 20px 10px;
        border-radius: 6px;
    }

    .service-header h2,
    .services-header h2 {
        font-size: 20px;
        padding-bottom: 15px;
        text-align: center;
    }

    .service-header h3,
    .process-sections h3 {
        font-size: 18px;
        text-align: center;
    }

    .areas-covered br {
        display: none;
    }

    .areas-covered {
        display: flex;
        flex-direction: column;
    }

    .areas-covered .btn {
        font-size: 16px;
        text-align: left;
    }

    .workflow-step p {
        font-size: 16px;
        gap: 8px;
    }


    .workflow-step .step-icon {
        width: 30px;
        height: 30px;
    }

    .vertical-line {
        display: none;
    }

    .overview-text {
        font-size: 14px;
        line-height: 1.5;
        text-align: start;
    }

    .fig-caption-overlay {
        top: 10px;
        font-size: 12px;
        padding: 5px 8px;
    }

    .list-unstyled {
        font-size: 16px;
        line-height: 1.6;
    }


    .workflow-step p {
        margin: 0 !important;
        line-height: 1.5;
    }

    .form-checks .form-checks-input {
        width: 22px;
        height: 22px;
        margin-right: 8px !important;
    }

    .form-checks .form-checks-input:checked::after {
        font-size: 14px;
        transform: translate(-50%, -55%);
    }

    .form-checks .form-checks-label {
        font-size: 15px;
        line-height: 1.9;
    }
      .footer-logo {
        width: 270px;
        padding-bottom: 20px;
    }
}

/* Tablet (max 768px) */
@media (max-width: 768px) {

    .navbar-collapse {
        justify-content: flex-start !important;
    }

    .navbar-nav {
        align-items: flex-start !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-right: 0 !important;
        width: 100%;
    }

    .navbar-nav .nav-link {
        text-align: left !important;
        width: 100%;
        padding-left: 15px !important;
    }

    .navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        width: 100% !important;
    }

    .navbar .dropdown-item {
        width: 100% !important;
        text-align: left !important;
    }

    .dropdown-arrow {
        display: none !important;
    }

    .carousel-caption {
        top: 12%;
        left: 30px;
        max-width: 85%;
    }

    .carousel-caption h1 {
        font-size: 30px;
    }

    .carousel-caption hr {
        width: 250px;
    }

    .carousel-caption p {
        font-size: 16px;
        margin: 15px 0;
    }

    .btn-custom {
        padding: 10px 18px;
        font-size: 15px;
    }

    .services-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .service-card {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .service-content h3 {
        font-size: 18px;
    }

    .service-content p {
        font-size: 13px;
    }

    .rooftop-section h2 {
        font-size: 22px;
        text-align: center;
    }

    .rooftop-section .cards {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .rooftop-section .card {
        max-width: 90%;
    }

    .rooftop-section .card h3 {
        font-size: 24px;
    }

    .rooftop-section .card p {
        font-size: 18px;
    }

}

@media (min-width: 481px) and (max-width: 768px) {
    .why-choose-section {
        padding: 40px 25px;
    }

    .why-choose-section h2 {
        font-size: 26px;
    }

    .why-choose-section p {
        font-size: 18px;
    }

    .bg-logo {
        max-width: 200px;
        opacity: 0.15;
    }

    .services-section h2 {
        font-size: 26px;
    }

    .service-card {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .service-content h3 {
        font-size: 19px;
    }

    .service-content p {
        font-size: 14px;
    }

    .industries-section h2 {
        font-size: 22px;
    }

    .industry-card {
        flex-direction: row;
        max-width: 45%;
        /* 2 cards per row */
    }

    .industry-card .icon-box img {
        width: 70px;
        height: 70px;
    }

    .industry-card .text-box p {
        font-size: 18px;
    }

    .categories-section h2 {
        font-size: 22px;
        text-align: center;
    }

    .Categories-list {
        justify-content: center;
        flex-wrap: wrap;
    }

    .custom-list li {
        font-size: 18px;
    }

    .process-section h2 {
        font-size: 22px;
    }

    .process-flow {
        flex-wrap: wrap;
        justify-content: center;
    }

    .process-step .circle {
        width: 100px;
        height: 80px;
    }

    .process-step p {
        font-size: 14px;
        margin-top: 25px;
    }

    .process-step p {
        font-size: 14px;
        margin-top: 25px;
    }

    .process-list li {
        font-size: 20px;
    }

    .process-lists {
        padding-left: 25px;
    }

    .contact-section h4 {
        font-size: 24px;
        text-align: center;
    }

    .contact-section ul li a {
        font-size: 18px;
    }

    .contact-section .form-control {
        font-size: 13px;
    }

    .footer-col {
        padding: 0 20px !important;
        width: 45%;
        border-left: none;
        margin-bottom: 15px;
    }

    .footer-row {
        justify-content: center;
    }

    .footer-copy {
        font-size: 18px;
        padding-top: 60px;
    }
     .footer-logo {
        width: 260px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .industries-section h2 {
        font-size: 23px;
    }

    .industry-card {
        max-width: 40%;
        /* 2–3 cards per row */
    }

    .industry-card .icon-box img {
        width: 75px;
        height: 75px;
    }

    .industry-card .text-box p {
        font-size: 19px;
    }

    .process-section h2 {
        font-size: 23px;
    }

    .process-step .circle {
        width: 80px;
        height: 80px;
    }

    .process-step .circle img {
        width: 80px;
    }

    .process-step p {
        font-size: 16px;
        margin-top: 15px;
    }

    .process-flow .arrow {
        width: 50px;
        margin-bottom: 30px;
    }

    .process-list li {
        font-size: 22px;
    }

    .process-lists {
        padding-left: 30px;
    }

    .contact-section h4 {
        font-size: 26px;
    }

    .contact-section ul li a {
        font-size: 20px;
    }

    .contact-section .form-control {
        font-size: 14px;
    }

    .footer-col {
        padding: 0 30px !important;
        width: auto;
    }

    .footer-copy {
        font-size: 20px;
        padding-top: 70px;
    }
     .footer-logo {
        width: 320px;
    }
}

/* popup */
/* Default styles (already provided by you) */
/* ... your existing .popup and .popup-content styles ... */

/* Mobile: up to 480px */
@media (max-width: 480px) {
    .popup-content {
        padding: 20px;
        max-width: 90%;
    }

    .popup-content h5 {
        font-size: 14px;
    }

    .popup-content p {
        font-size: 13px;
    }

    .popup-content input,
    .popup-content textarea {
        padding: 10px;
        font-size: 13px;
    }

    .popup-content button {
        padding: 10px 18px;
        font-size: 14px;
    }

    .close-btn {
        font-size: 20px;
        right: 12px;
        top: 10px;
    }
}

/* Tablet: 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .popup-content {
        padding: 25px;
        max-width: 85%;
    }

    .popup-content h5 {
        font-size: 15px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .popup-content input,
    .popup-content textarea {
        padding: 11px;
        font-size: 14px;
    }

    .popup-content button {
        padding: 11px 20px;
        font-size: 15px;
    }

    .close-btn {
        font-size: 21px;
        right: 14px;
        top: 11px;
    }
}

/* Desktop small: 769px to 900px */
@media (min-width: 769px) and (max-width: 900px) {
    .popup-content {
        padding: 28px;
        max-width: 70%;
    }

    .popup-content h5 {
        font-size: 15px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .popup-content input,
    .popup-content textarea {
        padding: 12px;
        font-size: 14px;
    }

    .popup-content button {
        padding: 12px 22px;
        font-size: 15px;
    }

    .close-btn {
        font-size: 22px;
        right: 15px;
        top: 12px;
    }
}
