/*
 * MOBILE-ONLY STYLES
 * This file contains styles that ONLY apply to mobile devices (max-width: 768px)
 * Desktop styles remain untouched in styles.css
 * HTML content changes will automatically reflect on both desktop and mobile
 */

/* Hide mobile menu elements on desktop */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Hide industry dots on desktop */
.industry-dots {
    display: none;
}

/* Hide mobile industry titles on desktop */
.industry-title-mobile {
    display: none;
}

/* Hide success dots on desktop */
.success-dots {
    display: none;
}

/* Hide mobile video on desktop */
.final-cta-video-mobile {
    display: none;
}

/* Hide pricing dots on desktop */
.pricing-dots {
    display: none;
}

/* Hide mobile accordion videos on desktop */
.acc-video-mobile {
    display: none;
}

/* Hide hero h1 line breaks on desktop */
.hero-content h1 br {
    display: none;
}

/* Desktop only - make carousel wrapper invisible (tabs control display instead) */
@media (min-width: 769px) {
    .industry-carousel-wrapper {
        display: contents;
    }
}

@media (max-width: 768px) {
    /* Remove white borders on mobile */
    body {
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    html {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    /* Prevent all sections from overflowing */
    *:not(.pricing-grid-wrapper):not(.success-cards-wrapper):not(.industry-carousel-wrapper) {
        max-width: 100vw;
    }

    /* Remove padding from all container elements */
    .container,
    .success-container,
    .final-cta-container,
    .footer-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Prevent sections from causing horizontal scroll */
    section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Hide Unicorn Studio Animation on Mobile */
    .unicorn-embed {
        display: none !important;
    }

    /* Mobile Hero Heading - Show line breaks on mobile */
    .hero-content h1 br {
        display: block !important;
    }

    /* Mobile Navigation */
    nav {
        padding: 1rem 1.5rem !important;
        grid-template-columns: auto 1fr !important;
    }

    /* Hide desktop nav items on mobile */
    .nav-center,
    .nav-right {
        display: none !important;
    }

    /* Mobile Burger Menu Button */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 101;
        justify-self: end;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: #000;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

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

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

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

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(10px);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 101;
        color: #111;
        transition: all 0.3s ease;
        width: 30px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-close:hover {
        transform: rotate(90deg);
        opacity: 0.7;
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .mobile-nav-link {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        font-size: 1.5rem;
        transition: color 0.3s ease;
    }

    .mobile-nav-link:hover {
        color: var(--accent-color);
    }

    .mobile-nav-cta {
        text-decoration: none;
        background: #000;
        color: #fff;
        padding: 1rem 2rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1.2rem;
        margin-top: 1rem;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .mobile-nav-cta:hover {
        background: #333;
        transform: translateY(-2px);
    }

    /* Industry Proof Section - Carousel for Mobile */
    #proof.industry-proof {
        overflow: hidden !important;
        padding: 4rem 0 3rem 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }

    .industry-proof .container {
        padding: 3rem 0 0 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .industry-proof h2 {
        padding: 0 1.5rem;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    /* Add padding at bottom after dots */
    .industry-dots {
        padding-bottom: 2rem !important;
    }

    /* Hide tabs on mobile */
    .industry-tabs {
        display: none !important;
    }

    /* Standard Carousel - CSS Scroll Snap */
    .industry-carousel-wrapper {
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 3rem;
    }

    .industry-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .industry-carousel-track {
        display: flex;
        padding: 0;
        gap: 0;
    }

    .industry-content {
        flex-shrink: 0;
        width: 100vw;
        display: block !important; /* Override desktop display: none */
        opacity: 1 !important;
        padding: 0 1.5rem;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
        animation: none !important; /* Disable desktop fade animation */
    }

    /* Mobile Industry Title */
    .industry-title-mobile {
        display: block !important;
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        color: var(--text-color) !important;
        text-align: center !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 !important;
    }

    /* Adjust industry grid for mobile - NO CARD WRAPPER */
    .ind-grid {
        display: flex;
        flex-direction: column !important;
        gap: 1rem !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        width: 100%;
        max-width: 100%;
    }

    .ind-side-panel {
        width: 100%;
        max-width: 100%;
        padding: 0;
        order: 2;
        box-sizing: border-box;
    }

    .ind-main-visual {
        width: 80%;
        max-width: 80%;
        order: 1;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .ind-main-visual img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        display: block;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    /* Small colored card with subtext */
    .side-card.case-study-hero {
        padding: 0.75rem 1rem !important;
        min-height: auto !important;
        border-radius: 8px !important;
        display: inline-block !important;
        max-width: fit-content !important;
        margin: 0 auto !important;
    }

    .case-study-hero.case-study-green {
        background: #10b981 !important;
    }

    .case-study-hero.case-study-blue {
        background: #3b82f6 !important;
    }

    .case-study-hero.case-study-dark {
        background: #1f2937 !important;
    }

    .case-study-hero.case-study-red {
        background: #ef4444 !important;
    }

    .case-study-hero.case-study-purple {
        background: #8b5cf6 !important;
    }

    .case-study-headline,
    .case-study-hero .case-study-headline,
    .side-card.case-study-hero .case-study-headline {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        font-weight: 400 !important;
        color: #fff !important;
        text-align: center !important;
        margin: 0 !important;
        flex-grow: 0 !important;
    }

    /* Dot indicators */
    .industry-dots {
        display: flex !important;
        justify-content: center;
        gap: 12px;
        margin-top: 2rem;
        padding: 0;
        list-style: none;
    }

    .industry-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #D1D5DB;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .industry-dot.active {
        background: #667eea;
        transform: scale(1.2);
    }

    /* Stats Section - Equal Top and Bottom Padding */
    .social-proof-section {
        padding: 2.5rem 0 2.5rem 0 !important;
    }

    /* Stats Cards - Smaller for Mobile */
    .stat-card {
        padding: 1.25rem 1rem !important;
        min-width: 120px !important;
    }

    .stat-card .stat-number {
        font-size: 1.75rem !important;
    }

    .stat-card .stat-label {
        font-size: 0.75rem !important;
    }

    .stats-scroll-track {
        gap: 1rem !important;
        animation: scroll-left 20s linear infinite !important;
    }

    /* Hide "The Custom One Difference" section on mobile */
    .difference-section {
        display: none !important;
    }

    /* Comparison Section - Reduce Padding */
    .comparison-section {
        padding: 3rem 1rem !important;
    }

    /* Comparison Tabs - Single Line on Mobile */
    .comparison-section .tabs {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.5rem !important;
        padding: 0 1rem !important;
        margin-bottom: 1.5rem !important;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .comparison-section .tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .comparison-section .tab-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }

    /* Success Stories - Clean Carousel with Peek Effect */
    .success-stories-section {
        padding: 3rem 0 !important;
        overflow: hidden !important;
    }

    .success-container {
        padding: 0 !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .success-header {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 0 1.5rem !important;
        margin-bottom: 2rem !important;
        align-items: center !important;
    }

    .success-header h2 {
        text-align: center !important;
    }

    /* Hide Get Started button */
    .success-cta-btn {
        display: none !important;
    }

    /* Hide navigation arrows */
    .carousel-controls,
    .carousel-nav {
        display: none !important;
    }

    /* Simple Centered Carousel - CSS Scroll Snap */
    .success-carousel {
        position: relative;
        width: 100vw !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .success-cards-wrapper {
        width: 100vw !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding: 0 !important;
        margin: 0 !important;
    }

    .success-cards-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .success-cards-track {
        display: flex !important;
        gap: 2rem !important;
        padding-left: calc((100vw - 300px) / 2) !important;
        padding-right: calc((100vw - 300px) / 2) !important;
        margin: 0 !important;
        min-width: min-content !important;
    }

    .success-card {
        flex-shrink: 0 !important;
        width: 300px !important;
        min-width: 300px !important;
        padding: 1.25rem !important;
        box-sizing: border-box !important;
        scroll-snap-align: center;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .success-card.active {
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    /* Hide "See case study" link */
    .success-card .case-link {
        display: none !important;
    }

    /* Adjust card header */
    .success-card-header {
        justify-content: center !important;
        padding: 0 !important;
    }

    /* Make images taller ratio with rounded corners */
    .success-image {
        height: 200px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    .success-image img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    /* Add spacing to stats and industry */
    .success-stat,
    .success-industry {
        padding: 0 !important;
    }

    /* Success Dots */
    .success-dots {
        display: flex !important;
        justify-content: center;
        gap: 12px;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 0 0 1rem 0;
        list-style: none;
    }

    .success-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #D1D5DB;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .success-dot.active {
        background: #667eea;
        transform: scale(1.2);
    }

    /* Final CTA Video - Mobile Square Version */
    .final-cta-video-desktop {
        display: none !important;
    }

    .final-cta-video-mobile {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .final-cta-section {
        background: #000 !important;
        padding: 4rem 0 !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Hide Contact Sales button on mobile */
    .final-cta-section .final-cta-btn.secondary {
        display: none !important;
    }

    /* Fix button width on mobile */
    .final-cta-section .final-cta-btn {
        width: auto !important;
        padding: 1rem 2rem !important;
        max-width: 250px !important;
    }

    /* How It Works - Videos Inside Accordion */
    .hiw-visual {
        display: none !important;
    }

    .hiw-layout {
        display: block !important;
    }

    .hiw-content {
        max-width: 100% !important;
    }

    .acc-video-mobile {
        display: block !important;
        margin-top: 1rem;
        width: 100%;
    }

    .acc-video-mobile video,
    .acc-video-mobile .video-placeholder {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

    .acc-video-mobile video {
        display: block;
    }

    /* Pricing Carousel - Mobile */
    .pricing-section {
        overflow: hidden !important;
        padding-top: 4rem !important;
        width: 100vw;
        max-width: 100vw;
    }

    .pricing-header {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        padding: 0 1.5rem;
    }

    .pricing-grid-wrapper {
        width: 100vw !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding: 0 !important;
        margin: 0 !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }

    .pricing-grid-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .pricing-grid {
        display: flex !important;
        gap: 2rem !important;
        padding-left: calc((100vw - 300px) / 2) !important;
        padding-right: calc((100vw - 300px) / 2) !important;
        margin: 0 !important;
        box-sizing: border-box;
        min-width: min-content !important;
    }

    .pricing-card {
        flex-shrink: 0 !important;
        width: 300px !important;
        min-width: 300px !important;
        scroll-snap-align: center;
        box-sizing: border-box;
    }

    /* Hide elements on mobile pricing cards */
    .plan-description {
        display: none !important;
    }

    .popular-badge {
        display: none !important;
    }

    /* Pricing Dots */
    .pricing-dots {
        display: flex !important;
        justify-content: center;
        gap: 12px;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 0 0 1rem 0;
        list-style: none;
    }

    .pricing-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #D1D5DB;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .pricing-dot.active {
        background: #667eea;
        transform: scale(1.2);
    }

    /* Add more mobile-specific styles below */

}
