/* ==========================================================================
   ALL MEDIA QUERIES CONSOLIDATED AT THE BOTTOM
   ========================================================================== */

/* Large Desktop Screens (1440px and above) */
@media screen and (min-width: 1440px) {
    .hero h1 {
        font-size: 90px;
        top: -120px;
    }

    .cards-carousel {
        bottom: 5px;
    }

}

/* Desktop Screens (1200px to 1439px) */
@media screen and (max-width: 1200px) {
    .hero h1 {
        font-size: 60px;
        top: -140px;
    }

    .cards-carousel {
        width: 55%;
        height: 39%;
        /* bottom: 5px; */
    }

    .card {
        height: 260px;
        /* min-width: 300px; */
    }

    .hero-content {
        max-width: 450px;
    }

    .hero-content p {
        font-size: 18px;
    }


    .popup-images {
        grid-auto-rows: 500px;
        gap: 20px;
        padding: 0 0 0 18px;
    }

    .popup-content {
        gap: 20px;
    }

    .popup-details {
        padding-right: 16px;
        max-width: 380px;
    }

    .svc-title {
        font-size: 2.5rem;
    }

    .svc-desc {
        font-size: 1rem;
    }
}

/* Small Desktop / Tablet Landscape (992px to 1199px) */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 55px;
        top: -140px;
    }

    .hero-content {
        max-width: 400px;
    }

    .hero-content p {
        font-size: 16px;
        max-width: 34vw;
    }

    .cta-btn {
        font-size: .9rem;
        padding: 8px 18px;
    }

    .cards-carousel {
        width: 55%;
        height: 39%;
    }

    .card {
        height: 260px;
    }

    .card-thumb lottie-player {
        height: 160px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services-zigzag .section-title {
        font-size: 2.5rem;
    }

    .svc-title {
        font-size: 2.2rem;
    }

    .svc-desc {
        font-size: 1rem;
        max-width: 40vw;
    }

    .faq-title {
        font-size: 2.5rem;
    }

    .footer-container {
        gap: 80px;
    }

    .footer-right {
        gap: 60px;
    }
}

