/* ========================================
   HOME PAGE RESPONSIVE STYLES
   ======================================== */

/* Mobile responsive for hero stats */
@media (max-width: 768px) {
    .hero-banner {
        max-height: 704px;
        height: auto;
        overflow: hidden;
    }
    /* Hero typography overrides to match Figma design (mobile) */
    .hero-banner__title {
        font-size: clamp(1.25rem, 6vw, 2rem);
        line-height: 1.15em;
    }

    .hero-banner__description {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        line-height: 1.4em;
    }

    .hero-banner__cta {
        font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
        width: 150px;
        height: 40px;
    }
    
    .hero-banner__bottom {
        position: static;
        gap: 24px;
    }
    
    .hero-banner__stats {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding: 0 16px;
        width: 100%;
        max-width: 375px;
        margin: 0 auto;
    }
    
    .hero-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
        width: 164px;
        border-radius: 0;
    }
    
    .hero-stat__number {
        font-size: 16px;
        line-height: 1em;
        text-align: center;
    }
    
    .hero-stat__text {
        font-size: 12px;
        line-height: 1.5em;
        text-align: center;
    }
    
    .hero-banner__partners {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 40px 0;
        border-top: 1px solid #393939;
        border-bottom: 1px solid #393939;
        height: auto;
        min-height: 144px;
    }
    
    .hero-banner__partners-header {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    .partners-marquee {
        position: relative;
        width: 375px;
        height: 68px;
        overflow: hidden;
        background: linear-gradient(90deg, 
            rgba(0, 0, 0, 1) 0%, 
            rgba(0, 0, 0, 0.5) 10%, 
            rgba(0, 0, 0, 0) 20%, 
            rgba(0, 0, 0, 0) 80%, 
            rgba(0, 0, 0, 0.5) 90%, 
            rgba(0, 0, 0, 1) 100%
        );
    }
    
    .partners-marquee__row {
        display: flex;
        align-items: center;
        gap: 8px;
        width: max-content;
        animation: partners-scroll 80s linear infinite;
        padding: 4px 0;
    }
    
    .partners-marquee__item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 9px;
        height: 60px;
        border-radius: 0;
    }
    
    .partners-marquee__item img {
        max-height: 42px;
        max-width: 120px;
        object-fit: contain;
        filter: grayscale(100%) brightness(0.6) opacity(0.7);
        transition: all 0.3s ease;
    }
    
    .hero-banner__partners-title {
        font-family: 'Sora', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.5em;
        color: #FFFFFF;
        text-align: center;
        white-space: normal;
        margin: 0;
    }
    
    .hero-banner__partners-title::after {
        display: none;
    }
}

