﻿@charset "UTF-8";
/* Vector Air Conditioning - Design System & Premium Styling */

/* 1. Reset and Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* === CORE BACKGROUNDS === */
    --bg-main: #FFFFFF;
    --bg-alt: #EAF3FF;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(234, 243, 255, 0.98);
    --border-color: rgba(10, 95, 255, 0.12);
    --border-hover: rgba(10, 95, 255, 0.35);

    /* === BRAND COLORS === */
    --primary: #0A5FFF;
    --primary-hover: #0047CC;
    --primary-glow: rgba(10, 95, 255, 0.18);

    /* === TEXT COLORS === */
    --heading-color: #0A2342;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --text-dark: #6B7280;

    /* === STATUS COLORS === */
    --accent: #10b981;
    --danger: #ef4444;
    --secondary: #0A5FFF;

    /* === MISC === */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --header-height: 80px;
    --glass-blur: blur(20px);
    --shadow-premium: 0 4px 24px -4px rgba(10, 35, 66, 0.10);
    --shadow-blue: 0 0 20px rgba(10, 95, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--heading-color);
}

/* Scrollbar Customisation */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #EAF3FF;
}
::-webkit-scrollbar-thumb {
    background: rgba(10, 95, 255, 0.18);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 2. Global Helper Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium), var(--shadow-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(10, 95, 255, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(10, 95, 255, 0.40);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--primary-hover);
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-cyan {
    background: rgba(10, 95, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(10, 95, 255, 0.2);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.text-gradient {
    color: var(--primary);
}

.text-cyan-gradient {
    color: var(--primary);
}

/* 3. Layout Structure */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(10, 95, 255, 0.10);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 16px rgba(10, 35, 66, 0.07);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo-vector {
    width: 32px;
    height: 32px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    position: relative;
    box-shadow: 0 0 12px rgba(10, 95, 255, 0.35);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(10, 95, 255, 0.07);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* Page Section Switcher (SPA Mechanism) */
.page-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-section.active-page {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 4. Home Page Components */
/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#hvac-hero-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at 75% 50%, transparent 5%, rgba(255, 255, 255, 0.96) 70%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--heading-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Quick HVAC Modes Widget */
.hero-modes-widget {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 3;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn:hover, .mode-btn.active {
    color: var(--heading-color);
    border-color: var(--primary);
}

.mode-btn::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mode-btn.cooling-mode::before { background: var(--primary); }
.mode-btn.heating-mode::before { background: var(--danger); }
.mode-btn.vent-mode::before { background: var(--accent); }

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-alt), #ffffff);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Company Intro & Choose Us Section */
.company-intro {
    padding: 6rem 0;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-header {
    margin-bottom: 2rem;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.company-about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.why-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.why-card h3 {
    font-size: 1.2rem;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.why-card h3 svg {
    color: var(--primary);
    flex-shrink: 0;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 5. Services & Industries Page Components */
.services-showcase {
    padding: 5rem 0;
}

.service-card {
    padding: 3rem;
    margin-bottom: 3rem;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.service-title h2 {
    font-size: 2.25rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.service-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.service-details h3, .service-benefits h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(234, 243, 255, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(10, 95, 255, 0.06);
    border-color: var(--primary);
}

.feature-item svg {
    color: var(--primary);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-item svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.benefit-content h4 {
    font-size: 1rem;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.benefit-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Industries Cards Grid */
.industries-section {
    padding: 5rem 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.industry-card {
    position: relative;
    padding: 2.5rem;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 95, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    transition: var(--transition);
}

.industry-card:hover::before {
    transform: scale(1.2);
}

.industry-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.industry-card h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.industry-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 6. Projects Showcase */
.projects-section {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-img-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.metric-box span {
    display: block;
}

.metric-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-lbl {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* Before and After slider */
.slider-container {
    margin: 5rem auto;
    max-width: 900px;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-before {
    z-index: 1;
}

.slider-after {
    z-index: 2;
    width: 50%; /* Initial split */
    border-right: 2px solid var(--primary);
}

.slider-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Changed to 100% for mobile responsiveness */
    height: 480px;
    background-size: cover;
    background-position: center;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #ffffff;
    cursor: ew-resize;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: background 0.2s;
}

.slider-handle:hover {
    background: var(--primary-hover);
}

.slider-label {
    position: absolute;
    bottom: 1.5rem;
    z-index: 5;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.label-before {
    left: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.label-after {
    right: 1.5rem;
    background: rgba(14, 165, 233, 0.8);
    color: #fff;
    border: 1px solid var(--primary);
}

/* 7. AI Solutions Page (Calculators & Tools Workspace) */
.ai-workspace {
    padding: 5rem 0;
}

.ai-tab-nav {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    scrollbar-width: thin;
}

.ai-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-tab-btn:hover, .ai-tab-btn.active {
    color: var(--heading-color);
    background: rgba(10, 95, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(10, 95, 255, 0.10);
}

.ai-tab-btn svg {
    font-size: 1.1rem;
}

.ai-tool-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.ai-tool-panel.active-panel {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.ai-input-pane, .ai-output-pane {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(10, 95, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Custom checkbox/radio groups */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* AI Output Panel Styles */
.output-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    color: var(--text-dark);
    padding: 4rem 2rem;
}

.output-placeholder svg {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.output-result {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.output-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.output-header h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
}

.output-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.out-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
}

.out-card .val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.out-card .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.output-text-block {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.output-text-block h4 {
    font-size: 0.95rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.output-text-block h4 svg {
    color: var(--primary);
}

.output-text-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Compliance List Output */
.compliance-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compliance-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.compliance-checklist li svg {
    color: var(--accent);
}

/* Clash Analysis Simulated Log viewer */
.clash-viewer {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.85rem;
}

.clash-item {
    border-left: 3px solid var(--danger);
    background: rgba(239, 68, 68, 0.02);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0 8px 8px 0;
    transition: var(--transition);
}

.clash-item.resolved {
    border-left-color: var(--accent);
    background: rgba(16, 185, 129, 0.03);
}

.clash-meta {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.clash-id { color: var(--danger); }
.clash-item.resolved .clash-id { color: var(--accent); }

.clash-elements { color: var(--text-muted); }
.clash-desc { color: var(--text-dark); margin-top: 0.25rem; }

.clash-resolution {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(15,23,42,0.05);
    color: var(--primary);
    font-style: italic;
}

/* Feasibility Meter */
.meter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.feasibility-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 40%, transparent 100%);
    border: 8px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.feasibility-score-circle.score-high { border-color: var(--accent); }
.feasibility-score-circle.score-med { border-color: #f59e0b; }
.feasibility-score-circle.score-low { border-color: var(--danger); }

.feasibility-score-circle .score {
    font-size: 2.25rem;
    font-weight: 800;
}

.feasibility-score-circle .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 8. About Us Section */
.about-section {
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 9. Contact Page */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info-pane {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(10, 95, 255, 0.08);
    border: 1px solid rgba(10, 95, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-card-text h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.contact-card-text p, .contact-card-text a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card-text a:hover {
    color: var(--primary);
}

/* Google Maps Mock Frame */
.map-container {
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    background: var(--bg-alt);
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-mock-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: radial-gradient(circle, var(--text-dark) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-overlay {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 2rem;
}

.map-overlay h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-top: 0.5rem;
}

.map-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Booking calendar picker layout */
.booking-calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day-cell:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--heading-color);
    background: rgba(10, 95, 255, 0.05);
}

.calendar-day-cell.selected {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(10, 95, 255, 0.25);
}

.calendar-day-cell.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot-btn {
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.time-slot-btn:hover:not(.selected) {
    border-color: var(--primary);
    color: var(--heading-color);
}

.time-slot-btn.selected {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* 10. Advanced Features */
/* AI Chat Assistant Floating Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 4px 20px rgba(10, 95, 255, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.2);
}

.chat-trigger-btn:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 25px rgba(10, 95, 255, 0.55);
}

.chat-bubble-body {
    width: calc(100vw - 32px);
    max-width: 380px;
    height: 520px;
    margin-bottom: 1rem;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chat-bubble-body.active {
    display: flex;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(241,245,249,0.9));
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(14,165,233,0.3);
}

.chat-agent-text h4 {
    font-size: 0.95rem;
    color: var(--heading-color);
}

.chat-agent-text span {
    font-size: 0.7rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-agent-text span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.chat-close-btn:hover {
    color: var(--heading-color);
}

.chat-history {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
}

.chat-msg {
    max-width: 85%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: messageFade 0.25s ease-out forwards;
}

@keyframes messageFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
    background: rgba(241, 245, 249, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg-user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(14,165,233,0.15);
}

.chat-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid rgba(15,23,42,0.03);
}

.chat-suggest-btn {
    border: 1px solid var(--border-color);
    background: rgba(241,245,249,0.5);
    border-radius: 100px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.chat-suggest-btn:hover {
    border-color: var(--primary);
    color: var(--heading-color);
    background: rgba(10, 95, 255, 0.05);
}

.chat-input-area {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.chat-input-area input {
    flex-grow: 1;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Client Portal / Dashboard Frame */
.client-dashboard-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}

.client-dashboard-toggle:hover {
    border-color: var(--primary);
    color: var(--heading-color);
}

.sidebar-dashboard {
    position: fixed;
    top: 0;
    right: -420px; /* Hidden offscreen initial */
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    z-index: 1010;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-dashboard.open {
    right: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
}

.db-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
}

.dashboard-content {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* CRM Logs and admin viewer popup */
.admin-crm-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(234, 243, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: monospace;
    cursor: pointer;
    z-index: 998;
    transition: var(--transition);
}

.admin-crm-btn:hover {
    color: var(--heading-color);
    border-color: var(--primary);
}

.admin-crm-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 950px;
    height: 80vh;
    z-index: 1050;
    display: none;
    padding: 2.5rem;
    background: #ffffff;
    animation: modalPop 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.admin-crm-panel.active {
    display: flex;
    flex-direction: column;
}

@keyframes modalPop {
    to { transform: translate(-50%, -50%) scale(1); }
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    display: none;
}

.modal-backdrop.active {
    display: block;
}

.crm-logs-table-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 1.5rem;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.crm-table th, .crm-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.crm-table th {
    background: var(--bg-alt);
    color: var(--heading-color);
    font-weight: 600;
}

.crm-table td {
    color: var(--text-muted);
}

/* File Upload System Card UI */
.file-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(10, 95, 255, 0.03);
}

.file-upload-zone svg {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.file-upload-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.uploaded-files-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uploaded-file-item {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uploaded-file-item span {
    color: var(--text-main);
}

.uploaded-file-item button {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
}

/* 11. Blog & Newsletter Elements */
.blog-section {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-meta-info {
    padding: 1.5rem 1.5rem 0 1.5rem;
    font-size: 0.75rem;
    color: var(--text-dark);
    display: flex;
    gap: 1rem;
}

.blog-card h3 {
    padding: 0.75rem 1.5rem;
    font-size: 1.3rem;
    color: var(--heading-color);
}

.blog-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-grow: 1;
}

.blog-card a {
    margin: auto 1.5rem 1.5rem 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--bg-alt), rgba(214, 232, 255, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
}

.newsletter-box h3 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.newsletter-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

/* 12. Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--heading-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: #9BAABE;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #EAF3FF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9BAABE;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #9BAABE;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #EAF3FF;
}

/* 13. Mobile Responsiveness */

/*  Hamburger Button  */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger-btn:hover { background: var(--bg-alt); }
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--heading-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/*  Mobile Nav Overlay  */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}
.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    display: block;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary);
    background: var(--bg-alt);
}

/*  Tablet ( 1024px)  */
@media (max-width: 1024px) {
    .grid-2col { grid-template-columns: 1fr; gap: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .service-layout { grid-template-columns: 1fr; }
    .why-choose-grid { grid-template-columns: 1fr 1fr; }
    .industries-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .stats-bar .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/*  Mobile ( 768px)  */
@media (max-width: 768px) {

    /* Navigation */
    header { height: 64px; padding: 0; }
    main { margin-top: 64px; }
    .nav-links { display: none; }
    .hamburger-btn { display: flex; }
    .mobile-nav-overlay { display: flex; }

    /* Container */
    .container { padding: 0 1.25rem; }
    .page-section { padding: 3rem 0; }

    /* Hero */
    .hero-section { min-height: calc(100vh - 64px); padding: 2rem 0; }
    .hero-content { max-width: 100%; padding: 0 1.25rem; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-content p { font-size: 0.95rem; }
    .hero-buttons { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
    .hero-buttons .btn { width: auto; max-width: 100%; text-align: center; justify-content: center; padding: 12px 24px; }
    .hero-modes-widget { position: relative; bottom: auto; right: auto; margin: 2rem auto 0 auto; width: 100%; height: auto; display: flex; flex-direction: column; }
    .hero-visual { display: none; }

    /* Section Headers */
    .section-title { font-size: 1.8rem; }
    .section-header { margin-bottom: 2rem; }

    /* Stats Bar */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-number { font-size: 2rem; }

    /* Why Choose Grid */
    .why-choose-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Cards */
    .glass-card { padding: 1.5rem; }

    /* Values Grid */
    .values-grid { grid-template-columns: 1fr; }

    /* Services */
    .service-layout { grid-template-columns: 1fr; }
    .service-tabs { flex-direction: column; gap: 0.5rem; }
    .service-tab-btn { width: 100%; text-align: left; }
    .feature-grid { grid-template-columns: 1fr 1fr; }

    /* Industries */
    .industries-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; }
    .comparison-slider { height: 250px; }

    /* AI Workspace */
    .ai-tabs { flex-wrap: wrap; gap: 0.5rem; }
    .ai-tab-btn { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
    .ai-grid { grid-template-columns: 1fr; }
    .output-cards-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .out-card { padding: 1rem; }
    .out-card .val { font-size: 1.4rem; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-info-pane { order: 2; }
    .booking-calendar-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    .calendar-grid { gap: 4px; }
    .calendar-day-cell { font-size: 0.75rem; padding: 0.4rem; }

    /* Chat Widget */
    .chat-bubble-body {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 5rem;
        height: 420px;
    }
    .chat-trigger-btn { width: 52px; height: 52px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .form-control { border-radius: 10px; }
    .newsletter-form .btn { width: 100%; border-radius: 10px; }

    /* Buttons full-width on mobile */
    .btn { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
}

/*  Small Mobile ( 480px)  */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.85rem; }
    .section-title { font-size: 1.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 1.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .output-cards-grid { grid-template-columns: 1fr; }
    .mobile-nav-links a { font-size: 1.6rem; }
    .industries-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}

/* ========================================================= */
/* COMPREHENSIVE RESPONSIVENESS FIXES (OVERRIDING ABOVE)      */
/* ========================================================= */
img { 
    max-width: 100%; 
    height: auto; 
    object-fit: cover; 
}

/* Responsive CTA Buttons globally */
.cta-buttons, .hero-buttons, form .buttons, .service-card .btn-group, .hero-modes-widget {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    width: auto !important;
    max-width: 100%;
}

.cta-buttons .btn, .hero-buttons .btn, form .btn, .service-card .btn, .hero-modes-widget .mode-btn {
    width: auto !important;
    min-width: 140px;
    max-width: 100%;
    padding: 12px 24px !important;
    flex: 1 1 auto;
}

/* Fix Services disappearing issue */
.service-card, .services-showcase, .service-layout, .page-section {
    height: auto !important;
    min-height: fit-content !important;
    overflow: visible !important;
}

/* Global Spacing and Grids */
@media (min-width: 1025px) {
    .page-section { padding: 80px 0 !important; }
}

@media (max-width: 1024px) {
    .page-section { padding: 60px 0 !important; }
    .stats-grid, .industries-grid, .projects-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .page-section { padding: 40px 0 !important; }
    .stats-grid, .industries-grid, .projects-grid, .values-grid, .footer-grid, .service-layout, .feature-grid, .contact-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-bottom { 
        flex-direction: column; 
        text-align: center; 
    }
}

@media (max-width: 414px) {
    .hero-content h1 { font-size: 2rem !important; }
    .section-title { font-size: 1.5rem !important; }
    p { font-size: 1rem !important; }
    .btn, .mode-btn { padding: 10px 16px !important; font-size: 0.9rem; }
}

/* ========================================================= */
/* STRICT MOBILE FAILSAFE (PREVENT ALL HORIZONTAL SCROLL)    */
/* ========================================================= */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

* {
    max-width: 100vw;
}

/* === SPA PAGE SECTION ROUTING FIX === */
.page-section {
    display: none !important;
    opacity: 0;
}
.page-section.active-page {
    display: block !important;
    opacity: 1;
}
