/* 
 * Antron Security - Premium Clone 
 * Modern Dark Theme with Glassmorphism
 */

/* Self-hosted fonts (variable, latin subset), replaces Google Fonts CDN */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-variable.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/montserrat-variable.woff2') format('woff2');
}

:root {
    /* Native browser UI (scrollbars, form controls) follows the active theme */
    color-scheme: light;

    /* Color Palette - Light Mode Default */
    --bg-dark: #f4f6f9;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(27, 21, 74, 0.1);

    --text-primary: #1b154a;
    --text-secondary: #4a5568;

    --accent-primary: #1b154a;
    --accent-cyan: var(--accent-primary);
    --primary-color: var(--accent-primary);
    --accent-glow: rgba(27, 21, 74, 0.2);
    --btn-text: #ffffff;

    --nav-scrolled-bg: rgba(255, 255, 255, 0.9);
    --dropdown-bg: rgba(255, 255, 255, 0.95);
    --mobile-menu-bg: #ffffff;
    --partners-bg: rgba(27, 21, 74, 0.03);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: var(--border-radius);

    /* Effects */
    --glass-shadow: 0 20px 40px rgba(27, 21, 74, 0.12);
    --bg-body: var(--bg-dark);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition: var(--transition-normal);
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg-dark: #0b0820;
    --bg-surface: #130f30;
    --bg-glass: rgba(27, 21, 74, 0.5);
    --bg-glass-hover: rgba(27, 21, 74, 0.8);
    --border-glass: rgba(123, 193, 67, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #a0aabf;

    --accent-primary: #7bc143;
    --accent-glow: rgba(123, 193, 67, 0.4);
    --btn-text: #0b0820;

    --nav-scrolled-bg: rgba(11, 8, 32, 0.9);
    --dropdown-bg: rgba(19, 15, 48, 0.95);
    --mobile-menu-bg: #0b0820;
    --partners-bg: rgba(11, 8, 32, 0.5);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* Typography Utilities */
.accent-text {
    color: var(--accent-primary);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--btn-text);
    border: none;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--accent-glow);
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-normal);
    /* Base nav is transparent until scrolled */
}

.navbar.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(27, 21, 74, 0.12);
}

[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-normal);
}

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

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dropdown-bg);
    min-width: 250px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(27, 21, 74, 0.15);
    opacity: 0;
    transition: var(--transition-normal);
    padding: 0.5rem 0;
}

[data-theme="dark"] .dropdown-content {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: var(--bg-glass-hover);
    color: var(--accent-cyan);
}

/* Mobile Nav */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-contact-info a,
.contact-details a {
    color: inherit;
}

.footer-contact-info a:hover,
.contact-details a:hover {
    color: var(--accent-primary);
}

