/* styles.css - Complete Enhanced Version with Fixes */

/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Global Styles */
:root {
    --primary: #2e7d32;        /* Green 800 - Professional dark green */
    --primary-light: #4caf50;  /* Green 500 - Medium green */
    --primary-lighter: #81c784; /* Green 300 - Light green */
    --accent: #1976d2;         /* Blue 700 - Professional blue accent */
    --success: #388e3c;        /* Green 700 */
    --warning: #f57c00;        /* Orange 700 */
    --danger: #d32f2f;         /* Red 700 */
    
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f1f8e9;   /* Green 50 */
    --bg-tertiary: #e8f5e9;    /* Green 100 */
    --text-primary: #1b5e20;   /* Green 900 - Dark text */
    --text-secondary: #2e7d32; /* Green 800 - Secondary text */
    --text-muted: #616161;     /* Grey 700 - Muted text */
    --border: #c8e6c9;         /* Green 100 */
    --shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    --shadow-hover: 0 8px 25px rgba(46, 125, 50, 0.25);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    
    /* WhatsApp color */
    --whatsapp-color: #25D366;
    
    /* Gradients */
    --gradient-primary: linear-gradient(0deg, var(--primary), var(--primary));
    --gradient-secondary: linear-gradient(0deg, var(--primary-light), var(--primary-light));
    --gradient-accent: linear-gradient(0deg, var(--accent), var(--accent));
    --gradient-card: linear-gradient(0deg, #ffffff, #ffffff);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* Dark theme */
[data-theme="dark"] {
    --primary: #4caf50;        /* Green 500 - Brighter for dark mode */
    --primary-light: #81c784;  /* Green 300 */
    --primary-lighter: #a5d6a7; /* Green 200 */
    --accent: #64b5f6;         /* Blue 300 - Brighter for dark mode */
    --success: #66bb6a;        /* Green 400 */
    --warning: #ffb74d;        /* Orange 300 */
    --danger: #ef5350;         /* Red 400 */
    
    --bg-primary: #121212;     /* Material dark background */
    --bg-secondary: #1e1e1e;   /* Slightly lighter */
    --bg-tertiary: #262626;    /* Even lighter */
    --text-primary: #e8f5e9;   /* Light green tint */
    --text-secondary: #c8e6c9; /* Green 100 */
    --text-muted: #9e9e9e;     /* Grey 500 */
    --border: #2e7d32;         /* Green 800 */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(18, 18, 18, 0.95);
    --card-bg: #1e1e1e;
    --input-bg: #2d2d2d;
    
    --gradient-primary: linear-gradient(0deg, var(--primary), var(--primary));
    --gradient-secondary: linear-gradient(0deg, var(--primary-light), var(--primary-light));
    --gradient-accent: linear-gradient(0deg, var(--accent), var(--accent));
    --gradient-card: linear-gradient(0deg, var(--card-bg), var(--card-bg));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
    font-weight: 400;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 5vw, 3.75rem); /* ~48–60px */
    font-weight: 700; /* Bold */
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem); /* ~32–40px */
    font-weight: 600; /* SemiBold */
}

h3 {
    font-size: clamp(1.375rem, 2.5vw, 1.625rem); /* ~22–26px */
    font-weight: 500; /* Medium */
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 500; /* Medium */
}

p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.text-large {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
}

.text-small {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.6;
}

/* Improved spacing utilities */
.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Preloader States */
body.menu-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(129, 199, 132, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(46, 125, 50, 0.04) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 20px) rotate(270deg); }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-lighter);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

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

/* Fixed Logo Styling */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.logo a.brand {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
}

.logo a.brand:hover {
    color: var(--primary) !important;
    transform: scale(1.05);
}

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

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

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

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

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

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background: var(--bg-tertiary);
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
}

.theme-toggle::before {
    content: '🌙';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transform: translateX(0);
}