/* Fix: lift ellipse on mobile so it doesn't sink too low under the content */
@media (max-width: 768px) {
    .hero-banner__ellipse {
        /* Reduce the very large desktop offset and bring ellipse closer to hero content */
        margin-top: 15rem;
        max-width: 100%;
        height: auto;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .hero-banner__ellipse {
        margin-top: 18rem;
    }
}


/* ========================================
   BRAND POSITION SECTION RESPONSIVE
   ======================================== */


/* Mobile responsive */
@media (max-width: 768px) {
    .brand-position {
        padding: 1.5rem 1rem;
    }
    
    .services {
        padding-top: 5rem;
        gap: 2rem;
    }
    
    .services__header {
        gap: 1rem;
        width: 100%;
    }
    
    .services__header-left {
        width: 100%;
        text-align: center;
    }
    
    .service-card__title--highlight {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }
    
    .service__description {
        font-size: clamp(0.875rem, 3vw, 1rem);
        text-align: left;
    }
    
    .services__cards {
        width: 100%;
        gap: 2rem;
    }
    
    .service-card {
        width: 100%;
        flex-direction: column;
        text-align: left;
        padding-left: 1rem;
        height: auto;
        min-height: auto;
    }
    
    .service-card__content {
        order: 2;
        width: 100%;
        gap: 1rem;
    }
    
    .service-card__image {
        order: 1;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 250px;
        height: 200px;
    }
    
    .service-card__title-row {
        justify-content: flex-start;
        margin-bottom: 0.75rem;
        gap: 1rem;
    }
    
    .service-card__title {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }
    
    .service-card__description {
        font-size: clamp(0.875rem, 3vw, 1rem);
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .service-card__cta {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
        padding: 0.5rem 1rem;
        width: auto;
        margin: 0;
        align-self: flex-start;
    }
}

/* Small mobile responsive */
@media (max-width: 480px) {


    .hero-banner__spotlight{
        display: none;
    }

    .hero-banner__cta{
    width: 119px;
    height: 30px;
    font-size: 12px;
    }

    .hero-banner__partners {
        padding: 32px 0;
        gap: 12px;
    }
    
    .partners-marquee {
        width: 100%;
        height: 66px;
        border-top: 1px solid #393939;
        border-bottom: 1px solid #393939;
    }
    
    .partners-marquee__item {
        padding: 6px;
        height: 48px;
    }
    
    .partners-marquee__item img {
        max-height: 36px;
        max-width: 100px;
    }
    
    .hero-banner__partners-title {
        font-size: 14px;
        line-height: 1.4em;
    }
    
    .brand-position {
        padding: 1rem 0.75rem;
    }
    
    .services {
        padding-top: 3rem;
        gap: 1.5rem;
    }
    
    .services__header {
        gap: 0.75rem;
    }
    
    .service-card__title--highlight {
        font-size: clamp(1.125rem, 5vw, 1.25rem);
    }
    
    .service__description {
        font-size: clamp(0.8125rem, 3.5vw, 0.875rem);
    }
    
    .service-card {
        padding-left: 0.5rem;
    }
    
    .service-card__title-row {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .service-card__index {
        font-size: clamp(0.875rem, 3vw, 1rem);
    }
    
    .service-card__title {
        font-size: clamp(0.875rem, 4vw, 1rem);
    }
    
    .service-card__description {
        font-size: clamp(0.8125rem, 3.5vw, 0.875rem);
    }
    
    .service-card__cta {
        font-size: clamp(0.6875rem, 3vw, 0.75rem);
        padding: 0.375rem 0.75rem;
        align-self: flex-start;
    }
}

/* ========================================
   TECH SERVICES SECTION RESPONSIVE
   ======================================== */

/* Mobile responsive for brand-position and tech-services-section */
@media (max-width: 768px) {
    .brand-position {
        height: auto;
        min-height: auto;
    }
    
    .brand-position > .tech-services-section {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .tech-services-row {
        margin-bottom: 1.5rem;
    }
    
    .service-item {
        gap: 0.5rem;
    }
    
    .service-text {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
        padding: 12px 16px;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
    }
    
    .tech-icon img {
        width: 20px;
        height: 20px;
    }
    
    .service-line {
        width: 24px;
    }
}

/* Small mobile responsive for tech-services-section */
@media (max-width: 480px) {
    .brand-position > .tech-services-section {
        padding: 1.5rem 0.5rem;
        margin-top: 1.5rem;
    }
    
    .tech-services-row {
        margin-bottom: 1rem;
    }
    
    .service-text {
        font-size: clamp(0.6875rem, 3vw, 0.75rem);
        padding: 8px 12px;
    }
    
    .tech-icon {
        width: 32px;
        height: 32px;
    }
    
    .tech-icon img {
        width: 16px;
        height: 16px;
    }
    
    .service-line {
        width: 16px;
    }
    
    .marquee-content {
        gap: 24px;
    }
}

/* ========================================
   HOW WE WORK SECTION RESPONSIVE
   ======================================== */

/* Tablet responsive for How We Work */
@media (max-width: 1024px) and (min-width: 769px) {
    .how-we-work {
        height: auto;
        min-height: auto;
        padding: 60px 0;
    }
    
    .how-we-work__container {
        padding: 0 40px;
    }
    
    .how-we-work__grid {
        height: auto;
        grid-template-rows: auto auto;
    }
    
    .how-we-work__cell {
        padding: 40px 30px;
    }
    
    .how-we-work__title {
        font-size: 32px;
        line-height: 1.3em;
    }
    
    .how-we-work__description {
        font-size: 16px;
        line-height: 1.5em;
    }
    
    .step-number {
        font-size: 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 16px;
        line-height: 1.5em;
    }
    
    .how-we-work__nav-indicators {
        width: 100%;
        max-width: 500px;
    }
    
    .how-we-work__nav-controls {
        width: 100%;
        max-width: 500px;
    }
    
    .step-visual {
        height: 300px;
    }
}

/* Mobile responsive for How We Work */
@media (max-width: 768px) {
    .how-we-work {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }
    
    .how-we-work__container {
        padding: 0 16px;
        height: auto;
    }
    
    .how-we-work__grid {
        display: flex;
        flex-direction: column;
        height: auto;
        border: 1px solid #393939;
        border-radius: 0;
        gap: 0;
        overflow: hidden;
    }
    
    .how-we-work__cell {
        padding: 24px;
        border: none;
        border-bottom: 1px solid #393939;
    }
    
    /* Cell 1: Title and Description */
    .how-we-work__cell--1 {
        order: 1;
        border-bottom: 1px solid #393939;
    }
    
    /* Cell 3: Step Number and Title */
    .how-we-work__cell--3 {
        order: 2;
        border-bottom: 1px solid #393939;
    }
    
    /* Cell 4: Step Description and Visual */
    .how-we-work__cell--4 {
        order: 3;
        border-bottom: 1px solid #393939;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }
    
    /* Cell 2: Navigation - Last child, no bottom border */
    .how-we-work__cell--2 {
        order: 4;
        border-bottom: none;
        gap: 16px;
    }
    
    /* Typography adjustments */
    .how-we-work__title {
        font-size: 16px;
        line-height: 1.5em;
        margin-bottom: 12px;
    }
    
    .how-we-work__description {
        font-size: 14px;
        line-height: 1.6em;
    }
    
    /* Navigation adjustments */
    .how-we-work__nav-indicators {
        width: 100%;
        gap: 12px;
        justify-content: space-between;
    }
    
    .nav-indicator {
        width: 24px;
        height: 24px;
    }
    
    .nav-indicator::before {
        width: 36px;
        height: 36px;
    }
    
    .how-we-work__nav-controls {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
    
    .nav-control {
        font-size: 10px;
        line-height: 1.5em;
    }
    
    /* Step content adjustments */
    .step-number {
        font-size: 20px;
        line-height: 1.5em;
        margin-bottom: 8px;
    }
    
    .step-title {
        font-size: 20px;
        line-height: 1.5em;
    }
    
    .step-description {
        font-size: 14px;
        line-height: 1.6em;
        margin-bottom: 0;
        text-align: left;
        padding: 24px;
    }
    
    /* Visual adjustments */
    .step-visual {
        height: 240px;
        width: 100%;
        margin: 0;
    }
    
    .step-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Small mobile responsive for How We Work */
@media (max-width: 480px) {

    .hero-banner__content {
        padding-top:5rem;
    }

    .how-we-work {
        padding: 32px 0;
    }
    
    .how-we-work__container {
        padding: 0 12px;
    }
    
    .how-we-work__cell {
        padding: 20px;
    }
    
    .how-we-work__cell--4 {
        padding: 0;
        gap: 20px;
    }
    
    .how-we-work__title {
        font-size: 14px;
        line-height: 1.4em;
    }
    
    .how-we-work__description {
        font-size: 12px;
        line-height: 1.5em;
    }
    
    .step-number {
        font-size: 18px;
        line-height: 1.4em;
    }
    
    .step-title {
        font-size: 18px;
        line-height: 1.4em;
    }
    
    .step-description {
        font-size: 12px;
        line-height: 1.5em;
        padding: 20px;
    }
    
    .step-visual {
        height: 200px;
        width: 100%;
        margin: 0;
    }
    
    .nav-indicator {
        width: 20px;
        height: 20px;
    }
    
    .nav-indicator::before {
        width: 30px;
        height: 30px;
    }
    
    .nav-control {
        font-size: 9px;
        line-height: 1.4em;
    }
    
    
    .how-we-work__nav-controls {
       justify-content: space-between;
    }
}

/* ========================================
   SUCCESS STORIES SECTION RESPONSIVE
   ======================================== */

/* Mobile responsive for Success Stories */
@media (max-width: 768px) {
    .success-stories {
        padding: 40px 0;
    }
    
    .success-stories__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: auto;
        width: 100%;
        padding: 0 16px;
        margin: 0;
    }
    
    .success-stories__header-left {
        width: 100%;
        gap: 8px;
    }
    
    .success-stories__title {
        font-size: 20px;
        line-height: 1.5em;
    }
    
    .success-stories__description {
        font-size: 14px;
        line-height: 1.6em;
        color: #999999;
    }
    
    .success-stories__cta {
        display: none; /* Hide button in header on mobile */
    }
    
    .success-stories__grid {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
        margin: 32px 0 0 0;
    }
    
    .success-story {
        flex-direction: row;
        width: 100%;
        height: auto;
        min-height: 144px;
        padding: 16px;
        gap: 16px;
        align-items: flex-start;
    }
    
    .success-story__image {
        width: 156px;
        height: 112px;
        flex-shrink: 0;
        border-radius: 1.57px;
    }
    
    .success-story__content {
        flex: 1;
        flex-direction: column;
        gap: 10px;
        justify-content: space-between;
        height: 100%;
    }
    
    .success-story__title {
        font-size: 16px;
        line-height: 1.5em;
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .success-story__title i {
        width: 15px;
        height: 16px;
        margin-left: 0;
    }
    
    .success-story__description {
        font-size: 12px;
        line-height: 1.6em;
        color: #999999;
        font-weight: 400;
    }
    
    /* Mobile button after cards */
    .success-stories__cta--mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: calc(100% - 32px);
        height: 40px;
        margin: 32px 16px 0 16px;
        border: 1px solid #212121;
        border-radius: 2px;
        font-family: 'Sora', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 1.5em;
        color: #212121;
        background-color: transparent;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .success-stories__cta--mobile:hover {
        background-color: #212121;
        color: white;
    }
}

/* Small mobile responsive for Success Stories */
@media (max-width: 480px) {
    .success-stories {
        padding: 32px 0;
    }
    
    .success-stories__header {
        padding: 0 12px;
        gap: 20px;
    }
    
    .success-stories__title {
        font-size: 18px;
        line-height: 1.4em;
    }
    
    .success-stories__description {
        font-size: 12px;
        line-height: 1.5em;
    }
    
    .success-stories__cta {
        height: 36px;
        font-size: 12px;
    }
    
    .success-stories__grid {
        padding: 0 12px;
        gap: 12px;
        margin: 24px 0 0 0;
    }
    
    .success-story {
        padding: 12px;
        gap: 12px;
        min-height: 120px;
    }
    
    .success-story__image {
        width: 140px;
        height: 100px;
    }
    
    .success-story__title {
        font-size: 14px;
        line-height: 1.4em;
    }
    
    .success-story__title i {
        width: 12px;
        height: 13px;
    }
    
    .success-story__description {
        font-size: 11px;
        line-height: 1.5em;
    }
    
    /* Small mobile button after cards */
    .success-stories__cta--mobile {
        width: calc(100% - 24px);
        height: 36px;
        margin: 24px 12px 0 12px;
        font-size: 12px;
    }
}

/* ========================================
   OUR TEAM SECTION RESPONSIVE
   ======================================== */

/* Mobile responsive for Our Team */
@media (max-width: 768px) {
    .our-team {
        margin: 40px auto 0;
        padding: 0 16px;
    }
    
    .our-team__title {
        font-size: 24px;
        line-height: 1.3em;
        width: 100%;
        margin: 0 0 24px 0;
        text-align: center;
    }
    
    .our-team__scroller {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .our-team__row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0;
        padding: 0 0 20px 0;
        width: max-content;
        justify-content: flex-start;
        min-width: 100%;
    }
    
    .our-team__photo {
        height: 200px;
        width: 150px;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 12px;
        transition: all 0.3s ease;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .our-team__photo:hover,
    .our-team__photo.expanded {
        width: 160px;
        height: 200px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    .our-team__photo:nth-child(3) {
        width: 160px;
    }
    
    /* Disable hover effects on mobile for better touch interaction */
    .our-team__row:hover .our-team__photo:not(:hover):not(.expanded) {
        width: 150px;
        opacity: 1;
    }
    
    .our-team__photo::before {
        opacity: 0.3; /* Show overlay by default on mobile */
    }
    
    .our-team__photo::after {
        opacity: 0.7; /* Show number by default on mobile */
        font-size: 10px;
        bottom: 8px;
        right: 8px;
    }
}

/* Small mobile responsive for Our Team */
@media (max-width: 480px) {
    .our-team {
        margin: 32px auto 0;
        padding: 0 12px;
    }
    
    .our-team__title {
        font-size: 20px;
        line-height: 1.4em;
        margin: 0 0 20px 0;
    }
    
    .our-team__row {
        gap: 8px;
        padding: 0 0 16px 0;
    }
    
    .our-team__photo {
        height: 160px;
        width: 120px;
        border-radius: 8px;
    }
    
    .our-team__photo:hover,
    .our-team__photo.expanded {
        width: 130px;
        height: 160px;
    }
    
    .our-team__photo:nth-child(3) {
        width: 130px;
    }
    
    .our-team__photo::after {
        font-size: 9px;
        bottom: 6px;
        right: 6px;
    }
}

/* ========================================
   FAQ SECTION RESPONSIVE
   ======================================== */

/* Mobile responsive for FAQ */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq__container {
        padding: 0 24px;
    }
    
    .faq__header {
        margin-bottom: 40px;
    }
    
    .faq__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3em;
    }
    
    .faq__content {
        padding: 0 20px;
        border: 1px solid #393939;
    }
    
    .faq__question {
        padding: 24px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    .faq__question-number {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .faq__question-text {
        width: 100%;
        text-align: left;
        line-height: 1.4em;
    }
    
    .faq__icon {
        align-self: flex-end;
        margin-top: -8px;
    }
    
    .faq__answer.open {
        max-height: 600px;
        padding-bottom: 24px;
    }
    
    .faq__answer-text {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        line-height: 1.5em;
        padding: 0;
    }
}

/* Small mobile responsive for FAQ */
@media (max-width: 480px) {
    .faq {
        padding: 40px 0;
    }
    
    .faq__container {
        padding: 0 16px;
    }
    
    .faq__header {
        margin-bottom: 32px;
    }
    
    .faq__title {
        font-size: clamp(1.25rem, 7vw, 1.5rem);
    }
    
    .faq__content {
        padding: 0 16px;
    }
    
    .faq__question {
        padding: 20px 0;
        gap: 12px;
        font-size: clamp(0.875rem, 4.5vw, 1rem);
    }
    
    .faq__question-number {
        font-size: clamp(0.875rem, 4.5vw, 1rem);
        margin-bottom: 6px;
    }
    
    .faq__question-text {
        line-height: 1.3em;
    }
    
    .faq__icon {
        width: 20px;
        height: 20px;
        margin-top: -6px;
    }
    
    .faq__answer.open {
        max-height: 500px;
        padding-bottom: 20px;
    }
    
    .faq__answer-text {
        font-size: clamp(0.8125rem, 4vw, 0.875rem);
        line-height: 1.4em;
    }
}


