/* Media Queries for Responsive Design */

/* Large Desktops */
@media (max-width: 1440px) {
    /* Adjustments for screens below 1440px */
}

/* Laptops / Desktops */
@media (max-width: 1280px) {
    :root {
        --container-padding: 3rem;
        --section-spacing: 100px;
    }
}

/* Tablets Landscape */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-container {
        grid-template-columns: 1fr;
    }

    .bento-1,
    .bento-2,
    .bento-3,
    .bento-4 {
        grid-column: span 1;
    }

    .bento-card {
        min-height: 480px;
    }

    .case-card {
        grid-template-columns: 1fr;
        position: relative !important;
        top: 0;
    }

    .case-content {
        padding: 30px 20px;
    }

    .case-image-wrapper {
        min-height: 400px;
    }

    .test-card {
        flex: 0 0 350px;
    }

    .test-text {
        font-size: 1.4rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        align-items: flex-start;
        gap: 40px;
    }

    .footer-legal {
        text-align: left;
        margin-bottom: 0;
    }
}

/* Tablets Portrait / Large Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --section-spacing: 60px;
    }

    #preloader {
        height: 100dvh;
    }

    .preloader-logo {
        width: 80px;
    }

    .hero-sticky-wrapper {
        height: auto;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: auto;
        position: relative;
    }

    .hero-mockup-img-container {
        margin-top: -30px;
        margin-bottom: -100px;
    }

    .logos-section {
        padding-top: 0px;
        margin-top: -30px;
    }

    .nav-dropdown {
        width: 240px;
        padding: 12px;
    }

    .nav-dropdown a {
        font-size: 1.3rem;
        padding: 10px 16px;
    }

    .services-bottom-panel {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 64px 20px 20px;
        overflow: hidden;
    }

    .logos-text-content p {
        white-space: nowrap;
        font-size: clamp(0.9rem, 3.2vw, 1.8rem);
    }

    .stats-numbers {
        display: flex;
        flex-direction: row;
        width: max-content;
        gap: 30px;
        padding-right: 30px;
        margin: 0;
        animation: scrollStats 15s linear infinite;
        align-self: flex-start;
    }

    .stat-item {
        min-width: 220px;
        flex-shrink: 0;
    }

    .stat-item.duplicate {
        display: block !important;
    }

    @keyframes scrollStats {
        0% {
            transform: translateX(0) translateZ(0);
        }

        100% {
            transform: translateX(-50%) translateZ(0);
        }
    }

    .test-card {
        flex: 0 0 80vw;
        padding: 30px 20px;
        min-height: 300px;
    }

    .test-title {
        font-size: 2.2rem;
    }

    .test-text {
        font-size: 1.25rem;
    }

    .test-author {
        font-size: 1rem;
    }

    .bento-card {
        padding: 60px 30px 40px;
        min-height: 450px;
    }

    .bento-3 {
        background-position: left center !important;
    }

    .bento-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer {
        padding-top: 120px;
    }

    .footer-container {
        padding: 40px 30px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .footer-phone,
    .footer-email {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .footer-go-box {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }

    .legal-links {
        justify-content: flex-start;
    }

    .case-stats {
        overflow: hidden;
        padding: 20px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .case-stats-track {
        display: flex;
        width: max-content;
        animation: mobileMarquee 15s linear infinite;
        will-change: transform;
        transform: translateZ(0);
    }

    .case-stats-group {
        display: flex;
        gap: 30px;
        padding-right: 30px;
        width: auto;
    }

    .mobile-clone {
        display: flex;
    }

    @keyframes mobileMarquee {
        0% {
            transform: translateX(0) translateZ(0);
        }

        100% {
            transform: translateX(-50%) translateZ(0);
        }
    }

    .case-stats .stat {
        flex: 0 0 auto;
        min-width: 140px;
    }

    .alert-header {
        padding: 20px 25px;
    }

    .alert-desc {
        padding: 20px 25px;
    }

    /* Eliminate empty space below video on mobile by pulling the next section up */
    .video-section+.scrolling-section {
        margin-top: calc(-81vh + 28.125vw);
        position: relative;
        z-index: 10;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 50px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .scrolling-header {
        margin-top: 50px;
    }

    .service-card {
        height: 380px;
    }

    .bento-card {
        padding: 50px 20px 30px;
        min-height: 420px;
        border-radius: 20px;
    }

    .case-stats .stat h4 {
        font-size: 2rem;
    }

    .bento-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .services-wrapper {
        margin: 0 auto;
        border-radius: 20px;
    }

    .services-bottom-panel {
        border-radius: 0 0 20px 20px;
    }

    .services-top-panel {
        padding: 40px 20px 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        letter-spacing: -2px;
    }

    .section-kicker {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-icon img {
        width: 32px;
        height: 32px;
    }

    .nav-actions-wrapper {
        gap: 8px;
        padding: 4px;
    }

    .btn-nav-text {
        font-size: 0.8rem;
        padding: 2px 8px;
    }

    .menu-toggle-box {
        width: 30px;
        height: 30px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 20px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.2rem);
        word-wrap: break-word;
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .review-badge {
        padding: 4px 10px;
        gap: 8px;
        margin-bottom: 16px;
    }

    .review-badge span {
        font-size: 0.7rem;
    }

    .review-badge .stars svg {
        width: 10px;
        height: 10px;
    }

    .hero .btn-primary {
        padding: 3px;
        padding-left: 12px;
        font-size: 0.8rem;
    }

    .hero .arrow-circle {
        width: 26px;
        height: 26px;
    }

    .logos-text-wrapper {
        padding: 0 20px;
    }

    .logos-text-lines {
        left: 20px;
        right: 20px;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }

    .logos-text-content p {
        white-space: nowrap;
        font-size: clamp(1.3rem, 5.5vw, 1.8rem);
        line-height: 1.2;
    }

    .hero-mockup {
        height: 300px;
    }

    .case-stats {
        flex-direction: column;
        gap: 20px;
    }

    .case-study-section {
        padding-bottom: 80px;
    }

    .case-card {
        padding: 10px;
        border-radius: 20px;
        gap: 10px;
    }

    .case-card:last-child {
        margin-bottom: 50px;
    }

    .case-content {
        padding: 20px 12px 10px;
    }

    .case-desc {
        font-size: 0.95rem;
        margin-bottom: 15px !important;
    }

    .statement-white-box {
        padding: 12px;
        border-radius: 24px;
    }

    .green-block {
        padding: 75px 10px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .animated-text.slot-machine {
        height: 270px;
    }

    .slot-word {
        padding: 8px 30px;
        letter-spacing: -2px;
    }

    .team-footer {
        padding: 8px 0 10px;
    }

    .team-text {
        font-size: 0.9rem;
    }

    .logos-section {
        padding-top: 100px;
        padding-bottom: 20px;
    }

    .logos-text-wrapper {
        margin-bottom: 30px;
    }

    .logos-track .logo-item {
        height: 16px;
    }

    .footer-container {
        padding: 30px 20px 20px;
        margin: -50px auto 15px;
    }

    .footer-phone,
    .footer-email {
        font-size: 1.6rem;
    }

    .footer-go-box {
        height: 220px;
    }

    .footer-go-title {
        font-size: 2.5rem;
    }

    .footer-bg-text {
        top: 0px;
        font-size: clamp(100px, 25vw, 150px);
    }
}