/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px; /* align with header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 9999; /* ensure above all content */
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero,
    .about,
    .contact,
    .services,
    .pricing {
        min-height: auto;
        height: auto;
        max-height: none;
        padding: 60px 0;
        overflow: visible;
    }

    .services-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .services-image,
    .services-content {
        max-width: 100%;
    }

    .services-content {
        order: 2;
        text-align: center;
    }
    
    .services-title {
        text-align: center;
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1rem;
    }

    .services-title br {
        display: none;
    }

    .services-description {
        text-align: center;
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1.2rem !important;
        padding: 0 1rem;
    }

    .services-image {
        order: 1;
    }

    .services-content {
        padding: 0 1.5rem;
    }

    .about-title {
        line-height: 1.2;
    }

    .contact-title {
        line-height: 1.1;
    }

    .contact-icon img {
        width: 90px;
        height: 90px;
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .contact-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .contact-methods {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }

    .contact-method {
        padding: 0.7rem 1.3rem;
        width: fit-content;
        margin: 0 auto;
    }

    .contact-method-icon {
        width: 20px;
        height: 20px;
    }

    .contact-method-icon .contact-icon-svg {
        width: 20px;
        height: 20px;
    }

    .contact-method-link {
        font-size: 0.95rem;
    }

    .contact-cta {
        margin-top: 2rem;
    }

    .contact-main-btn {
        padding: 15px 32px;
        font-size: 13px;
    }

    .hero-description br,
    .services-description br,
    .about-description br {
        display: none;
    }

    .hero-description {
        margin-bottom: 2rem;
    }

    .tag-row {
        justify-content: center;
        gap: 0.5rem;
    }

    .tag {
        padding: 0.3rem 0.6rem;
        border-radius: 15px;
    }

    .footer-container {
        padding: 0 2rem;
    }

    .fixed-contact-btn {
        width: 72px;
        height: 72px;
        bottom: 25px;
        right: 15px;
        border-radius: 50%;
        border: 3px solid #fff;
        box-shadow: 0 8px 25px rgba(240, 64, 55, 0.4);
        transition: all 0.3s ease;
    }

    .fixed-contact-text {
        display: none;
    }

    .fixed-contact-icon {
        color: white;
    }

    /* Pricing Section styles are handled above with other sections */

    .pricing-container {
        padding: 0 2rem;
    }

    .pricing-header {
        margin-bottom: 3rem;
    }

    .pricing-title {
        line-height: 1.15;
    }

    .pricing-description {
        line-height: 1.5;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
        align-items: stretch;
    }

    .pricing-plan {
        padding: 2.5rem 2rem;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .pricing-plan:hover {
        transform: translateY(-8px);
    }

    .pricing-plan.website {
        transform: none;
    }

    .pricing-plan.website:hover {
        transform: translateY(-8px);
    }

    .plan-icon-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .plan-icon-img {
        width: 70px;
        height: 70px;
    }

    .plan-name {
        margin-bottom: 0.5rem;
    }

    .plan-features-list li {
        padding: 0.8rem 0;
        padding-left: 1.8rem;
    }

    .plan-features-list li:before {
        top: 0.8rem;
        font-size: 1rem;
        width: 1.3rem;
        height: 1.3rem;
    }

    .price-amount {
        line-height: 1.1;
    }

    .pricing-note {
        line-height: 1.3;
        margin-top: 2rem;
    }

    .plan-price {
        padding: 1.2rem 0 0;
    }

    .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .footer-info {
        position: static;
        transform: none;
        text-align: center;
    }

    .footer-shoes {
        margin-top: 1rem;
        margin-left: 0;
    }

    .footer-shoes-icon {
        height: 24px;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
    }

}

/* Intermediate breakpoint for medium mobile screens */
@media (max-width: 640px) and (min-width: 481px) {
    .hero {
        min-height: calc(100vh - 70px);
        padding: 90px 0 35px 0;
    }

    .services {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .services-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.3px !important;
    }

    .services-title br {
        display: none !important;
    }

    .about-title,
    .contact-title {
        font-size: 1.5rem;
        line-height: 1.15;
    }

    .services-description {
        font-size: 1.05rem !important;
        line-height: 1.65 !important;
    }

    .hero-image {
        height: 280px;
    }
    
    .hero-image img {
        max-width: 80%;
        height: auto;
    }

    .cta-button,
    .cta-button-outline {
        padding: 0.8rem 1.4rem;
        font-size: 0.8rem;
    }

    .tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .fixed-contact-btn {
        width: 66px;
        height: 66px;
        bottom: 22px;
        right: 13px;
    }

    .fixed-contact-icon {
        font-size: 26px;
    }

    .contact-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .contact-icon img {
        width: 100px;
        height: 100px;
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .contact-methods {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }

    .contact-method {
        padding: 0.7rem 1.4rem;
    }

    .contact-method-icon {
        width: 20px;
        height: 20px;
    }

    .contact-method-icon .contact-icon-svg {
        width: 20px;
        height: 20px;
    }

    .contact-method-link {
        font-size: 0.95rem;
    }

    .contact-cta {
        margin-top: 2rem;
    }

    .contact-main-btn {
        padding: 15px 35px;
        font-size: 13px;
    }

    /* Pricing Section - Medium Mobile */
    .pricing-title {
        font-size: 2.2rem;
    }

    .pricing-description {
        font-size: 0.95rem;
    }

    .pricing-plans {
        gap: 1.8rem;
        align-items: stretch;
    }

    .pricing-plan {
        padding: 1.8rem;
        display: flex;
        flex-direction: column;
    }

    .plan-icon-circle {
        width: 65px;
        height: 65px;
        margin-bottom: 1.3rem;
    }

    .plan-icon-img {
        width: 65px;
        height: 65px;
    }
}



/* Clean Mobile Hero Section - Tablet and Mobile */
@media (max-width: 768px) {
    /* Mobile Logo Optimization */
    .nav-logo {
        gap: 8px;
    }

    .logo-symbol {
        height: 32px;
    }

    .logo-text {
        font-size: 14px;
    }

    .footer-logo {
        gap: 8px;
    }

    .footer-logo .logo-symbol {
        height: 32px;
    }

    /* Hero Section Mobile Layout */
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        position: relative;
    }

    .hero-background-image {
        opacity: 0.3;
    }

    .hero-background-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        align-items: flex-start;
        text-align: left;
        padding: calc(70px + 15px) 1.2rem 1rem;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height */
        justify-content: space-between;
        gap: 0.5rem !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    /* Hero Tags - Always visible on mobile */
    .hero-tags {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 0.5rem !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .tag-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .tag {
        display: inline-block !important;
        background: transparent !important;
        padding: 0.3rem 0.6rem !important;
        border-radius: 15px !important;
        font-size: 0.65rem !important;
        font-weight: 400 !important;
        color: #666 !important;
        border: 1px solid #999 !important;
        margin: 0.1rem !important;
        white-space: nowrap !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hero Title */
    .hero-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        line-height: 1.05;
        margin-bottom: 0.6rem;
        text-align: center;
        color: #333;
        font-weight: 300;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero Description */
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
        text-align: center;
        color: #666;
        max-width: 90%;
    }

    /* CTA Button */
    .cta-button {
        font-size: 0.8rem;
        padding: 0.9rem 2rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
        background: #F04037;
        border: 2px solid #F04037;
        color: #fff;
        align-self: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        transition: all 0.3s ease;
    }

    .cta-button:hover,
    .cta-button:active {
        background: #F04037;
        color: white;
        transform: scale(0.98);
    }

    /* Hero Image */
    .hero-image {
        display: block !important;
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 0 auto 1rem;
        order: 2;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        flex-shrink: 0;
    }

    .hero-image img,
    .hero-robot {
        width: 100%;
        height: auto;
        max-height: 550px;
        max-width: 100%;
        object-fit: contain;
        object-position: center bottom;
        animation: gentleFloat 8s ease-in-out infinite;
    }
    
}

/* Additional Mobile Refinements */
@media (max-width: 480px) {
    .hero-container {
        padding: max(calc(70px + 15px), calc(env(safe-area-inset-top) + 90px)) clamp(0.8rem, 3vw, 1.5rem) clamp(0.8rem, 4vh, 1.5rem) !important;
        gap: 0.4rem !important;
    }

    .hero-tags {
        margin-top: max(env(safe-area-inset-top), 10px) !important;
        margin-bottom: 0.4rem !important;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5.5vw, 3rem) !important;
        letter-spacing: -0.3px !important;
        line-height: 1.08 !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-description {
        margin-bottom: 0.6rem !important;
    }

    .cta-button {
        font-size: clamp(0.8rem, 3vw, 0.9rem) !important;
        padding: clamp(1rem, 2.5vw, 1.1rem) clamp(1.8rem, 4.5vw, 2.2rem) !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 0.6rem !important;
    }

    .hero-image img,
    .hero-robot {
        max-height: 600px !important;
    }

    /* Services Section - Small Mobile */
    .services-title {
        font-size: clamp(1.7rem, 5vw, 2.2rem) !important;
        line-height: 1.3 !important;
        padding: 0 0.5rem !important;
        margin-bottom: 1.2rem !important;
    }

    .services-title br {
        display: none !important;
    }

    .services-description {
        font-size: clamp(1rem, 2.8vw, 1.1rem) !important;
        line-height: 1.7 !important;
        padding: 0 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .services-container {
        padding: 40px 1rem !important;
        gap: 30px !important;
    }

    .services-image img {
        max-width: 90% !important;
        margin: 0 auto;
        display: block;
    }

    .cta-button-outline {
        font-size: 0.75rem !important;
        padding: 0.8rem 1.5rem !important;
        margin: 0 auto !important;
        display: block !important;
        width: fit-content !important;
    }

    /* Contact Section - Small Mobile */
    .contact-icon img {
        width: 80px !important;
        height: 80px !important;
    }

    .contact-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem) !important;
        padding: 0 1rem;
    }

    .contact-method {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-main-btn {
        padding: 14px 30px;
        font-size: 12px;
    }
}

/* Ultra-compact screens */
@media (max-width: 360px) {
    .hero-container {
        padding: max(calc(70px + 15px), calc(env(safe-area-inset-top) + 90px)) clamp(0.6rem, 2.5vw, 1.2rem) clamp(0.8rem, 4vh, 1.5rem) !important;
        gap: 0.3rem !important;
    }

    .hero-tags {
        margin-top: max(env(safe-area-inset-top), 10px) !important;
        margin-bottom: 0.3rem !important;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
        letter-spacing: -0.2px !important;
        line-height: 1.05 !important;
        margin-bottom: 0.4rem !important;
    }

    .hero-description {
        margin-bottom: 0.5rem !important;
    }

    .cta-button {
        font-size: clamp(0.75rem, 2.8vw, 0.85rem) !important;
        padding: clamp(0.9rem, 2.2vw, 1rem) clamp(1.6rem, 4vw, 2rem) !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-image img,
    .hero-robot {
        max-height: 550px !important;
    }

    /* Services Section - Ultra-compact */
    .services-title {
        font-size: clamp(1.6rem, 4.5vw, 2rem) !important;
        line-height: 1.3 !important;
        padding: 0 0.3rem !important;
    }

    .services-description {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem) !important;
        padding: 0 0.3rem !important;
        line-height: 1.65 !important;
    }

    .services-container {
        padding: 35px 0.8rem !important;
        gap: 25px !important;
    }

    /* Contact Section - Ultra-compact */
    .contact-icon img {
        width: 70px !important;
        height: 70px !important;
    }

    .contact-title {
        font-size: clamp(1.3rem, 4.5vw, 1.6rem) !important;
        padding: 0 0.5rem;
    }

    .contact-method {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .contact-method-link {
        font-size: 0.85rem;
    }

    .contact-main-btn {
        padding: 13px 25px;
        font-size: 11px;
    }
}

/* Landscape orientation fix */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-container {
        padding: max(calc(70px + 10px), calc(env(safe-area-inset-top) + 80px)) clamp(1rem, 4vw, 2rem) 0.5rem !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        gap: 0.3rem !important;
    }

    .hero-tags {
        margin-top: max(env(safe-area-inset-top), 5px) !important;
        margin-bottom: clamp(0.3rem, 1.5vw, 0.6rem) !important;
    }

    .hero-title {
        margin-bottom: 0.4rem !important;
    }

    .hero-description {
        margin-bottom: 0.5rem !important;
    }

    .cta-button {
        margin-bottom: 0.4rem !important;
    }

    .hero-image img,
    .hero-robot {
        max-height: clamp(120px, 18vh, 180px) !important;
    }
}

/* ========================================
   4K AND ULTRA-WIDE MONITOR OPTIMIZATIONS
   ======================================== */

/* 4K Monitors (3840px+) */
@media (min-width: 3840px) {
    .hero-container,
    .services-container,
    .about-container,
    .contact-container,
    .pricing-container {
        max-width: 2400px; /* Increased container width for 4K */
    }
    
    .hero,
    .services,
    .about,
    .contact {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    /* Scale up typography for 4K readability */
    .hero-title {
        font-size: clamp(3rem, 4vw, 6rem);
    }
    
    .services-title,
    .about-title,
    .contact-title,
    .pricing-title {
        font-size: clamp(2.5rem, 3.5vw, 5rem);
    }
    
    .hero-description,
    .services-description,
    .about-intro,
    .about-description,
    .about-vision,
    .pricing-description {
        font-size: clamp(1.2rem, 1.5vw, 2rem);
        line-height: 1.6;
    }
}

/* Ultra-Wide Monitors (2560px+) */
@media (min-width: 2560px) and (max-width: 3839px) {
    .hero-container,
    .services-container,
    .about-container,
    .contact-container,
    .pricing-container {
        max-width: 2000px;
    }
    
    .hero,
    .services,
    .about,
    .contact {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

/* Large Desktop (1920px+) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero,
    .services,
    .about,
    .contact {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

/* Ensure perfect viewport sections on all large screens */
@media (min-width: 1440px) {
    html {
        /* Removed scroll-behavior and scroll-snap to prevent conflicts with JavaScript navigation */
    }
    
    .hero,
    .services,
    .about,
    .contact {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden;
    }
    
    /* Ensure containers fill exactly one viewport */
    .hero-container {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: flex-start !important;
    }
    
    .services-container {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .about-container,
    .contact-container {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        justify-content: center;
    }
}

/* iPad Mini specific fixes (1133 x 744) */
@media (min-width: 1024px) and (max-width: 1200px) and (max-height: 800px) {
    .hero,
    .services,
    .pricing {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 40px 0 !important;
    }
    
    .hero-container {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 40px 2rem 20px 2rem !important;
    }
    
    .services-container {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 30px 2rem !important;
    }
    
    .pricing-container {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 60px 2rem !important;
    }
    
    /* HERO - More compact */
    .hero-title {
        font-size: clamp(3.2rem, 7vw, 5rem) !important;
        line-height: 1.05 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-tags {
        margin-bottom: 1rem !important;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem !important;
        font-size: 0.9rem !important;
    }
    
    /* SERVICES - More compact */
    .services-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
    }
    
    .services-description {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    
    .services-img {
        max-height: 450px !important;
        width: auto !important;
    }
    
    .service-panels {
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-panel {
        min-height: 280px !important;
        padding: 1.2rem 1.5rem !important;
    }
    
    .pricing-header {
        margin-bottom: 0.8rem !important;
    }
}

/* Desktop screens between 1200px and 1439px - Full height sections */
@media (min-width: 1200px) and (max-width: 1439px) {
    .hero,
    .services,
    .about,
    .contact {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden;
    }
    
    .hero-container {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: flex-start !important;
    }
    
    .services-container,
    .about-container,
    .contact-container {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Override large screen settings for mobile and tablets only */
@media (max-width: 1023px) {
    html {
        /* No scroll-snap needed */
    }
    
    .hero,
    .services,
    .about,
    .contact {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .hero-container,
    .services-container,
    .about-container,
    .contact-container {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

/* Desktop navigation reset (undo mobile fixed panel) */
@media (min-width: 769px) {
    .nav-menu {
        position: static;
        left: 0;
        width: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        background: transparent;
        border-top: none;
        transition: none;
    }
}

/* ========================================
   Pricing – compact desktop layout tweaks
   ======================================== */
@media (min-width: 1024px) {
    .pricing-container {
        /* further squash vertical space */
        padding: 30px 2rem 0 2rem;
    }
    
    .pricing-header {
        margin-bottom: 1rem;
    }

    .pricing-plans {
        gap: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .pricing-plan {
        padding: 1.25rem 1rem;
    }

    .plan-features-list li {
        padding: 0.5rem 0;
        margin-bottom: 0.4rem;
    }

    .pricing-note {
        margin-top: 1rem;
        font-size: 0.85rem;
    }
}

/* ------------------------------------------------------------------
   Pill-style feature list for pricing cards
------------------------------------------------------------------ */
