/**
 * Netlan Systems - Main Stylesheet
 * Optimized for Performance - 90+ PageSpeed Score
 * Version: 2.1
 */

/* ============================================================
   1. IMPORTS & RESET - Optimized
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --blue-dark: #0a1e3d;
    --blue: #1a3d7a;
    --blue-bright: #2563eb;
    --blue-light: #dbeafe;
    --blue-lighter: #eff6ff;
    --orange: #f97316;
    --orange-bright: #fb923c;
    --orange-light: #ffedd5;
    --orange-dark: #ea580c;
    --green-whatsapp: #25d366;
    --text-dark: #0a1e3d;
    --text-light: #475569;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0a1e3d;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows - Reduced for performance */
    --shadow: 0 2px 10px rgba(10, 30, 61, 0.06);
    --shadow-heavy: 0 4px 25px rgba(10, 30, 61, 0.12);
    --shadow-orange: 0 4px 15px rgba(249, 115, 22, 0.25);

    /* Borders */
    --radius: 10px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions - Simplified */
    --transition: all 0.25s ease;
    --transition-slow: all 0.4s ease;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 20px;
    --section-padding: 70px 0;

    /* Z-index */
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-loader: 9999;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. TYPOGRAPHY - Optimized
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   3. CONTAINER & LAYOUT - Optimized
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    margin-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--orange);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 650px;
    margin: 18px auto 0;
    font-size: 1.05rem;
}

/* ============================================================
   4. BUTTONS - Optimized
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--blue);
    color: var(--text-white);
    border-radius: var(--radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-primary);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: var(--blue-bright);
    color: var(--text-white);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--orange);
    color: white;
}

.btn-primary:hover {
    background: var(--orange-dark);
    box-shadow: var(--shadow-orange);
    color: white;
}

.btn-orange {
    background: var(--orange);
    color: white;
}

.btn-orange:hover {
    background: var(--orange-dark);
    box-shadow: var(--shadow-orange);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.btn-whatsapp {
    background: var(--green-whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
    min-height: 36px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    min-height: 56px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ============================================================
   5. HEADER - Optimized for Performance
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid var(--orange);
}

header.sticky {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-heavy);
}

header.hide {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
}

.logo-text h1 a {
    color: var(--blue-dark);
    text-decoration: none;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--orange);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--blue-dark);
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.nav-link.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.nav-link .badge {
    background: var(--orange);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 50%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.header-actions button,
.header-actions a {
    background: none;
    border: none;
    color: var(--blue-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    padding: 6px;
}

.header-actions button:hover,
.header-actions a:hover {
    color: var(--orange);
}

.header-actions .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-header {
    color: var(--green-whatsapp) !important;
    font-size: 1.3rem !important;
}

.whatsapp-header:hover {
    color: #128c7e !important;
}

.admin-header-link {
    color: var(--gray-500);
    font-size: 1rem;
    padding: 5px 6px;
    border-radius: 6px;
}

.admin-header-link:hover {
    color: var(--orange);
    background: var(--gray-100);
}

.mobile-toggle {
    display: none;
    background: var(--blue-light);
    border: 2px solid var(--blue);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    color: var(--blue-dark);
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-toggle:hover {
    background: var(--blue);
    color: white;
}

.mobile-toggle.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

/* ============================================================
   6. HERO SECTION - Optimized
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--blue-lighter) 0%, var(--blue-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 18px;
}

.hero-content h1 span {
    color: var(--orange);
    display: block;
}

.hero-content h2 {
    font-size: 1.4rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid rgba(10, 30, 61, 0.06);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--orange);
}

.stat-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 4px solid var(--orange);
}

.carousel-slides {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide-1 {
    background-image: url('https://netlansystems.in/assets/images/laptop-service-netlan-systems-coimbatore.jpg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.carousel-slide-2 {
    background-image: url('https://netlansystems.in/assets/images/cctv-camera-installation-coimbatore.jpg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.carousel-slide-3 {
    background-image: url('https://netlansystems.in/assets/images/networking-service-in-coimbatore.jpg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.carousel-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    border: 2px solid var(--orange);
}

.carousel-dots {
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(10, 30, 61, 0.2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.carousel-dot.active {
    background: var(--orange);
    transform: scale(1.2);
}

.carousel-arrow {
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--blue);
}

.carousel-arrow:hover {
    background: var(--blue);
    color: white;
}

/* ============================================================
   7. CTA BANNER - Optimized
   ============================================================ */
.cta-banner {
    background: var(--blue-dark);
    padding: 50px 0;
    text-align: center;
    border-top: 4px solid var(--orange);
    border-bottom: 4px solid var(--orange);
}

.cta-banner h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.cta-banner h2 span {
    color: var(--orange);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 25px;
}

/* ============================================================
   8. ABOUT SECTION - Optimized
   ============================================================ */
.about {
    background: var(--bg-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    position: relative;
    border: 4px solid var(--orange);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: var(--orange);
    color: white;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card {
    background: var(--blue-lighter);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
    border-left: 4px solid var(--orange);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--blue-dark);
}

.feature-text p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* ============================================================
   9. SERVICES SECTION - Optimized
   ============================================================ */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--orange);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.04);
}

.service-image .service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--orange-dark);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.service-content {
    padding: 24px;
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.service-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange-dark);
    margin-bottom: 12px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.service-feature {
    background: var(--blue-light);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--blue);
    font-weight: 600;
    border: 1px solid rgba(10, 30, 61, 0.04);
}

