/* ==========================================================================
   M.SH.M. Electro-Mechanical Systems Ltd. — HVAC Website
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #1B2C5E;
    --primary-dark: #0F1B3F;
    --primary-light: #2D4A8A;
    --primary-glow: rgba(27, 44, 94, 0.15);
    --accent: #4A7BC8;
    --accent-bright: #6B9BE6;
    --gold: #D4A93C;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --success: #10B981;
    --error: #EF4444;

    --shadow-sm: 0 1px 2px rgba(15, 27, 63, 0.05);
    --shadow: 0 4px 12px rgba(15, 27, 63, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 27, 63, 0.12);
    --shadow-lg: 0 20px 48px rgba(15, 27, 63, 0.18);
    --shadow-xl: 0 32px 64px rgba(15, 27, 63, 0.25);

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container: 1280px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: 'Heebo', 'Rubik', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 0;
    left: 0;
    height: 12px;
    background: linear-gradient(to top, rgba(74, 123, 200, 0.3), transparent);
    z-index: -1;
    border-radius: 2px;
}
.highlight-light {
    color: var(--accent-bright);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.top-bar-info {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-info a, .top-bar-info span {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.top-bar-info a:hover { color: var(--accent-bright); }
.top-bar-info i { color: var(--accent-bright); font-size: 13px; }

.top-bar-social { display: flex; gap: 8px; }
.top-bar-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 13px;
}
.top-bar-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96);
}

.header-content {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.logo:hover { transform: scale(1.02); }
.logo-img { width: 50px; height: 50px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo-subtitle {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 10px 18px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 18px;
    left: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.nav-link.cta-link {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    margin-right: 8px;
}
.nav-link.cta-link:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.nav-link.cta-link.active::after { display: none; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(27, 44, 94, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-block { width: 100%; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height) - 44px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 27, 63, 0.92), rgba(27, 44, 94, 0.85)),
        url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1920&q=80') center/cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(74, 123, 200, 0.3), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 74, 138, 0.4), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    width: 100%;
}
.hero-text { max-width: 900px; }

.hero-tagline {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-bright);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-bright), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .highlight::after { display: none; }

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 800px;
}
.stat { text-align: center; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    font-family: 'Rubik', sans-serif;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-scroll 2s infinite;
}
@keyframes bounce-scroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Sections (Generic)
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark {
    background:
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}
.section-light { background: var(--gray-50); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-bright);
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-title.white { color: var(--white); }
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
}
.section-subtitle.light { color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-content h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.85;
}
.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 16px var(--primary-glow);
}
.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--gray-900);
}
.feature p { font-size: 0.95rem; color: var(--gray-500); margin: 0; }

.about-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;
}
.about-image-wrap img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.15;
}
.about-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Rubik', sans-serif;
    line-height: 1;
}
.badge-text {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-bright), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}
.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
    background: linear-gradient(135deg, rgba(74, 123, 200, 0.2), rgba(45, 74, 138, 0.15));
    border-color: var(--accent);
}
.service-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 24px rgba(74, 123, 200, 0.3);
}
.service-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 14px;
}
.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.7;
}
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
}
.service-list i {
    color: var(--accent-bright);
    font-size: 13px;
    width: 20px;
    height: 20px;
    background: rgba(107, 155, 230, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.team-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.team-card:hover::before { opacity: 1; }
.team-card > * { position: relative; z-index: 1; }

.team-icon-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    box-shadow: 0 12px 24px var(--primary-glow);
    transition: var(--transition);
}
.team-card:hover .team-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}
.team-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.team-card p {
    color: var(--gray-500);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ==========================================================================
   Fire Safety Section
   ========================================================================== */
.fire-safety {
    background: var(--gray-50);
    overflow: hidden;
}
.fire-safety-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.fire-safety-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/5;
}
.fire-safety-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fire-icon-bg {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #DC2626, #F97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 80px;
    opacity: 0.3;
}

.fire-safety-content .section-title { text-align: right; }
.fire-safety-content > p {
    margin: 24px 0 32px;
    font-size: 1.05rem;
    line-height: 1.85;
}
.fire-safety-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.fire-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border-right: 4px solid var(--primary);
    transition: var(--transition);
}
.fire-feature:hover {
    transform: translateX(-6px);
    box-shadow: var(--shadow);
}
.fire-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #DC2626, #F97316);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.fire-feature h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.fire-feature p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* ==========================================================================
   Sectors Grid (Projects)
   ========================================================================== */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.sector-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
}
.sector-card:hover h3, .sector-card:hover p { color: var(--white); }
.sector-card:hover .sector-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.sector-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}
.sector-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--gray-900);
    transition: var(--transition);
}
.sector-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    transition: var(--transition);
}