a.contact-icon-wrapper {
    text-decoration: none;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.nav-icon-btn:hover {
    color: var(--accent-primary);
}

.contact-number {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-number:hover {
    color: var(--accent-cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.navbar.menu-open {
    background: var(--mobile-menu-bg);
    box-shadow: none;
}

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

/* Without JS the menu button is inert. Desktop is unaffected (the base rule
   already keeps the menu invisible); on viewports where the desktop nav is
   hidden, render the menu links inline instead so no-JS phones still have
   navigation, and hide the button that can no longer do anything. */
@media (max-width: 768px) {
    html:not(.js) .mobile-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    html:not(.js) .mobile-menu-btn {
        display: none;
    }
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-align: center;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Solid brand-colour pills ("tablets"): navy with white text in light mode,
   green with dark text in dark mode, matching the theme's accent inversion. */
.badge {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-primary);
}

[data-theme="dark"] .badge {
    background: var(--accent-primary);
    color: #0b0820;
    border-color: var(--accent-primary);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual (Premium 3D Avatar) */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: float-avatar 6s ease-in-out infinite;
}

.hero-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(123, 193, 67, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
    border: 2px solid rgba(123, 193, 67, 0.3);
    background: #fff;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(30px);
    z-index: 1;
    animation: pulse-avatar 4s ease-in-out infinite alternate;
}

/* Orbiting avatar rings removed: tilted (rotateX 60deg) spinning rings made the
   globe logo read as a ringed planet ("Saturn"). The pulsing glow + gentle float
   keep the hero alive while letting the "Protecting your world" globe stand clean. */

@keyframes float-avatar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-avatar {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* --- Marquee --- */
.partners {
    padding: 2rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: var(--partners-bg);
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-content .dot {
    color: var(--accent-cyan);
    margin: 0 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- Projects Grid (Case Studies) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 10px 30px rgba(123, 193, 67, 0.1);
}

.project-image-container {
    height: 260px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(123, 193, 67, 0.1), rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-glass);
}

[data-theme="dark"] .project-image-container {
    background: linear-gradient(135deg, rgba(123, 193, 67, 0.05), rgba(10, 15, 30, 0.9));
}

/* Premium image hover reveal */
.project-image-container.has-bg-image {
    transition: background 0.5s ease-in-out, transform 0.5s ease;
    background-size: cover !important;
    background-blend-mode: overlay;
}

.project-card:hover .project-image-container.has-bg-image {
    background-blend-mode: normal;
    transform: scale(1.05);
}

.project-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.project-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.project-industry {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background: rgba(123, 193, 67, 0.1);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(123, 193, 67, 0.2);
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(27, 21, 74, 0.12);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

/* Card headings are h2 for document outline; keep the old h3 visual size */
.service-card h2 {
    font-size: 1.17em;
}

/* Icon chips on the services-page cards (mirrors .value-icon-wrapper) */
.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(123, 193, 67, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* --- Services CSS Art --- */
.service-illustration {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover .service-illustration {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.css-art {
    position: relative;
    width: 40px;
    height: 40px;
}

.css-art div {
    transition: var(--transition-normal);
}

/* 1. Access Control */
.art-access .reader {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 24px;
    height: 38px;
    background: #111;
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1), 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.art-access .reader-led {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--accent-primary);
}

.art-access .reader-logo {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.art-access .waves {
    position: absolute;
    bottom: 12px;
    left: 24px;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.art-access .wave {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border: 1px solid var(--accent-primary);
    border-left: none;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    opacity: 0;
}

.art-access .wave-1 {
    width: 8px;
    height: 8px;
    animation: pulse-wave 2s infinite;
}

.art-access .wave-2 {
    width: 14px;
    height: 14px;
    animation: pulse-wave 2s infinite 0.3s;
}

.art-access .wave-3 {
    width: 20px;
    height: 20px;
    animation: pulse-wave 2s infinite 0.6s;
}

@keyframes pulse-wave {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) scale(1.2);
    }
}

.art-access .card {
    position: absolute;
    top: 4px;
    right: -4px;
    width: 18px;
    height: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    transform: rotate(15deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: float-card 3s ease-in-out infinite;
}

.art-access .card::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.art-access .card::before {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 2px;
    background: #ccc;
}

@keyframes float-card {

    0%,
    100% {
        transform: rotate(15deg) translateY(0);
    }

    50% {
        transform: rotate(15deg) translateY(-4px);
    }
}

/* 2. CCTV - AI */
.art-cctv {
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-cctv .cam-base {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px 4px 0 0;
    border: 1px solid var(--text-secondary);
    border-bottom: none;
    z-index: 2;
}

[data-theme="dark"] .art-cctv .cam-base {
    background: #2a2a35;
}

.art-cctv .cam-body {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 20px;
    background: #fff;
    border-radius: 12px 12px 18px 18px;
    border: 1px solid var(--text-secondary);
    box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.05);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

[data-theme="dark"] .art-cctv .cam-body {
    background: #111;
    box-shadow: inset 0 -4px 6px rgba(255, 255, 255, 0.1);
}

.art-cctv .cam-lens {
    position: relative;
    width: 14px;
    height: 14px;
    background: #000;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-cctv .lens-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    animation: ping-lens 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.art-cctv .lens-core {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px #fff, 0 0 8px var(--accent-primary);
}

@keyframes ping-lens {

    75%,
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.art-cctv .cam-beam {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid var(--accent-glow);
    opacity: 0.6;
    z-index: 1;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    animation: sweep-beam 4s ease-in-out infinite alternate;
    transform-origin: top center;
}

.service-card:hover .art-cctv .cam-beam {
    opacity: 1;
    border-bottom-color: var(--accent-primary);
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

@keyframes sweep-beam {
    0% {
        transform: translateX(-50%) rotate(-15deg);
    }

    100% {
        transform: translateX(-50%) rotate(15deg);
    }
}

/* 3. Consultancy & CAD */
.art-cad {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.art-cad .blueprint-grid {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

[data-theme="light"] .art-cad .blueprint-grid {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.art-cad .grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .art-cad .grid-line {
    background: rgba(0, 0, 0, 0.1);
}

.art-cad .h1 {
    top: 25%;
    left: 0;
    width: 100%;
    height: 1px;
}

.art-cad .h2 {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.art-cad .h3 {
    top: 75%;
    left: 0;
    width: 100%;
    height: 1px;
}

.art-cad .v1 {
    left: 25%;
    top: 0;
    height: 100%;
    width: 1px;
}

.art-cad .v2 {
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
}

.art-cad .v3 {
    left: 75%;
    top: 0;
    height: 100%;
    width: 1px;
}

.art-cad .shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 24px;
    border: 2px solid var(--accent-primary);
    border-radius: 4px 4px 10px 10px;
    z-index: 2;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: draw-shield 3s ease-in-out infinite alternate;
}

.art-cad .shield-inner {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid var(--accent-primary);
    border-radius: 2px 2px 6px 6px;
    opacity: 0.5;
}

.art-cad .cad-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 6px #fff, 0 0 10px var(--accent-primary);
    animation: pulse-node 1.5s infinite alternate;
}

.art-cad .n1 {
    top: 4px;
    left: 4px;
    animation-delay: 0s;
}

.art-cad .n2 {
    top: 4px;
    right: 4px;
    animation-delay: 0.2s;
}

.art-cad .n3 {
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.4s;
}

.art-cad .n4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.6s;
    width: 6px;
    height: 6px;
}

@keyframes draw-shield {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes pulse-node {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* 4. Entryphone */
/* 4. Entryphone */
.art-entry {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

[data-theme="dark"] .art-entry {
    background: rgba(255, 255, 255, 0.02);
}

.art-entry .panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 38px;
    border: 2px solid var(--accent-primary);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.art-entry .cam-lens {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 4px;
    box-shadow: 0 0 6px #fff, 0 0 10px var(--accent-primary);
    animation: pulse-node 1.5s infinite alternate;
}

.art-entry .screen {
    width: 12px;
    height: 8px;
    border: 1px solid var(--accent-primary);
    border-radius: 2px;
    margin-bottom: 3px;
    position: relative;
    opacity: 0.8;
}

.art-entry .ringing-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: ping-screen 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.art-entry .ctrl-btn {
    width: 8px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    margin-bottom: 3px;
    box-shadow: 0 0 4px var(--accent-glow);
}

.service-card:hover .art-entry .panel {
    box-shadow: 0 0 12px var(--accent-primary);
}

.service-card:hover .art-entry .ringing-animation {
    animation-duration: 0.8s;
}

@keyframes ping-screen {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* 5. Lift Integration - Smart Terminal */
.art-lift {
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-lift .term-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 48px;
    background: #e6e9f0;
    border-radius: 4px;
    border: 1px solid var(--text-secondary);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8), 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    overflow: hidden;
    z-index: 2;
}

[data-theme="dark"] .art-lift .term-panel {
    background: #111;
    border: 1px solid rgba(123, 193, 67, 0.4);
    /* Brand green border for visibility */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 8px rgba(123, 193, 67, 0.15);
}

.art-lift .term-screen {
    width: 16px;
    height: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    background: #dce4ed;
    /* Light LCD */
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .art-lift .term-screen {
    background: #050505;
    border-color: rgba(123, 193, 67, 0.5);
    /* Glowing green screen border */
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5), 0 0 4px rgba(123, 193, 67, 0.2);
}

.art-lift .term-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-glow), transparent);
    z-index: 1;
}

.art-lift .term-floor {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 2px var(--accent-glow);
    z-index: 2;
}

/* RFID reader area */
.art-lift .term-rfid {
    position: relative;
    width: 12px;
    height: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    margin-top: auto;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .art-lift .term-rfid {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.art-lift .rfid-wave {
    position: absolute;
    width: 2px;
    height: 2px;
    border-right: 1px solid var(--accent-primary);
    border-top: 1px solid var(--accent-primary);
    border-radius: 0 4px 0 0;
    transform: rotate(45deg);
    opacity: 0.3;
}

.art-lift .w1 {
    right: 2px;
    width: 6px;
    height: 6px;
}

.art-lift .w2 {
    right: 4px;
    width: 3px;
    height: 3px;
}

/* Interactive Scanning effect */
.art-lift .term-scan-line {
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary);
    box-shadow: 0 0 4px var(--accent-primary), 0 0 8px var(--accent-glow);
    opacity: 0;
    z-index: 3;
}

/* Always-on (was hover-only): keeps the lift icon alive on the homepage at rest
   and on the service detail page, matching the other animated service icons. */
.art-lift .term-scan-line {
    animation: lift-scan 1.5s ease-in-out infinite;
}

.art-lift .rfid-wave {
    box-shadow: 1px -1px 2px var(--accent-glow);
}

.art-lift .w1 {
    animation: rfid-pulse 1s ease-out infinite;
    animation-delay: 0.2s;
}

.art-lift .w2 {
    animation: rfid-pulse 1s ease-out infinite;
}

@keyframes lift-scan {
    0% {
        top: 6px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 42px;
        opacity: 0;
    }
}

@keyframes rfid-pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* 6. Maintenance - Premium Animated Gear & Wrench */
.art-maint {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Gear */
.art-maint .maint-gear {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow), inset 0 0 4px var(--accent-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gear-spin 10s linear infinite;
    z-index: 1;
}

.art-maint .gear-tooth {
    position: absolute;
    width: 6px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 1px;
    z-index: -1;
}

.art-maint .t1 {
    transform: rotate(0deg);
}

.art-maint .t2 {
    transform: rotate(45deg);
}

.art-maint .t3 {
    transform: rotate(90deg);
}

.art-maint .t4 {
    transform: rotate(135deg);
}

.art-maint .gear-center {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px dashed var(--accent-primary);
    z-index: 2;
}

[data-theme="dark"] .art-maint .gear-center {
    background: #0b0820;
}

/* Checkmark */
.art-maint .maint-check {
    position: absolute;
    width: 6px;
    height: 12px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg) translate(-2px, -4px);
    z-index: 3;
    transition: all 0.3s ease;
}

[data-theme="dark"] .art-maint .maint-check {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sparks/Diagnostic dots */
.art-maint .maint-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-glow);
    opacity: 0;
}

.art-maint .spark-1 {
    top: 4px;
    right: 4px;
}

.art-maint .spark-2 {
    bottom: 4px;
    left: 4px;
}

.service-card:hover .art-maint .spark-1 {
    animation: spark-pulse 1s infinite 0.2s;
}

.service-card:hover .art-maint .spark-2 {
    animation: spark-pulse 1s infinite 0.7s;
}

/* Hover Effects */
.service-card:hover .art-maint .maint-gear {
    animation: gear-spin 2s linear infinite;
    box-shadow: 0 0 12px var(--accent-primary), inset 0 0 8px var(--accent-primary);
    border-color: var(--text-primary);
    /* changes glow intensity */
}

[data-theme="dark"] .service-card:hover .art-maint .maint-gear {
    border-color: #aeff6b;
    /* Super bright on dark mode hover */
}

.service-card:hover .art-maint .maint-check {
    border-color: var(--accent-primary);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    transform: rotate(45deg) translate(-2px, -4px) scale(1.1);
}

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

@keyframes spark-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* 7. Speedgates - Premium Glass Doors */
.art-speed {
    perspective: 150px;
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.art-speed .pedestal {
    position: absolute;
    width: 8px;
    height: 26px;
    background: transparent;
    border: 1.5px solid var(--text-secondary);
    border-radius: 2px 2px 1px 1px;
    bottom: 8px;
    z-index: 2;
}

[data-theme="dark"] .art-speed .pedestal {
    border-color: #5a647a;
}

.art-speed .pedestal::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 1px 1px 0 0;
    transition: all 0.3s ease;
}

.art-speed .pedestal.left {
    left: 8px;
}

.art-speed .pedestal.right {
    right: 8px;
}

.art-speed .glass-door {
    position: absolute;
    top: 4px;
    width: 7px;
    height: 18px;
    background: rgba(174, 255, 107, 0.1);
    border: 1px solid var(--accent-primary);
    box-shadow: inset 0 0 4px rgba(174, 255, 107, 0.2);
    backdrop-filter: blur(2px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease;
}

.art-speed .door-l {
    left: 100%;
    transform-origin: left center;
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.art-speed .door-r {
    right: 100%;
    transform-origin: right center;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.art-speed .lane-led {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: #4a5568;
    border-radius: 1px;
    transition: all 0.3s ease;
    /* Always-on gentle status-LED pulse so the speedgate icon stays alive at rest. */
    animation: lane-led-pulse 2.6s ease-in-out infinite;
}

[data-theme="dark"] .art-speed .lane-led {
    background: #2a3241;
}

@keyframes lane-led-pulse {
    0%, 100% { background: #4a5568; box-shadow: none; }
    50% { background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-glow); }
}

/* Hover Effects */
.service-card:hover .art-speed .door-l {
    transform: rotateY(70deg);
    background: rgba(174, 255, 107, 0.25);
    box-shadow: inset 0 0 8px rgba(174, 255, 107, 0.5), 0 0 10px rgba(174, 255, 107, 0.3);
}

.service-card:hover .art-speed .door-r {
    transform: rotateY(-70deg);
    background: rgba(174, 255, 107, 0.25);
    box-shadow: inset 0 0 8px rgba(174, 255, 107, 0.5), 0 0 10px rgba(174, 255, 107, 0.3);
}

.service-card:hover .art-speed .pedestal::before {
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-glow);
}

.service-card:hover .art-speed .lane-led {
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* 8. Visitor Pass - Reference Redesign */
.art-visitor-v2 {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transform: scale(0.75);
}

/* --- Lanyard --- */
.art-visitor-v2 .lanyard-v-left,
.art-visitor-v2 .lanyard-v-right {
    position: absolute;
    top: -15px;
    width: 6px;
    height: 38px;
    background: var(--text-secondary);
    z-index: 1;
    border-radius: 1px;
}

.art-visitor-v2 .lanyard-v-left {
    left: 17px;
    transform: rotate(25deg);
}

.art-visitor-v2 .lanyard-v-right {
    right: 17px;
    transform: rotate(-25deg);
}

.art-visitor-v2 .lanyard-metal-clip {
    position: absolute;
    top: 15px;
    width: 10px;
    height: 8px;
    background: #a0aabf;
    border-radius: 2px 2px 4px 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* --- ID Card --- */
.art-visitor-v2 .id-card {
    position: absolute;
    top: 21px;
    width: 32px;
    height: 44px;
    background: var(--bg-surface);
    border: 1.5px solid var(--text-secondary);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2px;
    z-index: 3;
    transform-origin: top center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Always-on gentle lanyard sway so the visitor-pass icon stays alive at rest. */
    animation: badge-sway 4.5s ease-in-out infinite;
}

[data-theme="dark"] .art-visitor-v2 .id-card {
    background: #1a1f2b;
    /* Slightly lighter than pure dark for the card */
    border-color: #5a647a;
}

@keyframes badge-sway {
    0%, 100% { transform: rotate(-2.5deg); }
    50% { transform: rotate(2.5deg); }
}

.art-visitor-v2 .id-hole {
    width: 8px;
    height: 2px;
    background: var(--bg-dark);
    border-radius: 1px;
    margin-bottom: 2px;
}

.art-visitor-v2 .id-header {
    width: 100%;
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-size: 4px;
    font-weight: 800;
    text-align: center;
    padding: 1px 0;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

/* --- Person Profile Icon --- */
.art-visitor-v2 .id-profile {
    width: 14px;
    height: 14px;
    border: 1px solid var(--text-secondary);
    border-radius: 2px;
    margin-bottom: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 1px;
    box-sizing: border-box;
}

.art-visitor-v2 .id-head {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    margin-bottom: 1px;
}

.art-visitor-v2 .id-body {
    width: 10px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 4px 4px 0 0;
}

/* --- Text & Barcode --- */
.art-visitor-v2 .id-text {
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 1px;
    margin-bottom: 1.5px;
    opacity: 0.7;
}

.art-visitor-v2 .id-name {
    width: 16px;
}

.art-visitor-v2 .id-role {
    width: 10px;
    opacity: 0.4;
    margin-bottom: 3px;
}

.art-visitor-v2 .id-barcode {
    width: 20px;
    height: 4px;
    background: repeating-linear-gradient(to right,
            var(--text-secondary),
            var(--text-secondary) 1px,
            transparent 1px,
            transparent 2px);
    opacity: 0.6;
}

/* Hover Effects */
.service-card:hover .art-visitor-v2 .id-card {
    transform: rotate(6deg) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 16px rgba(174, 255, 107, 0.2), 0 0 0 1px var(--accent-primary);
}

.service-card:hover .art-visitor-v2 .lanyard-v-left,
.service-card:hover .art-visitor-v2 .lanyard-v-right {
    background: var(--accent-primary);
}

.service-card:hover .art-visitor-v2 .id-header {
    background: var(--text-primary);
    color: var(--bg-surface);
}

[data-theme="dark"] .service-card:hover .art-visitor-v2 .id-header {
    color: var(--bg-dark);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

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

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

/* --- About Section --- */
.about {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-surface));
    position: relative;
}

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

/* About Image Collage */
.about-collage {
    position: relative;
    width: 100%;
    min-height: 520px;
}

.collage-img-wrapper {
    position: absolute;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
}

.collage-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-img-wrapper:hover img {
    transform: scale(1.08);
}

.main-img {
    top: 0;
    left: 0;
    width: 88%;
    height: 460px;
    z-index: 1;
}

.main-img img {
    object-fit: cover;
    object-position: center 20%;
}

.secondary-img {
    bottom: 20px;
    right: -10px;
    width: 50%;
    height: 300px;
    z-index: 2;
    border: 12px solid var(--bg-dark);
    background: transparent;
    box-shadow: -10px 15px 40px rgba(0, 0, 0, 0.4);
}

.secondary-img img {
    object-fit: cover;
    object-position: center;
}

[data-theme="light"] .secondary-img {
    border-color: var(--bg-surface);
}

.collage-stat {
    position: absolute;
    bottom: -20px;
    left: -20px;
    top: auto;
    right: auto;
    z-index: 3;
    max-width: 220px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.stat-panel {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 2rem;
    z-index: 10;
    max-width: 250px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-cyan);
}

/* --- Footer --- */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 6rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1.7fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

/* Services has 8 links: lay them in two columns so the row heights stay balanced. */
.footer-links-group.services-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    align-content: start;
}

.footer-links-group.services-group .footer-heading {
    grid-column: 1 / -1;
}

/* Accreditations: their own full-width strip between the columns and the copyright bar. */
.footer-accreditations-row {
    display: flex;
    align-items: center;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--border-glass);
}

.footer-accreditations-row .accreditations-title {
    margin: 0;
    flex: 0 0 auto;
}

.footer-accreditations-row .footer-accreditations-grid {
    margin-top: 0;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-links-group a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--accent-primary);
    outline: 2px solid var(--accent-primary);
    outline-offset: 1px;
}

.newsletter-form .btn {
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-sm);
}

.accreditations-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}


.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* --- Reveal Animations (Handled by JS Intersection Observer) ---
   Hidden state only applies once theme-init.js has stamped html.js, so
   content is never invisible for visitors without JavaScript. */
html.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Must outrank the html.js hide above (0-2-1), hence the same prefix */
html.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.2s;
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

/* --- Inner Pages: Global --- */
.page-header {
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.page-header .hero-bg-glow {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    opacity: 0.15;
}

[data-theme="light"] .page-header .hero-bg-glow {
    opacity: 0.3;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Page --- */
.about-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.value-card {
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.value-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(123, 193, 67, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accreditations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: transparent;
}

.footer-accreditations-grid {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

/* --- Individual accreditation badges (white chips, look crisp in light + dark) --- */
.footer-accreditations-grid {
    flex-wrap: wrap;
    gap: 0.7rem;
}

.accreditations-grid {
    flex-wrap: wrap;
    gap: 1rem;
}

.accred-chip {
    background: #ffffff;
    border-radius: 12px;
    height: 66px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal);
}

.accred-chip:hover {
    transform: translateY(-3px);
}

.accred-chip img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.accreditations-grid .accred-chip {
    height: 88px;
    border-radius: 14px;
    padding: 12px 18px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .stat-panel {
        bottom: 20px;
        right: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer already 2-up here, so keep the Services links in a single column. */
    .footer-links-group.services-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide primary nav */
    }

    /* Phone becomes an icon-only action (number text hidden) so email, phone
       and menu all sit tidily beside the shrunken logo. */
    .contact-number {
        font-size: 1.2rem;
    }

    .contact-number .contact-number-text {
        display: none;
    }

    .nav-actions {
        gap: 1.1rem;
    }

    .navbar .logo img {
        height: 28px !important;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

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

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

/* --- Single Case Study (case-study.html) --- */

.case-study-header {
    /* 15vw undercuts the fixed 80px navbar below ~533px wide */
    padding-top: max(15vw, calc(var(--nav-height) + 2.5rem));
    padding-bottom: 5vw;
}

[data-theme="light"] .case-study-header {
    background: linear-gradient(180deg, rgba(235, 240, 245, 1) 0%, rgba(245, 247, 250, 0) 100%);
}

.case-study-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: -6rem;
    /* Pull up into the header space slightly */
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.cs-stat-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cs-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cs-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.cs-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .case-study-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.cs-main-content .cs-section {
    margin-bottom: 3rem;
}

.cs-main-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.8rem;
}

.cs-main-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.cs-main-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cs-main-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.cs-main-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.cs-main-content ul li::before {
    content: '\f058';
    /* fa-check-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--primary-color);
}

.cs-sidebar {
    position: sticky;
    top: 100px;
}

/* --- News & Updates (news.html) --- */

.featured-news {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
}

@media (min-width: 768px) {
    .featured-news {
        grid-template-columns: 1fr 1fr;
    }
}

.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.featured-news-image {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-news-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-surface);
}

.featured-news-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-news-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-category {
    color: var(--primary-color);
    font-weight: 600;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.news-card:hover .news-image-container::before {
    opacity: 0.5;
}

.news-image-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    opacity: 0.8;
    transition: var(--transition-normal);
    z-index: 1;
}

.news-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: var(--transition-normal);
}

.news-card:hover .news-icon {
    transform: scale(1.1);
}

.news-card-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* --- Contact Us (contact.html) --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(123, 193, 67, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h2,
.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form-col .form-container {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    /* Slight tint over surface */
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-normal);
}

[data-theme="light"] .form-control {
    background: rgba(0, 0, 0, 0.03);
}

.form-control:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 1px;
    border-color: var(--accent-primary);
    background: rgba(123, 193, 67, 0.05);
    box-shadow: 0 0 0 3px rgba(123, 193, 67, 0.1);
}

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

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 3rem;
}

.select-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.custom-select option {
    background: var(--bg-body);
    color: var(--text-primary);
}

/* --- Service Detail Pages Specific Styles --- */
.service-detail-header {
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: radial-gradient(circle at top right, var(--partners-bg), transparent);
}

.service-detail-section {
    background: var(--bg-surface);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.service-detail-art {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-surface));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .service-detail-art {
    background: linear-gradient(135deg, rgba(27, 21, 74, 0.4), var(--bg-surface));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-detail-art::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.5;
    animation: pulse 10s infinite alternate;
}

.service-detail-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-detail-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.service-features .fa-check-circle {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

/* Scaling utilities for CSS Art */
.service-detail-art.has-photo {
    padding: 0;
    overflow: hidden;
}

.service-detail-art.has-photo::before {
    display: none;
}

.service-detail-art.has-photo img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}

.service-proof {
    margin-top: 2.5rem;
    padding: 2rem 2.5rem;
    border-left: 4px solid var(--accent-primary);
}

.service-proof .badge {
    margin-bottom: 0.85rem;
}

.service-proof p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* Links inside running copy must look like links (the global anchor reset
   strips colour and underline). Scoped to prose containers so buttons,
   cards and tag chips keep their own treatments. */
.cs-main-content p a,
.cs-main-content li a,
.cs-section p a,
.cs-section li a,
.legal-prose a,
.service-proof p a,
.contact-details p a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Status line under the contact and newsletter forms (script.js) */
.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-status.is-ok {
    color: var(--primary-color);
}

.form-status.is-error {
    color: #c0392b;
}

[data-theme="dark"] .form-status.is-error {
    color: #e0574b;
}

.scale-150 {
    transform: scale(3.6);
}

@media (max-width: 900px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .scale-150 {
        transform: scale(2.6);
    }

    .service-detail-art {
        padding: 4rem;
    }
}

@media (max-width: 600px) {
    .service-features {
        grid-template-columns: 1fr;
    }
}

/* --- Trusted By Section --- */
.trusted-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 2rem;
    align-items: stretch;
}

.trusted-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Fixed height so tiles stay identical whether the name is one line
       (JLL) or two (Kajima Properties) */
    min-height: 170px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition-normal);
    cursor: default;
}

.trusted-logo:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .trusted-logo:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.trusted-logo .logo-icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.trusted-logo:hover .logo-icon {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.trusted-logo span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

/* --- Global Image Protection --- */
img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* ---- QA / accessibility fixes ---- */

/* Anchored headings (e.g. privacy.html#cookies) land below the fixed navbar */
html {
    scroll-padding-top: 90px;
}

/* Current-page indicator in the nav */
.nav-link.active,
.mobile-link.active {
    color: var(--accent-primary);
}

/* Keyboard access to the Services dropdown */
.dropdown:focus-within .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

.footer-reg {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--accent-primary);
    color: var(--btn-text);
    padding: 0.6rem 1rem;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* Project grid: lazy <img> thumbnails with a darkening overlay (replaces eager CSS backgrounds) */
.project-image-container.has-bg-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Light bottom-weighted wash only: the photos are the point, so let them read. */
.project-image-container.has-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.30));
    pointer-events: none;
}

/* Leaflet attribution contrast in dark mode */
[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(11, 8, 32, 0.85);
}

[data-theme="dark"] .leaflet-control-attribution a {
    color: #9ed468;
}

/* --- Project detail: additional-photography gallery --- */
.cs-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.cs-image-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
}

/* --- Long-form text pages (Terms of Use, Privacy Notice, Accessibility) --- */
.legal-prose {
    max-width: 820px;
    line-height: 1.7;
}

.legal-prose h2 {
    margin: 2.6rem 0 0.9rem;
    font-size: 1.45rem;
}

.legal-prose h2:first-of-type {
    margin-top: 1.5rem;
}

.legal-prose h3 {
    margin: 1.9rem 0 0.7rem;
    font-size: 1.15rem;
}

.legal-prose p {
    margin-bottom: 1.05rem;
}

.legal-prose ul,
.legal-prose ol {
    margin: 0 0 1.3rem;
    padding-left: 1.5rem;
}

.legal-prose li {
    margin-bottom: 0.55rem;
}

.legal-prose li:last-child {
    margin-bottom: 0;
}

/* --- Client testimonials (real, attributed quotes) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-card .quote-mark {
    color: var(--accent-primary);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.85;
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
}

.testimonial-author .ta-name {
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-author .ta-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.testimonial-author .ta-company {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}

/* --- Projects listing: technology filter bar --- */
.project-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.project-filters button {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-filters button:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.project-filters button.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

[data-theme="dark"] .project-filters button.active {
    color: #0b0820;
}

.project-card.filtered-out,
.featured-project.filtered-out {
    display: none;
}

/* --- Projects listing: featured flagship banner --- */
.featured-project {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    box-shadow: var(--glass-shadow);
    min-height: 340px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-project:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.featured-media {
    position: relative;
    min-height: 260px;
}

.featured-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.featured-kicker {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.featured-content h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.featured-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

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

    .featured-content {
        padding: 1.75rem;
    }
}

/* Footer social icons */
.footer-social { display: flex; gap: 0.7rem; margin: 1.1rem 0 0.9rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); background: var(--bg-surface); border: 1px solid var(--border-glass); font-size: 0.95rem; transition: var(--transition-normal); }
.footer-social a:hover, .footer-social a:focus-visible { color: #ffffff; background: var(--accent-primary); border-color: var(--accent-primary); transform: translateY(-2px); }
[data-theme="dark"] .footer-social a:hover, [data-theme="dark"] .footer-social a:focus-visible { color: #0b0820; }
.footer-social a svg { display: block; }
