:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --whatsapp-green: #128C7E;
    --whatsapp-light: #dcf8c6;
    --messenger-blue: #0084ff;
    --messenger-light: #e5f2ff;
    --animation-duration: 0.5s;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; /* ADDED: Horizontal scroll prevention */
}

html, body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0f9ff, #e6f4ff);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden; /* ADDED: Prevent horizontal scroll */
    width: 100%;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* ADDED: Extra protection */
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow-x: hidden; /* ADDED: Container level protection */
}

/* ====================== */
/* HEADER & MOBILE MENU Z-INDEX FIX */
/* ====================== */

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; /* High z-index for header */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow-x: hidden;
    left: 0;
    right: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 52px;
    width: auto;
    display: block;
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
    max-width: 100%;
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    font-size: 15px;
}

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

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

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

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    position: relative;
    z-index: 1001; /* Higher than header */
    right: 0;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark);
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10002; /* Higher than mobile menu */
    transition: var(--transition-smooth);
}

.close-mobile-menu:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* Below mobile menu */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ====================== */
/* HERO SECTION - Z-INDEX FIXED */
/* ====================== */

.hero {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--premium-gradient);
    width: 100%;
    left: 0;
    right: 0;
    z-index: 1; /* Lower than header */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    max-width: 100vw;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite;
    max-width: 100vw;
}

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

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: textGlow 3s infinite alternate;
    word-wrap: break-word;
}

.hero-subheading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-subheading span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-subheading i {
    color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.btn-primary {
    background: var(--premium-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: scale(1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-premium {
    background: var(--premium-gradient);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    max-width: 100%;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.hero-animation {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 100%;
}

.tech-animation {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tech-word {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0;
    animation: rotateWords 16s infinite;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.tech-word:nth-child(1) { animation-delay: 0s; }
.tech-word:nth-child(2) { animation-delay: 2s; }
.tech-word:nth-child(3) { animation-delay: 4s; }
.tech-word:nth-child(4) { animation-delay: 6s; }
.tech-word:nth-child(5) { animation-delay: 8s; }
.tech-word:nth-child(6) { animation-delay: 10s; }
.tech-word:nth-child(7) { animation-delay: 12s; }
.tech-word:nth-child(8) { animation-delay: 14s; }

/* Image Slider */
.slider-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1; /* Lower than header */
}

.slider-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--premium-gradient);
    opacity: 0.1;
    max-width: 100vw;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    word-wrap: break-word;
}

.section-title .subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--premium-gradient);
    border-radius: 2px;
}

.swiper {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 100%;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    position: relative;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1; /* Lower than header */
}

.services::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--premium-gradient);
    opacity: 0.1;
    z-index: 0;
    max-width: 100vw;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    width: 100%;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--premium-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--premium-gradient);
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.service-card p {
    position: relative;
    z-index: 1;
}

/* Why Choose Us */
.why-us {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1; /* Lower than header */
}

.why-us::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--premium-gradient);
    opacity: 0.1;
    z-index: 0;
    max-width: 100vw;
}

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.why-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    min-height: 100px;
    max-width: 100%;
}

.point:hover {
    transform: translateX(10px);
}

.point-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    transition: var(--transition-smooth);
}

.point:hover .point-icon {
    background: var(--premium-gradient);
    color: white;
    transform: scale(1.1);
}

.point-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.why-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    max-width: 100%;
}

.why-image:hover {
    transform: scale(1.03);
}

.why-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
    max-width: 100%;
}

.why-image:hover img {
    transform: scale(1.05);
}

