/* Responsive Styles */
/* html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
} */

.whatsapp-float {
    position: fixed;
    z-index: 9999;
}

@media (max-width: 992px) {
    .top-bar-content {
        justify-content: space-around;
    }

    .contact-info {
        flex-wrap: wrap; 
        justify-content: center;
    }

    .contact-info-item {
        margin-left: 10px; 
        margin-bottom: 5px;
    }
    .contact-info-item span {
        font-size: 0.9em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text,
    .about-image {
        flex: none;
        width: 100%;
    }

    .about-image {
        margin-top: 30px;
    }

    .about-company-content {
        flex-direction: column;
    }

    .about-company-image,
    .about-company-text {
        flex: none;
        width: 100%;
    }

    .page-banner h1 {
        font-size: 36px;
    }

    .service-detail-content,
    .service-detail-content.reverse {
        flex-direction: column;
    }

    .service-detail-image,
    .service-detail-text {
        flex: none;
        width: 100%;
    }

    .service-detail-image {
        margin-bottom: 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .page-banner2 h1 {
        font-size: 36px;
    }

    .page-banner3 h1 {
        font-size: 36px;
    }

    .document-viewer {
        height: 400px;
    }

    .contact-details-form {
        flex-direction: column;
    }

    .contact-details,
    .contact-form {
        width: 100%;
    }

    .contact-top-row {
        flex-direction: column;
    }
    .process-image{
        max-width: 100%;
        margin: 0 auto;
        display: block;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 24px;
    }
    
    .logo-text p {
        font-size: 14px;
    }

    .top-bar-content {
        justify-content: center;
        padding: 5px 10px; 
    }

    .contact-info-item {
        margin-left: 9px; 
    }

    .contact-info-item span {
        font-size: 0.8em; 
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        height: 500px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 300px;
    }

    .page-banner h1 {
        font-size: 30px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .page-banner1 {
        height: 400px;
    }

    .banner-content h1 {
        font-size: 30px;
    }

    .banner-prev-btn,
    .banner-next-btn {
        width: 40px;
        height: 40px;
    }

    .service-detail-text h3 {
        font-size: 24px;
    }


    .page-banner2 {
        height: 300px;
    }

    .page-banner2 h1 {
        font-size: 30px;
    }

    .page-banner3 {
        height: 300px;
    }

    .page-banner3 h1 {
        font-size: 30px;
    }

    .document-header {
        padding: 20px;
    }

    .document-icon {
        font-size: 30px;
    }

    .document-title h3 {
        font-size: 20px;
    }

    .document-content {
        padding: 20px;
    }

    .document-viewer {
        height: 350px;
    }

    .document-info {
        flex-direction: column;
        padding: 20px;
    }

    .document-info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .registration-number {
        font-size: 16px;
        padding: 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-row .form-group {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .top-bar-content {
        justify-content: center; 
    }

    .contact-info {
        justify-content: center; 
    }

    .contact-info-item {
        margin-left: 8px; 
        display: flex; 
    }

    .contact-info-item i {
        margin-right: 3px; 
    }

    .contact-info-item span {
        font-size: 0.8em; 
    }

    .nav-item a {
        color: black;
    }

    .hero-section {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
    }

    .page-banner {
        height: 250px;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .about-us-main h2 {
        font-size: 28px;
    }

    .about-us-main p {
        font-size: 16px;
    }

    .page-banner1 {
        height: 350px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .banner-slider-controls {
        padding: 0 15px;
    }

    .services-main h2 {
        font-size: 28px;
    }

    .services-main p {
        font-size: 16px;
    }

    .service-detail {
        padding: 50px 0;
    }

    .page-banner2 {
        height: 250px;
    }

    .page-banner2 h1 {
        font-size: 24px;
    }

    .page-banner3 {
        height: 250px;
    }

    .page-banner3 h1 {
        font-size: 24px;
    }

    .documents-intro p {
        font-size: 16px;
    }

    .document-viewer {
        height: 300px;
    }

    .registration-number {
        font-size: 14px;
        padding: 6px;
        display: block;
    }
}


@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header p {
        font-size: 14px;
    }

    .slide-content {
        width: 90%;
    }

    .slider-controls {
        display: none;
    }

    .service-card,
    .feature-card {
        padding: 20px;
    }

    .testimonial-content {
        padding: 20px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }
}


/* Ultra-wide screens (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }

    /* Hero Section */
    .hero-section {
        height: 800px;
    }

    .slide-content h2 {
        font-size: 64px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Service Detail Images */
    .service-detail-image img {
        max-height: 600px;
        object-fit: cover;
    }

    /* Document Viewer */
    .document-viewer {
        height: 700px;
    }
}

/* Super ultra-wide screens (2560px and above) */
@media (min-width: 2560px) {
    .container {
        max-width: 2200px;
    }

    body {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 48px;
    }

    .hero-section {
        height: 900px;
    }

    .slide-content h2 {
        font-size: 72px;
    }

    .slide-content p {
        font-size: 28px;
    }

    /* Prevent excessive text line length for readability */
    .about-text p,
    .service-detail-text p,
    .document-description,
    .document-info-content p {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* for specific mobile devices */
@media screen and (max-width: 767px) {

    /* Prevent horizontal scrolling */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /*  header content */
    .header-content {
        width: 100%;
        padding: 15px 0;
    }

    /* Fix for logo on small screens */
    .logo-container {
        width: 50px;
        height: 50px;
    }

    .logo-img {
        width: 35px;
        height: auto;
    }

    /* Fix for footer columns */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Fix for contact info in footer */
    .footer-column .contact-info li {
        padding-right: 10px;
    }
}

/* for very small devices */
@media screen and (max-width: 375px) {
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
        margin-right: 5px;
    }

    .logo-img {
        width: 30px;
    }

    .nav-item {
        margin-left: 15px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 12px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .document-viewer {
        height: 250px;
    }
}

/* for specific device widths */
@media screen and (max-width: 360px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-content {
        padding: 10px 0;
    }
}

/* for Galaxy S8, S9+, etc. */
@media screen and (min-width: 360px) and (max-width: 375px) {
    .container {
        width: 100%;
        max-width: 360px;
    }
}

/* for iPhone SE, iPhone 12 Pro */
@media screen and (min-width: 375px) and (max-width: 390px) {
    .container {
        width: 100%;
        max-width: 375px;
    }
}

/* for iPhone 14 Pro Max */
@media screen and (min-width: 390px) and (max-width: 428px) {
    .container {
        width: 100%;
        max-width: 390px;
    }
}

/* for tabs displays */
@media screen and (min-width: 600px) and (max-width: 768px) {
    .nav-item a {
        color: black;
    }
}