.nav-container .logo {
    margin-left: 30px;
}
/* ============================================
   CSS Variables - Dependency Inversion Principle
   ============================================ */
:root {
    /* Color Palette */
    --primary-color: #1a3a52;
    --secondary-color: #991B1B;
    --accent-color: #7F1D1D;
    --text-dark: #1f1f1f;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0d1b2a;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Poppins', 'Georgia', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
}

/* Dark Theme */
body.theme-dark {
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --text-white: #ffffff;
    --bg-light: #1a1a1a;
    --bg-dark: #0a0a0a;
    --border-color: #333333;
    background-color: #121212;
    color: var(--text-dark);
}

body.theme-dark .navbar {
    background: rgba(0, 0, 0, 0.95);
}

body.theme-dark .service-card,
body.theme-dark .cert-card,
body.theme-dark .testimonial-card,
body.theme-dark .blog-card,
body.theme-dark .faq-item {
    background: #1e1e1e;
    color: var(--text-dark);
}

body.theme-dark .hero {
    background-blend-mode: overlay;
}

/* ============================================
   Base Styles - Single Responsibility
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 74px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ============================================
   Container - Reusable Component
   ============================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ============================================
   Navigation - Single Responsibility
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: top 0.3s ease, box-shadow var(--transition-normal), background var(--transition-normal);
}

.navbar.hidden {
    top: -100px;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    /* use shared .container sizing so navbar aligns with page content */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    height: 100%;
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-self: start;
    min-width: fit-content;
    margin: 0;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: transform var(--transition-fast);
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.btn-contact {
    background: var(--secondary-color);
    color: var(--text-white) !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 25px;
    flex-shrink: 0;
    min-width: fit-content;
    margin-left: 0.75rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 12px rgba(153, 27, 27, 0.4);
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 27, 27, 0.5) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-shrink: 0;
    margin-left: 1rem;
    order: 3;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ============================================
   Nav Social Icons — 3D Animation
   ============================================ */
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-social-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.92rem;
    text-decoration: none;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.nav-social-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: inherit;
    transform: translateZ(-5px) scale(0.88);
    filter: brightness(0.5);
    z-index: -1;
}

