/* === CRITICAL CSS FOR TOP 1 RANKING === */

/* Core Web Vitals Optimizations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Performance & Accessibility Variables */
:root {
    --primary-color: #ff9f00;
    --secondary-color: #00324a;
    --white-color: #ffffff;
    --light-gray: #f5f6f7;
    --dark-gray: #333333;
    --text-color: #2c3e50;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --info-color: #3498db;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;
}

/* Base Styles - Optimized for Performance */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    font-weight: 400;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

/* SEO-Optimized Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--spacing-md) 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2rem, 5vw, var(--font-size-4xl));
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(1.5rem, 4vw, var(--font-size-3xl));
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

/* Container Optimization */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* === 🌟 AZ AI ASSISTANT - WORLD'S #1 STYLES 🌟 === */

/* Quantum AI Toggle Button */
.chatbot-toggler {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 9999;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd);
    background-size: 400% 400%;
    animation: quantumGradient 4s ease infinite;
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3), 
                0 0 0 4px rgba(255, 255, 255, 0.1),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform;
    overflow: hidden;
    position: relative;
}

@keyframes quantumGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.chatbot-toggler::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.chatbot-toggler::after {
    content: '🧠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.chatbot-toggler:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.4), 
                0 0 0 6px rgba(255, 255, 255, 0.2),
                inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.chatbot-toggler:hover::before {
    opacity: 1;
}

.chatbot-toggler:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.chatbot-toggler:hover .open-icon,
.chatbot-toggler:hover .close-icon {
    transform: scale(0.8) rotate(180deg);
    opacity: 0.7;
}

.chatbot-toggler .close-icon, 
.chatbot-toggler .open-icon { 
    color: var(--white-color);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Quantum AI Container */
.chatbot-container {
    position: fixed;
    right: 32px;
    bottom: 120px;
    width: 420px;
    max-width: calc(100vw - 64px);
    max-height: calc(100vh - 200px);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 
                0 20px 60px rgba(78, 205, 196, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85) translateY(30px) rotateX(10deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9998;
    will-change: opacity, transform;
    border: 2px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

body.show-chatbot .chatbot-container {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0) rotateX(0deg);
}

/* Quantum Chat Header */
.quantum-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white-color);
    padding: 20px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    position: relative;
    overflow: hidden;
}

.quantum-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.ai-avatar-container {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
    animation: aiPulse 2s ease-in-out infinite;
}

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

.ai-status-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #4facfe;
    border-radius: 50%;
    border-top-color: transparent;
    animation: aiRingSpin 3s linear infinite;
}

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

.ai-info {
    text-align: center;
}

