/*
P21TechExpert - Arictech-Inspired Modern Design
Complete homepage transformation with advanced layout principles
*/

/* ===== MODERN CSS RESET & FOUNDATION ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

/* ===== MODERN DESIGN SYSTEM ===== */
:root {
    /* Modern Color Palette */
    --primary-900: #0a1628;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --primary-400: #94a3b8;
    --primary-300: #cbd5e1;
    --primary-200: #e2e8f0;
    --primary-100: #f1f5f9;
    --primary-50: #f8fafc;
    
    /* Brand Colors */
    --brand-primary: #2563eb;
    --brand-secondary: #7c3aed;
    --brand-accent: #06b6d4;
    --brand-success: #10b981;
    --brand-warning: #f59e0b;
    --brand-error: #ef4444;
    
    /* Semantic Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    /* Background System */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-accent: #2563eb;
    --bg-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    
    /* Modern Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Typography Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    --text-7xl: 4.5rem;     /* 72px */
    
    /* Modern Borders */
    --border-radius-sm: 0.375rem;  /* 6px */
    --border-radius: 0.5rem;       /* 8px */
    --border-radius-lg: 0.75rem;   /* 12px */
    --border-radius-xl: 1rem;      /* 16px */
    --border-radius-2xl: 1.5rem;   /* 24px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-width: 1280px;
    --container-padding: var(--space-6);
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--bg-accent);
    color: var(--text-inverse);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* ===== MODERN LAYOUT SYSTEM ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== SECTION SPACING OPTIMIZATION ===== */
section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

section + section {
    margin-top: 0 !important;
}

/* Reduce excessive spacing between sections */
.hero + section,
section:not(.hero) {
    margin-top: 0 !important;
}

/* Remove inline margin-top overrides */
section[style*="margin-top"] {
    margin-top: 0 !important;
}

/* ===== LOGO HOVER FIX ===== */
.logo-link,
.logo-link:hover,
.logo-link:focus,
.logo-link:active,
.logo-link:visited {
    text-decoration: none !important;
    color: inherit !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.logo,
.logo:hover,
.logo-icon,
.logo-icon:hover,
.logo-text,
.logo-text:hover {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Disable all logo animations */
.logo * {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* ===== HEADER - MODERN & CLEAN ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--primary-200);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-brand .logo:hover {
    transform: none;
    color: var(--text-primary);
}

.logo-link {
    text-decoration: none !important;
    color: inherit !important;
    transition: none !important;
}

.logo-link:hover {
    text-decoration: none !important;
    color: inherit !important;
    transform: none !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    transition: none !important;
    transform: none !important;
}

.logo-icon:hover {
    transform: none !important;
    animation: none !important;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    transition: none !important;
    transform: none !important;
}

.logo-text:hover {
    color: var(--text-primary) !important;
    transform: none !important;
    animation: none !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* ===== MODERN BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--bg-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--primary-300);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-header {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
}

/* ===== HERO SECTION - ARICTECH INSPIRED ===== */
.hero {
    background: var(--bg-secondary);
    padding: 120px 0 var(--space-20);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    opacity: 0.03;
    transform: rotate(15deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-highlight {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--brand-primary);
    margin-top: var(--space-4);
    transform: translateY(-10px);
   }

.hero-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
    margin-top: var(--space-2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--primary-200);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: var(--space-6);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ===== CORE SERVICES FLOATING DESIGN ===== */
.core-services-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* Left side services - mirrored positioning */
.core-services-highlight .service-pill:nth-child(1),
.core-services-highlight .service-pill:nth-child(2),
.core-services-highlight .service-pill:nth-child(3),
.core-services-highlight .service-pill:nth-child(4),
.core-services-highlight .service-pill:nth-child(5) {
    position: absolute;
    pointer-events: auto;
    z-index: 0;
}

/* Left side positioning - mirrored from right side */
.core-services-highlight .service-pill:nth-child(1) {
    left: -210px;
    top: 8%;
    animation: float-left 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.core-services-highlight .service-pill:nth-child(2) {
    left: -300px;
    top: 28%;
    animation: float-left 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.core-services-highlight .service-pill:nth-child(3) {
    left: -210px;
    top: 48%;
    animation: float-left 6s ease-in-out infinite;
    animation-delay: 2.5s;
}

.core-services-highlight .service-pill:nth-child(4) {
    left: -300px;
    top: 68%;
    animation: float-left 6s ease-in-out infinite;
    animation-delay: 3.5s;
}

.core-services-highlight .service-pill:nth-child(5) {
    left: -210px;
    top: 88%;
    animation: float-left 6s ease-in-out infinite;
    animation-delay: 4.5s;
}

/* Right side services - keeping original positioning */
.core-services-highlight .service-pill:nth-child(6),
.core-services-highlight .service-pill:nth-child(7),
.core-services-highlight .service-pill:nth-child(8),
.core-services-highlight .service-pill:nth-child(9),
.core-services-highlight .service-pill:nth-child(10) {
    position: absolute;
    pointer-events: auto;
    z-index: 0;
}

/* Right side positioning - original layout */
.core-services-highlight .service-pill:nth-child(6) {
    right: -210px;
    top: 8%;
    animation: float-right 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.core-services-highlight .service-pill:nth-child(7) {
    right: -300px;
    top: 28%;
    animation: float-right 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.core-services-highlight .service-pill:nth-child(8) {
    right: -210px;
    top: 48%;
    animation: float-right 6s ease-in-out infinite;
    animation-delay: 2.5s;
}

.core-services-highlight .service-pill:nth-child(9) {
    right: -300px;
    top: 68%;
    animation: float-right 6s ease-in-out infinite;
    animation-delay: 3.5s;
}

.core-services-highlight .service-pill:nth-child(10) {
    right: -210px;
    top: 88%;
    animation: float-right 6s ease-in-out infinite;
    animation-delay: 4.5s;
}

/* Movement Analysis & Corrections */

/* Left side animation - moves toward center (right direction) */
@keyframes float-left {
    0%, 100% { 
        transform: translateX(0) translateY(0);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(15px) translateY(-8px);
        opacity: 0.9;
    }
}

/* Right side animation - moves toward center (left direction) */
@keyframes float-right {
    0%, 100% { 
        transform: translateX(0) translateY(0);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(-15px) translateY(-8px);
        opacity: 0.9;
    }
}

.service-pill {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--primary-200);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

/* ===== SECTION STYLING ===== */
section {
    padding: var(--space-32) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-20);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background: var(--bg-gradient);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    background: var(--bg-primary);
    position: relative;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-200) 50%, transparent 100%);
}

/* ===== SERVICES GRID - MODERN CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--primary-200);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-10);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.service-card.featured {
    border: 2px solid var(--brand-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-50) 100%);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-gradient);
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    margin-bottom: var(--space-6);
}

.service-badge {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    background: var(--brand-success);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--text-xs);
    font-weight: 600;
}

.service-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.service-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.service-features li {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-6);
}

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

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: gap var(--transition-fast);
}

.service-cta:hover {
    gap: var(--space-3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    /* Medium screens - single column layout */
    .core-services-highlight .service-pill:nth-child(1),
    .core-services-highlight .service-pill:nth-child(3),
    .core-services-highlight .service-pill:nth-child(5) {
        left: -100px !important;
    }
    
    .core-services-highlight .service-pill:nth-child(2),
    .core-services-highlight .service-pill:nth-child(4) {
        left: -100px !important;
        top: 27% !important;
    }
    
    .core-services-highlight .service-pill:nth-child(4) {
        top: 57% !important;
    }
    
    .core-services-highlight .service-pill:nth-child(6),
    .core-services-highlight .service-pill:nth-child(8),
    .core-services-highlight .service-pill:nth-child(10) {
        right: -100px !important;
    }
    
    .core-services-highlight .service-pill:nth-child(7),
    .core-services-highlight .service-pill:nth-child(9) {
        right: -100px !important;
        top: 32% !important;
    }
    
    .core-services-highlight .service-pill:nth-child(9) {
        top: 62% !important;
    }
    
    .core-services-highlight .service-pill:nth-child(10) {
        top: 75% !important;
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }
    
    .nav {
        height: 64px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 100px 0 var(--space-16);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-description {
        font-size: var(--text-lg);
    }
    
    .hero-stats {
        gap: var(--space-8);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .service-card {
        padding: var(--space-8);
    }
    
    .core-services-highlight {
        position: static;
        display: flex;
        justify-content: center;
        gap: var(--space-2);
        flex-wrap: wrap;
        margin: var(--space-6) 0;
        pointer-events: auto;
    }
    
    .core-services-highlight .service-pill {
        position: static !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
    
    section {
        padding: var(--space-24) 0;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
}

/* ===== NAVIGATION TOGGLE (MOBILE) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
}

/* ===== MODERN FORM STYLING ===== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--primary-300);
    border-radius: var(--border-radius-lg);
    font-size: var(--text-base);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

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

/* ===== CHATBOT MODERN STYLING ===== */
.chatbot-widget {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    border: none;
    transition: all var(--transition-fast);
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--primary-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-normal);
}

.chatbot-widget.open .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--bg-gradient);
    color: white;
    padding: var(--space-4);
    border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-info {
    flex: 1;
}

.chatbot-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin: 0;
}

.chatbot-status {
    font-size: var(--text-xs);
    opacity: 0.8;
    margin: 0;
}

.chatbot-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-fast);
}

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

.chatbot-messages {
    height: 320px;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.message {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--brand-primary);
}

.user-message .message-avatar {
    background: var(--brand-success);
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
}

.user-message .message-avatar::after {
    content: 'U';
}

.message-content {
    max-width: 250px;
    padding: var(--space-3);
    border-radius: var(--border-radius-lg);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.bot-message .message-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: var(--space-1);
}

.user-message .message-content {
    background: var(--brand-primary);
    color: white;
    border-bottom-right-radius: var(--space-1);
}

.message-text {
    margin: 0 0 var(--space-1) 0;
}

.message-time {
    font-size: var(--text-xs);
    opacity: 0.7;
    margin: 0;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
    padding: 0 var(--space-4);
}

.quick-reply-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-lg);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-reply-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.chatbot-input {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-2);
}

.chatbot-input input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: var(--text-sm);
    background: var(--bg-secondary);
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.chatbot-send {
    background: var(--brand-primary);
    border: none;
    color: white;
    padding: var(--space-3);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.chatbot-send:hover {
    background: var(--brand-secondary);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-icon,
.chatbot-close {
    transition: opacity var(--transition-fast);
}

.chatbot-widget.open .chatbot-icon {
    opacity: 0;
}

.chatbot-widget.open .chatbot-close {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: var(--space-4);
        right: var(--space-4);
    }
    
    .chatbot-window {
        width: 320px;
        height: 450px;
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
    
    .chatbot-window {
        bottom: 70px;
    }
}

/* ===== SOLUTIONS SECTION ===== */
.solutions {
    background: var(--bg-secondary);
    position: relative;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-200) 50%, transparent 100%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.solution-card {
    background: var(--bg-primary);
    border: 1px solid var(--primary-200);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.solution-card:hover::before {
    transform: scaleY(1);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.solution-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.solution-icon {
    font-size: var(--text-3xl);
}

.solution-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.solution-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

.solution-features {
    list-style: none;
    margin-bottom: var(--space-6);
}

.solution-features li {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-6);
}

.solution-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 600;
}

.solution-result {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-left: 3px solid var(--brand-success);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-primary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-200) 50%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-text {
    padding-right: var(--space-8);
}

.about-features {
    margin-top: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--brand-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--text-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-stats {
    background: var(--bg-secondary);
    padding: var(--space-10);
    border-radius: var(--border-radius-2xl);
    border: 1px solid var(--primary-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-card {
    text-align: center;
    background: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--primary-200);
    transition: all var(--transition-fast);
}

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

.stat-card .stat-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-2);
}

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

.certifications h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.cert-badge {
    background: var(--brand-primary);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: var(--bg-secondary);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-200) 50%, transparent 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--primary-200);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.project-card:hover::before {
    transform: scaleY(1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.project-type {
    background: var(--brand-accent);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    display: inline-block;
}

.project-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.project-challenge,
.project-solution {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.project-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.result-item {
    text-align: center;
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--border-radius-lg);
    border-left: 3px solid var(--brand-success);
}

.result-number {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--brand-success);
    margin-bottom: var(--space-1);
}

.result-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-200) 50%, transparent 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-methods {
    margin: var(--space-8) 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--primary-200);
    transition: all var(--transition-fast);
}

.contact-method:hover {
    border-color: var(--brand-primary);
    transform: translateX(4px);
}

.contact-icon {
    font-size: var(--text-xl);
}

.contact-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.contact-value {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-value:hover {
    color: var(--brand-secondary);
}

.consultation-benefits {
    background: var(--bg-secondary);
    padding: var(--space-6);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--primary-200);
    margin-top: var(--space-8);
}

.consultation-benefits h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.consultation-benefits ul {
    list-style: none;
    padding: 0;
}

.consultation-benefits li {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-6);
}

