/* General Mobile Styles */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: row;
        height: auto;
    }

    .navbar .hamburger {
        display: block;
        cursor: pointer;
        font-size: 2rem;
    }

    .nav-list {
        display: none;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        margin: 20px;
    }

    .header-img img {
        width: 80%; /* Reduce image size for medium screens */
    }

    .about-section, .services-section, .testimonial-section, .testimonial-slide, .contact-form-container, .lorem, .client-section {
        margin: 20px;
        padding: 15px;
    }

    .about-img img {
        width: 80%; /* Reduce image size for about section */
    }

    .contact-img img {
        width: 70%; /* Reduce image size for contact section */
    }

    .client-data img{
        width: 50%;
    }

    .client-section{
        flex-direction: column;
    }

    .client-data{
        flex-direction: column;
    }

    .kyb {
        margin-bottom: 30px;
    }

    .lorem {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .lorem-img img {
        /* width: 80%;  */
        align-items: center;
    }

    .lorem-text {
        font-size: 1rem; /* Reduce text size for lorem */
        /* margin: 0px 20px; */
    }

    .service-card {
        width: 100%;
        margin: 10px 0;
    }

    .testimonial-slider {
        margin: 10px;
    }

    .minimal-footer {
        flex-direction: column;
        justify-content: space-between;
    }

    .footer-contact {
        text-align: center;
    }

    /* Adjust WhatsApp Icon */
    .whatsapp-icon {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        padding: 10px; /* Add padding to create distance */
    }

    .whatsapp-icon img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        height: auto;
    }

    .navbar .hamburger {
        display: block;
        cursor: pointer;
        font-size: 2rem;
    }

    .nav-list {
        display: none;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        margin: 20px;
    }

    .header-img img {
        width: 70%; /* Further reduce image size */
    }

    .about-section, .services-section, .testimonial-section, .contact-form-container, .lorem {
        margin: 20px;
        padding: 10px;
    }

    .about-img img {
        width: 70%; /* Further reduce image size for about section */
    }

    .contact-img img {
        width: 60%; /* Further reduce image size for contact section */
    }

    .lorem {
        flex-direction: column;
        text-align: center;
    }

    .lorem-img img {
        width: 70%; /* Smaller image size */
    }

    .lorem-text {
        font-size: 0.9rem; /* Further reduce text size */
    }

    .service-card {
        width: 100%;
        margin: 10px 0;
    }

    .testimonial-slider {
        margin: 10px;
    }

    .minimal-footer {
        flex-direction: column;
        justify-content: space-between;
    }

    .footer-contact {
        text-align: center;
    }

    /* Adjust WhatsApp Icon */
    .whatsapp-icon {
        position: fixed;
        bottom: 15px;
        right: 15px;
        z-index: 1000;
        padding: 8px;
    }

    .whatsapp-icon img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: row;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        margin: 10px;
    }

    .header-img img {
        width: 100%; /* Full width on small screens */
    }

    .about-section, .services-section, .testimonial-section, .contact-form-container, .lorem {
        margin: 10px;
        padding: 5px;
    }

    .about-img img {
        width: 60%; /* Smaller image for mobile */
    }

    .contact-img img {
        width: 50%; /* Smaller image for contact section on mobile */
    }

    .lorem {
        flex-direction: column;
        text-align: center;
    }

    .lorem-img img {
        width: 90%; /* Smaller image for lorem */
    }

    .lorem-text {
        font-size: 0.85rem; /* Reduce text size on small screens */
    }

    .service-card {
        width: 100%;
        margin: 10px 0;
    }

    .testimonial-slider {
        margin: 10px;
    }

    .minimal-footer {
        flex-direction: column;
        justify-content: space-between;
    }

    .footer-contact {
        text-align: center;
    }

    /* Adjust WhatsApp Icon */
    .whatsapp-icon {
        position: fixed;
        bottom: 10px;
        right: 10px;
        z-index: 1000;
        padding: 5px;
    }

    .whatsapp-icon img {
        width: 35px;
        height: 35px;
    }
}

/* Custom Mobile Adjustments */
@media (max-width: 320px) {
    .header-text h1 {
        font-size: 1.5rem;
    }

    .service-card i {
        font-size: 30px;
    }

    .testimonial-section h2, .services-section h2 {
        font-size: 1.2rem;
    }

    .lorem-text {
        font-size: 0.8rem; /* Further reduce text size */
    }

    .lorem-img img {
        width: 85%; /* Adjusted for extra small screens */
    }

    .about-img img {
        width: 50%; /* Adjusted for extra small screens */
    }

    .contact-img img {
        width: 40%; /* Adjusted for extra small screens */
    }

    /* Adjust WhatsApp Icon */
    .whatsapp-icon {
        position: fixed;
        bottom: 5px;
        right: 5px;
        z-index: 1000;
        padding: 3px;
    }

    .whatsapp-icon img {
        width: 30px;
        height: 30px;
    }
}


/* For mobile and tablet views */
@media (max-width: 1024px) {
    .nav-list {
        display: none; /* Initially hidden */
        flex-direction: column; /* Vertical layout */
        position: absolute;
        top: 100%; /* Position the menu just below the navbar */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: all 0.3s ease-in-out; /* Smooth sliding effect */
        border: 1px;
        border-radius: 30px;
    }

    .nav-list.active {
        display: flex; /* Show the nav list when 'active' */
    }

    .nav-list li {
        padding: 5px 0; /* Decrease space between list items */
        text-align: center;
        border-bottom: 1px solid #ccc;
        margin: 5px; /* No extra margin */
    }

    .nav-list li:last-child {
        border-bottom: none; /* Remove border for the last item */
    }

    /* To push the content down when the nav-list is visible */
    .header.shift-down {
        margin-top: 230px; /* Adjust this value as needed to move the content down */
        transition: margin-top 0.3s ease-in-out; /* Smooth transition */
    }
}

/* Responsive Styles for .lastone Section */
@media (max-width: 1024px) {
    .lastone {
        flex-direction: column;
        padding: 20px;
        margin: 20px;
        text-align: center;
    }
    .both-section {
        flex-direction: column;
        margin: 20px 0;
    }
    .contact-form-container {
        width: 90%;
        margin: 0 auto;
    }
    .map-section iframe {
        height: 300px;
    }
    .contact-img img {
        width: 60%;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .lastone {
        padding: 15px;
    }
    .contact-form-container {
        width: 100%;
    }
    .contact-img img {
        width: 50%;
    }
    .map-section iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .both-section {
        margin: 10px 0;
    }
    .contact-form-container {
        padding: 10px;
    }
    .map-section iframe {
        height: 200px;
    }
    .contact-img img {
        width: 40%;
    }
}

@media (max-width: 320px) {
    .contact-form-container {
        padding: 5px;
    }
    .map-section iframe {
        height: 180px;
    }
    .contact-img img {
        width: 35%;
    }
}