.nav-social-link:hover {
    transform: rotateY(360deg) scale(1.18);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.nav-social-fb { background: #1877F2; }
.nav-social-wa { background: #25D366; }
.nav-social-li { background: #0A66C2; }
.nav-social-ig { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 520px;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: url('../images/bghome.jpeg') center center/cover no-repeat;
    text-align: left;
    overflow: hidden;
    padding: 3rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.80) 15%,
        rgba(80, 5, 5, 0.78) 40%,
        rgba(110, 8, 8, 0.75) 70%,
        rgba(130, 10, 10, 0.72) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Circuit board texture overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 60px 60px, 30px 30px, 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Radial glow on the right */
.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(160, 15, 15, 0.4) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    padding-left: calc((100% - 1200px) / 2 + 1rem);
    padding-right: var(--spacing-md);
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    line-height: 1.6;
}

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

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* ============================================
   Button Components - Open/Closed Principle
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #386cdb;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-outline {
    background: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 36px rgba(153,27,27,0.14);
    padding: calc(var(--spacing-sm) - 0.05rem) var(--spacing-md);
    border-radius: 12px;
    font-weight: 700;
}

/* keep the CTA red across interactive states */
.btn-outline:visited,
.btn-outline:active,
.btn-outline:focus {
    background: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background: #8B0000;
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.1rem;
}

/* ============================================
   Compliance Logos Section
   ============================================ */
.compliance-logos {
    padding: var(--spacing-md) 0;
    background: var(--text-white);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.logos-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logos-scroll {
    display: flex;
    gap: 4rem;
    animation: scroll-logos 20s linear infinite;
    width: fit-content;
}

.logos-scroll:hover {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: var(--spacing-sm);
}

.logo-item img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Certifications Section — Horizontal Rows
   ============================================ */
.certifications {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: var(--spacing-lg);
}

.cert-row {
    background: var(--text-white);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: 56px 64px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cert-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px 0 0 4px;
}

.cert-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.2);
}

.cr-seq {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(139, 0, 0, 0.1);
    line-height: 1;
    user-select: none;
}

.cr-icon {
    width: 56px;
    height: 56px;
    background: rgba(139, 0, 0, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cert-row:hover .cr-icon {
    background: var(--primary-color);
    color: white;
}

.cr-body h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1c1c2e;
    margin-bottom: 0.35rem;
}

.cr-body p {
    font-size: 0.86rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.cr-meta {
    text-align: right;
    flex-shrink: 0;
}

.cr-detail {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cert-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cert-badge--gold {
    background: linear-gradient(135deg, #b7791f, #d69e2e);
}

.cert-badge--green {
    background: linear-gradient(135deg, #276749, #38a169);
}

/* ============================================
   Section Headers - Reusable Component
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

/* ============================================
   Live Dashboard Section
   ============================================ */
.hp-dashboard {
    background: #f4f4f6;
    padding: var(--spacing-xl) 0;
}

.hpd-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: var(--spacing-sm);
}

.hpd-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 2.5rem;
}

.hpd-chart-panel,
.hpd-feed-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.hpd-chart {
    position: relative;
    height: 280px;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hpd-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2.5px solid var(--secondary-color);
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
}

.hpd-dot-pulse {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    animation: hpdPulse 2s ease-in-out infinite;
}

@keyframes hpdPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(153, 27, 27, 0.5); }
    50%       { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 0 8px rgba(153, 27, 27, 0); }
}

.hpd-stats-bar {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.hpd-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hpd-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.hpd-stat-green { background: #16a34a; }
.hpd-stat-amber { background: #d97706; }
.hpd-stat-navy  { background: #1e3a5f; }

.hpd-stat-info {
    display: flex;
    flex-direction: column;
}

.hpd-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.hpd-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-top: 3px;
}

.hpd-feed-panel {
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    max-height: 390px;
    overflow-y: auto;
}

.hpd-feed-panel::-webkit-scrollbar { width: 6px; }
.hpd-feed-panel::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; }
.hpd-feed-panel::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.hpd-feed-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hpd-feed-item {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
}

.hpd-feed-item:last-child { margin-bottom: 0; }

.hpd-feed-time {
    font-size: 0.7rem;
    color: #aaa;
    display: block;
    margin-bottom: 0.4rem;
}

.hpd-feed-content {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: #222;
    font-weight: 500;
    line-height: 1.4;
}

.hpd-feed-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    flex-shrink: 0;
    margin-top: 1px;
}

.hpd-dot-green { background: #16a34a; }
.hpd-dot-amber { background: #d97706; }
.hpd-dot-blue  { background: #3b82f6; }

@media (max-width: 900px) {
    .hpd-grid { grid-template-columns: 1fr; }
    .hpd-feed-panel { max-height: 320px; }
}

/* ============================================
   About Preview Section
   ============================================ */
.about-preview {
    padding: var(--spacing-xl) 0;
}

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

.about-text .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.about-text .btn {
    margin-top: var(--spacing-md);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Services Section
   ============================================ */
.services-preview {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

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

/* Remove blue focus glow for mouse interactions but keep keyboard focus visible */
:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure common interactive elements don't show mobile tap highlight */
button, a, .btn, .mobile-menu-toggle, .nav-social-link, input[type="button"], input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
}

.service-card {
    background: var(--text-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-left: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

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

.service-link i {
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   Stats Section — Dark Full-Bleed
   ============================================ */
.stats {
    padding: 0;
    overflow: hidden;
}

.stats-inner {
    position: relative;
    background: linear-gradient(135deg, #150505 0%, #8B0000 50%, #b91c1c 100%);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.stats-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.12em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stat-item i {
    font-size: 1.7rem;
    margin-bottom: 0.85rem;
    opacity: 0.45;
    display: block;
}

.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1rem;
    margin-bottom: 0.4rem;
}

.stat-number {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 900;
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.55);
}

.stat-item p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--spacing-md) 0;
    background: var(--bg-light);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Home Page — Compliance Strip
   ============================================ */
.hp-compliance {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.hp-compliance .container {
    max-width: 1400px;
    width: 95%;
}

.hpc-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 3.5rem);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.hpc-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: #374151;
}

.hpc-item img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.hpc-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

.hpc-divider {
    width: 1px;
    height: 28px;
    background: #d1d5db;
    flex-shrink: 0;
}

/* ============================================
   Home Page — About Split
   ============================================ */
.hp-about {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
}

.hpa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hpa-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
    line-height: 0;
}

.hpa-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hpa-image:hover img {
    transform: scale(1.03);
}

.hpa-content .section-tag {
    text-align: left;
    margin-bottom: 0.5rem;
}

.hpa-content h2 {
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    color: #1c1c2e;
    margin: 0 0 1.25rem;
    line-height: 1.18;
}

.hpa-lead {
    font-size: 0.97rem;
    color: #4b5563;
    line-height: 1.85;
    margin-bottom: 0.75rem;
}

.hpa-body {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.hpa-boxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hpa-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: #f4f5f7;
    border-radius: 10px;
    border-left: 3px solid #1a3a52;
    transition: all 0.3s ease;
}

.hpa-box:hover {
    background: #eef0f4;
    transform: translateX(4px);
}

.hpa-box-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8eaf0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a52;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hpa-box:hover .hpa-box-icon {
    background: var(--secondary-color);
    color: #ffffff;
}

.hpa-box strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1c1c2e;
    margin-bottom: 0.15rem;
}

.hpa-box span {
    font-size: 0.77rem;
    color: var(--secondary-color);
}

/* ============================================
   Home Page — Services
   ============================================ */
.hp-services {
    padding: 2rem 0;
    background: #eef0f4;
}

.hps-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.04);
}

/* ── Left panel ── */
.hps-header {
    background: linear-gradient(160deg, #1a3a52 0%, #0c2033 100%);
    padding: 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hps-header-deco {
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.hps-header-deco::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -120px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(153,27,27,0.18);
}

.hps-header-body {
    position: relative;
    z-index: 1;
}

.hps-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f87171;
    background: rgba(153,27,27,0.25);
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.5rem;
}

.hps-header h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.hps-header p {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    margin: 0;
}

.hps-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(153,27,27,0.38);
}

.hps-cta-btn:hover {
    background: #7f1d1d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(153,27,27,0.5);
}

/* ── Right card grid ── */
.hps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
}

.hps-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    position: relative;
    overflow: hidden;
    transition: background 0.22s ease;
    min-height: 200px;
}

.hps-card:last-child { border-right: none; }
.hps-card:nth-child(3n) { border-right: none; }
.hps-card:nth-last-child(-n+3) { border-bottom: none; }

.hps-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color), #7f1d1d);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.hps-card:hover { background: #fafbfd; }
.hps-card:hover::before { transform: scaleY(1); }