.consultation-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-success);
    font-weight: 600;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: var(--space-10);
    border-radius: var(--border-radius-2xl);
    border: 1px solid var(--primary-200);
}

.form-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    text-align: center;
}

.btn-full {
    width: 100%;
}

.form-success {
    background: var(--brand-success);
    color: var(--text-inverse);
    padding: var(--space-4);
    border-radius: var(--border-radius-lg);
    display: none;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.success-icon {
    font-size: var(--text-xl);
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-results {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-900);
    color: var(--primary-300);
    padding: var(--space-20) 0 var(--space-8);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-500) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
}

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

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.footer-brand .logo-icon {
    font-size: var(--text-2xl);
}

.footer-brand .logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-inverse);
}

.footer-description {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--primary-400);
    margin-bottom: var(--space-8);
}

.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.footer-certifications .cert-badge {
    background: var(--primary-800);
    color: var(--primary-300);
    border: 1px solid var(--primary-700);
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: var(--space-6);
}

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

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--primary-400);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-inverse);
}

.footer-contact {
    font-size: var(--text-sm);
}

.contact-item {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.contact-label {
    font-weight: 600;
    color: var(--primary-300);
}

.contact-item a {
    color: var(--primary-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--text-inverse);
}

.footer-bottom {
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--primary-800);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--primary-400);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-certifications {
        justify-content: center;
    }
}