[data-theme="dark"] .theme-toggle::before {
    content: '☀️';
    transform: translateX(22px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: radial-gradient(ellipse at center, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(46, 125, 50, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(156, 39, 176, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    -webkit-animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        -webkit-transform: translate(0, 0) rotate(0deg);
    }
    33% { 
        transform: translate(30px, -30px) rotate(120deg);
        -webkit-transform: translate(30px, -30px) rotate(120deg);
    }
    66% { 
        transform: translate(-20px, 20px) rotate(240deg);
        -webkit-transform: translate(-20px, 20px) rotate(240deg);
    }
}

@-webkit-keyframes backgroundFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        -webkit-transform: translate(0, 0) rotate(0deg);
    }
    33% { 
        transform: translate(30px, -30px) rotate(120deg);
        -webkit-transform: translate(30px, -30px) rotate(120deg);
    }
    66% { 
        transform: translate(-20px, 20px) rotate(240deg);
        -webkit-transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero h1 {
    font-size: clamp(2.75rem, 5vw, 4.75rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 0.2px;
    position: relative;
}

.hero .highlight {
    color: var(--primary);
    position: relative;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 5px rgba(46, 125, 50, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(46, 125, 50, 0.6)); }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 520px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
    color: #fff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.28);
}

/* Request Quote Button */
.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 6px 18px rgba(25, 118, 210, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(25, 118, 210, 0.3);
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(46, 125, 50, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    animation: progressBar 3s ease-in-out infinite;
}

@keyframes progressBar {
    0%, 100% { width: 0%; }
    50% { width: 100%; }
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 340deg, rgba(46, 125, 50, 0.1) 360deg);
    animation: cardGlow 8s linear infinite;
    z-index: -1;
}

@keyframes cardGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* October Promotion Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius-lg);
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    max-width: 1200px;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 1rem;
}

.promo-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

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

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

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

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

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    position: relative;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
}