.hps-num {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #dde1e8;
    letter-spacing: 0.05em;
    font-family: var(--font-primary);
    line-height: 1;
}

.hps-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(153, 27, 27, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hps-card:hover .hps-icon {
    background: var(--secondary-color);
    color: #ffffff;
    transform: scale(1.06) rotate(-3deg);
}

.hps-card h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1c1c2e;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.hps-card p {
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   Home Page — Stats (dark full-bleed)
   ============================================ */
.hp-stats {
    position: relative;
}

.hp-stats-inner {
    position: relative;
    background: linear-gradient(135deg, #1a0000 0%, #8B0000 50%, #6b0000 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.hp-stats-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 1;
}

.hp-stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.hp-stat-item:last-child {
    border-right: none;
}

.hp-stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hp-stat-item > i {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.75rem;
    display: block;
}

.hp-stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1rem;
    margin-bottom: 0.4rem;
}

.hp-stat-row .stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-family: var(--font-heading);
}

.hp-stat-sfx {
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.hp-stat-item p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Home Page — Testimonials
   ============================================ */
.hp-testimonials {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
}

.hpt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.hpt-card {
    background: #f9f9fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.hpt-card::before {
    content: '\201C';
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(139, 0, 0, 0.08);
    font-family: Georgia, serif;
    pointer-events: none;
}

.hpt-card:hover {
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(139, 0, 0, 0.09);
    border-color: rgba(139, 0, 0, 0.12);
    transform: translateY(-4px);
}

.hpt-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.hpt-card p {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.8;
    flex: 1;
    margin: 0;
}

.hpt-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hpt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #b91c1c);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.hpt-author strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1c1c2e;
}

.hpt-author span {
    font-size: 0.76rem;
    color: #9ca3af;
}

/* ============================================
   Home Page — Gallery
   ============================================ */
.hp-gallery {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
}

.hpg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 290px;
    gap: 1.25rem;
}

