﻿/* ========================================
   MOBILE RESPONSIVE FIXES
   Breakpoints: 1024px / 768px / 480px
   Desktop layout is never modified.
   ======================================== */

/* ===== GLOBAL — prevent horizontal scroll ===== */
html, body {
    overflow-x: hidden;
}

/* ========================================
   TABLET — max-width: 1024px
   ======================================== */
@media (max-width: 1024px) {

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 80px 0 70px;
    }

    .hero-logo {
        max-width: 420px;
    }

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

    .hero-subtitle {
        font-size: 1.05rem;
    }

    /* Decorative line — shrink on tablet */
    .hero::before {
        height: 200px;
        opacity: 0.06;
    }
}

/* ========================================
   MOBILE — max-width: 768px
   ======================================== */
@media (max-width: 768px) {

    /* --- Global overrides --- */
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    /* --- NAVBAR --- */
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(12, 17, 22, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 9998;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 20px 40px;
        display: flex;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 14px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }

    .nav-cta {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Mobile dropdown */
    .nav-dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin-top: 8px;
        padding: 8px 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu li a {
        font-size: 0.95rem;
        padding: 12px 20px;
        min-height: 44px;
    }

    /* Hamburger */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 9999;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background: #F2F2F2;
        transition: all 0.3s ease;
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-about-link {
        display: none;
    }

    .language-switcher {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.active ~ .language-switcher {
        opacity: 1;
        pointer-events: auto;
    }

    /* --- HERO SECTION — stacked mobile layout --- */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Decorative left line — push behind content, shrink */
    .hero::before {
        height: 150px;
        opacity: 0.04;
        z-index: 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        max-width: 100%;
        padding: 0 20px;
        position: relative;
        z-index: 2;
    }

    /* 1. Logo at top */
    .hero-logo-wrapper {
        margin-bottom: 8px;
        order: 0;
    }

    .hero-logo {
        max-width: 340px;
        width: 85%;
        height: auto;
    }

    /* 2. Headline */
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.4rem);
        line-height: 1.18;
        margin-bottom: 0;
        margin-top: 0;
        max-width: 100%;
        padding: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        order: 1;
    }

    .hero-title::after {
        bottom: -10px;
        width: 30px;
    }

    /* 3. Description paragraph */
    .hero-subtitle {
        font-size: clamp(0.95rem, 3.8vw, 1.1rem);
        line-height: 1.65;
        margin-top: 8px;
        margin-bottom: 0;
        max-width: 100%;
        padding: 0;
        order: 2;
    }

    /* 4. Price marquee (acts as feature/price display) */
    .price-marquee {
        margin-top: 0;
        overflow: hidden;
        width: 100%;
        order: 3;
        pointer-events: none;
    }

    .price-marquee-content span {
        font-size: 0.75rem;
        padding: 0 16px;
    }

    /* 5. CTA button */
    .hero-cta-center {
        margin-top: 8px;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        order: 4;
        position: relative;
        z-index: 10;
    }

    .hero-cta-center .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 0.95rem;
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* --- FAST LAUNCH SECTION --- */
    .fast-launch-section {
        padding: 80px 0;
    }

    .fast-launch-section .section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .fast-launch-content {
        padding: 0;
    }

    .fast-launch-desc {
        font-size: 1rem;
        padding: 0;
    }

    /* Bullet list — readable and centered block */
    .fast-launch-list {
        max-width: 100%;
        padding: 0 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .fast-launch-list li {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    .fast-launch-pricing {
        text-align: center;
    }

    .fast-launch-price {
        font-size: 2rem;
    }

    .fast-launch-section .btn {
        width: 100%;
        max-width: 300px;
        min-height: 52px;
        padding: 16px 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* --- BUILT TO SCALE --- */
    .built-scale-section {
        padding: 80px 0;
    }

    .built-scale-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    .built-scale-flow {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .built-scale-connector {
        transform: rotate(90deg);
    }

    .built-scale-module {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    /* --- PROFIT PIPELINE --- */
    .profit-pipeline-section {
        padding: 80px 0;
    }

    .pipeline-flow {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .pipeline-arrow {
        transform: rotate(0deg);
        height: 35px;
    }

    .pipeline-arrow svg {
        width: 24px;
        height: 24px;
    }

    .pipeline-step,
    .pipeline-final {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 16px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .pipeline-footer {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    /* --- TIMELINE --- */
    .timeline-section {
        padding: 80px 0;
    }

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

    .timeline-connector {
        display: none;
    }

    .timeline-item {
        width: 100%;
        text-align: center;
        padding: 24px 20px;
    }

    /* --- SERVICES SLIDER --- */
    .premium-services-section {
        padding: 80px 0;
    }

    .services-slider-wrapper {
        position: relative;
    }

    .services-slider {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .service-card {
        scroll-snap-align: start;
        min-width: 85vw;
    }

    .slider-arrow-left,
    .slider-arrow-right {
        display: flex;
        width: 40px;
        height: 40px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* --- PROJECTS / PORTFOLIO --- */
    .projects-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auto-slider-wrapper {
        max-width: 100%;
    }

    .slider-arrow.left {
        left: 8px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-arrow.right {
        right: 8px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- FINAL CTA --- */
    .final-cta-section {
        padding: 80px 0;
    }

    .cta-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .cta-subline {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-content .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* --- ABOUT SECTION --- */
    .about-section {
        padding: 80px 0;
    }

    .about-section::before {
        font-size: 22vw;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.75;
        padding: 0 5px;
    }

    .about-content {
        padding: 1rem;
    }

    /* --- TRANSFORMATION --- */
    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .transform-card {
        padding: 2rem;
    }

    .transform-headline {
        font-size: 1.25rem;
    }

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

    /* --- CONSULTATION MODAL --- */
    .contact-modal {
        width: 95%;
        max-width: 360px;
        padding: 32px 24px;
        max-height: 90dvh;
        overflow-y: auto;
    }

    .contact-item {
        padding: 14px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    /* --- CHAT WIDGET --- */

    /* --- FOOTER --- */
    .footer {
        padding: 40px 0;
        text-align: center;
    }

    .footer p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* --- SECTION TITLES GLOBAL --- */
    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        padding: 0 10px;
    }

    /* --- GLOBAL BUTTON TOUCH TARGETS --- */
    .btn {
        min-height: 48px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .consultBtn {
        position: relative;
        z-index: 10;
        touch-action: manipulation;
    }

    /* --- IMAGES — prevent overflow --- */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   SMALL MOBILE — max-width: 480px
   ======================================== */
@media (max-width: 480px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Hero — tighter layout */
    .hero {
        padding: 90px 0 50px;
    }

    /* Hide decorative shapes on very small screens */
    .hero::before {
        display: none;
    }

    .hero-content {
        gap: 14px;
        padding: 0 6px;
    }

    .hero-logo {
        max-width: 280px;
        width: 80%;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
        padding: 0;
    }

    .hero-title::after {
        bottom: -8px;
        width: 25px;
    }

    .hero-subtitle {
        font-size: clamp(0.88rem, 3.5vw, 0.95rem);
        line-height: 1.6;
    }

    .hero-cta-center {
        padding: 0 10px;
    }

    .hero-cta-center .btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .price-marquee {
        font-size: 10px;
    }

    .price-marquee-content {
        gap: 20px;
        padding-right: 20px;
    }

    .price-marquee-content span {
        font-size: 0.68rem;
        padding: 0 10px;
    }

    /* Fast launch */
    .fast-launch-section {
        padding: 60px 0;
    }

    .fast-launch-desc {
        font-size: 0.93rem;
    }

    .fast-launch-list li {
        font-size: 0.88rem;
    }

    .fast-launch-price {
        font-size: 1.75rem;
    }

    /* Built to scale */
    .built-scale-section {
        padding: 60px 0;
    }

    .built-scale-desc {
        font-size: 0.93rem;
    }

    /* Pipeline */
    .profit-pipeline-section {
        padding: 60px 0;
    }

    .pipeline-step,
    .pipeline-final {
        max-width: 100%;
        font-size: 0.88rem;
        padding: 14px 16px;
    }

    /* Timeline */
    .timeline-section {
        padding: 60px 0;
    }

    /* Services slider */
    .service-card {
        min-width: 90vw;
    }

    .service-card-title {
        font-size: 1.15rem;
    }

    .price-amount {
        font-size: 1.4rem;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    }

    /* CTA */
    .cta-title {
        font-size: 1.6rem;
    }

    .cta-subline {
        font-size: 0.93rem;
    }

    .cta-content .btn {
        max-width: 100%;
    }

    /* About */
    .about-section {
        padding: 60px 0;
    }

    .about-section .section-title {
        font-size: 1.6rem;
    }

    .about-text {
        font-size: 0.93rem;
    }

    .about-content::before {
        width: 50px;
        margin-bottom: 20px;
    }

    /* Modal */
    .contact-modal {
        padding: 24px 16px;
        max-width: 95%;
    }

    .contact-modal h2 {
        font-size: 20px;
    }

    /* Transformation */
    .transform-card {
        padding: 1.5rem;
    }

    /* Final CTA section */
    .final-cta-section {
        padding: 60px 0;
    }

    .final-cta-section::before {
        opacity: 0.15;
    }

    /* Case studies */
    .case-card {
        padding: 1.5rem;
    }

    .capability-block {
        padding: 1.5rem;
    }

    .capability-block h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   EXTRA SMALL — max-width: 380px
   ======================================== */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.45rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-logo {
        max-width: 240px;
    }

    .service-card {
        min-width: 92vw;
    }

    .price-marquee-content span {
        font-size: 0.6rem;
        padding: 0 8px;
    }
}