.service-action {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-action .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.85rem;
    min-height: 40px;
}

/* ============================================================
   10. SOLUTIONS TABS - Optimized
   ============================================================ */
.solutions {
    background: var(--bg-white);
}

.solutions-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.solutions-tab {
    padding: 12px 28px;
    background: var(--bg-light);
    border: 2px solid var(--blue-light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: var(--font-primary);
}

.solutions-tab:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

.solutions-tab.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    box-shadow: var(--shadow-orange);
}

.solutions-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

.solutions-content.active {
    display: grid;
}

.solutions-content .solution-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--orange);
}

.solutions-content .solution-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.solutions-content .solution-info h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--blue-dark);
}

.solutions-content .solution-info h3 span {
    color: var(--orange);
}

.solutions-content .solution-info p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.solutions-content .solution-info ul {
    margin-bottom: 20px;
}

.solutions-content .solution-info ul li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text-light);
}

.solutions-content .solution-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
    font-size: 1rem;
}

/* ============================================================
   11. BLOG SECTION - Optimized
   ============================================================ */
.blog {
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--blue);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.04);
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.blog-meta i {
    color: var(--orange);
    margin-right: 4px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ============================================================
   12. PROJECTS SECTION - Optimized
   ============================================================ */
.projects {
    background: var(--bg-white);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 8px 24px;
    background: var(--bg-light);
    border: 2px solid var(--blue-light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-primary);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--orange);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 61, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    padding: 10px 26px;
    background: var(--orange);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    transform: translateY(15px);
    transition: var(--transition);
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.project-info {
    padding: 22px;
}

.project-category {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================================
   13. TESTIMONIALS SECTION - Optimized
   ============================================================ */
.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--orange);
}

.testimonial-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.testimonial-rating i {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.testimonial-rating i.active {
    color: #f59e0b;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar i {
    font-size: 2rem;
    color: var(--gray-400);
}

.testimonial-author h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================================
   14. FAQ SECTION - Optimized
   ============================================================ */
.faq {
    background: var(--bg-white);
}

.faq-grid {
    display: grid;
    gap: 12px;
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    padding: 16px 22px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-align: left;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 22px 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   15. CONTACT SECTION - Optimized
   ============================================================ */
.contact {
    background: var(--bg-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--blue-dark);
    border-radius: var(--radius-lg);
    padding: 35px;
    color: white;
    border: 3px solid var(--orange);
}

.contact-info h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-info h3 span {
    color: var(--orange);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 3px solid var(--orange);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-text h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 2px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--orange);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.contact-form-container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 2px solid var(--blue-light);
}

.contact-form-container h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.contact-form-container h3 span {
    color: var(--orange);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--blue-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--blue-light);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.map-container {
    grid-column: 1 / -1;
    margin-top: 25px;
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
    border: 3px solid var(--orange);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   16. FOOTER - Optimized
   ============================================================ */
footer {
    background: var(--blue-dark);
    color: white;
    padding: 60px 0 25px;
    border-top: 4px solid var(--orange);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 3px;
    background: var(--orange);
    bottom: 0;
    left: 0;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--orange);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--orange);
    margin-top: 4px;
    width: 18px;
    flex-shrink: 0;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--orange);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--orange);
    transform: translateY(-3px);
    border-color: var(--orange);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-tagline {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}

.footer-tagline span {
    color: var(--orange);
}

/* ============================================================
   17. FLOATING BUTTONS - Optimized
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: var(--green-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: var(--z-fixed);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
    border: 3px solid white;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
    color: white;
}

.scroll-top {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    z-index: var(--z-fixed);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 2px solid white;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--blue);
    transform: translateY(-4px);
}

/* ============================================================
   18. ANIMATIONS - Optimized
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   19. NOTIFICATION - Optimized
   ============================================================ */
.notification {
    position: fixed;
    top: 85px;
    right: 20px;
    padding: 14px 22px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    z-index: var(--z-modal);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 380px;
    box-shadow: var(--shadow-heavy);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--danger);
}

.notification.warning {
    background: var(--warning);
}

.notification.info {
    background: var(--blue-bright);
}

.notification i {
    font-size: 1.1rem;
}

/* ============================================================
   20. RESPONSIVE - Optimized
   ============================================================ */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 80%;
        max-width: 340px;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        padding: 30px 25px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-heavy);
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        border-right: 4px solid var(--orange);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        border-radius: var(--radius);
    }

    .mobile-toggle {
        display: flex;
    }

    .header-actions {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--gray-200);
        justify-content: center;
        margin-left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .solutions-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .solutions-content .solution-image img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .services-grid,
    .projects-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 25px;
    }

    .contact-form-container {
        padding: 20px;
    }

    .hero-carousel {
        height: 280px;
    }

    .carousel-controls {
        padding: 8px 12px;
        gap: 8px;
    }

    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .map-placeholder {
        height: 250px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 18px;
        right: 18px;
    }

    .scroll-top {
        bottom: 78px;
        right: 18px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .about-image img {
        height: 300px;
    }

    .contact-item {
        padding: 10px 14px;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .hero-carousel {
        height: 220px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .service-action {
        flex-direction: column;
    }

    .service-action .btn {
        width: 100%;
        justify-content: center;
    }

    .solutions-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo img {
        height: 38px;
    }

    .mobile-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .nav-menu {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 20px 16px;
    }

    .about-badge {
        bottom: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}