/* ==========================================================================
   Lumascape Responsive Styles & Breakpoints
   ========================================================================== */

@media (max-width: 767px) {
    .tech-detail-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    .tech-detail-product-card {
        padding: 24px 20px;
    }

    .office-featured-box {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 20px;
    }
    .office-regional-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .office-divider {
        margin: 24px 0;
    }

    .site-header {
        margin-top: 10px !important;
        padding: 0 12px !important;
    }
    .site-header.scrolled {
        margin-top: 5px !important;
    }
}

/* 1. Large Desktop (1920px and above) */
@media (min-width: 1920px) {

    .hero-title {
        font-size: 4rem;
    }

    .header-search{width: 350px;}
}


/* 2. Desktop (Max 1400px) */
@media (max-width: 1400px) {
    .nav-list {
        gap: 26px;
    }

    .header-search {
        width: 180px;
    }
}

@media (max-width: 1300px) {

    .header-nav{display: none;}

}

/* 3. Tablet Landscape (Max 1200px) */
@media (max-width: 1200px) {
    .site-header {
        margin-top: 18px;
        padding: 0 18px;
    }

    .header-inner {
        padding: 8px 10px 8px 20px;
        gap: 16px;
    }

    .nav-list {
        gap: 18px;
    }

    .nav-link {
        font-size: 14px;
    }

    .header-search {
        width: 150px;
        padding: 6px 14px;
    }

    .header-search input {
        font-size: 13px;
    }

    .header-inquiry {
        font-size: 13px;
        padding: 6px 8px;
    }

    .hero-content {
        max-width: 600px;
    }
}

/* 4. Tablet Portrait (Max 1023px) */
@media (max-width: 1023px) {
    .header-nav {
        display: none; /* Mobile/Tablet menu hidden; accessible via hamburger button */
    }

    .site-header {
        margin-top: 16px;
        padding: 0 16px;
    }

    .header-inner {
        padding: 8px 10px 8px 20px;
    }

    .header-search {
        width: 140px;
        padding: 6px 12px;
    }

    .hero-section {
        padding-top: 140px;
        padding-bottom: 70px;
    }

    .hero-content {
        max-width: 540px;
        gap: 24px;
    }

    .hero-overlay {
        background: linear-gradient(
            100deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.65) 50%,
            rgba(0, 0, 0, 0.25) 100%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8) 0%,
            transparent 40%
        );
    }
}

