
 :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #ec4899;
            --accent: #06b6d4;
            --dark: #0f172a;
            --darker: #020617;
            --light: #f8fafc;
            --gray: #64748b;
            --gray-light: #94a3b8;
            --success: #10b981;
            --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
            --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
            --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --border-radius: 16px;
            --border-radius-lg: 24px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--darker);
            color: var(--light);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Animated Background */
        .bg-animated {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: var(--darker);
            overflow: hidden;
        }

        .bg-animated::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
            animation: bgShift 20s ease-in-out infinite;
        }

        @keyframes bgShift {
            0%, 100% { transform: scale(1) rotate(0deg); }
            50% { transform: scale(1.1) rotate(2deg); }
        }

        /* Floating particles */
        .particle {
            position: absolute;
            background: var(--gradient-primary);
            border-radius: 50%;
            pointer-events: none;
            opacity: 0.1;
            animation: float 15s infinite linear;
        }

        @keyframes float {
            0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10% { opacity: 0.1; }
            90% { opacity: 0.1; }
            100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .container-sm {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(99, 102, 241, 0.1);
            transition: all 0.3s ease;
        }

        .navbar.scrolled {
            background: rgba(15, 23, 42, 0.95);
            box-shadow: var(--shadow-lg);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Updated logo styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Logo image styling */
.logo img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

/* Mobile responsiveness for logo */
@media (max-width: 768px) {
    .logo img {
        height: 35px;
        max-width: 120px;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 32px;
        max-width: 100px;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
}


        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--gray-light);
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--light);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .cta-btn {
            background: var(--gradient-primary);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .mobile-menu {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }

        .mobile-menu span {
            width: 25px;
            height: 3px;
            background: var(--light);
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: 80px;
            position: relative;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .hero-text h1 {
            font-size: 3.5rem;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: slideInLeft 1s ease-out;
        }

        .hero-text .subtitle {
            font-size: 1.25rem;
            color: var(--gray-light);
            margin-bottom: 2rem;
            font-family: 'JetBrains Mono', monospace;
            animation: slideInLeft 1s ease-out 0.2s both;
        }

        .hero-text .description {
            font-size: 1.125rem;
            color: var(--gray);
            margin-bottom: 2.5rem;
            animation: slideInLeft 1s ease-out 0.4s both;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            animation: slideInLeft 1s ease-out 0.6s both;
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: white;
            padding: 1rem 2rem;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-secondary {
            background: transparent;
            color: var(--light);
            padding: 1rem 2rem;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid rgba(99, 102, 241, 0.3);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.1);
        }

        .hero-visual {
            animation: slideInRight 1s ease-out 0.3s both;
        }

        .hero-card {
            background: rgba(99, 102, 241, 0.05);
            border: 1px solid rgba(99, 102, 241, 0.1);
            border-radius: var(--border-radius-lg);
            padding: 2rem;
            backdrop-filter: blur(10px);
            animation: float-up 6s ease-in-out infinite;
        }

        @keyframes float-up {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* Typing Animation */
        .typing-text {
            overflow: hidden;
            border-right: 3px solid var(--primary);
            white-space: nowrap;
            animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
        }

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: var(--primary) }
        }

        /* Services Section */
        .services {
            padding: 8rem 0;
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: var(--gradient-secondary);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .section-subtitle {
            font-size: 1.125rem;
            color: var(--gray);
            max-width: 600px;
            margin: 0 auto;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .service-card {
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid rgba(99, 102, 241, 0.1);
            border-radius: var(--border-radius-lg);
            padding: 2.5rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .service-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary);
            box-shadow: var(--shadow);
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-primary);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
        }

        .service-card:hover .service-icon {
            transform: rotate(10deg) scale(1.1);
        }

        .service-card h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--light);
        }

        .service-card p {
            color: var(--gray);
            margin-bottom: 1.5rem;
        }

        .service-features {
            list-style: none;
        }

        .service-features li {
            color: var(--gray-light);
            margin-bottom: 0.5rem;
            position: relative;
            padding-left: 1.5rem;
        }

        .service-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
        }

        /* Portfolio Section */
        .portfolio {
            padding: 8rem 0;
            background: rgba(15, 23, 42, 0.3);
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

    .portfolio-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.portfolio-svg-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}