/* ==========================================================================
   Featured Projects Section
   ========================================================================== */
.featured-projects {
    background: var(--white);
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-btn {
    padding: 10px 22px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.filter-btn:hover {
    background: var(--primary-glow);
    color: var(--primary);
}
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    transform-origin: center;
    animation: project-fade-in 0.5s ease-out;
}
.project-card.hidden {
    display: none;
}
@keyframes project-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}
.project-card:hover .project-bg-icon {
    transform: scale(1.15) rotate(5deg);
    opacity: 0.4;
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.2), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.15), transparent 50%);
}
.project-bg-icon {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition-slow);
    z-index: 1;
}
.project-year {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 2;
    font-family: 'Rubik', sans-serif;
}

/* Project gradients per category */
.gradient-gold {
    background: linear-gradient(135deg, #B8860B, #D4A93C 50%, #FFD700);
}
.gradient-medical {
    background: linear-gradient(135deg, #0EA5E9, #06B6D4 50%, #14B8A6);
}
.gradient-office {
    background: linear-gradient(135deg, #1B2C5E, #2D4A8A 50%, #4A7BC8);
}
.gradient-retail {
    background: linear-gradient(135deg, #BE185D, #DB2777 50%, #EC4899);
}
.gradient-industry {
    background: linear-gradient(135deg, #4B5563, #6B7280 50%, #94A3B8);
}
.gradient-public {
    background: linear-gradient(135deg, #15803D, #16A34A 50%, #22C55E);
}

.project-info {
    padding: 24px;
}
.project-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.project-info h3 {
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
}
.project-info p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.projects-cta {
    text-align: center;
    padding: 36px 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
}
.projects-cta p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    font-weight: 500;
}

.coverage-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-xl);
    padding: 40px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}
.coverage-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-bright), transparent 70%);
    opacity: 0.3;
}
.coverage-content {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
}
.coverage-icon {
    font-size: 64px;
    color: var(--accent-bright);
    flex-shrink: 0;
}
.coverage-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.coverage-content p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 1.05rem;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    background:
        linear-gradient(135deg, rgba(15, 27, 63, 0.92), rgba(27, 44, 94, 0.88)),
        url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1920&q=80') center/cover fixed;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}
.cta-content h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}
.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.contact-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 48px 36px;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-bright), transparent 70%);
    opacity: 0.2;
}
.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
    align-items: flex-start;
}
.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    backdrop-filter: blur(10px);
}
.contact-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}
.contact-item p, .contact-item a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14.5px;
    line-height: 1.6;
}
.contact-item a:hover { color: var(--accent-bright); }

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}
.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}
.contact-social a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-900);
    transition: var(--transition);
    font-size: 15px;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    display: none;
}
.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}
.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 60px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-logo {
    width: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-col p { line-height: 1.8; margin-bottom: 24px; font-size: 14.5px; }

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
    font-size: 14.5px;
}
.footer-links a:hover { color: var(--accent-bright); padding-right: 4px; }
.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-contact i {
    color: var(--accent-bright);
    font-size: 13px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Floating Buttons
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
}
@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1FB855;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   Reveal On Scroll
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .about-grid, .fire-safety-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .top-bar-info { gap: 16px; font-size: 13px; }
    .top-bar-info span { display: none; }

    .menu-toggle { display: flex; }
    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 32px 24px;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }
    .nav.active { right: 0; }
    .nav-link {
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-100);
        font-size: 16px;
    }
    .nav-link.active::after { display: none; }
    .nav-link.cta-link { margin: 16px 0 0; text-align: center; }

    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 1.75rem; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 32px 24px; }
    .contact-info { padding: 36px 28px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer { padding-top: 60px; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 20px 0; }

    .coverage-content { flex-direction: column; text-align: center; gap: 20px; }
    .coverage-banner { padding: 32px 24px; }

    .about-badge { padding: 16px 20px; bottom: -20px; left: -10px; }
    .badge-number { font-size: 1.75rem; }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
    }
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
    }

    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { padding: 14px 24px; }

    .logo-img { width: 42px; height: 42px; }
    .logo-title { font-size: 17px; }
    .logo-subtitle { font-size: 11px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .top-bar-info a:not(:first-child) { display: none; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .service-card, .team-card { padding: 32px 24px; }
}