.service-card:hover .service-title::after {
    width: 50px;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.service-link:hover {
    gap: 1rem;
    color: var(--primary-light);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.about-text {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--success);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 25px;
    transition: var(--transition);
}

.project-link:hover {
    background: white;
    color: var(--text-primary);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-category {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

/* Single-column variant for Contact grid when form is removed */
.contact-grid.single {
    grid-template-columns: 1fr;
}

/* Contact columns: two equal columns on desktop, stacked on mobile */
.contact-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-box {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.contact-box-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.contact-global-row {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile refinements for Contact section */
@media (max-width: 480px) {
    .contact-item {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .contact-item i {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .contact-box-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .contact-columns {
        gap: 0.75rem;
    }
    .contact-item p,
    .contact-item .contact-value {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 360px) {
    .contact-item {
        gap: 0.5rem;
    }
    .contact-item i {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.form-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.form-submit .loading-text {
    display: none;
}

.form-submit.loading .submit-text {
    display: none;
}

.form-submit.loading .loading-text {
    display: inline;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Form Validation Styles */
.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Button Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    flex: 1;
    margin-right: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-close:hover {
    background: var(--bg-secondary);
    color: var(--danger);
}

.notification-success {
    border-left-color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification-info {
    border-left-color: var(--accent);
}

/* Popup Form Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    overflow-y: auto;
    padding: 2rem;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary);
}

.popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.popup-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.popup-form .form-group {
    margin-bottom: 1.5rem;
}

.popup-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.popup-form input,
.popup-form select,
.popup-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-form input:focus,
.popup-form select:focus,
.popup-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.popup-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* Quote Modal */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quote-modal.active {
    display: flex;
}

.quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.quote-modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quote-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.quote-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.quote-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quote-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--danger);
}

.quote-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.budget-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Service Modal Styles */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none !important;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
}

.service-modal.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.service-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    z-index: 1002;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.service-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.service-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.service-modal-close:hover {
    color: var(--danger);
}

.service-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.service-modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.service-modal-body h4 {
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.service-modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.service-modal-body li {
    margin-bottom: 0.5rem;
}

/* WhatsApp Chatbot */
.whatsapp-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--whatsapp-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}

.chatbot-icon:hover {
    transform: scale(1.1);
}

.chatbot-icon i {
    font-size: 32px;
    color: white;
}

.chatbot-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.chatbot-popup.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--whatsapp-color);
    color: white;
    position: relative;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid white;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar::before {
    content: '👤';
    font-size: 20px;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chatbot-close {
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chatbot-close i {
    font-size: 16px;
}

.chatbot-body {
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #e5ded8, #ddd6c9);
}

[data-theme="dark"] .chatbot-body {
    background: var(--bg-tertiary);
}

.chatbot-message {
    margin-bottom: 10px;
    max-width: 80%;
}

.chatbot-message.received {
    background-color: white;
    padding: 10px 15px;
    border-radius: 0 8px 8px 8px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .chatbot-message.received {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.chatbot-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    display: block;
    font-size: 11px;
    color: #8a8a8a;
    margin-top: 5px;
    text-align: right;
}

[data-theme="dark"] .message-time {
    color: var(--text-muted);
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
}

.whatsapp-btn {
    display: block;
    background-color: var(--whatsapp-color);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1da851;
    transform: translateY(-1px);
}

.whatsapp-btn i {
    margin-right: 8px;
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info .logo {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background: var(--input-bg);
    color: var(--text-primary);
}

.newsletter-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Enhanced Focus Styles for Accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button, input, textarea, select, a {
    transition: all 0.2s ease;
}

/* Honeypot field */
.honeypot-field {
    position: absolute !important;
    left: -5000px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

/* Animations */
@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); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation for stats */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stat-number:not([data-counted]) {
    animation: pulse 2s infinite;
}

/* Enhanced form styles */
.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .hero-buttons,
    .mobile-menu,
    .whatsapp-chatbot {
        display: none !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    /* Disable potentially distracting animations while keeping subtle background effects */
    .hero-buttons .btn:hover,
    .btn:hover,
    .card:hover,
    .service-card:hover,
    .feature-card:hover,
    .loading-spinner,
    .modal {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Keep subtle background animations for visual appeal */
    .hero::before {
        animation: backgroundFloat 20s ease-in-out infinite !important;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
}

/* Enhanced Brands Section - FIXED */
.brands {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.brands .section-container {
    max-width: 1200px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
    width: 100%;
}

.brand-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-weight: 600;
    min-height: 100px;
    width: 100%;
    max-width: 150px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.brand-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.brand-logo {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-badge:hover .brand-logo {
    filter: grayscale(0%);
}

.brand-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Brands marquee: continuous right-to-left scrolling */
.brands .marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.brands .marquee-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    will-change: transform;
    animation: brands-marquee 30s linear infinite;
}

.brands .marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes brands-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .brands .marquee-track { animation: none; }
}

/* Generous section padding for balanced layout */
.services, .brands, .projects, .about, .contact {
    padding: 80px 0;
}

/* Rounded corners and soft hover animations */
.service-card, .project-card, .brand-badge {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .project-card:hover, .brand-badge:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Sticky nav active highlight */
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    position: static; /* avoid pseudo underline positioning artifacts */
}

/* Removed active underline to prevent visual lines extending beyond menus */

/* Professional heading font and branding */
.logo, .section-title, .hero h1 {
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.logo {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    text-shadow: none;
}
.logo .brand {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    color: #1a1a1a;
}
.section-title, .hero h1 {
    font-weight: 800;
    line-height: 1.2;
}

/* Alignment polish */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.services-grid {
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    min-height: 360px;
}
.service-card .service-description {
    flex: 1 1 auto;
}
.service-card .btn {
    margin-top: 0.75rem;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
    padding: 4rem 0;
}
.testimonials .section-container {
    max-width: 1100px;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.testimonial-card .profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.testimonial-card .profile img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card .name {
    font-weight: 600;
}
.testimonial-card .role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Optimized service images */
.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    display: block;
}

/* Alignment fix: ensure equal card heights and tidy spacing */
.services-grid {
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}
.service-card {
    display: flex;
    flex-direction: column;
}
.service-card .service-description {
    flex: 1 1 auto;
}
.service-card .btn {
    margin-top: 0.5rem;
}

/* Brand logos layout overrides */
.brands .brand-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.brands .brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: grayscale(10%);
}

/* Service card images */
.service-card .service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
    margin: 0.5rem 0 0.5rem;
}

/* Modern link styling: neutral color and subtle hover */
.contact-item a,
.footer a,
.footer-links a,
.footer-services a {
    color: inherit;
    text-decoration: none;
}
.contact-item a:hover,
.footer a:hover,
.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.img-fallback {
    display: block;
    width: 100%;
    min-height: 220px;
    border-radius: var(--border-radius);
    background: #f3f4f6;
    color: #6b7280;
    border: 1px dashed #cbd5e1;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact cards: modern, professional layout */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.contact-card {
    background: var(--bg, #ffffff);
    backdrop-filter: saturate(180%) blur(8px);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--border-radius, 12px);
    padding: 1rem 1rem 0.75rem;
    box-shadow: 0 6px 24px rgba(2, 8, 20, 0.06);
}

.contact-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.country-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
}

.contact-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.contact-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px dashed #e5e7eb;
}
.contact-row:first-child {
    border-top: none;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.95rem;
    color: #0f172a;
}
.contact-value a,
a.contact-value {
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
}
.contact-value a:hover,
a.contact-value:hover {
    color: var(--primary, #2563eb);
    border-bottom-color: var(--primary, #2563eb);
}

.contact-global {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--border-radius, 12px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Responsive brands grid */
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .brand-badge {
        min-height: 80px;
        padding: 0.75rem;
        max-width: 130px;
    }
    
    .brand-logo {
        width: 36px !important;
        height: 36px !important;
    }

    /* Mobile dropdown adjustments: render inside off-canvas safely */
    .nav-links .has-dropdown {
        width: 100%;
        align-items: center; /* balance with other items */
        position: relative;
    }

    .nav-links .dropdown-toggle {
        width: 100%;
        justify-content: center; /* center label and caret */
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius);
        background: transparent; /* match other nav items */
    }

    .nav-links .has-dropdown.open .dropdown-toggle {
        background: transparent;
        color: var(--primary);
    }

    .nav-links .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        padding: 0.25rem 0;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
        max-height: 50vh;
        overflow-y: auto;
        pointer-events: auto;
    }

    .nav-links .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu a {
        padding: 0.75rem 1rem;
    }
    .nav-links .dropdown-toggle i.fa-chevron-down {
        transition: transform 0.2s ease;
    }
    .nav-links .has-dropdown.open .dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 4rem;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 600;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-card {
        padding: 2rem;
        margin: 0 1rem;
        background: var(--gradient-card);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow);
    }

    .section-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
        text-align: center;
        background: var(--gradient-card);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1.5rem;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-icon svg {
        width: 40px;
        height: 40px;
        fill: white;
    }

    .service-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .service-description {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        text-align: center;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
        backdrop-filter: blur(10px);
    }

    .stat-number {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary);
        display: block;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
        background: var(--gradient-card);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow);
        text-align: center;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
        background: var(--gradient-accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-icon i {
        font-size: 24px;
        color: white;
    }

    .feature-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        color: var(--text-primary);
    }

    .feature-description {
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--text-muted);
    }

    .contact-form {
        padding: 2rem;
        background: var(--gradient-card);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-input,
    .form-textarea {
        padding: 1rem;
        font-size: 1rem;
        border-radius: var(--border-radius);
        border: 2px solid var(--border);
        background: var(--input-bg);
        color: var(--text-primary);
        transition: var(--transition);
    }

    .form-input:focus,
    .form-textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
        outline: none;
    }

    .form-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        background: var(--gradient-primary);
        color: white;
        border: none;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: var(--transition);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-info {
        margin-bottom: 2rem;
    }

    .footer-info .logo {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 1rem;
    }

    .footer-info p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: var(--transition);
    }

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

    .footer-links h3,
    .footer-services h3,
    .footer-newsletter h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .footer-links ul,
    .footer-services ul {
        list-style: none;
        padding: 0;
    }

    .footer-links li,
    .footer-services li {
        margin-bottom: 0.5rem;
    }

    .footer-links a,
    .footer-services a {
        color: var(--text-muted);
        text-decoration: none;
        transition: var(--transition);
    }

    .footer-links a:hover,
    .footer-services a:hover {
        color: var(--primary);
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }

    .newsletter-form input {
        padding: 0.75rem;
        border: 2px solid var(--border);
        border-radius: var(--border-radius);
        background: var(--input-bg);
        color: var(--text-primary);
    }

    .newsletter-btn {
        padding: 0.75rem 1.5rem;
        background: var(--gradient-accent);
        color: white;
        border: none;
        border-radius: var(--border-radius);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid var(--border);
        margin-top: 3rem;
    }

    .whatsapp-chatbot {
        bottom: 20px;
        right: 20px;
    }

    .chatbot-icon {
        width: 60px;
        height: 60px;
        background: var(--whatsapp-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-hover);
        cursor: pointer;
        transition: var(--transition);
    }

    .chatbot-icon:hover {
        transform: scale(1.1);
    }

    .chatbot-icon i {
        font-size: 28px;
        color: white;
    }

    .chatbot-popup {
        width: 320px;
        bottom: 80px;
        right: 0;
        background: var(--card-bg);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-hover);
        overflow: hidden;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
        margin: 0 1rem;
    }
    
    .notification-content {
        padding: 1rem;
        text-align: center;
    }

    /* Quote Modal Responsive */
    .quote-modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .quote-form {
        padding: 2rem;
    }

    .quote-form h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .popup-content {
        padding: 2rem;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .popup-header h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .popup-header p {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .promo-banner {
        padding: 2rem 1rem;
        text-align: center;
    }

    .promo-content h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .promo-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .promo-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        background: var(--gradient-accent);
        color: white;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    /* Service Modal Improvements */
    .service-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .service-modal-body {
        padding: 2rem;
    }

    .service-modal-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: var(--border-radius);
        margin-bottom: 1.5rem;
    }

    .service-modal-body h4 {
        font-size: 1.25rem;
        margin: 1.5rem 0 1rem;
        color: var(--text-primary);
    }

    .service-modal-body ul {
        margin-bottom: 1.5rem;
    }

    .service-modal-body li {
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

    .service-modal-body strong {
        color: var(--primary);
        font-weight: 600;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    .contact-row,
    .contact-global {
        grid-template-columns: 1fr;
    }
    .contact-label {
        margin-bottom: 0.25rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-container {
        padding: 0 1.25rem;
    }

    .nav-container {
        padding: 0.75rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        max-width: 260px;
        margin-bottom: 0.75rem;
    }

    .hero-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .services-grid,
    .projects-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .about-features {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .feature-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .form-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-info .logo {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .footer-info p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .footer-links h3,
    .footer-services h3,
    .footer-newsletter h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .newsletter-form {
        max-width: 280px;
    }

    .newsletter-form input {
        padding: 0.625rem;
        font-size: 0.95rem;
    }

    .newsletter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 2rem;
        font-size: 0.9rem;
    }

    .chatbot-icon {
        width: 55px;
        height: 55px;
    }

    .chatbot-popup {
        width: 300px;
        bottom: 75px;
    }

    .notification {
        margin: 0 0.5rem;
    }

    .notification-content {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .quote-modal-content {
        margin: 0.5rem;
    }

    .quote-form {
        padding: 1.5rem;
    }

    .quote-form h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .popup-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .popup-header h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .popup-header p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .promo-banner {
        padding: 1.5rem 0.75rem;
    }

    .promo-content h2 {
        font-size: 1.5rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .promo-content p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }

    .promo-badge {
        font-size: 0.8rem;
        padding: 0.375rem 0.875rem;
        margin-bottom: 0.75rem;
    }

    .service-modal-content {
        width: 98%;
        margin: 0.5rem;
    }

    .service-modal-body {
        padding: 1.5rem;
    }

    .service-modal-image {
        height: 180px;
        margin-bottom: 1.25rem;
    }

    .service-modal-body h4 {
        font-size: 1.125rem;
        margin: 1.25rem 0 0.75rem;
    }

    .service-modal-body ul {
        margin-bottom: 1.25rem;
    }

    .service-modal-body li {
        margin-bottom: 0.5rem;
        line-height: 1.4;
        font-size: 0.95rem;
    }

    .projects-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }

    /* Enhanced button styling for mobile */
    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        border-radius: var(--border-radius);
        font-weight: 600;
        transition: var(--transition);
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    /* Mobile navigation improvements */
    .mobile-menu {
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-hover);
        padding: 1rem;
        margin: 0.5rem;
    }

    .mobile-menu-item {
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
        transition: var(--transition);
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-item:hover {
        background: var(--hover-bg);
        transform: translateX(5px);
    }

    /* Enhanced form styling for mobile */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.95rem;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: var(--text-muted);
        opacity: 0.7;
    }

    /* Improved modal close button for mobile */
    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.1);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
    }

    .modal-close:hover {
        background: rgba(0, 0, 0, 0.2);
        transform: scale(1.1);
    }

    .modal-close i {
        font-size: 18px;
        color: var(--text-primary);
    }
}

/* Ensure images load properly */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success states */
.success {
    border-color: var(--success) !important;
}

.success-message {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================= */
/* Services Dropdown Styling */
/* ========================= */
.has-dropdown {
    position: relative;
}
.dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
}
.dropdown-toggle:focus {
    outline: none; /* rely on :focus-visible for keyboard users */
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    min-width: 260px;
    padding: 0.5rem;
    display: none;
    z-index: 1000;
}
.has-dropdown.open .dropdown-menu {
    display: block;
}
.dropdown-toggle i.fa-chevron-down { transition: transform 0.2s ease; }
.has-dropdown.open .dropdown-toggle i.fa-chevron-down { transform: rotate(180deg); }
.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none; /* remove underline in dropdown links */
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    text-decoration: none; /* ensure hover doesn't reintroduce underline */
}
.service-link.active {
    font-weight: 700;
    color: var(--primary);
}
.nav-links a.active {
    font-weight: 700;
}

/* Smooth scrolling and anchor offset for sticky nav */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

/* Accessible focus styles for buttons and interactive elements */
.btn:focus-visible,
.dropdown-toggle:focus-visible,
.mobile-menu:focus-visible,
.filter-btn:focus-visible,
.service-card a:focus-visible,
.service-card button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}
/* Header navigation font normalization */
.nav-links a,
.nav-links .dropdown-toggle {
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    text-decoration: none; /* remove underline in nav links */
}

/* Ensure no underline on hover/focus states in nav */
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
    text-decoration: none;
}

/* Ensure active state consistent across nav */
.nav-links a.active {
    font-weight: 600;
}

/* Mobile responsiveness refinements */
@media (max-width: 992px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-content,
    .hero-visual {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .section-title,
    .section-subtitle { text-align: center; }
}