/* Enhanced hover effects */
.portfolio-item:hover .portfolio-icon {
    transform: rotate(360deg) scale(1.1);
    background: var(--gradient-primary);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.portfolio-item:hover .portfolio-svg-icon {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

/* Glass morphism effect */
.portfolio-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-icon::before {
    background: rgba(255, 255, 255, 0.2);
}

        .cta-section {
            text-align: center;
            background: var(--gradient-dark);
            border-radius: var(--border-radius-lg);
            padding: 4rem 2rem;
            margin-top: 4rem;
        }

        .cta-section h3 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--light);
        }

        .cta-section p {
            color: var(--gray);
            margin-bottom: 2rem;
            font-size: 1.125rem;
        }

        .btn-cta-large {
            background: var(--gradient-primary);
            color: white;
            padding: 1.25rem 3rem;
            border-radius: var(--border-radius-lg);
            text-decoration: none;
            font-weight: 700;
            font-size: 1.125rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 1rem;
        }

        .btn-cta-large:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        /* Footer */
        .footer {
            background: var(--darker);
            padding: 4rem 0 2rem;
            border-top: 1px solid rgba(99, 102, 241, 0.1);
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-brand h4 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .footer-brand p {
            color: var(--gray);
            margin-bottom: 1.5rem;
        }

        .footer-section h5 {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--light);
        }

        .footer-section a {
            color: var(--gray);
            text-decoration: none;
            transition: color 0.3s ease;
            display: block;
            margin-bottom: 0.5rem;
        }

        .footer-section a:hover {
            color: var(--primary);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(99, 102, 241, 0.1);
            color: var(--gray);
        }

        /* Scroll animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.6s ease forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu {
                display: flex;
            }

            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 2rem;
            }

            .hero-text h1 {
                font-size: 2.5rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }

            .portfolio-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .container, .container-sm {
                padding: 0 1rem;
            }
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--darker);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--gradient-primary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }
/*Hero Section for Robot Image */
.hero-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    animation: float-up 6s ease-in-out infinite;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.robot-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-image {
    max-width: 280px;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 10px 25px rgba(99, 102, 241, 0.3));
}

.brand-tech-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-light);
    margin: 0;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Responsive Fixes for All Sections */