/* Tablet Portrait (768px to 991px) */
@media screen and (max-width: 768px) {


    .nav-center,
    .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    /* Hero Section */
    .hero {
        justify-content: flex-start;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 6.5vw;
        text-align: left;
        position: static;
        margin-bottom: 10px;
        margin-top: 90px;
        order: 1;
    }

    .hero-content {
        position: static;
        max-width: 100%;
        text-align: left;
        margin-bottom: 40px;
        order: 2;
    }

    .hero-content p {
        font-size: 1.1rem;
        text-align: left;
        min-width: 80vw;
    }

    .cta-btn {
        align-self: flex-start;
        /* ✅ align left instead of center */
    }

    .cards-carousel {
        width: 94%;
        height: 32%;
    }

    .card {
        width: 47%;
        height: 210px;
    }

    .card-thumb {
        padding: 0;
    }

    .card-thumb lottie-player {
        height: 150px;
        scale: .9;
    }


    /* Work Grid */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .work-card:nth-child(odd) {
        margin-top: 0;
    }

    .work-img {
        height: 380px;
    }

    /* Services */
    .svc-row,
    .svc-row.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
        margin-bottom: 90px;
    }

    .svc-row.reverse .svc-content {
        order: 2;
        text-align: left;
        margin-left: 0;
    }

    .svc-row.reverse .svc-desc {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .svc-row.reverse .svc-visual {
        order: 1;
    }

    .svc-desc {
        max-width: 100%;
        margin: 0;
        margin-top: 30px;
    }

    .svc-visual {
        height: 380px;
    }

    /* FAQ */
    .faq-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-title {
        font-size: 2.6rem;
        text-align: left;
    }

    .faq-question {
        font-size: 1.2rem;
    }


    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 60px;
    }

    .footer-right {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Small Mobile (480px to 575px) */
@media screen and (max-width: 575px) {
    .hero h1 {
        font-size: 2rem;
        text-align: left;
    }

    .cards-carousel {
        width: 94%;
        height: 28%;
    }

    .card {
        width: 47%;
        height: 180px;
    }

    .card-thumb lottie-player {
        height: 100px;
        scale: 1;
    }

    .card-title {
        font-size: .8rem;
        padding: 8px 15px;
    }


    .work-img {
        height: 300px;
    }

    .work-title {
        font-size: 1.4rem;
    }

}

/* Extra Small Mobile (380px to 479px) */
@media screen and (max-width: 479px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 15px;
    }

    .cta-btn {
        font-size: .75rem;
        padding: 6px 12px;
    }

    .card {
        width: 46%;
        height: 180px;
    }

    .card-title {
        font-size: .75rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-zigzag .section-title {
        font-size: 1.8rem;
    }

    .svc-title {
        font-size: 1.6rem;
    }

    .svc-visual {
        height: 250px;
    }

    .svc-row {
        margin-bottom: 30px;
    }

    .faq-title {
        font-size: 1.8rem;
    }

    .footer {
        padding: 40px 5% 20px;
    }

    .footer-container {
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-logo-name {
        font-size: 1.2rem;
    }

    .footer-right {
        gap: 30px;
    }

    .footer-socials {
        margin: 0;
    }
}

/* Navigation specific queries */
@media (max-width: 968px) {

    .nav-center,
    .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        padding: 90px 30px 30px;
    }

    .mobile-nav a {
        font-size: 1.7rem;
    }

    .mobile-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* Work section specific queries */
@media (max-width: 968px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .work-card:nth-child(odd) {
        margin-top: 0;
    }

    .work-img {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .our-work {
        padding: 10px 5%;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 60px;
    }

    .work-img {
        height: 300px;
    }

    .work-title {
        font-size: 1.4rem;
    }
}

/* Services specific queries */
@media (max-width: 1100px) {

    .svc-row,
    .svc-row.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }

    .svc-row.reverse .svc-content {
        order: 2;
        text-align: left;
        margin-left: 0;
    }

    .svc-row.reverse .svc-desc {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .svc-row.reverse .svc-visual {
        order: 1;
    }

    .svc-desc {
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 640px) {
    .services-zigzag {
        padding: 30px 6%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .svc-title {
        font-size: 1.8rem;
    }

    .svc-desc {
        font-size: 1rem;
        line-height: 1.7;
        margin-top: 30px;
    }

    .svc-visual {
        height: 300px;
    }

    .svc-row {
        margin-bottom: 90px;
    }
}

@media (max-width: 520px) {
    .svc-row {
        margin-bottom: 30px;
    }
}

/* FAQ specific queries */
@media (max-width: 968px) {
    .faq-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-title {
        font-size: 2.6rem;
        text-align: left;
    }

    .faq-question {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .faq-title {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}

/* Footer specific queries */
@media (max-width: 1024px) {

    .footer-container {
        flex-direction: column;
        gap: 60px;
    }

    .footer-right {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Work Popup specific queries */
@media (max-width: 1200px) {
    .popup-images {
        grid-auto-rows: 500px;
        gap: 20px;
        padding: 0 0 0 18px;
    }

    .popup-content {
        gap: 20px;
    }

    .popup-details {
        padding-right: 16px;
        max-width: 380px;
    }
}

@media (max-width: 900px) {

    .popup-title-section h2 {
        font-size: 1.5rem;
    }

    .popup-tag {
        font-size: .9rem;
    }

    .work-popup {
        height: 92vh;
        margin-bottom: 0;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .popup-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: 100%;
        overflow-y: auto;
        /* ✅ Scroll entire popup */
        scroll-behavior: smooth;
    }

    .popup-details {
        flex: 0 0 auto;
        background: white;
        z-index: 10;
        padding: 20px;
        min-width: 100%;
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
        order: 1;
    }

    .popup-details .details-scroll {
        padding: 0;
        max-height: none;
        overflow: visible;
    }

    .project-cta {
        margin-top: 20px;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .project-cta h3 {
        font-size: 1.4rem;
    }

    .popup-images {
        flex: 0 0 auto;
        grid-template-columns: repeat(1, 1fr);
        padding: 20px;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
        order: 2;
        background: white;
    }
}


@media (max-width: 520px) {

    .popup-title-section h2 {
        font-size: 1.4rem;
    }

    .popup-tag {
        font-size: .9rem;
    }

    .popup-details {
        padding: 16px;
    }

    .popup-images {
        grid-auto-rows: 260px;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .project-cta {
        padding: 16px;
        margin-top: 16px;
    }

    .project-cta h3 {
        font-size: 1.3rem;
    }

    .cta-button {
        width: 100%;
        padding: 12px 16px;
    }
}

/* Small mobile optimization */
@media (max-width: 380px) {
    .popup-details {
        padding: 12px;
    }

    .popup-title-section h2 {
        font-size: 1.2rem;
    }

    .popup-tag {
        font-size: .8rem;
    }

    .popup-images {
        grid-auto-rows: 200px;
        padding: 12px;
    }

    .project-cta {
        padding: 14px;
    }

    .project-cta h3 {
        font-size: 1.1rem;
    }

    .details-title {
        font-size: 1.1rem;
    }

    .details-description {
        font-size: 0.85rem;
    }
}

/* Landscape mobile adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 40px;
        top: 0;
        margin-bottom: 20px;
    }

    .cards-carousel {
        height: 200px;
    }
}



/* Mobile Landscape / Large Mobile (576px to 767px) */
/* @media screen and (max-width: 767px) {
    .hero h1 {
        font-size: 40px;
        text-align: left;
    }

    .hero-content p {
        font-size: 16px;
        text-align: left;
    }

    .hero-content {
        gap: 20px;
    }

    .cards-carousel {
        height: 250px;
    }

    .card {
        min-width: 90%;
    }

    .card-title {
        padding: 12px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 60px;
    }

    .services-zigzag .section-title {
        font-size: 2rem;
        margin-bottom: 60px;
    }

    .svc-title {
        font-size: 1.8rem;
    }

    .svc-desc {
        font-size: 1rem;
        line-height: 1.7;
        margin-top: 30px;
    }

    .svc-visual {
        height: 300px;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
} */