@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Drop to 2 columns on tablets */
        gap: 20px;
    }

    .features-header h2 {
        font-size: 46px;
    }
}

@media (max-width: 1024px) {
    .contact-section {
        padding: 100px 6%;
    }

    .contact-container {
        gap: 50px;
    }

    .contact-heading-box h2 {
        font-size: 44px;
    }

    .main-footer {
        padding: 80px 5% 40px 5%;
    }

    .footer-headline-column h3 {
        font-size: 38px;
    }

    .footer-phone-link {
        font-size: 28px;
    }
}

@media (max-width: 850px) {
    .contact-container {
        flex-direction: column;
        /* Stacks column grids smoothly into a vertical setup */
        gap: 60px;
    }

    .contact-heading-box,
    .contact-form-box {
        max-width: 100%;
        flex: none;
    }

    .contact-heading-box h2 {
        font-size: 46px;
    }
}

@media (max-width: 968px) {
    .expertise-section {
        padding: 90px 6%;
    }

    .expertise-main-title {
        font-size: 42px;
        margin-bottom: 60px;
    }

    .expertise-row,
    .expertise-row.row-reverse {
        flex-direction: column;
        /* Force stack into uniform vertical blocks */
        gap: 35px;
        margin-bottom: 80px;
    }

    .expertise-media,
    .expertise-content {
        max-width: 100%;
        flex: none;
    }

    .expertise-content {
        text-align: left;
    }

    .expertise-content h3 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .logo-center h1,
    .gotmaxx-features .feat .title {
        font-size: 36px;
    }

    .gotmaxx-features .feat p {
        font-size: 22px;
    }

    .gotmaxx-icon {
        width: 38px;
        height: 38px;
        margin: 0 3vw;
    }

    .marqueesection {
        min-height: 50vh;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 30px;
        height: 80px;
    }

    .navbar.scrolled-active {
        height: 70px;
    }

    .hamburger-toggle {
        display: flex;
    }

    /* Reset flex weights for clean mobile absolute stack rules */
    .logo-container,
    .nav-cta-right {
        flex: none;
    }

    /* Mobile Dropdown Canvas System Layout Drawer */
    .nav-menu-center {
        position: absolute;
        top: 100%;
        /* Sits exactly underneath current navbar heights */
        left: 0;
        width: 100%;
        height: 0;
        /* Hidden default structural boundary collapse state */
        overflow: hidden;
        background-color: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        padding: 0;
        border-bottom: 0 solid rgba(255, 255, 255, 0.05);
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
        margin-top: 30px;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
        width: 100%;
        text-align: center;
        padding: 6px 0;
    }

    /* Move CTA inside the sliding dropdown menu for clean layout flow on mobile */
    .nav-cta-right {
        width: 100%;
        justify-content: center;
        display: none;
        /* Initially hidden on mobile row axis */
    }

    .nav-menu-center .nav-cta-right {
        display: flex;
        /* Active inside container dropdown layout */
        width: 80%;
        margin-bottom: 40px;
    }

    /* --- Active State class handled by Toggle triggers --- */
    .nav-menu-center.show-menu {
        height: 340px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hamburger Morphing Animations */
    .hamburger-toggle.open-icon .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #98ff2c;
    }

    .hamburger-toggle.open-icon .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-toggle.open-icon .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #98ff2c;
    }

    .testimonials-section {
        padding: 80px 0;
    }

    .testimonials-header-title {
        font-size: 38px;
        margin-bottom: 45px;
    }

    /* Convert to native mobile snap deck touch swipes */
    .testimonial-slider-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 10%;
        /* Creates left/right peek gaps on mobile views */
        justify-content: flex-start;
    }

    .testimonial-slider-wrapper::before,
    .testimonial-slider-wrapper::after {
        display: none;
        /* Disables overlays on tiny screens */
    }

    .testimonial-marquee-track {
        animation: none;
        gap: 20px;
    }

    .testimonial-marquee-track .cloned {
        display: none;
        /* Removes cloned padding nodes on mobile views */
    }

    .testimonial-card {
        width: 80vw;
        scroll-snap-align: center;
        /* Snaps cards clean in center on drag release */
        padding: 30px 24px;
    }

    .testimonial-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .footer-top-row {
        flex-direction: column;
        /* Force brand info and headline text to layout linearly */
        gap: 50px;
    }

    .footer-brand-column {
        gap: 35px;
    }

    .footer-middle-row {
        justify-content: flex-start;
        /* Resets alignment anchors leftwards on tablets */
    }

    .footer-links-grid {
        max-width: 100%;
        gap: 40px;
    }

    .tech-panel {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .tech-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 14px
    }

    .ttab {
        flex: none
    }

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

@media (max-width: 810px) {
    .how-it-works {
        height: 4550px;
    }

    .how-it-works .horizontal-scroll {
        align-items: flex-start;
        height: 4550px;
        position: relative;
        top: unset;
    }

    .horizontal-container {
        flex: 1 0 0px;
        flex-direction: column;
        height: min-content;
        width: 1px;
        background: var(--horizontal-part-mobile-gradient);
    }

    .horizontal-container .spacer {
        height: 0;
    }

    .hz-inner-container {
        height: 1150px;
        width: 100%;
    }

    .hz-inner-container .image-hiw-1 {
        bottom: 0;
        left: 0;
        top: unset;
        width: unset;
    }

    .image-hiw-1 {
        height: 60vh;
    }

    .image-hiw-1 .con-img {
        height: 60vh;
        left: 0;
    }

    .image-hiw-1 .con-img img {
        width: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .text-desc {
        width: fit-content;
    }

    .hz-inner-container .screen-hiw {
        left: 50%;
        right: unset;
        transform: translate(-50%);
    }

    .screen-recording-1 {
        aspect-ratio: .48333333333333334 / 1;
        height: 600px;
    }

    .hz-inner-container .copy {
        bottom: unset;
        gap: 46px;
        left: 24px;
        right: 24px;
        top: 35px;
        width: unset;
    }

    .hz-inner-container .copy .main-text {
        align-self: unset;
        height: min-content;
        width: 100%;
    }

    .main-text .big-text {
        white-space: normal;
        height: auto;
        width: auto;
    }

    .main-text h1 {
        font-size: 10vw;
        line-height: 30vw;
        margin: 0;
        line-height: normal;
    }

}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .features-section {
        padding: 80px 6%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Drop to 1 full width column on mobile screens */
        gap: 16px;
    }

    .features-header h2 {
        font-size: 36px;
    }

    .features-header .description {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 35px 20px;
        min-height: auto;
    }

    .main-footer {
        padding: 60px 6% 30px 6%;
    }

    .footer-container {
        gap: 50px;
    }

    .footer-headline-column h3 {
        font-size: 32px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        /* Drop column links to full width rows on mobile phones */
        gap: 35px;
    }

    .footer-bottom-row {
        flex-direction: column-reverse;
        /* Stacks navigation cleanly above legal text lines */
        gap: 20px;
        align-items: flex-start;
        padding-top: 30px;
    }
}

@media (max-width: 550px) {
    .contact-section {
        padding: 80px 5%;
    }

    .contact-heading-box h2 {
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
        /* Forces dual input rows to break flat on compact mobile screens */
        gap: 40px;
    }

    .contact-form {
        gap: 35px;
    }

    .form-group label {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .expertise-main-title {
        font-size: 34px;
    }

    .expertise-content h3 {
        font-size: 26px;
    }

    .expertise-content p {
        font-size: 15px;
    }


}

@media (max-width: 360px) {
    .hz-inner-container {
        height: 1000px;
    }
}