.hpg-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.hpg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hpg-item:hover img {
    transform: scale(1.06);
}

.hpg-item--tinted::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(100, 10, 10, 0.45);
    pointer-events: none;
}

.hpg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.hpg-item:hover .hpg-overlay {
    background: rgba(139, 0, 0, 0.45);
    opacity: 1;
}

/* ============================================
   Home Page — Clients CTA Banner
   ============================================ */
.hp-clients-cta {
    padding: 3.5rem 0;
    background: #f0f0f2;
    border-top: 1px solid #e5e7eb;
}

.hp-clients-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hp-clients-text h2 {
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: #1c1c2e;
    margin: 0.3rem 0 0.6rem;
    line-height: 1.2;
}

.hp-clients-text p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.75;
    max-width: 440px;
    margin: 0;
}

.hp-clients-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    background: var(--secondary-color);
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hp-clients-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Trusted Clients Section
   ============================================ */
.trusted-clients {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    overflow: hidden;
}

.clients-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: var(--spacing-md) 0;
}

.clients-scroll {
    display: flex;
    gap: 3rem;
    animation: scroll-clients 30s linear infinite;
    width: fit-content;
}

.clients-scroll:hover {
    animation-play-state: paused;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: var(--spacing-sm);
    background: var(--text-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    min-width: 150px;
    height: 100px;
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.client-logo-item img {
    max-height: 70px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: var(--transition-normal);
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 0;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

/* Contact column */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.contact-info li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
}

.ci-label {
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-cta-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer-cta-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--text-white);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Home Page — Responsive
   ============================================ */
@media (max-width: 1100px) {
    .hpa-grid {
        gap: 3rem;
    }

    .hps-layout {
        grid-template-columns: 220px 1fr;
    }

    .hps-header {
        padding: 1.4rem 1.25rem;
    }

    .hpg-grid {
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }

    .hpg-item--tall {
        grid-row: 1 / 3;
    }

    .hpg-item:nth-child(3) {
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .hp-compliance {
        padding: 0.6rem 0;
    }

    .hp-compliance .container {
        width: 100%;
        padding: 0;
    }

    .hpc-track {
        gap: 0;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
        scrollbar-width: none;
    }

    .hpc-track::-webkit-scrollbar {
        display: none;
    }

    .hpc-item {
        flex-shrink: 0;
        padding: 0 0.9rem;
        font-size: 0.75rem;
    }

    .hpc-item img {
        height: 24px;
    }

    .hpc-divider {
        flex-shrink: 0;
        height: 20px;
    }

    .hpa-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hpa-image img {
        height: 300px;
    }

    .hps-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        border-radius: 14px;
    }

    .hps-header {
        padding: 1.4rem 1.5rem;
    }

    .hps-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        min-height: 140px;
    }

    .hps-card {
        border-right: 1px solid #edf0f4;
        border-bottom: none;
    }

    .hps-card:last-child { border-right: none; }

    .hp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hp-stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hpt-grid {
        grid-template-columns: 1fr;
    }

    .hpg-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hpg-item--tall {
        grid-row: auto;
    }

    .hpg-item img {
        height: 220px;
    }
}

/* ============================================
   Responsive Design - Mobile First Approach
   ============================================ */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 var(--spacing-sm) !important;
    }

    .logo img {
        height: 44px;
    }

    .nav-menu {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 74px);
        background: var(--text-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: var(--spacing-md);
        gap: 0;
        margin: 0;
        order: 4;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .nav-menu li,
    .nav-menu li:not(:last-child),
    .nav-menu li:last-child {
        display: block !important;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        color: var(--text-dark);
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-md);
        display: block;
        width: 100%;
        white-space: normal;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--secondary-color);
        background: rgba(153, 27, 27, 0.08);
    }

    .btn-contact {
        text-align: center;
        background: var(--secondary-color) !important;
        color: var(--text-white) !important;
        margin-top: auto;
        margin-left: 0 !important;
        margin-right: 1rem;
        padding: 0.65rem 1.25rem !important;
        box-shadow: 0 4px 18px rgba(153,27,27,0.25);
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: unset;
        height: auto;
        padding: 3rem 0;
    }

    .hero-content {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--spacing-sm);
        justify-content: space-between;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .home-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 260px;
    }

    .cert-row {
        grid-template-columns: 48px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .cr-seq {
        display: none;
    }

    .cr-meta {
        grid-column: 1 / -1;
        text-align: left;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .btn-contact {
        padding: 0.6rem 1rem !important;
        margin-right: 0.75rem !important;
        font-size: 0.88rem;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 0.5rem;
    }

    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
    }

    body {
        padding-top: 74px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .cert-row {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .cr-icon {
        width: 44px;
        height: 44px;
    }

    .hero-content {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-stats {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
    }

    .hero-stat {
        flex: 1;
        text-align: center;
    }

    .hero-stat .stat-value {
        font-size: 1.6rem;
    }

    .hero-stat .stat-label {
        font-size: 0.65rem;
    }

    .hero-badge {
        font-size: 0.78rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .section-header {
        margin-bottom: var(--spacing-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-col--brand {
        grid-column: auto;
    }

    .back-to-top {
        bottom: 20px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--secondary-color);
    transform: rotate(20deg);
}

/* ============================================
   Enhanced Hero Section
   ============================================ */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(153, 27, 27, 0.9);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.highlight-text {
    color: var(--text-white);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: flex-start;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ============================================
   Enhanced Service Cards
   ============================================ */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: linear-gradient(135deg, #991B1B, #7F1D1D);
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card {
    position: relative;
}

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

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.service-features i {
    color: var(--success-color);
    font-size: 0.8rem;
}

/* ============================================
   Real-Time Threat Map Section
   ============================================ */
.threat-map-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.threat-map-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.map-container {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 400px;
    background-image:
        linear-gradient(rgba(26, 58, 82, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 58, 82, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pulse-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(153, 27, 27, 0.7);
}

.pulse-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(153, 27, 27, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(153, 27, 27, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(153, 27, 27, 0);
    }
}

.map-stats {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.map-stat-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 140px;
}

.map-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.map-stat-icon.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--text-white);
}

.map-stat-icon.responding {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: var(--text-white);
}

.map-stat-icon.secure {
    background: linear-gradient(135deg, #1a3a52, #2c5f8d);
    color: var(--text-white);
}

.map-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.map-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-feed {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    max-height: 400px;
    overflow-y: auto;
}

.activity-feed h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.activity-item {
    padding: var(--spacing-sm);
    border-left: 3px solid var(--secondary-color);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.activity-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.activity-content i {
    color: var(--success-color);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--text-white);
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
}

.author-company {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Home Gallery Section
   ============================================ */
.home-gallery-section {
    padding: var(--spacing-xl) 0;
    background: var(--text-white);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    height: 350px;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--text-white);
    font-size: 3rem;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: var(--spacing-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--text-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}

.faq-question i {
    color: var(--secondary-color);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   Blog Preview Section
   ============================================ */
.blog-preview {
    padding: var(--spacing-xl) 0;
    background: var(--text-white);
}

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

.blog-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--secondary-color);
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.blog-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.blog-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

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

.blog-link i {
    transition: var(--transition-fast);
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   Enhanced CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.cta-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.cta-content h2 {
    color: var(--text-white);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
}

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

.cta .btn-outline {
    color: var(--text-white);
    border-color: var(--text-white);
}

.cta .btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

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

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.cta-feature i {
    color: var(--success-color);
    font-size: 1rem;
}


/* ============================================
   Responsive Design Updates
   ============================================ */
@media (max-width: 768px) {
    .threat-map-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--spacing-sm);
        justify-content: space-between;
    }

    .hero-stat {
        flex: 1;
        text-align: center;
    }

    .stat-value {
        font-size: 2rem;
    }

    .map-stats {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .chat-window {
        width: calc(100vw - 20px);
        right: -5px;
    }

    .testimonials-slider,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.8rem;
    }

    .hero-stats {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
    }

    .hero-stat {
        flex: 1;
        text-align: center;
    }

    .hero-stat .stat-value {
        font-size: 1.4rem;
    }

    .hero-stat .stat-label {
        font-size: 0.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
