/* Mobile */
@media screen and (max-width: 480px) {

    html,
    body {
        overflow-x: hidden;
        width: 100vw;
    }

    * {
        -webkit-tap-highlight-color: transparent;
        /* iOS & Chrome */
    }

    .text-animate {
        opacity: 1;
        transform: none;
        filter: none;
    }

    header.site-header {
        padding: 0 16px;
        border-radius: 60px;
        height: 50px;
        width: 90vw;
    }

    .header-actions .icons {
        display: none;
    }

    .main-logo img {
        width: 80px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-inner {
        margin-top: 32px;
    }

    .hero-bg {
        height: 850px;
    }
    
    .hero-bg::before {
        background-size: 280%;
    }

    .hero-sub {
        font-size: 16px;
        line-height: 1;
    }

    .changing-text-container {
        margin-top: 6px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 42px;
        margin-top: 24px;
        flex-direction: column;
    }

    .cursor {
        height: 42px;
        width: 2px;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 20px;
        margin-top: 24px;
        margin-bottom: 18px;
        width: 70vw;
    }

    .hero-desc br {
        display: none;
        /* Remove line breaks on mobile */
    }

    .cards-row {
        width: 100vw;
        height: fit-content;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 26px 16px;
        padding: 0 2.5vw 24px;
        margin-top: 70px;
    }

    #card-row-no-2 {
        height: 180px;
        padding: 16px;
        order: 3;
        width: 360px;
        flex-direction: row;
    }

    .right-two-cards {
        flex-direction: row;
        width: 100%;
    }

    .inner-small,
    .inner-img {
        width: 100%;
        height: 120px;
    }

    .inner-small-details {
        height: 120px;
    }

    .card.small,
    .third-card {
        width: 170px;
        height: 180px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .inner .big {
        display: none;
    }

    .card.small .label {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0;
        right: 0;
    }

    .card.small .inner {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        width: 100%;
    }

    .third-card .inside {
        height: 100%;
        width: 100%;
    }

    .card.small .user-testimonials {
        position: relative;
        bottom: 0;
        right: 0;
    }

    .logo-stack {
        display: none;
    }

    /* Marquee strips adjustment */
    .marquee-strips {
        height: 100px;
        margin-top: -90px;
    }

    .strip {
        height: 40px;
    }

    .strip.top,
    .strip.bottom {
        bottom: 60px;
    }

    .strip .marquee {
        font-size: 14px;
        gap: 32px;
    }

    /* Hero Section End */


    /* About Us Section Start */

    .about-us-section {
        margin: 0 auto;
    }

    .about-us-content {
        flex-direction: column;
        padding: 18px 8vw 64px;
        gap: 20px;
        transform: none;
    }

    .left-section {
        scale: 0.75;
    }

    .left-section h1 {
        margin-left: 72px !important;
    }

    .right-section {
        width: 100%;
    }

    /* About Us Section End */


    /* Scroll Text Section Start */

    .scroll-text-container {
        padding: 100px 0;
    }

    .scroll-text-container:nth-child(1) {
        align-items: center;
    }

    .underline-separator-2 {
        display: none;
    }

    .animated-text {
        font-size: 56px;
        line-height: 72px;
        margin-top: 8px;
        width: 95%;
    }

    .text-highlight {
        font-family: 'GalleryModern', serif;
        font-size: 72px;
    }

    .text-word-fill {
        transition: background-position 0.2s linear;
    }

    /* Scroll Text Section End */


    /* Services Section Start */

    .services-section {
        min-height: fit-content;
        height: fit-content !important;
    }

    .services-sticky-container {
        position: relative;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        height: auto;
        width: 100vw;
    }

    h2#info-title {
        font-size: 64px;
        line-height: 1;
        margin-bottom: 0;
        min-height: fit-content;
    }

    #info-desc {
        width: 80%;
        text-wrap: auto;
    }

    .title-underline {
        margin: 0 76px 0 0;
        width: 90px;
    }

    /* Info Panel */
    .info-panel {
        position: relative;
        width: 100%;
        height: auto;
        text-align: center;
        align-items: center;
        padding: 0;
    }

    /* Carousel Scroll */
    .carousel-wrapper {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        height: fit-content;
        margin-left: 0;
        padding: 24px 36px;
        margin-top: 64px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .services-cards-wrapper {
        display: flex;
        justify-content: flex-start;
        gap: 24px;
        padding: 0 10px;
        min-height: fit-content;
        overflow: visible;
    }

    .services-sticky-container::before,
    .services-sticky-container::after {
        content: '';
        position: absolute;
        top: 0;
        width: 60px;
        /* adjust width of fade */
        height: 100%;
        pointer-events: none;
        /* so clicks pass through */
        z-index: 2;
    }

    .services-sticky-container::before {
        left: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }

    .services-sticky-container::after {
        right: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }

    /* Service Cards */
    .services-card {
        flex-shrink: 0;
        min-width: 280px;
        max-width: 280px;
        height: 400px;
        padding: 32px 24px 24px;
        scroll-snap-align: center;
        transform: scale(1);
        opacity: 1;
        filter: none;
    }

    .services-card.active,
    .services-card.passed {
        transform: scale(1);
        opacity: 1;
        filter: none;
    }

    .services-card,
    .services-card.active,
    .services-card.passed {
        transition: none !important;
    }

    .services-card.active .card-title {
        font-size: 36px;
        line-height: 1;
        padding-bottom: 14px;
        text-align: center;
    }

    .services-card .card-title {
        font-size: 36px;
        line-height: 1;
        text-align: center;
    }

    .card-hidden {
        display: none;
    }

    /* Card Pricing */

    .card-content {
        align-items: center;
        justify-content: center;
    }

    .card-pricing {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: auto 0 44px;
        transform: none;
        pointer-events: all;
    }

    .card-description {
        display: none;
    }

    /* Card Tags */
    .card-tags {
        justify-content: center;
        align-items: center;
    }

    .tag,
    .tag-2 {
        padding: 6px 16px;
    }

    /* Mobile nav */
    .mobile-card-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 8px;
        background: var(--white);
        border-radius: 50px;
        min-width: 150px;
        width: fit-content;
        margin: 18px auto 0;
        transition: all 0.8s ease;
    }

    .mobile-nav {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        color: var(--primary);
        background: none;
        cursor: pointer;
    }

    .mobile-nav:disabled {
        opacity: 0;
        cursor: none;
    }

    .mobile-dots {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--white);
        border-radius: 50px;
        padding: 6px;
    }

    .mobile-dot {
        width: 10px;
        height: 10px;
        border-radius: 30px;
        border: 1px solid var(--primary);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .mobile-dot.active {
        width: 36px;
        border-radius: 10px;
        background: var(--primary);
    }

    .premium-card-section {
        display: none;
    }

    /* Services Section End */


    /* Projects Scroll Section Start */

    .projects-scroll-section {
        margin: 100px 0;
        overflow: hidden;
        height: fit-content;
    }

    .projects-text-wrapper {
        width: 100vw;
    }

    .projects-center-line {
        font-size: 72px;
    }

    .projects-top-line {
        margin-left: -60px;
    }

    .projects-bottom-line {
        margin-right: -110px;
    }

    .projects-moving-line {
        font-size: 42px;
        line-height: 1;
        height: 48px;
    }

    .projects-underline-separator {
        display: none;
    }

    /* Projects Scroll Section End */


    /* Gallery Section Start */

    .gallery-info-panel {
        width: 100%;
        height: fit-content;
        z-index: 10;
        padding: 100px 2.5vw;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 36px var(--white);
    }

    .gallery-info-title {
        font-size: 54px;
        text-align: center;
        line-height: 1.2;
    }

    .gallery-title-underline {
        margin-left: -64px;
        width: 120px;
    }

    .gallery-info-desc {
        width: 100%;
        text-align: center;
        min-height: fit-content;
        margin: 30px 0 24px 0;
    }

    .gallery-container {
        gap: 18px;
    }

    .column {
        width: 42vw;
        padding: 0;
    }

    .column-inner {
        width: 100%;
    }

    #col-4,
    #col-3 {
        display: none;
    }

    .project-info {
        display: none;
    }

    /* Gallery Section End */


    /* Trust Building Section Start */

    .trust-building-section {
        width: 100vw;
        margin: 100px 0;
        gap: 18px;
    }

    .partners-text,
    .logos-separator {
        display: none;
    }

    /* Trust Building Section End */


    /* Process Cards Section Start */

    .process-cards-section {
        width: 100vw;
        margin: 0;
        padding: 0;
    }

    .process-cards-title {
        top: 0;
        align-items: center;
        width: 100vw;
    }

    .process-cards-title h2 {
        font-size: 24px;
        margin-bottom: 24px;
        line-height: 1;
    }

    .process-cards-title h1 {
        font-size: 84px;
        text-wrap: auto;
        text-align: center;
        margin: 0;
        padding: 0;
        margin-bottom: 90px;
        line-height: 1;
    }

    .lock-wrapper,
    .progress-container {
        display: none;
    }

    /* Process Cards Section End */


    /* Testimonials Main Section Start */

    .dark-section {
        border-radius: 36px 36px 0 0;
        padding: 100px 2.5vw;
    }

    .testimonials-section-title {
        font-size: 72px;
        text-align: center;
        width: 321px;
    }

    .testimonials-title-underline {
        display: none;
    }

    .testimonials-main-content {
        max-width: 100%;
        gap: 18px;
        align-items: center;
        justify-content: center;
    }

    .testimonials-main-grid {
        flex-direction: column;
        width: 100vw;
        align-items: center;
        gap: 100px;
    }

    .testimonials-left-column {
        width: 100vw;
        justify-content: center;
        align-items: center;
        margin-top: 66px;
    }

    .underline-separator-3 {
        margin: 0;
    }

    .testimonials-left-column {
        text-align: center;
    }

    .testimonials-stats-grid {
        padding: 0;
        flex-direction: column;
        gap: 24px;
        margin: 64px 0;
    }

    .testimonials-stat-item {
        text-align: center;
    }

    .stats-separator {
        height: 1px;
        width: auto;
    }

    .testimonials-stats-grid> :nth-child(1) {
        margin-left: -156px;
    }

    .testimonials-stats-grid> :nth-child(2) {
        margin: 0 39px 0 -39px;
    }

    .testimonials-stats-grid> :nth-child(5) {
        margin-right: -156px;
    }

    .testimonials-stats-grid> :nth-child(4) {
        margin: 0 -39px 0 39px;
    }

    .testimonials-card-container {
        width: 90vw;
        min-height: 450px;
    }

    /* Testimonials Main Section End */


    /* caf Section Start */

    .caf-section {
        flex-direction: column;
        width: 95vw;
        padding: 80px 24px 24px;
        gap: 100px;
    }

    .caf-left-section {
        align-items: center;
        gap: 80px;
    }

    .caf-info-panel,
    .caf-faq-section {
        width: 100%;
        height: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 36px var(--white);
    }

    .contact-info-title {
        font-size: 54px;
        text-align: center;
        line-height: 1;
    }

    .contact-info-desc {
        width: 100%;
        text-align: center;
        min-height: fit-content;
        margin: 30px 0 24px 0;
    }

    .contact-title-underline {
        margin-top: -24px;
    }

    .caf-section-separator {
        width: 100%;
    }

    .faq-question {
        padding: 18px 18px;
    }

    .question-number {
        display: none;
    }

    .faq-icon {
        opacity: 1;
        margin-left: 0;
    }

    .faq-question:hover {
        padding-left: 36px;
    }

    .faq-answer-content {
        padding: 0 24px 32px;
        line-height: 1.5;
    }

    .faq-title-underline {
        width: 100px;
    }

    .contact-section-wrap {
        padding: 24px;
        height: fit-content;
        gap: 24px;
    }

    .form-group {
        width: 100%;
    }

    .form-group-column {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .contact-section-data h2 {
        font-size: 42px;
    }

    .contact-section-data h3 {
        font-size: 16px;
        line-height: 20px;
    }

    /* caf Section End */


    /* Footer */

    .footer-top {
        height: 6px;
        width: 200px;
    }

    .footer-main {
        width: 90vw;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
    }

    .footer-wrap {
        flex-wrap: wrap;
        gap: 50px;
        padding: 0;
        justify-content: space-between;
        width: 85vw;
    }

    .company-section h2 {
        font-size: 42px;
    }

    .company-tagline {
        width: 100%;
    }

    .footer-bottom-content {
        width: 90vw;
    }

    .copyright {
        width: 55%;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0;
    }
}


/* Hide mobile navigation on desktop */
@media screen and (min-width: 481px) {
    .mobile-card-nav {
        display: none;
    }

    .services-card.mobile-active {
        border: none;
        box-shadow: none;
    }
}

/* Handle hamburger menu toggle */
@media screen and (max-width: 768px) {

    /* Add hamburger button styles */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    /* Hide desktop nav */
    nav.top-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    nav.top-nav.active {
        right: 0;
    }
}

/* Hide hamburger on desktop */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Small Tablet */
@media screen and (max-width: 768px) {
    nav.top-nav {
        display: none;
    }
}