/* Consultation Section */
.consultation {
    padding: 120px 0;
    background: var(--premium-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
    z-index: 1; /* Lower than header */
}

.consultation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.consultation h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.consultation p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.contact-option {
    background: white;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    border: 2px solid rgba(102, 126, 234, 0.1);
    max-width: 100%;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-option i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-option.email i { color: var(--primary); }
.contact-option.whatsapp i { color: #25D366; }
.contact-option.phone i { color: var(--secondary); }

.contact-option h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-option p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ====================== */
/* CONTACT BUTTON FIXES - PROPER SIZE REDUCTION */
/* ====================== */

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    min-height: 36px !important;
    font-size: 0.8rem !important;
    max-width: 100%;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    margin: 0 auto;
}

.btn-premium.contact-btn {
    background: var(--premium-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-premium.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-alternative {
    background: rgba(255,255,255,0.8);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-alternative h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.simple-form {
    text-align: left;
    width: 100%;
}

.simple-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.simple-form-group {
    margin-bottom: 15px;
    width: 100%;
}

.simple-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark);
}

.simple-form-group input, 
.simple-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.simple-form-group input:focus, 
.simple-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.simple-form-full {
    grid-column: span 2;
}

.simple-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.simple-success {
    background: rgba(46, 204, 113, 0.15);
    color: #166534;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.simple-error {
    background: rgba(231, 76, 60, 0.15);
    color: #b91c1c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Achievements */
.achievements {
    padding: 100px 0;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1; /* Lower than header */
}

.achievements::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--premium-gradient);
    opacity: 0.1;
    max-width: 100vw;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.stat {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    max-width: 100%;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
    transition: var(--transition-smooth);
}

.stat:hover .stat-icon {
    background: var(--premium-gradient);
    color: white;
    transform: rotate(20deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

/* Brand Statement */
.brand-statement {
    padding: 80px 0;
    text-align: center;
    background: white;
    position: relative;
    width: 100%;
    z-index: 1; /* Lower than header */
}

.brand-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    z-index: 0;
}

.brand-statement p {
    font-size: 1.8rem;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.brand-statement span {
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 80px 0 20px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
    z-index: 1; /* Lower than header */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.02)" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--premium-gradient);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--accent);
    font-size: 20px;
    margin-top: 5px;
}

.social-box {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
}

.social-box h4 {
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* CTA Button Styles */
.cta-container {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

/* Client Logos Section */
.client-logos {
    padding: 80px 0;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    width: 100%;
    overflow: hidden;
    z-index: 1; /* Lower than header */
}

.logos-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: center;
    width: 100%;
}

.client-logo {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* Facebook Button */
.facebook-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #1877F2;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    min-height: 44px;
    max-width: 100%;
}

.facebook-btn:hover {
    background: #166FE5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

/* Form States */
.form-success {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.form-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: var(--dark);
    width: 100%;
}

.form-error {
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

/* Animations */
@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
}

@keyframes rotateWords {
    0% { opacity: 0; transform: translateY(50px); }
    5% { opacity: 1; transform: translateY(0); }
    15% { opacity: 1; transform: translateY(0); }
    20% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 0; transform: translateY(-50px); }
}

/* ====================== */
/* SUBSCRIBE BUTTON FIXES */
/* ====================== */

.newsletter-form {
    position: relative;
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    color: #000;
    background: rgba(255, 255, 255, 0.1);
    font-size: 16px;
    box-sizing: border-box;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.newsletter-btn {
    width: 100%;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.newsletter-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newsletter-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-success {
    background: rgba(46, 204, 113, 0.15);
    color: #166534;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.newsletter-error {
    background: rgba(231, 76, 60, 0.15);
    color: #b91c1c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.newsletter-message i {
    margin-right: 8px;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Typing Indicator */
.typing-indicator {
    background: white !important;
    padding: 15px !important;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Form Validation Styles */
.field-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Image optimization */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* Critical CSS for above-the-fold content */
.hero, header {
    will-change: transform;
}

/* Particles.js container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* Loading animation for form submissions */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-loading {
    animation: pulse 2s infinite;
}

/* ====================== */
/* RESPONSIVE MEDIA QUERIES - MOBILE MENU FIXES */
/* ====================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* MOBILE MENU FIXES - Z-INDEX HIERARCHY CORRECTED */
    .mobile-menu {
        display: flex !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001; /* Higher than header */
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--dark);
        cursor: pointer;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        z-index: 10002; /* Higher than mobile menu button */
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
        font-weight: 500;
        color: var(--dark);
        transition: var(--transition-smooth);
    }
    
    .nav-links a:hover {
        color: var(--primary);
        background: rgba(102, 126, 234, 0.05);
        padding-left: 25px;
    }
    
    /* Mobile Menu Close Button */
    .mobile-menu-close {
        display: block;
        position: absolute !important;
        top: 15px;
        right: 15px;
        border-bottom: none !important;
        width: auto !important;
    }
    
    .close-mobile-menu {
        background: rgba(102, 126, 234, 0.1);
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 20px;
        cursor: pointer;
        transition: var(--transition-smooth);
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10003; /* Highest - always on top */
    }
    
    .close-mobile-menu:hover {
        background: var(--premium-gradient);
        color: white;
        transform: rotate(90deg);
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10001; /* Between menu and content */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        margin: 0 10px;
    }
    
    body {
        overflow-x: hidden;
    }
    
    html {
        overflow-x: hidden;
    }
    
    .why-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .simple-form-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-form-full {
        grid-column: span 1;
    }
    
    .logos-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-subheading {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .newsletter-btn .btn-text {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .contact-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        min-height: 32px !important;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .point,
    .stat {
        padding: 20px 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .logos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .client-logo {
        height: 60px;
    }
    
    .tech-word {
        font-size: 1.8rem;
    }
    
    .nav-links {
        width: 90%;
        padding: 70px 20px 20px;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .newsletter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .contact-btn {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
        min-height: 30px !important;
    }
}

/* Hidden form fields for Netlify */
.hidden {
    display: none;
}