/* ===== ENHANCED VISUAL EFFECTS ===== */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.service-card,
.solution-card,
.project-card {
    animation: fadeInScale 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger animations for grid items */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

.solution-card:nth-child(1) { animation-delay: 0.1s; }
.solution-card:nth-child(2) { animation-delay: 0.2s; }
.solution-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== SCROLL BEHAVIOR ENHANCEMENTS ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    .section-header {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease-out;
    }
    
    .section-header.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== FOCUS MANAGEMENT ===== */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

.btn:focus-visible {
    outline: 2px solid var(--text-inverse);
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-200: #000000;
        --text-secondary: #000000;
        --text-muted: #000000;
    }
    
    .service-card,
    .solution-card,
    .project-card {
        border-width: 2px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Lazy loading placeholders */
[data-loading] {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

[data-loading].loaded {
    opacity: 1;
}

/* GPU acceleration for animations */
.service-card,
.solution-card,
.project-card,
.chatbot-toggle,
.btn {
    will-change: transform;
}

/* Reduce paint on scroll */
.header {
    contain: layout style;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .chatbot-widget,
    .core-services-highlight,
    .hero-badge,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    .hero-title,
    .section-title {
        color: #000000 !important;
        page-break-after: avoid;
    }
    
    .service-card,
    .solution-card,
    .project-card {
        border: 1px solid #000000 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }
    
    a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.p-0 { padding: 0; }

/* ===== ENHANCED MICRO-INTERACTIONS ===== */
.nav-link,
.service-cta,
.contact-value {
    position: relative;
    overflow: hidden;
}

.nav-link::before,
.service-cta::before,
.contact-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left var(--transition-normal);
}

.nav-link:hover::before,
.service-cta:hover::before,
.contact-value:hover::before {
    left: 100%;
}

/* ===== DARK MODE PREPARATION ===== */
@media (prefers-color-scheme: dark) {
    /* Future dark mode implementation */
    /* Commented out to maintain current light theme */
    /*
    :root {
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --primary-200: #475569;
    }
    */
}