.ai-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version {
    font-size: 10px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.ai-capabilities {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.capability {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.capability.active {
    background: rgba(255,255,255,0.3);
    animation: capabilityGlow 2s ease-in-out infinite alternate;
}

@keyframes capabilityGlow {
    from { box-shadow: 0 0 5px rgba(255,255,255,0.3); }
    to { box-shadow: 0 0 15px rgba(255,255,255,0.6); }
}

.ai-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.chat-controls button {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-controls button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Quantum Typing Indicator */
.quantum-typing-indicator {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin: 10px;
    color: white;
    animation: quantumThinking 2s ease-in-out infinite;
}

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

.ai-brain-animation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.neural-network {
    display: flex;
    gap: 5px;
}

.neuron {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: neuronFire 1.5s ease-in-out infinite;
}

.neuron.active {
    background: #4facfe;
    animation-delay: 0s;
}

.neuron.processing {
    background: #4caf50;
    animation-delay: 0.3s;
}

.neuron.thinking {
    background: #ff6b6b;
    animation-delay: 0.6s;
}

@keyframes neuronFire {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.ai-status .status-text {
    font-size: 12px;
    margin-bottom: 5px;
}

.processing-bar {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.processing-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
    animation: processingAnimation 2s ease-in-out infinite;
}

@keyframes processingAnimation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Chat Window */
.chat-window {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
    background: linear-gradient(145deg, #fafbff 0%, #f0f4ff 100%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 200px;
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f4ff;
    position: relative;
}

.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-track {
    background: #f0f4ff;
    border-radius: 3px;
}

.chat-window::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

/* Enhanced Message Bubbles */
.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    animation: messageSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.message-bubble.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 6px;
    margin-left: auto;
}

.message-bubble.bot {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: #333;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-bottom-left-radius: 6px;
    margin-right: auto;
}

.message-bubble.bot::before {
    content: '🧠';
    position: absolute;
    left: -25px;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

/* Enhanced Quick Replies */
.intelligent-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    margin: 10px;
}

.smart-reply-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.smart-reply-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Service Menu Cards */
.personalized-service-menu {
    margin: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.menu-header h4 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 16px;
}

.menu-header p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.service-card {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card.recommended {
    border: 2px solid #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.service-icon {
    font-size: 20px;
}

.recommended-badge {
    font-size: 8px;
    background: #4caf50;
    padding: 2px 6px;
    border-radius: 8px;
}

.service-card h5 {
    margin: 8px 0;
    font-size: 14px;
}

.service-card p {
    margin: 0 0 10px 0;
    font-size: 11px;
    opacity: 0.9;
}

.select-service-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-service-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Sentiment Display */
.sentiment-display {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: sentimentFloat 3s ease-in-out infinite;
}

@keyframes sentimentFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Enhanced Input Area */
.chat-input-box {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-send-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.chat-send-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Voice and Image Upload Buttons */
.image-upload-container {
    display: flex;
    gap: 5px;
}

.image-upload-btn,
.voice-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.image-upload-btn:hover,
.voice-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.4);
}

/* Responsive Design for Quantum AI */
@media (max-width: 480px) {
    .chatbot-container {
        right: 16px;
        bottom: 100px;
        width: calc(100vw - 32px);
        max-width: none;
    }
    
    .chatbot-toggler {
        right: 16px;
        bottom: 16px;
        width: 60px;
        height: 60px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .chat-controls {
        flex-direction: column;
        gap: 4px;
    }
}

/* High Performance Animations */
@media (prefers-reduced-motion: reduce) {
    .chatbot-toggler,
    .chatbot-container,
    .quantum-typing-indicator,
    .chat-message {
        animation: none;
        transition: none;
    }
}

/* Legacy Fallback */

body.show-chatbot .chatbot-container {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.chatbot-header {
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 700;
    font-size: var(--font-size-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    text-align: center;
    letter-spacing: 0.5px;
}

.chat-window {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-md);
    overflow-y: auto;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 180px;
    max-height: 320px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}

.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.chat-window::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-sm);
    animation: fadeInMessage 0.3s ease-out;
}

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

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

/* Grid System Enhancement */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.service-item {
    background: var(--white-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

/* Clickable service card helper */
.service-item-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius-xl);
    outline: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.service-item-link:focus {
    box-shadow: 0 0 0 4px rgba(255, 159, 0, 0.25);
    border-radius: var(--radius-xl);
}

.service-item-link:hover .service-item,
.service-item-link:focus .service-item {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-item-link:active .service-item {
    transform: translateY(-4px);
}

.service-item-link .service-item i { 
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.service-item-link:hover .service-item i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.service-item-link .service-item h3 { 
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

/* Enhanced CTA */
.service-cta {
    display: inline-block;
    margin-top: var(--spacing-md);
    font-weight: 700;
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, transparent, rgba(255, 159, 0, 0.1));
    transition: all var(--transition-base);
}

.service-item-link:hover .service-cta {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* === ACCESSIBILITY ENHANCEMENTS === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--secondary-color);
    color: var(--white-color);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top var(--transition-base);
}

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

/* Focus Management */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */

/* Will-change for animations */
.service-item,
.chatbot-toggler,
.chatbot-container {
    will-change: transform;
}

/* GPU Acceleration */
.service-item-link:hover .service-item {
    transform: translateZ(0) translateY(-8px);
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy Loading Support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* === PRINT STYLES === */
@media print {
    .chatbot-toggler,
    .chatbot-container,
    .dark-mode-toggle,
    .hamburger {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-grid {
        display: block;
    }
    
    .service-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.service-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    text-align: center;
}

/* Clickable service card helper: make the whole card act like a link */
.service-item-link {
    display: block; /* anchors wrapping cards should fill the grid cell */
    color: inherit;
    text-decoration: none;
    border-radius: 8px; /* match inner card */
    outline: none;
    cursor: pointer; /* indicate clickable area */
}
.service-item-link:focus {
    /* visible focus for keyboard users */
    box-shadow: 0 0 0 4px rgba(51, 122, 183, 0.18);
    border-radius: 8px;
}
.service-item-link .service-item {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.12s;
}
.service-item-link:hover .service-item,
.service-item-link:focus .service-item {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}
.service-item-link:active .service-item {
    transform: translateY(-2px);
}

/* Ensure icons and headings remain readable when links are visited */
.service-item-link .service-item i { color: var(--secondary-color); }
.service-item-link .service-item h3 { margin-top: .75rem; }

/* Small CTA inside cards */
.service-cta {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* === NEW ENHANCED FEATURES === */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: var(--light-gray);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb-item a:hover {
    color: var(--secondary-color);
}
.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #666;
}

/* Enhanced Contact Form */
.contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}
.contact-form .error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}
.contact-form .submit-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.btn-loader {
    display: none !important;
}
.submit-btn.loading .btn-text {
    opacity: 0;
}
.submit-btn.loading .btn-loader {
    display: inline-block !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white-color);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none !important;
}
.pwa-install-banner.show {
    transform: translateY(0);
    display: flex !important;
}
.pwa-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.pwa-content i {
    font-size: 1.5rem;
    margin-right: 1rem;
}
.pwa-content span {
    flex: 1;
    font-weight: 600;
}
.pwa-install-btn {
    background: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s;
}
.pwa-install-btn:hover {
    background: #e67e22;
}
.pwa-close-btn {
    background: transparent;
    color: var(--white-color);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Enhanced Footer */
.footer-links {
    margin-top: 1rem;
    text-align: center;
}
.footer-links a {
    color: var(--white-color);
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Accessibility */
.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;
}

/* Focus Indicators */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* responsive project images */
.project-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.social-links {
    text-align: center;
}
.social-links a {
    display: inline-block;
    margin: 0 .5rem;
    color: var(--white-color);
    background: var(--secondary-color);
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 6px;
    text-align: center;
    transition: transform .15s, background .15s;
}
.social-links a i {
    vertical-align: middle;
}
.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}

/* footer styles moved from inline */
.site-footer {
    padding: 4rem 2rem 2rem;
    background: var(--secondary-color);
    color: var(--white-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--white-color);
}
.footer-col p,
.footer-col ul {
    opacity: .9;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li {
    margin-bottom: .5rem;
}

.footer-bottom{border-top:1px solid rgba(255,255,255,0.1);padding-top:2rem;text-align:center}
.footer-copy{margin-top:1.5rem;opacity:0.7}

.map-iframe{border:0;border-radius:8px}
.close-icon{display:none}
.chatbot-toggler.open .open-icon{display:none}
.chatbot-toggler.open .close-icon{display:inline}

/* FAQ */
.faq-answer {
    display: none;
}

/* small utilities */
.text-center {
    text-align: center;
}
.mt-3 {
    margin-top: 3rem;
}

/* Section background utilities (moved from inline) */
.why-us-section, .faq-section{
    background: var(--light-gray);
}

/* footer icon spacing (moved from inline) */
.footer-col li i{margin-right:10px;color:var(--primary-color)}
.message-bubble {
    max-width: 75%;
    padding: 0.7rem 1.1rem;
    border-radius: 16px;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    word-break: break-word;
}
.message-bubble.user {
    background: var(--primary-color);
    color: var(--white-color);
    border-bottom-right-radius: 4px;
}
.message-bubble.bot {
    background: var(--white-color);
    color: var(--dark-gray);
    border-bottom-left-radius: 4px;
    border: 1px solid #eaeaea;
}

.chat-input-box {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #eee;
    background: var(--white-color);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}
.chat-input {
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input:focus {
    border-color: var(--primary-color);
}
.chat-send-btn {
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 0 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-send-btn:hover {
    background: var(--secondary-color);
    color: var(--white-color);
}

@media (max-width: 600px) {
    .chatbot-container {
        right: 12px;
        bottom: 80px;
        width: 98vw;
        max-width: 98vw;
    }
    .chatbot-toggler {
        right: 12px;
        bottom: 12px;
    }
}
:root {
    --primary-color: #001f3f; /* Deep Navy Blue */
    --secondary-color: #f39c12; /* Orange */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white-color: #fff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.7;
    background: var(--white-color);
}
.container {
    max-width: 1100px; margin: auto; padding: 0 2rem;
}
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
}
h2 {
    font-size: 2.5rem; text-align: center; margin-bottom: 4rem;
}
section {
    padding: 5rem 0;
}

/* Navbar */
.navbar {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    position: sticky; top: 0; z-index: 1000; padding: 1rem 0;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    right: 2rem;
    top: 1.2rem;
    display: flex;
    align-items: center;
    z-index: 1003;
}
.lang-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0 8px;
    transition: color 0.3s;
}
.lang-link:hover {
    color: var(--secondary-color);
}
.lang-divider {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.navbar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
    font-weight: 700; font-size: 1.5rem; color: var(--primary-color); text-decoration: none;
}
.nav-menu {
    list-style: none; display: flex; margin: 0; padding: 0; align-items: center;
}
.nav-menu li {
    margin-left: 2rem;
}
.nav-menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.nav-menu a i {
    margin-left: 0.5rem;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-menu a:hover { color: var(--secondary-color); }
.nav-menu a:hover::after { width: 100%; }

/* Dropdown Menu - Click-based Logic */
.dropdown {
    position: relative;
}
.dropdown .dropbtn {
    cursor: pointer;
}
.dropdown-content {
    display: none; /* Absolutely hidden by default. Hover will NOT work. */
    position: absolute;
    background-color: var(--white-color);
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    z-index: 1001;
    border-radius: 16px;
    padding: 1rem 0.5rem;
     /* Anchor directly below the trigger to avoid a hover gap that closes the menu
         when the user moves the mouse from the button to the menu. Use a small
         offset to retain visual separation but keep it part of the hover area. */
     top: calc(100% + 6px);
     left: 0;
     margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* This class is ADDED BY JAVASCRIPT ON CLICK */
.dropdown-content.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover fallback for pointer users: keep dropdown visible while hovering either
   the button or the menu itself. This prevents brief gaps from closing the menu
   before the user can move into it. JS still controls .show for touch devices. */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-content li {
    margin: 0;
}
.dropdown-content a {
    color: var(--dark-gray);
    padding: 12px 24px;
    display: block;
    white-space: nowrap;
}
.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}
.dropdown-content a::after { content: none; }
.menu-group {
    padding: 12px 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    border-top: 1px solid #eee;
    margin-top: 5px;
}
    /* Nút Yêu cầu tư vấn nổi bật trên menu */
    .menu-consult-btn {
        background: var(--primary-color, #001f3f);
        color: #fff !important;
        font-weight: 700;
        border-radius: 24px;
        padding: 0.5rem 1.4rem;
        margin-left: 1rem;
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
        transition: background 0.2s, box-shadow 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .menu-consult-btn:hover {
        background: var(--secondary-color, #f0f4fa);
        color: var(--primary-color, #001f3f) !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.16);
    }
.menu-group:first-child {
    border-top: none;
    margin-top: 0;
}

/* Hamburger Menu - FOR MOBILE */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 1002;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #003366);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 2rem;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-content .tagline {
    font-size: 1.5rem; font-weight: 400; margin-bottom: 2.5rem;
}
.button {
    display: inline-block; background-color: var(--secondary-color); color: var(--white-color); padding: 16px 32px; text-decoration: none; border-radius: 5px; font-weight: 700; transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s; box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}
.button:hover {
    background-color: #e67e22; transform: translateY(-4px); box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}

/* Sections with Cards (Services, Why Us) */
.service-grid, .why-us-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.service-item, .why-us-item {
    background: var(--white-color);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top 0.3s ease;
    border-top: 4px solid transparent;
    text-align: center;
}
.service-item:hover, .why-us-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-top-color: var(--secondary-color);
}
.service-item i { color: var(--secondary-color); margin-bottom: 1rem; }
.service-item h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.why-us-item i { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }
.why-us-item h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Projects Section */
.project-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.project-card {
    background: var(--primary-color); color: var(--light-gray); border-radius: 8px; padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0, 31, 63, 0.3);
}
.project-icon i { color: var(--secondary-color); margin-bottom: 1.5rem; }
.project-content h4 { color: var(--white-color); font-size: 1.4rem; margin-bottom: 0.75rem; }
.project-content p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; opacity: 0.8; }
.project-tag { display: inline-block; background: var(--secondary-color); color: var(--white-color); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; align-self: flex-start; }

/* ===== ENHANCED FAQ SECTION ===== */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: var(--spacing-xl);
}

.faq-item {
    background: var(--white-color);
    border-radius: 16px;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 159, 0, 0.1);
}

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

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: left;
    cursor: pointer;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(255, 159, 0, 0.05), rgba(0, 50, 74, 0.05));
    color: var(--primary-color);
}

.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.question-text {
    flex: 1;
    font-size: var(--font-size-lg);
    line-height: 1.4;
}

.faq-icon {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: var(--spacing-md);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.answer-content {
    padding: 0 var(--spacing-xl) var(--spacing-lg);
    color: var(--text-color);
    line-height: 1.7;
}

.answer-content p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
}

.answer-content strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.faq-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: var(--font-size-base);
}

.faq-list li:last-child {
    border-bottom: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.tech-category {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-md);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.tech-category h4 {
    color: var(--secondary-color);
    font-size: var(--font-size-base);
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 700;
}

.tech-category p {
    color: var(--text-color);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

.faq-cta {
    background: linear-gradient(135deg, var(--primary-color), #ffb84d);
    border-radius: 20px;
    padding: var(--spacing-2xl);
    text-align: center;
    margin-top: var(--spacing-2xl);
    box-shadow: var(--shadow-xl);
}

.faq-cta .cta-content h3 {
    color: var(--white-color);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.faq-cta .cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--font-size-base);
    border: 2px solid transparent;
}

.cta-button.primary {
    background: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

.cta-button.primary:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.cta-button.secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .faq-section {
        padding: var(--spacing-xl) 0;
    }
    
    .faq-question {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    .question-text {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }
    
    .faq-icon {
        font-size: var(--font-size-lg);
        margin-left: var(--spacing-sm);
    }
    
    .answer-content {
        padding: 0 var(--spacing-lg) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .tech-category {
        padding: var(--spacing-sm);
    }
    
    .tech-category h4 {
        font-size: var(--font-size-sm);
    }
    
    .tech-category p {
        font-size: var(--font-size-xs);
    }
    
    .faq-cta {
        padding: var(--spacing-xl);
        margin-top: var(--spacing-xl);
    }
    
    .faq-cta .cta-content h3 {
        font-size: var(--font-size-xl);
    }
    
    .faq-cta .cta-content p {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .question-text {
        font-size: var(--font-size-sm);
    }
    
    .answer-content {
        padding: 0 var(--spacing-md) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .faq-list li {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) 0;
    }
    
    .faq-cta {
        padding: var(--spacing-lg);
    }
    
    .faq-cta .cta-content h3 {
        font-size: var(--font-size-lg);
    }
    
    .faq-cta .cta-content p {
        font-size: var(--font-size-sm);
    }
}

/* FAQ Section */
.faq-item {
    background: var(--white-color);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-item h4 {
    margin-top: 0;
    font-size: 1.3rem;
}

/* Contact Section */
#contact { text-align: center; }
#contact p { max-width: 600px; margin: 1rem auto 2.5rem; }
.contact-buttons a { margin: 0.5rem; }
.contact-buttons i { margin-right: 0.75rem; }
.contact-buttons .button { padding: 18px 35px; font-size: 1.1rem; }

/* Footer */
footer {
    text-align: center; padding: 3rem 2rem; background-color: var(--primary-color); color: var(--light-gray);
}
.social-links { margin-top: 1.5rem; }
.social-links a {
    color: var(--light-gray); margin: 0 0.8rem; font-size: 1.8rem; transition: color 0.3s, transform 0.3s; display: inline-block;
}
.social-links a:hover { color: var(--secondary-color); transform: translateY(-4px); }

/* ===== ENHANCED LANGUAGE SWITCHER ===== */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: linear-gradient(135deg, var(--primary-color), #ffb84d);
    color: var(--white-color);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    min-width: 80px;
    justify-content: center;
}

.language-btn:hover {
    background: linear-gradient(135deg, #ffb84d, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.language-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), #004a6b);
}

.lang-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: var(--font-size-xs);
    transition: transform 0.3s ease;
}

.language-switcher:hover .lang-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    margin-top: var(--spacing-xs);
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.lang-option:hover {
    background: linear-gradient(135deg, rgba(255, 159, 0, 0.1), rgba(0, 50, 74, 0.1));
    color: var(--primary-color);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(255, 159, 0, 0.15), rgba(0, 50, 74, 0.15));
    color: var(--secondary-color);
    font-weight: 700;
}

.lang-option .fas.fa-check {
    margin-left: auto;
    color: var(--primary-color);
}

.lang-option:not(.active) .fas.fa-check {
    display: none;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    display: inline-block;
}

/* Mobile language switcher */
@media (max-width: 768px) {
    .language-switcher {
        order: -1;
        margin-right: auto;
    }
    
    .language-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
        min-width: 60px;
    }
    
    .language-dropdown {
        right: auto;
        left: 0;
        min-width: 150px;
    }
    
    .lang-option {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .lang-option span {
        font-size: var(--font-size-xs);
    }
}

/* Touch-friendly mobile adjustments */
@media (max-width: 480px) {
    .language-btn {
        min-height: 44px;
        min-width: 50px;
    }
    
    .lang-option {
        min-height: 44px;
        padding: var(--spacing-sm);
    }
    
    /* Use click instead of hover on mobile */
    .language-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .language-switcher.mobile-open .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .language-switcher.mobile-open .lang-arrow {
        transform: rotate(180deg);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .language-btn,
    .language-dropdown,
    .lang-option,
    .lang-arrow {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .language-btn {
        border: 2px solid var(--text-color);
    }
    
    .language-dropdown {
        border: 2px solid var(--text-color);
    }
    
    .lang-option {
        border-bottom: 1px solid var(--border-color);
    }
    
    .lang-option:last-child {
        border-bottom: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .language-dropdown {
        background: var(--dark-gray);
        border-color: #555;
    }
    
    .lang-option {
        color: #f8f9fa;
    }
    
    .lang-option:hover {
        background: rgba(255, 159, 0, 0.2);
    }
}

/* Legacy lang-switcher support (fallback) */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.lang-link {
    color: var(--white-color);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.lang-link:hover,
.lang-link.active {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-1px);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 var(--spacing-xs);
}

/* Base mobile styles (320px+) */
@media (max-width: 480px) {
    :root {
        --font-size-xs: 0.7rem;
        --font-size-sm: 0.8rem;
        --font-size-base: 0.9rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.1rem;
        --font-size-2xl: 1.3rem;
        --font-size-3xl: 1.6rem;
        --font-size-4xl: 2rem;
    }
    
    html {
        font-size: 14px; /* Reduce base font size for mobile */
    }
    
    body {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }
    
    .container {
        padding: 0 var(--spacing-md);
        max-width: 100%;
    }
    
    /* Typography mobile optimization */
    h1, .hero-title {
        font-size: var(--font-size-3xl) !important;
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }
    
    h2, .section-title {
        font-size: var(--font-size-2xl) !important;
        line-height: 1.3;
        margin-bottom: var(--spacing-md);
    }
    
    h3 {
        font-size: var(--font-size-xl) !important;
        line-height: 1.4;
    }
    
    h4 {
        font-size: var(--font-size-lg) !important;
    }
    
    p, li {
        font-size: var(--font-size-base);
        line-height: 1.6;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Button mobile optimization */
    .button, .cta-button, .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
        border-radius: 25px;
        width: 100%;
        max-width: 280px;
        margin: var(--spacing-xs) auto;
        display: block;
        text-align: center;
    }
    
    /* Navigation mobile optimization */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .nav-brand {
        font-size: var(--font-size-lg) !important;
    }
    
    .nav-menu {
        font-size: var(--font-size-sm);
    }
    
    /* Hero section mobile */
    .hero {
        padding: var(--spacing-xl) 0;
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Service cards mobile */
    .service-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card, .service-item {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .service-card h3 {
        font-size: var(--font-size-lg) !important;
    }
    
    .service-card p {
        font-size: var(--font-size-sm);
    }
    
    /* Contact section mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .contact-method i {
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-xl);
    }
    
    /* Form mobile optimization */
    .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    .form-group label {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: var(--font-size-base);
        padding: var(--spacing-sm);
        border-radius: 8px;
    }
    
    /* Stats mobile */
    .stats-grid, .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-sm);
        text-align: center;
    }
    
    .stat-number {
        font-size: var(--font-size-xl) !important;
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: var(--font-size-lg) !important;
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-section p,
    .footer-section li {
        font-size: var(--font-size-sm);
    }
    
    /* Social links mobile */
    .social-grid,
    .footer-social {
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg) !important;
    }
}

/* Small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.85rem;
        --font-size-base: 0.95rem;
        --font-size-lg: 1.05rem;
        --font-size-xl: 1.2rem;
        --font-size-2xl: 1.4rem;
        --font-size-3xl: 1.8rem;
        --font-size-4xl: 2.2rem;
    }
    
    html {
        font-size: 15px;
    }
    
    .service-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid, .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .button, .cta-button {
        width: auto;
        min-width: 200px;
    }
}

/* Large tablets (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .service-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl) !important;
    }
    
    .section-title {
        font-size: var(--font-size-3xl) !important;
    }
}

/* Desktop optimizations (993px+) */
@media (min-width: 993px) {
    .service-grid, .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid, .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* High-resolution displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
}

/* Dark mode optimization for mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    :root {
        --text-color: #f8f9fa;
        --border-color: #495057;
        --card-bg: #343a40;
    }
    
    body {
        background-color: #212529;
        color: var(--text-color);
    }
    
    .service-card,
    .faq-item {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Touch-friendly targets */
    .nav-link,
    .button,
    .faq-question,
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved focus states */
    .nav-link:focus,
    .button:focus,
    .faq-question:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Better text contrast */
    p, li, span {
        color: var(--text-color);
        text-shadow: none;
    }
}

/* Performance optimization for mobile */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize images for mobile */
    img {
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }
    
    /* Reduce shadows for better performance */
    .service-card,
    .faq-item,
    .contact-card {
        box-shadow: var(--shadow-sm);
    }
}

/* Print styles for mobile */
@media print {
    .navbar,
    .social-links,
    .cta-buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Responsive */
@media(max-width: 992px) {
    .service-grid, .why-us-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
    h2 { font-size: 2.2rem; margin-bottom: 3rem; }
    .hero-content h1 { font-size: 2.8rem; }
    section { padding: 3.5rem 0; }
    
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    
    .nav-menu.active {
        max-height: 100vh;
        padding: 1rem 0;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-menu a {
        padding: 1rem 2rem;
        display: block;
        justify-content: center;
    }
    .nav-menu a:hover, .nav-menu a:focus {
        background-color: var(--light-gray);
    }
    .nav-menu a::after {
        display: none;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        background-color: #f8f9fa;
        transform: none;
        transition: none;
        display: none;
    }
    .dropdown-content.show {
        display: block;
    }
    .dropdown-content a {
        padding-left: 3rem;
        color: var(--dark-gray);
    }
    
    .service-grid, .why-us-grid, .project-grid { grid-template-columns: 1fr; }
}
/* Style refinements for dropdown with icons */
.dropdown-content a i {
    margin-right: 12px; /* Creates space between icon and text */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dropdown-content a:hover i {
    opacity: 1;
}

/* Ensure anchored sections are visible below the fixed header when jumped-to */
.service-item, .service-item[id] {
    scroll-margin-top: 96px; /* adjust if header height changes */
}

/* ===== ENHANCED SEARCH FUNCTIONALITY ===== */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 1rem;
    max-width: 300px;
}

#siteSearch {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#siteSearch:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#searchBtn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    margin-left: -40px;
    z-index: 10;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#searchBtn:hover {
    background: var(--primary-dark);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.search-result-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.search-result-url {
    font-size: 0.75rem;
    color: #28a745;
    margin-top: 0.25rem;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Mobile responsive for search */
@media (max-width: 768px) {
    .search-container {
        display: none; /* Hide on mobile to save space */
    }
    
    .mobile-search-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.5rem;
    }
}

/* ===== ADVANCED THEME SYSTEM ===== */
:root {
    /* Brand Colors */
    --brand-primary: #007bff;
    --brand-secondary: #6c757d;
    --brand-success: #28a745;
    --brand-danger: #dc3545;
    --brand-warning: #ffc107;
    --brand-info: #17a2b8;
    
    /* Theme Variables - Default (Blue) */
    --primary-color: var(--brand-primary);
    --primary-dark: #0056b3;
    --primary-light: #66b3ff;
    --secondary-color: var(--brand-secondary);
    --accent-color: #ff6b35;
    
    /* Neutral Colors */
    --white-color: #ffffff;
    --black-color: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Semantic Colors */
    --success-color: var(--brand-success);
    --danger-color: var(--brand-danger);
    --warning-color: var(--brand-warning);
    --info-color: var(--brand-info);
    
    /* Theme-specific Variables */
    --bg-color: var(--white-color);
    --text-color: var(--gray-800);
    --text-muted: var(--gray-600);
    --nav-bg: var(--white-color);
    --card-bg: var(--white-color);
    --border-color: var(--gray-300);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --overlay-color: rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Georgia', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== THEME VARIATIONS ===== */

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --nav-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --border-color: #404040;
    --shadow-color: rgba(255, 255, 255, 0.1);
    --overlay-color: rgba(0, 0, 0, 0.8);
    --gray-100: #2d2d2d;
    --gray-200: #404040;
    --gray-300: #525252;
}

/* Purple Theme */
[data-theme="purple"] {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --accent-color: #f59e0b;
}

/* Green Theme */
[data-theme="green"] {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --accent-color: #f59e0b;
}

/* Orange Theme */
[data-theme="orange"] {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --accent-color: #3b82f6;
}

/* Pink Theme */
[data-theme="pink"] {
    --primary-color: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #f472b6;
    --accent-color: #10b981;
}

/* Red Theme */
[data-theme="red"] {
    --primary-color: #ef4444;
    --primary-dark: #dc2626;
    --primary-light: #f87171;
    --accent-color: #3b82f6;
}

/* Teal Theme */
[data-theme="teal"] {
    --primary-color: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: #2dd4bf;
    --accent-color: #f59e0b;
}

/* Minimal Theme */
[data-theme="minimal"] {
    --primary-color: #374151;
    --primary-dark: #1f2937;
    --primary-light: #6b7280;
    --accent-color: #f59e0b;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* High Contrast Theme */
[data-theme="high-contrast"] {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --nav-bg: #000000;
    --card-bg: #111111;
    --border-color: #ffffff;
    --primary-color: #00ff00;
    --primary-dark: #00cc00;
    --primary-light: #66ff66;
    --shadow-color: rgba(255, 255, 255, 0.2);
}

/* ===== FONT SIZE VARIATIONS ===== */
[data-font-size="small"] {
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
}

[data-font-size="large"] {
    --font-size-base: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 2.75rem;
}

/* ===== SPACING VARIATIONS ===== */
[data-spacing="compact"] {
    --spacing-xs: 0.125rem;
    --spacing-sm: 0.25rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
}

[data-spacing="comfortable"] {
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* ===== BORDER RADIUS VARIATIONS ===== */
[data-border-style="sharp"] {
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
}

[data-border-style="extra-rounded"] {
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background-color: var(--nav-bg);
    transition: background-color 0.3s ease;
}

.service-item, .card, .contact-form-wrapper {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 0.5rem;
}

.dark-mode-toggle:hover {
    background-color: var(--border-color);
}

[data-theme="dark"] .dark-mode-toggle i:before {
    content: "\f185"; /* fa-sun */
}

/* Footer dark mode */
footer {
    background-color: var(--nav-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== THEME CUSTOMIZER PANEL ===== */
.theme-customizer {
    position: fixed;
    top: 50%;
    right: -350px;
    transform: translateY(-50%);
    width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transition: right var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

.theme-customizer.open {
    right: 0;
}

.theme-customizer-toggle {
    position: absolute;
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 80px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.theme-customizer-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.theme-customizer-header {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-lg);
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.theme-customizer-content {
    padding: var(--spacing-lg);
}

.customizer-section {
    margin-bottom: var(--spacing-xl);
}

.customizer-section h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.theme-option {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.theme-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

.theme-option::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.theme-option.active::after {
    opacity: 1;
}

/* Theme Preview Colors */
.theme-blue { background: linear-gradient(135deg, #007bff, #0056b3); }
.theme-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.theme-green { background: linear-gradient(135deg, #10b981, #059669); }
.theme-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.theme-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.theme-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.theme-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.theme-minimal { background: linear-gradient(135deg, #374151, #1f2937); }
.theme-dark { background: linear-gradient(135deg, #1e1e1e, #121212); }
.theme-high-contrast { background: linear-gradient(135deg, #000000, #333333); }

.customizer-control {
    margin-bottom: var(--spacing-lg);
}

.customizer-control label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.customizer-select,
.customizer-slider {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.customizer-slider {
    height: 40px;
    cursor: pointer;
}

.customizer-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.customizer-btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.customizer-btn.primary {
    background: var(--primary-color);
    color: white;
}

.customizer-btn.secondary {
    background: var(--gray-200);
    color: var(--text-color);
}

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

.font-preview {
    background: var(--gray-100);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.switch-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.switch.active {
    background: var(--primary-color);
}

.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.switch.active::after {
    transform: translateX(26px);
}

/* Animation Effects */
.theme-transition {
    transition: all var(--transition-normal);
}

@keyframes themeChange {
    0% { opacity: 0.8; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

.theme-changing {
    animation: themeChange 0.5s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .theme-customizer {
        width: 100%;
        right: -100%;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
    
    .theme-customizer-toggle {
        width: 40px;
        height: 60px;
        left: -40px;
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customizer-buttons {
        flex-direction: column;
    }
}
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-lazy.loaded {
    opacity: 1;
}

/* WebP support with fallback */
.webp-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero section with optimized background */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Performance improvements */
.service-item img,
.team-member img,
.project-img {
    loading: lazy;
    decoding: async;
}

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* Critical CSS for above-the-fold content */
.critical-section {
    contain: layout style paint;
}

/* Preload critical resources */
.preload-hint::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===== ADVANCED VISUAL ENHANCEMENTS ===== */

/* Enhanced Hover Effects */
.enhanced-hover {
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.enhanced-hover::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.6s ease;
}

.enhanced-hover:hover::before {
    left: 100%;
}

.enhanced-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Button Enhancements */
.btn, .button, a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

/* Enhanced Cards */
.service-item,
.card {
    position: relative;
    overflow: hidden;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

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

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

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.from-left {
    transform: translateX(-30px);
}

.scroll-reveal.from-right {
    transform: translateX(30px);
}

.scroll-reveal.from-left.revealed,
.scroll-reveal.from-right.revealed {
    transform: translateX(0);
}

/* Stagger Animation */
.stagger-animation .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Enhanced Navigation */
.navbar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(30, 30, 30, 0.95);
}

/* Focus Indicators */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

[data-focus-outline="true"] :focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Large Links for Accessibility */
[data-large-links="true"] a {
    font-size: 1.1em;
    padding: 0.5rem;
    margin: 0.25rem;
    display: inline-block;
}

/* Reduce Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow-color: rgba(0, 0, 0, 0.5);
    }
    
    .btn, .button {
        border: 2px solid var(--text-color);
    }
}

/* === COMPACT CONTACT SECTION OPTIMIZATION === */

/* Contact grid layout for space efficiency */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Compact contact item styling */
.contact-item.compact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item.compact:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-item.compact i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item.compact > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0; /* Allow text truncation */
}

.contact-item.compact strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.125rem;
}

.contact-item.compact a,
.contact-item.compact span {
    font-size: 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.3;
    word-break: break-word;
}

.contact-item.compact a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .contact-item.compact {
        padding: 0.625rem;
    }
    
    .contact-item.compact i {
        font-size: 1rem;
    }
    
    .contact-item.compact strong {
        font-size: 0.8rem;
    }
    
    .contact-item.compact a,
    .contact-item.compact span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        gap: 0.5rem;
    }
    
    .contact-item.compact {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

/* === UTILITY CLASSES FOR INLINE STYLES REPLACEMENT === */

/* Hide elements */
.display-none {
    display: none !important;
}

.display-block {
    display: block !important;
}

.display-flex {
    display: flex !important;
}

/* Button loader */
.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

.btn-loader.loading {
    display: inline-block;
}

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

/* Text alignment utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Margin utilities */
.mt-2 {
    margin-top: 2rem !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

/* Flex utilities */
.flex-gap-1 {
    display: flex;
    gap: 1rem;
}

.flex-gap-half {
    display: flex;
    gap: 0.5rem;
}

/* Font size utilities */
.font-size-base {
    font-size: var(--font-size-base) !important;
}

/* PWA install banner specific */
.pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.pwa-install-banner.show {
    display: block;
}

/* Chatbot window */
.chatbot-window {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    z-index: 1000;
}

.chatbot-window.open {
    display: block;
}

/* === SOCIAL CONTACT BUTTONS STYLING === */

/* Contact buttons enhancement */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.contact-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-buttons .button::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 ease;
}

.contact-buttons .button:hover::before {
    left: 100%;
}

/* Phone button styling */
.phone-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.phone-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Zalo button styling */
.zalo-btn {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}

.zalo-btn:hover {
    background: linear-gradient(135deg, #0066cc, #004499);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

/* WhatsApp button styling */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #1da851, #128c3d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* LinkedIn button styling */
.linkedin-btn {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #005885, #004066);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

/* Social links in footer */
.social-links a.social-zalo {
    background: #0084ff;
    color: white;
}

.social-links a.social-zalo:hover {
    background: #0066cc;
    transform: translateY(-3px) scale(1.1);
}

.social-links a.social-whatsapp {
    background: #25d366;
    color: white;
}

.social-links a.social-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px) scale(1.1);
}

/* Responsive design for contact buttons */
@media (max-width: 768px) {
    .contact-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .contact-buttons .button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-buttons .button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* === FLOATING CONTACT BUTTONS === */

.floating-contacts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: inherit;
}

.floating-contact-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #e67e00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 159, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 159, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 159, 0, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 159, 0, 0.4);
    }
}

.floating-contact-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 159, 0, 0.6);
}

.floating-contact-toggle i {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.floating-contact-toggle.active i {
    transform: rotate(180deg);
}

.contact-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.floating-contact-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    transform: scale(0.8);
    animation: fadeInUp 0.5s ease forwards;
}

.floating-contact-item:nth-child(1) { animation-delay: 0.1s; }
.floating-contact-item:nth-child(2) { animation-delay: 0.2s; }
.floating-contact-item:nth-child(3) { animation-delay: 0.3s; }
.floating-contact-item:nth-child(4) { animation-delay: 0.4s; }

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

.floating-contact-item:hover {
    transform: scale(1.15);
}

.phone-contact {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.zalo-contact {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
}

.whatsapp-contact {
    background: linear-gradient(135deg, #25d366, #1da851);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.email-contact {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.floating-contact-item i {
    color: white;
    font-size: 20px;
}

.contact-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-tooltip::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.floating-contact-item:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Mobile optimization for floating contacts */
@media (max-width: 768px) {
    .floating-contacts {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-contact-toggle {
        width: 55px;
        height: 55px;
    }
    
    .floating-contact-toggle i {
        font-size: 22px;
    }
    
    .floating-contact-item {
        width: 45px;
        height: 45px;
    }
    
    .floating-contact-item i {
        font-size: 18px;
    }
    
    .contact-tooltip {
        display: none; /* Hide tooltips on mobile */
    }
}

@media (max-width: 480px) {
    .floating-contact-toggle {
        width: 50px;
        height: 50px;
    }
    
    .floating-contact-toggle i {
        font-size: 20px;
    }
    
    .floating-contact-item {
        width: 42px;
        height: 42px;
    }
    
    .floating-contact-item i {
        font-size: 16px;
    }
}