/* Global overflow prevention */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* Container fixes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Services Section Fixes */
.services {
    padding: 6rem 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.service-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* Portfolio Section Fixes */
.portfolio {
    padding: 6rem 0;
    background: rgba(15, 23, 42, 0.3);
    overflow-x: hidden;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 100%;
}

.portfolio-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

/* CTA Section Fixes */
.cta-section {
    text-align: center;
    background: var(--gradient-dark);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
}

/* Footer Fixes */
.footer {
    background: var(--darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    overflow-x: hidden;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .container, .container-sm {
        padding: 0 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
    .container, .container-sm {
        padding: 0 1rem;
        width: 100%;
    }
    
    /* Services Mobile */
    .services {
        padding: 4rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Portfolio Mobile */
    .portfolio {
        padding: 4rem 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .portfolio-item {
        padding: 1.5rem;
        width: 100%;
    }
    
    .portfolio-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 2.5rem 1rem;
        margin: 2rem 0 0 0;
        width: 100%;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-cta-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer-section h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .portfolio-icon {
        width: 50px;
        height: 50px;
    }
    
    .portfolio-svg-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .portfolio-icon {
        width: 45px;
        height: 45px;
    }
    
    .portfolio-svg-icon {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container, .container-sm {
        padding: 0 0.75rem;
    }
    
    .services {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p, .service-features li {
        font-size: 0.9rem;
    }
    
    .section-header {
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .portfolio {
        padding: 3rem 0;
    }
    
    .portfolio-item {
        padding: 1.25rem;
    }
    
    .portfolio-item h4 {
        font-size: 1rem;
    }
    
    .portfolio-item p {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 2rem 0.75rem;
        margin: 1.5rem 0.5rem 0;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
    }
    
    .btn-cta-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        max-width: 280px;
    }
    
    .footer-brand h4 {
        font-size: 1.2rem;
    }
    
    .footer-brand p, .footer-section a {
        font-size: 0.85rem;
    }
}

/* Mobile Hero Section Overrides */
@media (max-width: 768px) {
    /* Hero Container */
    .hero {
        min-height: 85vh !important;
        padding-top: 100px !important;
        padding-bottom: 3rem !important;
    }
    
    /* Hero Content Grid */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Hero Text Section */
    .hero-text {
        order: 1 !important;
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .hero-text h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .hero-text .subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .hero-text .description {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        line-height: 1.6 !important;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 90% !important;
        max-width: 280px !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    
    /* Hero Visual Section */
    .hero-visual {
        order: 2 !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .hero-card {
        width: 100% !important;
        max-width: 320px !important;
        padding: 1.5rem !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .robot-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
        position: relative !important;
    }
    
    .robot-image {
        width: 140px !important;
        height: auto !important;
        max-width: 140px !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .brand-tech-text {
        font-size: 0.95rem !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

/* Small Mobile Fixes */
@media (max-width: 480px) {
    .hero {
        min-height: 80vh !important;
        padding-top: 90px !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-content {
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .hero-text {
        max-width: 95% !important;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.15 !important;
    }
    
    .hero-text .subtitle {
        font-size: 0.9rem !important;
    }
    
    .hero-text .description {
        font-size: 0.9rem !important;
        max-width: 100% !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 95% !important;
        max-width: 260px !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero-card {
        max-width: 280px !important;
        padding: 1.25rem !important;
        margin: 0 0.5rem !important;
    }
    
    .robot-image {
        width: 120px !important;
        max-width: 120px !important;
    }
    
    .brand-tech-text {
        font-size: 0.85rem !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-text h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-text .subtitle {
        font-size: 0.85rem !important;
    }
    
    .hero-text .description {
        font-size: 0.85rem !important;
    }
    
    .hero-card {
        max-width: 260px !important;
        padding: 1rem !important;
        margin: 0 0.25rem !important;
    }
    
    .robot-image {
        width: 100px !important;
        max-width: 100px !important;
    }
    
    .brand-tech-text {
        font-size: 0.8rem !important;
    }
}

/* Fix Services Section Spacing */
@media (max-width: 768px) {
    .services {
        padding: 3rem 0 !important;
        margin-top: 0 !important;
    }
    
    .section-header {
        margin-bottom: 2rem !important;
    }
}

/* Remove conflicting styles from desktop */
@media (max-width: 768px) {
    /* Override any grid layout on mobile */
    .hero-content {
        display: flex !important;
        grid-template-columns: unset !important;
    }
    
    /* Ensure no floating animation conflicts */
    .hero-card {
        animation: none !important;
    }
    
    /* Remove any absolute positioning */
    .robot-container::before {
        display: none !important;
    }
}


/* iPad Portrait View (768px width, portrait orientation) */
@media (max-width: 768px) and (min-height: 900px) {
    .hero {
        min-height: 90vh !important;
        padding-top: 120px !important;
        padding-bottom: 4rem !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .hero-content {
        gap: 3rem !important;
        padding: 0 2rem !important;
    }
    
    .hero-text h1 {
        font-size: 2.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-text .description {
        font-size: 1rem !important;
        margin-bottom: 2.5rem !important;
        line-height: 1.6 !important;
    }
    
    .hero-visual {
        max-width: 450px !important;
    }
    
    .hero-card {
        max-width: 400px !important;
        padding: 2rem !important;
    }
    
    .robot-image {
        width: 180px !important;
        max-width: 180px !important;
    }
    
    .brand-tech-text {
        font-size: 1rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        max-width: 320px !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}

/* iPad Portrait - using device-width */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {
    
    .hero {
        min-height: 85vh !important;
        padding-top: 100px !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-content {
        gap: 2.5rem !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
    
    .hero-text {
        max-width: 85% !important;
    }
    
    .hero-text h1 {
        font-size: 2.6rem !important;
    }
    
    .hero-visual {
        max-width: 400px !important;
    }
    
    .hero-card {
        max-width: 350px !important;
        padding: 1.8rem !important;
    }
    
    .robot-image {
        width: 160px !important;
        max-width: 160px !important;
    }
}

/* Specific fix for viewport height issues on tablets */
@media (max-width: 768px) and (max-height: 1200px) and (min-height: 800px) {
    .hero {
        min-height: 75vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .hero-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem !important;
    }
    
    .hero-text {
        order: 1 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-visual {
        order: 2 !important;
        margin-top: 0 !important;
    }
}

/* Fallback for all tablets in portrait */
@media (max-width: 820px) and (orientation: portrait) {
    .hero {
        padding-top: 90px !important;
        min-height: 80vh !important;
    }
    
    .robot-container {
        margin-bottom: 1rem !important;
    }
    
    .robot-image {
        width: 140px !important;
        max-width: 140px !important;
    }
    
    .hero-card {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
}


/* Specific fix for iPad Air (820x1180) and similar tablets */
@media (max-width: 820px) and (min-width: 768px) {
    .hero {
        min-height: 70vh !important;
        padding-top: 80px !important;
        padding-bottom: 2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
    }
    
    .hero-text {
        order: 1 !important;
        width: 100% !important;
        max-width: 85% !important;
        margin: 0 auto !important;
    }
    
    .hero-text h1 {
        font-size: 2.4rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-text .subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-text .description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 90% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .hero-visual {
        order: 2 !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .hero-card {
        width: 100% !important;
        max-width: 280px !important;
        padding: 1.2rem !important;
        margin: 0 auto !important;
    }
    
    .robot-container {
        margin-bottom: 1rem !important;
    }
    
    .robot-image {
        width: 100px !important;
        max-width: 100px !important;
        height: auto !important;
    }
    
    .brand-tech-text {
        font-size: 0.85rem !important;
        margin: 0 !important;
    }
}

/* Even more compact for iPad Air specifically */
@media (width: 820px) and (height: 1180px) {
    .hero {
        min-height: 65vh !important;
        padding-top: 70px !important;
        padding-bottom: 1.5rem !important;
    }
    
    .hero-content {
        gap: 1.2rem !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-text h1 {
        font-size: 2.2rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .hero-text .subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-text .description {
        font-size: 0.9rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hero-buttons {
        gap: 0.6rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.3rem !important;
        font-size: 0.9rem !important;
        max-width: 260px !important;
    }
    
    .hero-card {
        max-width: 260px !important;
        padding: 1rem !important;
    }
    
    .robot-image {
        width: 85px !important;
        max-width: 85px !important;
    }
    
    .brand-tech-text {
        font-size: 0.8rem !important;
    }
}

/* Alternative approach - targeting iPad Air range */
@media (min-width: 810px) and (max-width: 830px) and (orientation: portrait) {
    .hero {
        min-height: 65vh !important;
        padding-top: 75px !important;
    }
    
    .hero-content {
        gap: 1.3rem !important;
    }
    
    .hero-visual {
        max-width: 280px !important;
    }
    
    .robot-image {
        width: 90px !important;
        max-width: 90px !important;
    }
}

/* Ensure services section follows immediately */
@media (max-width: 820px) and (min-width: 768px) {
    .services {
        padding-top: 2rem !important;
        margin-top: 0 !important;
    }
}


/* Footer Logo Styles */
.footer-logo {
    margin-bottom: 1rem;
    text-align: left;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

/* WhatsApp Button with Green Gradient */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transition: left 0.3s ease;
    z-index: 1;
}

.btn-whatsapp:hover::before {
    left: 0;
}

.btn-whatsapp i,
.btn-whatsapp span {
    position: relative;
    z-index: 2;
}

.btn-whatsapp:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4) !important;
}

.btn-whatsapp i {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* Mobile responsive for footer logo */
@media (max-width: 768px) {
    .footer-logo {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo-img {
        height: 40px;
        max-width: 150px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .btn-whatsapp {
        font-size: 1rem !important;
        padding: 1rem 2rem !important;
    }
}

@media (max-width: 480px) {
    .footer-logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .btn-whatsapp {
        font-size: 0.9rem !important;
        padding: 0.875rem 1.5rem !important;
    }
    
    .btn-whatsapp i {
        font-size: 1.1em;
    }
}

/* Additional WhatsApp hover effects */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 104, 51, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp:hover {
    animation: whatsapp-pulse 1s infinite;
}

/* Ensure WhatsApp icon is properly loaded */
.btn-whatsapp .fab.fa-whatsapp {
    font-weight: 400;
    font-family: "Font Awesome 5 Brands";
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        display: flex !important; /* Override the display: none */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.mobile-active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    .nav-links.mobile-active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: calc(0.1s * var(--i));
    }
    
    .nav-links.mobile-active li:nth-child(1) { 
        transition-delay: 0.1s; 
    }
    .nav-links.mobile-active li:nth-child(2) { 
        transition-delay: 0.2s; 
    }
    .nav-links.mobile-active li:nth-child(3) { 
        transition-delay: 0.3s; 
    }
    .nav-links.mobile-active li:nth-child(4) { 
        transition-delay: 0.4s; 
    }
    .nav-links.mobile-active li:nth-child(5) { 
        transition-delay: 0.5s; 
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--light);
        text-align: center;
        padding: 1rem;
        width: 100%;
        border-radius: var(--border-radius);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.1);
        transform: scale(1.05);
    }
    
    .cta-btn {
        background: var(--gradient-primary) !important;
        color: white !important;
        padding: 1rem 2rem !important;
        border-radius: var(--border-radius) !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
    }
    
    /* Hamburger Animation */
    .mobile-menu {
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--primary);
    }
    
    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: var(--primary);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .mobile-menu {
        display: flex;
    }
}
