/* CLEAN MOBILE-FIRST DESIGN - Native Mobile Experience */

/* Mobile Navigation Base */
.mobile-nav {
    display: none;
}

/* MOBILE STYLES - Clean and Simple */
@media screen and (max-width: 1024px) {
    
    /* CRITICAL: Prevent zoom and ensure proper mobile rendering */
    html {
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        font-size: 16px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    body {
        font-size: 16px !important;
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    /* CRITICAL: Prevent zoom on inputs */
    input, textarea, select {
        font-size: 16px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        border-radius: 8px !important;
        padding: 12px !important;
        border: 1px solid #d1d5db !important;
        background: white !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* MOBILE HEADER - Simple and functional */
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        z-index: 1000 !important;
        padding: 0 16px !important;
    }
    
    .header-nav .max-w-7xl {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .header-nav .flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 60px !important;
        width: 100% !important;
    }
    
    .header-nav .h-20,
    .header-nav .sm\\:h-24 {
        height: 60px !important;
    }
    
    /* Logo styling */
    .header-nav img {
        height: 32px !important;
        width: auto !important;
    }
    
    .header-nav a {
        display: flex !important;
        align-items: center !important;
    }
    
    /* Ensure proper spacing */
    .header-nav .space-x-3 {
        gap: 0 !important;
    }
    
    /* MOBILE MENU BUTTON - Clean icon without card */
    #menuButton {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        cursor: pointer !important;
        box-shadow: none !important;
        padding: 12px !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 1001 !important;
        position: relative !important;
        transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    #menuButton:active {
        transform: scale(0.9) !important;
    }
    
    #menuButton:hover {
        transform: scale(1.1) !important;
    }
    
    /* Clean Hamburger Menu Icon */
    .menu-icon {
        width: 24px !important;
        height: 18px !important;
        position: relative !important;
        transform: rotate(0deg) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        cursor: pointer !important;
    }
    
    .menu-icon span {
        display: block !important;
        position: absolute !important;
        height: 2px !important;
        width: 100% !important;
        background: #374151 !important;
        border-radius: 1px !important;
        opacity: 1 !important;
        left: 0 !important;
        transform: rotate(0deg) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .menu-icon span:nth-child(1) {
        top: 0px !important;
        transform-origin: left center !important;
    }
    
    .menu-icon span:nth-child(2) {
        top: 8px !important;
        transform-origin: left center !important;
    }
    
    .menu-icon span:nth-child(3) {
        top: 16px !important;
        transform-origin: left center !important;
    }
    
    /* Hover effect */
    #menuButton:hover .menu-icon span {
        background: #2296A8 !important;
    }
    
    /* Active state - Transform to X */
    .mobile-nav.active ~ nav #menuButton .menu-icon span:nth-child(1) {
        transform: rotate(45deg) !important;
        top: 7px !important;
        left: 2px !important;
        background: #2296A8 !important;
    }
    
    .mobile-nav.active ~ nav #menuButton .menu-icon span:nth-child(2) {
        width: 0% !important;
        opacity: 0 !important;
    }
    
    .mobile-nav.active ~ nav #menuButton .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) !important;
        top: 9px !important;
        left: 2px !important;
        background: #2296A8 !important;
    }
    
    /* SVG icon fallback */
    #menuButton svg {
        width: 24px !important;
        height: 24px !important;
        color: #374151 !important;
        pointer-events: none !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    #menuButton:hover svg {
        color: #2296A8 !important;
    }
    
    .mobile-nav.active ~ nav #menuButton svg {
        transform: rotate(90deg) !important;
        color: #2296A8 !important;
    }
    
    /* HIDE DESKTOP NAVIGATION */
    .lg\\:flex {
        display: none !important;
    }
    
    /* MOBILE NAVIGATION MENU - Enhanced Animations */
    .mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s ease !important;
    }
    
    .mobile-nav.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-nav-backdrop {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0) !important;
        cursor: pointer !important;
        transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .mobile-nav.active .mobile-nav-backdrop {
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
    }
    
    .mobile-nav-panel {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 320px !important;
        max-width: 85vw !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
        transform: translateX(100%) scale(0.95) !important;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .mobile-nav.active .mobile-nav-panel {
        transform: translateX(0) scale(1) !important;
    }
    
    .mobile-nav-header {
        padding: 20px !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 60px !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav-header img {
        height: 32px !important;
        width: auto !important;
    }
    
    #closeMenu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: #f3f4f6 !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: background-color 0.2s ease !important;
    }
    
    #closeMenu:active {
        background: #e5e7eb !important;
        transform: scale(0.95) !important;
    }
    
    #closeMenu svg {
        width: 20px !important;
        height: 20px !important;
        color: #374151 !important;
    }
    
    .mobile-nav-links {
        padding: 20px !important;
    }
    
    .mobile-nav-links a {
        display: block !important;
        padding: 16px 20px !important;
        margin-bottom: 8px !important;
        color: #374151 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
        font-size: 16px !important;
        transition: background-color 0.2s ease !important;
        border: 1px solid transparent !important;
    }
    
    .mobile-nav-links a:active {
        background: #f3f4f6 !important;
        border-color: #e5e7eb !important;
        transform: scale(0.98) !important;
    }
    
    .mobile-nav-links .btn {
        margin-top: 20px !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 16px 24px !important;
        background: linear-gradient(135deg, #2296A8, #25c4db) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        text-decoration: none !important;
    }
    
    /* HERO SECTION - Optimized mobile layout */
    .hero {
        min-height: 85vh !important;
        padding: 70px 20px 50px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%) !important;
        position: relative !important;
    }
    
    .hero .grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero .lg\\:grid-cols-2 {
        display: block !important;
    }
    
    /* ENSURE HERO CONTENT IS CENTERED AND CLEAN */
    .hero .max-w-7xl {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero .space-y-6,
    .hero .space-y-8,
    .hero .space-y-10 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* HERO CONTENT - Mobile optimized */
    .hero-badge {
        display: inline-flex !important;
        align-items: center !important;
        padding: 10px 20px !important;
        background: rgba(34, 150, 168, 0.1) !important;
        color: #2296A8 !important;
        border-radius: 25px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        margin-bottom: 20px !important;
        border: 1px solid rgba(34, 150, 168, 0.2) !important;
    }
    
    .hero-title {
        font-size: clamp(28px, 8vw, 40px) !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
        color: #111827 !important;
        margin-bottom: 16px !important;
        max-width: 100% !important;
    }
    
    .hero-title span:first-child {
        background: linear-gradient(135deg, #2296A8, #25c4db) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        font-size: clamp(32px, 9vw, 44px) !important;
        display: block !important;
        margin-bottom: 8px !important;
    }
    
    /* Add hero description */
    .hero-description {
        font-size: 18px !important;
        line-height: 1.5 !important;
        color: #6b7280 !important;
        margin-bottom: 24px !important;
        max-width: 90% !important;
        font-weight: 400 !important;
    }
    
    /* HERO BUTTONS - Mobile friendly */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 28px !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .btn-hero {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 18px 36px !important;
        background: linear-gradient(135deg, #2296A8, #25c4db) !important;
        color: white !important;
        border: none !important;
        border-radius: 14px !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        width: 100% !important;
        max-width: 300px !important;
        min-height: 52px !important;
        box-shadow: 0 6px 20px rgba(34, 150, 168, 0.3) !important;
        transition: all 0.2s ease !important;
    }
    
    .btn-hero:active {
        transform: scale(0.95) translateY(1px) !important;
        box-shadow: 0 4px 12px rgba(34, 150, 168, 0.4) !important;
    }
    
    /* HIDE COMPLEX ELEMENTS ON MOBILE */
    .ongoing-animation,
    .gradient-orb,
    .hero-gradient-bg,
    .animate-dot,
    .flat-card,
    .flat-card-1,
    .flat-card-2,
    .flat-card-3 {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* HIDE ALL HERO VISUAL ELEMENTS ON MOBILE */
    .hero .relative.w-full,
    .hero .relative.scroll-animate.from-right,
    .hero .h-64,
    .hero .sm\\:h-80,
    .hero .md\\:h-96,
    .hero .lg\\:h-500px {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* MOBILE SECTIONS - Optimized spacing */
    section {
        padding: 50px 20px !important;
    }
    
    /* Fix sections with large top padding that overlap with mobile header */
    section.pt-32,
    section.pt-24,
    section.pt-20 {
        padding-top: 100px !important;
    }
    
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-3xl {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Section headers - better spacing */
    .section-header {
        margin-bottom: 40px !important;
        padding: 0 10px !important;
    }
    
    .section-header h2 {
        font-size: clamp(24px, 6vw, 32px) !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
    
    .section-header p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: #6b7280 !important;
        max-width: 100% !important;
    }
    
    /* MOBILE GRIDS - Single column with better spacing */
    .lg\\:grid-cols-2,
    .lg\\:grid-cols-3,
    .lg\\:grid-cols-4,
    .md\\:grid-cols-2,
    .md\\:grid-cols-3,
    .sm\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .solutions-grid,
    .process-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }
    
    /* MOBILE CARDS - Better spacing and design */
    .solution-card,
    .process-card,
    .pricing-card,
    .project-card {
        padding: 28px 20px !important;
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        text-align: center !important;
        transition: all 0.2s ease !important;
        margin-bottom: 16px !important;
    }
    
    .solution-card:active,
    .process-card:active,
    .pricing-card:active,
    .project-card:active {
        transform: scale(0.98) translateY(1px) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    }
    
    /* Card content spacing */
    .solution-card h3,
    .process-card h3,
    .pricing-card h3 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    
    .solution-card p,
    .process-card p,
    .pricing-card p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        color: #6b7280 !important;
        margin-bottom: 16px !important;
    }
    
    /* MOBILE TYPOGRAPHY */
    .text-5xl,
    .lg\\:text-7xl {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    .text-4xl,
    .lg\\:text-5xl {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .text-3xl {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    .text-2xl {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    
    .text-xl {
        font-size: 18px !important;
        line-height: 1.5 !important;
    }
    
    /* MOBILE BUTTONS */
    .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 24px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        min-height: 44px !important;
        transition: transform 0.2s ease !important;
    }
    
    .btn:active {
        transform: scale(0.95) !important;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #2296A8, #25c4db) !important;
        color: white !important;
        border: none !important;
    }
    
    .btn-outline {
        background: white !important;
        color: #2296A8 !important;
        border: 2px solid #2296A8 !important;
    }
    
    /* MOBILE SPACING - Optimized for mobile */
    .py-24 { padding-top: 50px !important; padding-bottom: 50px !important; }
    .py-20 { padding-top: 45px !important; padding-bottom: 45px !important; }
    .py-16 { padding-top: 35px !important; padding-bottom: 35px !important; }
    .py-12 { padding-top: 25px !important; padding-bottom: 25px !important; }
    
    .px-6 { padding-left: 20px !important; padding-right: 20px !important; }
    .px-8 { padding-left: 20px !important; padding-right: 20px !important; }
    
    .gap-16 { gap: 20px !important; }
    .gap-12 { gap: 16px !important; }
    .gap-8 { gap: 12px !important; }
    .gap-6 { gap: 10px !important; }
    
    /* Better margin utilities */
    .mb-20 { margin-bottom: 40px !important; }
    .mb-16 { margin-bottom: 32px !important; }
    .mb-12 { margin-bottom: 24px !important; }
    .mb-8 { margin-bottom: 16px !important; }
    .mb-6 { margin-bottom: 12px !important; }
    .mb-4 { margin-bottom: 8px !important; }
    
    /* MOBILE CONTACT FORM */
    .contact-form,
    #contact .bg-white {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 24px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* MOBILE FOOTER */
    footer {
        padding: 40px 16px !important;
        text-align: center !important;
    }
    
    footer .lg\\:grid-cols-4,
    footer .md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    footer .lg\\:col-span-2 {
        grid-column: span 1 !important;
    }
    
    /* Mobile footer company info */
    footer .lg\\:col-span-2 {
        order: -1 !important;
        margin-bottom: 16px !important;
    }
    
    /* Mobile footer logo */
    footer .lg\\:col-span-2 img {
        height: 40px !important;
        margin: 0 auto 16px auto !important;
    }
    
    /* Mobile footer description */
    footer .lg\\:col-span-2 p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }
    
    /* Mobile social icons container */
    footer .flex.flex-wrap {
        justify-content: center !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }
    
    /* Mobile social icons */
    footer .flex.flex-wrap a {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }
    
    footer .flex.flex-wrap svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Mobile footer sections */
    footer h4 {
        font-size: 16px !important;
        margin-bottom: 16px !important;
        font-weight: 600 !important;
    }
    
    footer ul {
        gap: 12px !important;
    }
    
    footer ul li a {
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 8px 0 !important;
        display: block !important;
    }
    
    /* Mobile footer bottom bar */
    footer .pt-8 {
        padding-top: 24px !important;
        margin-top: 24px !important;
    }
    
    footer .pt-8 p {
        font-size: 12px !important;
        margin-bottom: 16px !important;
    }
    
    /* Stack footer columns on mobile */
    @media screen and (max-width: 640px) {
        footer .grid {
            grid-template-columns: 1fr !important;
            gap: 20px !important;
        }
        
        footer .flex.flex-col.md\\:flex-row {
            flex-direction: column !important;
            gap: 12px !important;
        }
        
        /* Ensure social icons wrap nicely on very small screens */
        footer .flex.flex-wrap {
            max-width: 280px !important;
            margin: 0 auto 24px auto !important;
        }
    }
    
    /* MINIMAL SCROLL-SYNCED ANIMATIONS - No initial blink */
    .scroll-animate {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: all 0.25s ease-out !important;
        will-change: opacity, transform !important;
    }
    
    .scroll-animate.in-view {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .scroll-animate.out-view {
        opacity: 0.3 !important;
        transform: translateY(15px) !important;
    }
    
    /* ENSURE VISIBILITY */
    * {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hidden {
        display: none !important;
    }
    
    .lg\\:hidden,
    .md\\:hidden,
    .sm\\:hidden {
        display: none !important;
    }
}

/* SMALL MOBILE DEVICES */
@media screen and (max-width: 480px) {
    .hero {
        padding: 70px 12px 30px 12px !important;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-title span:first-child {
        font-size: 32px !important;
    }
    
    .btn-hero {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    section {
        padding: 40px 12px !important;
    }
    
    .solution-card,
    .process-card,
    .pricing-card,
    .project-card {
        padding: 20px !important;
    }
}

/* TOUCH DEVICE OPTIMIZATIONS */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    *:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Add touch feedback */
    .btn:active,
    .mobile-nav-links a:active,
    .solution-card:active,
    .process-card:active {
        opacity: 0.8 !important;
        transform: scale(0.95) !important;
    }
}/* CRITICAL
 MOBILE FIXES - Final native experience */
@media screen and (max-width: 1024px) {
    /* Prevent any zoom issues */
    html {
        -webkit-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
    }
    
    /* Ensure proper touch behavior */
    * {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Allow text selection where needed */
    p, h1, h2, h3, h4, h5, h6, span, li {
        -webkit-user-select: text !important;
        user-select: text !important;
    }
    
    /* Fix any remaining layout issues */
    body {
        position: relative !important;
        min-height: 100vh !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure header is always on top */
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Ensure mobile menu works */
    .mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
    }
    
    /* Force all content to be visible */
    main, section, div, p, h1, h2, h3, h4, h5, h6 {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 1024px) {
        /* Fix iOS viewport issues */
        body {
            height: 100vh !important;
            height: calc(var(--vh, 1vh) * 100) !important;
        }
        
        .hero {
            min-height: 100vh !important;
            min-height: calc(var(--vh, 1vh) * 100) !important;
        }
        
        /* Prevent iOS bounce scroll */
        body {
            overscroll-behavior: none !important;
        }
    }
}

/* DESKTOP STYLES - Hide mobile menu button */
@media screen and (min-width: 1025px) {
    /* Hide mobile menu button on desktop */
    #menuButton {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Hide mobile navigation on desktop */
    .mobile-nav {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure desktop navigation is visible */
    .lg\\:flex {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Desktop header styling */
    .header-nav {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        height: auto !important;
    }
    
    .header-nav .h-20,
    .header-nav .sm\\:h-24 {
        height: 5rem !important;
    }
    
    .header-nav img {
        height: 2.5rem !important;
    }
    
    /* Reset mobile-specific styles for desktop */
    .header-nav .max-w-7xl {
        max-width: 80rem !important;
        padding: 0 1.5rem !important;
        margin: 0 auto !important;
    }
    
    .header-nav .flex {
        height: 5rem !important;
    }
}/* ADDITI
ONAL MOBILE FIXES */
@media screen and (max-width: 1024px) {
    /* COMPLETELY HIDE HERO VISUAL ELEMENTS */
    .hero .relative.scroll-animate.from-right,
    .hero .relative.w-full.h-64,
    .hero .relative.w-full.h-80,
    .hero .relative.w-full.h-96,
    .hero .relative.w-full,
    .hero .w-full.h-64,
    .hero .w-full.h-80,
    .hero .w-full.h-96,
    .hero .h-64,
    .hero .h-80,
    .hero .h-96,
    .hero .lg\\:h-500px {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
    
    /* FORCE MOBILE MENU BUTTON VISIBILITY */
    .lg\\:hidden {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* ENSURE MOBILE NAV WORKS */
    .mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9999 !important;
    }
    
    .mobile-nav.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* CLEAN HERO LAYOUT */
    .hero .grid.lg\\:grid-cols-2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    /* HIDE ANY REMAINING VISUAL ELEMENTS */
    .hero .aspect-video,
    .hero .rounded-xl,
    .hero .overflow-hidden,
    .hero .bg-gradient-to-br {
        display: none !important;
    }
}/* 
===== MINIMAL SCROLL-SYNCED MOBILE ANIMATIONS ===== */
@media screen and (max-width: 1024px) {
    /* Base scroll animation setup - No initial fade */
    .mobile-scroll-animate {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: all 0.2s ease-out !important;
    }
    
    .mobile-scroll-animate.in-view {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .mobile-scroll-animate.out-view {
        opacity: 0.4 !important;
        transform: translateY(12px) !important;
    }
    
    /* Section headers - no initial fade */
    .section-header {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: all 0.2s ease-out !important;
    }
    
    .section-header.in-view {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .section-header.out-view {
        opacity: 0.5 !important;
        transform: translateY(10px) !important;
    }
    
    /* Cards - no initial fade to prevent blink */
    .solution-card,
    .process-card,
    .pricing-card,
    .project-card {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: all 0.15s ease-out !important;
    }
    
    .solution-card.in-view,
    .process-card.in-view,
    .pricing-card.in-view,
    .project-card.in-view {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .solution-card.out-view,
    .process-card.out-view,
    .pricing-card.out-view,
    .project-card.out-view {
        opacity: 0.6 !important;
        transform: translateY(8px) !important;
    }
    
    /* Contact form - no initial fade */
    .contact-form,
    #contact .bg-white {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: all 0.2s ease-out !important;
    }
    
    .contact-form.in-view,
    #contact .bg-white.in-view {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .contact-form.out-view,
    #contact .bg-white.out-view {
        opacity: 0.5 !important;
        transform: translateY(10px) !important;
    }
    
    /* Hero elements - always visible, no animation */
    .hero-badge,
    .hero-title,
    .hero-buttons {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
    
    /* Performance optimization */
    .in-view,
    .out-view {
        will-change: auto !important;
    }
}/* ===== EN
HANCED MOBILE HERO SECTION ===== */
@media screen and (max-width: 1024px) {
    /* Add subtle background pattern */
    .hero::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-image: radial-gradient(circle at 25% 25%, rgba(34, 150, 168, 0.05) 0%, transparent 50%),
                          radial-gradient(circle at 75% 75%, rgba(37, 196, 219, 0.05) 0%, transparent 50%) !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }
    
    /* Ensure hero content is above background */
    .hero > * {
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* Clean hero badge without decorative elements */
    
    /* Better hero content layout */
    .hero .max-w-7xl {
        min-height: 60vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Add some visual interest to buttons */
    .btn-hero::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    .btn-hero:active::before {
        left: 100% !important;
    }
    
    /* Add stats or features below hero */
    .hero-stats {
        display: flex !important;
        justify-content: center !important;
        gap: 24px !important;
        margin-top: 40px !important;
        padding: 20px !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border-radius: 16px !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        max-width: 320px !important;
        width: 100% !important;
    }
    
    .hero-stat {
        text-align: center !important;
        flex: 1 !important;
    }
    
    .hero-stat-number {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #2296A8 !important;
        display: block !important;
        line-height: 1 !important;
    }
    
    .hero-stat-label {
        font-size: 12px !important;
        color: #6b7280 !important;
        font-weight: 500 !important;
        margin-top: 4px !important;
        display: block !important;
    }
}

/* Small mobile adjustments */
@media screen and (max-width: 480px) {
    .hero {
        padding: 60px 16px 40px 16px !important;
        min-height: 80vh !important;
    }
    
    .hero-title {
        font-size: clamp(24px, 7vw, 32px) !important;
    }
    
    .hero-title span:first-child {
        font-size: clamp(28px, 8vw, 36px) !important;
    }
    
    .btn-hero {
        padding: 16px 28px !important;
        font-size: 16px !important;
        max-width: 280px !important;
    }
    
    .hero-stats {
        gap: 16px !important;
        padding: 16px !important;
        margin-top: 32px !important;
    }
    
    .hero-stat-number {
        font-size: 18px !important;
    }
    
    .hero-stat-label {
        font-size: 11px !important;
    }
}/* ===== PREVENT MOBILE LOADING BLINK ===== */
@media screen and (max-width: 1024px) {
    /* Ensure all elements are visible by default - no blink */
    * {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* CRITICAL: Fix font-weight blink - force consistent weights immediately */
    .font-medium, .font-medium * {
        font-weight: 500 !important;
        font-display: swap !important;
    }
    
    .font-bold, .font-bold * {
        font-weight: 700 !important;
        font-display: swap !important;
    }
    
    .font-semibold, .font-semibold * {
        font-weight: 600 !important;
        font-display: swap !important;
    }
    
    /* Clean font weight fixes */
    #solutions .font-medium {
        font-weight: 500 !important;
        font-display: swap !important;
    }
    
    #solutions h2 {
        font-weight: 700 !important;
        font-display: swap !important;
    }
    
    /* Override any hidden states during load */
    .opacity-0,
    .invisible {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Specific fixes for common elements */
    section,
    .section-header,
    .solution-card,
    .process-card,
    .pricing-card,
    .project-card,
    .contact-form,
    h1, h2, h3, h4, h5, h6,
    p, div, span, a {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Only allow hiding for elements that should be hidden */
    .hidden,
    .lg\\:hidden,
    .md\\:hidden,
    .sm\\:hidden,
    .mobile-nav:not(.active),
    .ongoing-animation,
    .gradient-orb,
    .flat-card {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
    }
    
    /* Ensure mobile nav shows when active */
    .mobile-nav.active {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Page load optimization */
    body.loading * {
        transition: none !important;
        animation: none !important;
    }
    
    body.loaded * {
        transition: all 0.2s ease-out !important;
    }
}
/* ===
== FONT WEIGHT BLINK FIX ===== */
@media screen and (max-width: 1024px) {
    /* Force consistent font weights to prevent blink */
    .font-medium {
        font-weight: 500 !important;
        font-display: swap !important;
    }
    
    .font-bold {
        font-weight: 700 !important;
        font-display: swap !important;
    }
    
    .font-semibold {
        font-weight: 600 !important;
        font-display: swap !important;
    }
    
    /* Solutions section specific */
    #solutions .font-medium,
    #solutions .text-primary,
    #solutions .inline-flex {
        font-weight: 500 !important;
        font-display: swap !important;
    }
    
    #solutions h2,
    #solutions .font-bold {
        font-weight: 700 !important;
        font-display: swap !important;
    }
    
    /* All headings */
    h1, h2, h3, h4, h5, h6 {
        font-weight: 700 !important;
        font-display: swap !important;
    }
}
/* ==
=== PROJECTS PAGE MOBILE HERO ===== */
@media screen and (max-width: 1024px) {
    /* Projects page hero section - Fix overlap with header */
    .projects-hero,
    section.pt-32.pb-20.bg-gray-50 {
        padding: 100px 16px 40px 16px !important;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%) !important;
        text-align: center !important;
        position: relative !important;
    }
    
    .projects-hero .max-w-3xl {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .projects-hero .inline-flex {
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 16px !important;
        background: rgba(34, 150, 168, 0.1) !important;
        color: #2296A8 !important;
        border-radius: 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 20px !important;
        border: 1px solid rgba(34, 150, 168, 0.2) !important;
    }
    
    .projects-hero h1 {
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        margin-bottom: 16px !important;
        color: #111827 !important;
    }
    
    .projects-hero .text-primary {
        color: #2296A8 !important;
    }
    
    .projects-hero p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        color: #6b7280 !important;
        max-width: 100% !important;
    }
    
    /* Hide decorative elements on mobile */
    .projects-hero .absolute {
        display: none !important;
    }
}

/* ===== PORTFOLIO CARDS MOBILE ENHANCEMENTS ===== */
@media screen and (max-width: 1024px) {
    /* Mobile grid layout */
    .projects-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        align-items: stretch !important;
    }
    
    /* Consistent card height on mobile */
    .project-card {
        height: auto !important;
        min-height: 500px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .project-card a {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        flex: 1 !important;
    }
    
    .project-card .relative.overflow-hidden.rounded-2xl {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        flex: 1 !important;
    }
    
    .project-card .space-y-4 {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    /* Better card spacing for mobile */
    .project-card + .project-card {
        margin-top: 0 !important;
    }
    
    /* Improve readability on mobile */
    .project-card .bg-gradient-to-br {
        background: linear-gradient(135deg, rgba(34, 150, 168, 0.08), rgba(37, 196, 219, 0.08)) !important;
    }
    
    /* Better image handling for mobile */
    .project-card .aspect-video {
        aspect-ratio: 16/10 !important;
        min-height: 180px !important;
        flex-shrink: 0 !important;
    }
    
    /* Ensure proper image loading */
    .project-card img {
        transition: none !important;
    }
    
    /* CTA section mobile - centered */
    .projects-cta {
        grid-column: 1 / -1 !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 40px !important;
        padding: 0 16px !important;
    }
    
    .projects-cta > div {
        background: #f8fafc !important;
        border-radius: 20px !important;
        text-align: center !important;
        padding: 24px !important;
        width: 100% !important;
        max-width: 500px !important;
    }
    
    .projects-cta h3 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
    
    .projects-cta p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
        color: #6b7280 !important;
    }
    
    .projects-cta .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 16px 24px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }
}

/* ===== SMALL MOBILE ADJUSTMENTS ===== */
@media screen and (max-width: 480px) {
    .project-card {
        min-height: 450px !important;
    }
    
    .project-card .relative.overflow-hidden {
        padding: 16px !important;
    }
    
    .project-card .aspect-video {
        margin-bottom: 16px !important;
        border-radius: 12px !important;
        min-height: 160px !important;
    }
    
    .project-card h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .project-card p {
        font-size: 14px !important;
        margin-bottom: 14px !important;
    }
    
    .project-card .flex.flex-wrap {
        gap: 6px !important;
        margin-top: 14px !important;
    }
    
    .project-card .px-3.py-1 {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
    
    .projects-cta > div {
        padding: 20px !important;
        max-width: 100% !important;
    }
    
    .projects-hero,
    section.pt-32.pb-20.bg-gray-50 {
        padding: 90px 12px 30px 12px !important;
    }
    
    .projects-hero h1 {
        font-size: 24px !important;
    }
    
    .projects-hero p {
        font-size: 15px !important;
    }
}

/* ===== PORTFOLIO PERFORMANCE OPTIMIZATIONS ===== */
@media screen and (max-width: 1024px) {
    /* Optimize project card animations */
    .project-card {
        will-change: transform !important;
        contain: layout style paint !important;
    }
    
    .project-card:not(:active) {
        will-change: auto !important;
    }
    
    /* Optimize image loading */
    .project-card img {
        content-visibility: auto !important;
        contain-intrinsic-size: 300px 200px !important;
    }
    
    /* Reduce repaints */
    .project-card .absolute {
        contain: layout style !important;
    }
}/* =
==== FINAL MOBILE PORTFOLIO FIXES ===== */
@media screen and (max-width: 1024px) {
    /* Ensure proper card container spacing */
    .stagger-group,
    .projects-grid {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Fix any remaining desktop hover effects */
    .project-card:hover {
        border-color: #e5e7eb !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Ensure consistent card heights */
    .project-card .relative.overflow-hidden.rounded-2xl {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Fix backdrop blur issues on mobile */
    .project-card .backdrop-blur-sm {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Ensure proper text sizing */
    .project-card .text-xl {
        font-size: 20px !important;
    }
    
    .project-card .text-2xl {
        font-size: 20px !important;
    }
    
    .project-card .text-sm {
        font-size: 15px !important;
    }
    
    .project-card .text-base {
        font-size: 15px !important;
    }
    
    /* Fix any margin/padding issues */
    .project-card .mb-6,
    .project-card .mb-8 {
        margin-bottom: 20px !important;
    }
    
    .project-card .sm\\:mb-8 {
        margin-bottom: 20px !important;
    }
    
    .project-card .gap-1,
    .project-card .sm\\:gap-2 {
        gap: 8px !important;
    }
    
    /* Ensure proper responsive behavior */
    .project-card .sm\\:text-2xl {
        font-size: 20px !important;
    }
    
    .project-card .sm\\:text-base {
        font-size: 15px !important;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove all hover effects on touch devices */
    .project-card:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        border-color: #e5e7eb !important;
    }
    
    .project-card:hover .aspect-video img {
        transform: none !important;
    }
    
    .project-card:hover h3 {
        color: #111827 !important;
    }
    
    .project-card:hover .absolute {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Add touch feedback */
    .project-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media screen and (max-width: 1024px) {
    /* Better focus indicators */
    .project-card:focus-within {
        outline: 2px solid #2296A8 !important;
        outline-offset: 2px !important;
    }
    
    .project-card a:focus {
        outline: none !important;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .project-card {
            border: 2px solid #000 !important;
        }
        
        .project-card .bg-white\/90 {
            background: #fff !important;
            border: 1px solid #000 !important;
        }
        
        .project-card .text-primary {
            color: #000 !important;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .project-card,
        .project-card * {
            transition: none !important;
            animation: none !important;
        }
    }
}

/* ===== CLEAN MENU BUTTON ENHANCEMENTS ===== */
@media screen and (max-width: 1024px) {
    
    /* Focus state for accessibility */
    #menuButton:focus {
        outline: none !important;
        transform: scale(1.05) !important;
    }
    
    #menuButton:focus .menu-icon span {
        background: #2296A8 !important;
        box-shadow: 0 0 0 1px rgba(34, 150, 168, 0.3) !important;
    }
    
    /* Enhanced active state */
    .mobile-nav.active ~ nav #menuButton {
        transform: scale(1) !important;
    }
    
    /* Smooth icon transitions */
    .menu-icon span {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Clean hover effect */
    #menuButton:hover .menu-icon span {
        box-shadow: 0 2px 4px rgba(34, 150, 168, 0.2) !important;
    }
    
    /* Breathing animation for clean icon */
    .menu-icon {
        animation: breathe 4s ease-in-out infinite !important;
    }
    
    @keyframes breathe {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
    
    /* Stop breathing when menu is active */
    .mobile-nav.active ~ nav #menuButton .menu-icon {
        animation: none !important;
    }
    
    /* Click feedback */
    #menuButton:active .menu-icon {
        animation: clickPulse 0.2s ease-out !important;
    }
    
    @keyframes clickPulse {
        0% { transform: scale(1); }
        50% { transform: scale(0.95); }
        100% { transform: scale(1); }
    }
}  
  
    /* Privacy page footer mobile styles */
    .section-dark footer {
        padding: 40px 16px !important;
        text-align: center !important;
    }
    
    .section-dark footer .grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .section-dark footer .logo-footer {
        height: 40px !important;
        margin: 0 auto 16px auto !important;
    }
    
    .section-dark footer .flex.flex-wrap {
        justify-content: center !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .section-dark footer .flex.flex-wrap a {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }
    
    .section-dark footer .flex.flex-wrap svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .section-dark footer h4 {
        font-size: 16px !important;
        margin-bottom: 16px !important;
        font-weight: 600 !important;
    }
    
    .section-dark footer ul {
        gap: 12px !important;
    }
    
    .section-dark footer ul li a,
    .section-dark footer ul li {
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 8px 0 !important;
        display: block !important;
    }
    
    @media screen and (max-width: 640px) {
        .section-dark footer .grid {
            grid-template-columns: 1fr !important;
            gap: 20px !important;
        }
        
        .section-dark footer .flex.flex-wrap {
            max-width: 280px !important;
            margin: 20px auto !important;
        }
    }