/* 5. Mobile (Max 767px) */
@media (max-width: 767px) {
    .site-header {
        margin-top: 12px;
        padding: 0 12px;
    }

    .header-inner {
        padding: 6px 8px 6px 16px;
        border-radius: 50px;
        gap: 10px;
    }

    .header-logo img {
        height: 24px;
    }

    .header-search {
        display: none; /* Compact header for mobile */
    }

    .header-inquiry span {
        display: none; /* Show icon only on small mobile */
    }

    .header-inquiry {
        padding: 6px;
        margin-right: 0px;
    }

    .header-menu-btn {
        width: 42px;
        height: 42px;
    }

    .header-menu-btn .menu-icon {
        width: 18px;
        height: 18px;
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
        min-height: 100vh;
        min-height: 100svh;
        justify-content: flex-end;
    }

    .hero-content {
        max-width: 100%;
        gap: 20px;
    }

    .hero-trust-badge {
        padding: 4px 14px 4px 6px;
        gap: 10px;
    }

    .trust-avatars img {
        width: 26px;
        height: 26px;
        margin-left: -8px;
    }

    .trust-text {
        font-size: 12px;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.12;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero-actions {
        width: 100%;
        gap: 12px;
    }

    .btn {
        min-width: 150px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 6. Small Mobile (Max 575px) */
@media (max-width: 575px) {

    .hero-title {
        font-size: 2rem;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.65);
    }
}

/* 7. Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-video {
        display: none;
    }

    .hero-section {
        background-image: url('../videos/hero-vid-poster.webp');
        background-size: cover;
        background-position: center;
    }
}


/* Product Showcase Responsive Breakpoints */
@media (max-width: 1200px) {
    .showcase-header {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        border-top: none !important;
    }    
    .showcase-divider {
        display: none;
    }
    .showcase-header-left{
        padding-top: 0;
        padding-bottom: 0;
    }
    .showcase-header-right {
        padding-left: 0;
    }
    .showcase-description {
        text-align: left;
    }
}

@media (max-width: 991px) {
    .faq-section {
        padding: 60px 0 70px 0;
    }
    .faq-section-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .faq-main-title {
        font-size: 28px;
    }

    /* Hide desktop sidebar */
    .products-sidebar {
        display: none !important;
    }

    /* Fixed Bottom Filter Bar */
    .mobile-filter-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 990;
        background: #2B2B2B;
        padding: 18px 20px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-filter-bar.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-filter-trigger {
        background: none;
        border: none;
        color: #FFFFFF;
        font-size: 15px;
        font-weight: 400;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        font-family: inherit;
        width: 100%;
    }

    /* Category Slide-Up Drawer */
    .mobile-category-drawer {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
    }

    .mobile-category-drawer.open {
        display: block;
    }

    .drawer-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-category-drawer.open .drawer-backdrop {
        opacity: 1;
    }

    .drawer-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 80vh;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #FFFFFF;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px 30px 20px;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    }

    .mobile-category-drawer.open .drawer-content {
        transform: translateY(0);
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #F4F4F4;
    }

    .drawer-header .categories-card-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .drawer-close-btn {
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #888888;
        cursor: pointer;
        padding: 0 4px;
        transition: color 0.2s ease;
    }

    .drawer-close-btn:hover {
        color: #121212;
    }

    .showcase-header {
        grid-template-columns: 1fr;
        gap: 15px;
    }    
    .product-card {
        min-height: 440px;
        padding: 28px 24px;
    }
    .product-card-image {
        height: 190px;
    }

    .showcase-header-right{
        justify-content: start;
        padding-top: 0;
    }
    .showcase-description{
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .product-showcase-section {
        padding-top: 60px;
        padding-bottom: 50px;
    }
    .product-card-title {
        font-size: 18px;
    }
    .product-card {
        min-height: 400px;
        padding: 24px 20px;
    }
    .product-slider-wrapper {
        padding-left: 20px;
    }
}

@media (max-width: 575px) {
    .product-card{        
        min-height: 400px;
        height: 400px;
    }
    .showcase-header{
        margin-bottom: 20px;
    }
}


/* Exterior Section Responsive */
@media (max-width: 1400px) {
    .exterior-slider-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 1200px) {
    .exterior-header-right-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .exterior-tagline {
        display: none;
    }
}

@media (max-width: 991px) {
    .exterior-slider-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .exterior-products-section{
        padding-top: 30px;
        padding-bottom: 70px;
    }
    .exterior-slider-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .exterior-card {
        height: 340px;
    }
    .exterior-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .exterior-slider-wrapper {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
}




/* Portfolio Section Responsive */
@media (max-width: 1600px) {
    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(2),
    .portfolio-card:nth-child(3),
    .portfolio-card:nth-child(4) {
        height: 560px;
    }
}

@media (max-width: 1200px) {
    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(2),
    .portfolio-card:nth-child(3),
    .portfolio-card:nth-child(4) {
        height: 480px;
    }
}

@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(2),
    .portfolio-card:nth-child(3),
    .portfolio-card:nth-child(4) {
        grid-column: span 1;
        height: 380px;
    }

}

@media (max-width: 575px) {
    .portfolio-card:nth-child(1),
    .portfolio-card:nth-child(2),
    .portfolio-card:nth-child(3),
    .portfolio-card:nth-child(4) {
        height: 340px;
    }
    .portfolio-bg-title {
        margin-bottom: 10px;
    }
    .portfolio-card-title{
        font-size: 18px;
    }
}


/* Global Reach Section Responsive */
@media (max-width: 1200px) {
    .global-reach-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 991px) {
    .global-reach-section {
        padding-top: 60px;
        padding-bottom: 60px;
        margin: 0 3px;
        border-radius: 10px;
    }
    .global-reach-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* On small screens: map video placed at bottom */
    .global-map-column {
        order: 2;
    }
    .global-stats-column {
        order: 1;
    }
}

@media (max-width: 767px) {

    .stat-title{
        font-size: 22px;
    }
    .stat-subtext{
        font-size: 16px;
    }

}

@media (max-width: 575px) {
    .stat-title {
        font-size: 17px;
    }
    .stat-icon-box {
        width: 46px;
        height: 46px;
    }
    .stat-icon-box img {
        width: 25px;
        height: 25px;
    }
}


/* ==================================================================/* ====================================================================
   NEWS SECTION RESPONSIVE & VISIBILITY TOGGLE
   ==================================================================== */
.news-desktop-view {
    display: block;
}

.news-mobile-view {
    display: none;
}

@media (max-width: 991px) {
    .news-section {
        padding: 70px 0;
        margin: 0 3px;
        border-radius: 10px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .news-desktop-view {
        display: none !important;
    }

    .news-mobile-view {
        display: block !important;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-cta-wrap {
        margin-top: 35px;
    }

    .news-mobile-header{
        flex-direction: column;
        align-items: flex-start;
    }
    .news-mobile-header-right .showcase-description{
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .news-section {
        padding: 50px 0;
    }

    .news-card {
        padding: 18px;
        border-radius: 14px;
    }
}


/* ====================================================================
   TESTIMONIALS SECTION RESPONSIVE
   ==================================================================== */
@media (max-width: 991px) {
    .testimonial-marquee-track span {
        font-size: 200px;
    }
    .testimonial-card {
        padding: 34px 28px;
    }
}

@media (max-width: 767px) {
    .testimonial-section {
        padding: 60px 0;
    }
    .testimonial-header {
        margin-bottom: 30px;
    }
    .testimonial-marquee-track span {
        font-size: 140px;
        opacity: 0.14;
    }
    .testimonial-swiper {
        overflow: hidden;
    }
    .testimonial-card {
        padding: 24px 20px;
        border-radius: 16px;
        max-width: 100%;
    }
    .testimonial-card-top {
        justify-content: flex-start;
        margin-bottom: 18px;
    }
    .testimonial-avatar {
        width: 64px;
        height: 64px;
        margin: 0;
    }
    .testimonial-card-body {
        text-align: left;
        margin-bottom: 24px;
    }
    .testimonial-quote {
        font-size: 15px;
        line-height: 1.5;
    }
    .testimonial-card-divider {
        display: none;
    }
    .testimonial-card-footer {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        width: 100%;
    }
    .testimonial-author {
        text-align: left;
    }
    .testimonial-author-name {
        font-size: 16px;
    }
    .testimonial-author-role {
        font-size: 13px;
    }
    .testimonial-stars {
        justify-content: flex-end;
        order: 1;
        gap: 5px;
    }
    .testimonial-stars img{
        width: 20px;
        height: 20px;
    }
    .testimonial-nav-btns {
        margin-top: 25px;
    }
    .testimonial-marquee-wrapper{
        display: none;
    }
}

@media (max-width: 575px) {
    .testimonial-marquee-track span {
        font-size: 100px;
    }
    .testimonial-stars img{
        width: 15px;
        height: 15px;
    }
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
}


/* ====================================================================
   FOOTER SECTION RESPONSIVE
   ==================================================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-middle-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    .footer-legal-pills{
        margin-left: 0;
    }
}

@media (max-width: 575px) {
    .footer-section {
        padding-top: 25px;
        margin: 3px;
        border-radius: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
    }
    .footer-grid > div{
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 25px 0;
    }
    .footer-newsletter-form {
        max-width: 100%;
    }
    .footer-legal-pills {
        flex-wrap: wrap;
        gap: 8px;
    }
    .footer-pill-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
    .footer-social-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-giant-brand {
        letter-spacing: -2px;
    }
    .footer-logo{
        margin-bottom: 40px;
    }
    .footer-giant-brand{
        font-size: clamp(55px, 17vw, 300px)
    }
}




/* ====================================================================
   BLOGS SECTION RESPONSIVE
   ==================================================================== */
@media (max-width: 991px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}

@media (max-width: 575px) {

    .blogs-section{
        padding-top: 10px;
    }

    .blog-card-title {
        font-size: 18px;
    }
    .blog-card-body {
        padding: 20px 18px 18px 18px;
    }
}


/* ====================================================================
   CONTACT US PAGE RESPONSIVE
   ==================================================================== */

@media (max-width: 1440px) {

    .contact-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

}
@media (max-width: 1200px) {

    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}
@media (max-width: 991px) {
    .contact-hero-section {
        padding-top: 150px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .contact-main-section{
        padding: 50px 0 80px;
    }
    .contact-form-card {
        padding: 30px 24px;
    }
}

@media (max-width: 767px) {
    .contact-hero-section {
        padding-top: 120px;
        padding-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .office-regional-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-form-title,
    .contact-details-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}


/* Technology Page Responsive */
@media (max-width: 1280px) {
    .tech-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .tech-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .tech-card {
        min-height: 270px;
        padding: 28px 18px 20px 18px;
    }
}

@media (max-width: 767px) {
    .tech-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .tech-tabs-nav {
        gap: 24px;
    }
    .tech-tab-link {
        font-size: 15px;
    }
}

@media (max-width: 575px) {

    .tech-main-section{
        padding: 40px 0 60px;
    }
    .tech-detail-main-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 10px 0;
   }

}

@media (max-width: 480px) {
    .tech-cards-grid {
        grid-template-columns: 1fr;
    }
    .tech-product-desc{
        font-size: 14px;
    }
}

/* Products details */
@media (max-width: 1360px) {
    .products-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {

    .products-catalog-wrap {
        grid-template-columns: 275px 1fr;
        gap: 30px;
    }
    
}

@media (max-width: 991px) {
    .products-catalog-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .products-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    .products-catalog-grid {
        grid-template-columns: 1fr;
    }
    .enquiry-modal-card{
        padding: 20px 15px;
        border-radius: 10px;
    }
    .fixed-floating-actions{
        right: 10px;
        gap: 5px;

    }
}


/* Mega Menu Mobile Overlay */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }

    .mega-menu-panel {
        top: 0;
        right: 0;
        left: 45px;
        width: calc(100vw - 45px);
        height: 100vh;
        max-height: 100vh;
        border-radius: 20px 0 0 0;
        padding: 40px 24px 60px 24px;
        transform: translateX(100%);
    }

    .mega-menu-overlay.open .mega-menu-panel {
        transform: translateX(0);
    }

    .mega-menu-close {
        top: 20px;
        right: 20px;
        font-size: 28px;
    }

    .mega-menu-primary-mobile {
        display: flex !important;
        align-items: center;
        gap: 32px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 16px;
        margin-bottom: 0;
    }

    .mega-menu-primary-mobile .mega-primary-link {
        font-size: 20px;
        font-weight: 700;
        color: #ffffff;
    }

    .mega-menu-content-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mega-menu-col {
        padding: 22px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mega-col-title {
        font-size: 16.5px;
        font-weight: 600;
        margin-bottom: 14px;
    }

    .mega-col-list {
        gap: 10px;
    }

    .mega-col-list a {
        font-size: 14px;
        color: #B0B0B0;
    }

    .mega-menu-bottom-legal {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        padding-top: 30px;
    }
}
@media (max-width: 767px) {
.products-header-title{
        font-size: 20px;
}
.products-header-div h2{
    font-size: 18px;
}
.products-catalog-section{
    padding: 60px 0;
}
.faq-section{
    padding: 40px 0;
}
}