/* ==========================================================================
   CGF Inspection - iOS Liquid Glass Design System
   ========================================================================== */

:root {
    --primary: #1a1a1a;
    --primary-hover: #0a0a0a;
    --accent: #b80000;
    --accent-glow: rgba(184, 0, 0, 0.12);
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #475569;
    --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-dark: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 8px 16px rgba(0,0,0,0.04), 0 24px 56px rgba(0,0,0,0.1);
    --spring-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
    --spring-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --blur-sm: 10px;
    --blur-md: 18px;
    --blur-lg: 26px;
}

/* ==========================================================================
   Global Text Readability
   ========================================================================== */

/* Ensure all body text is dark enough */
body {
    color: var(--text-body);
}

/* Stronger paragraph text */
p, li, span {
    color: inherit;
}

/* Cards - ensure content is readable */
.bg-white p, .bg-gray-50 p {
    color: var(--text-body);
}

/* Headings always bold and dark */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
}

/* Links - clear contrast */
a:not([class*="text-white"]):not([class*="bg-"]):not(nav a) {
    color: var(--accent);
}

/* Footer text - dark on light bg for logo readability */
footer h4 {
    color: #111827 !important;
}
footer a:hover {
    color: var(--accent) !important;
}

/* Nav active link */
nav a.text-primary {
    color: var(--accent) !important;
}

/* ==========================================================================
   Global
   ========================================================================== */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 5rem; }

body {
    background: #fafafa;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(204,0,0,0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0,0,0,0.02) 0%, transparent 50%);
}

/* ==========================================================================
   Liquid Glass System
   ========================================================================== */

/* Base glass surface */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-md)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.02);
    transition:
        transform 0.5s var(--spring-bouncy),
        box-shadow 0.5s var(--spring-soft),
        border-color 0.4s var(--spring-smooth),
        background 0.4s var(--spring-smooth);
}

.glass:hover {
    background: var(--glass-bg-strong);
    box-shadow:
        var(--glass-shadow-hover),
        0 0 0 1px rgba(204,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(0,0,0,0.03);
    border-color: rgba(204,0,0,0.12);
}

/* Subtler glass */
.glass-subtle {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(var(--blur-sm)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(160%);
    border: 1px solid rgba(255,255,255,0.4);
    transition:
        transform 0.5s var(--spring-bouncy),
        box-shadow 0.5s var(--spring-soft),
        background 0.4s var(--spring-smooth);
}

.glass-subtle:hover {
    background: rgba(255,255,255,0.75);
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

/* ==========================================================================
   Cursor-Tracking Spotlight Effects
   ========================================================================== */

/* --- Cards: spotlight only, no tilt --- */
.hover-glow {
    --spot-x: 50%;
    --spot-y: 50%;
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 300px at var(--spot-x) var(--spot-y),
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s var(--spring-smooth);
    pointer-events: none;
    z-index: 3;
    border-radius: inherit;
}

.hover-glow:hover::after { opacity: 1; }

/* --- Nav items: subtle spotlight --- */
.spotlight-item {
    --spot-x: 50%;
    --spot-y: 50%;
    position: relative;
    overflow: hidden;
}

.spotlight-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 120px at var(--spot-x) var(--spot-y),
        rgba(204, 0, 0, 0.12) 0%,
        rgba(204, 0, 0, 0.04) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s var(--spring-smooth);
    pointer-events: none;
    border-radius: inherit;
}

.spotlight-item:hover::after { opacity: 1; }

/* --- Buttons: bright spotlight --- */
.spotlight-btn {
    --spot-x: 50%;
    --spot-y: 50%;
    position: relative;
    overflow: hidden;
}

.spotlight-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(
        circle 100px at var(--spot-x) var(--spot-y),
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.2s var(--spring-smooth);
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

.spotlight-btn:hover::after { opacity: 1; }

/* Image cards keep reflection */
.img-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 200px at var(--spot-x) var(--spot-y),
        rgba(255,255,255,0.3) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s var(--spring-smooth);
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

.img-card:hover::after { opacity: 1; }

/* ==========================================================================
   Header - iOS Navigation Bar
   ========================================================================== */
#header {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(var(--blur-lg)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(200%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition:
        background 0.4s var(--spring-smooth),
        box-shadow 0.4s var(--spring-smooth),
        transform 0.35s var(--spring-smooth);
}

#header.header-scrolled {
    background: rgba(255,255,255,0.9);
    box-shadow:
        0 1px 0 rgba(0,0,0,0.04),
        0 4px 24px rgba(0,0,0,0.04),
        0 8px 40px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

#header.header-hidden { transform: translateY(-100%); }

/* Header nav links */
#header nav a {
    transition:
        color 0.25s var(--spring-smooth),
        background 0.3s var(--spring-smooth),
        text-shadow 0.3s var(--spring-smooth);
}

/* ==========================================================================
   Dropdown - Click-Based Liquid Menu
   ========================================================================== */
#header .group .absolute {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.02),
        0 12px 32px rgba(0,0,0,0.06),
        0 24px 64px rgba(0,0,0,0.08);
    border-radius: 16px;
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition:
        opacity 0.25s var(--spring-smooth),
        visibility 0.25s var(--spring-smooth),
        transform 0.3s var(--spring-bouncy);
    pointer-events: none;
}

/* Open state - triggered by JS adding .dropdown-open class */
#header .group .absolute.dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Also keep group-hover for hover fallback */
#header .group:hover .absolute {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Dropdown items */
#header .group .absolute a {
    transition:
        background 0.2s var(--spring-smooth),
        color 0.2s var(--spring-smooth),
        padding-left 0.3s var(--spring-bouncy);
}

/* Active dropdown trigger highlight */
#header .group:has(.absolute.dropdown-open) > a {
    color: var(--accent) !important;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(var(--blur-lg)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(200%);
    transition: max-height 0.45s var(--spring-smooth);
}

#mobile-menu.open { max-height: 80vh; }

#mobile-menu-btn {
    transition: transform 0.35s var(--spring-bouncy);
}

#mobile-menu-btn.menu-open { transform: rotate(90deg); }

/* ==========================================================================
   Hero Section Effects
   ========================================================================== */
.hero-light-rays::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 60%; height: 140%;
    background: radial-gradient(
        ellipse at center,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    animation: lightRayPulse 8s ease-in-out infinite;
}

@keyframes lightRayPulse {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    33% { opacity: 0.8; transform: scale(1.06) rotate(1deg); }
    66% { opacity: 0.4; transform: scale(0.97) rotate(-1deg); }
}

/* Floating orbs */
.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbDrift 10s ease-in-out infinite;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(30px,-40px) scale(1.15); }
    50% { transform: translate(-15px,-20px) scale(0.9); }
    75% { transform: translate(-25px,30px) scale(1.08); }
}

/* ==========================================================================
   Cards - Liquid Glass Surface
   ========================================================================== */

/* All white cards become glass */
.bg-white.rounded-2xl {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-sm)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(160%);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 20px;
    transition:
        transform 0.4s var(--spring-bouncy),
        box-shadow 0.4s var(--spring-soft),
        border-color 0.3s var(--spring-smooth),
        background 0.3s var(--spring-smooth);
}

.bg-white.rounded-2xl:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(184,0,0,0.08);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(184,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

/* Service-specific cards with image hover */
.bg-white.rounded-2xl img {
    transition: transform 0.6s var(--spring-smooth), filter 0.5s ease;
}

.bg-white.rounded-2xl:hover img {
    transform: scale(1.04);
    filter: brightness(1.08) saturate(1.1);
}

/* Gray-50 cards glass effect */
.bg-gray-50.rounded-2xl {
    background: rgba(250,251,252,0.65);
    backdrop-filter: blur(var(--blur-sm)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(160%);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 20px;
}

.bg-gray-50.rounded-2xl:hover {
    background: rgba(250,251,252,0.88);
    border-color: rgba(184,0,0,0.06);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(184,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

/* ==========================================================================
   Light Sweep on Cards
   ========================================================================== */
.hover-glow::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 35%;
    height: 220%;
    background: linear-gradient(
        108deg,
        transparent 30%,
        rgba(255,255,255,0.25) 47%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0.25) 53%,
        transparent 70%
    );
    transform: skewX(-6deg);
    transition: left 0.75s var(--spring-smooth);
    z-index: 2;
    pointer-events: none;
}

.hover-glow:hover::before { left: 130%; }

/* ==========================================================================
   Image Cards
   ========================================================================== */
.img-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(255,255,255,0.25) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s var(--spring-smooth);
    pointer-events: none;
    z-index: 2;
}

.img-card:hover::after { opacity: 1; }

/* ==========================================================================
   Sections - Universal Smooth Color Transitions
   ========================================================================== */
.bg-gray-50 {
    background: rgba(250,251,252,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Gradient blend masks between all sections */
section {
    position: relative;
}

/* --- TOP fades (blend from previous section) --- */
section.bg-white::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(250,251,252,0.95) 0%, rgba(250,251,252,0.4) 40%, transparent 100%);
    pointer-events: none;
}

section.bg-gray-50::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 40%, transparent 100%);
    pointer-events: none;
}

/* --- BOTTOM fades (blend into next section) --- */
section.bg-white::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(0deg, rgba(250,251,252,0.95) 0%, rgba(250,251,252,0.4) 40%, transparent 100%);
    pointer-events: none;
}

section.bg-gray-50::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(0deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 40%, transparent 100%);
    pointer-events: none;
}

/* Hero bottom → white */
section#home::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; top: auto;
    height: 120px;
    background: linear-gradient(0deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Contact top: dark CTA → gray */
section#contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.15) 50%, transparent 100%);
    pointer-events: none;
}

/* Footer top */
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(250,251,252,0.9) 0%, transparent 100%);
    pointer-events: none;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
input, textarea, select {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    transition:
        border-color 0.3s var(--spring-smooth),
        box-shadow 0.35s var(--spring-smooth),
        background 0.3s var(--spring-smooth);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    background: rgba(255,255,255,0.95);
    border-color: rgba(204,0,0,0.3);
    box-shadow:
        0 0 0 4px rgba(204,0,0,0.04),
        0 0 20px -5px rgba(204,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
a[class*="bg-primary"]:not(nav a),
button[class*="bg-primary"] {
    transition:
        transform 0.4s var(--spring-bouncy),
        box-shadow 0.4s var(--spring-soft),
        background 0.3s var(--spring-smooth);
}

a[class*="bg-primary"]:hover:not(nav a),
button[class*="bg-primary"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(26,26,26,0.3),
        0 0 0 6px rgba(26,26,26,0.04);
}

a[class*="bg-accent"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(204,0,0,0.35),
        0 0 0 6px rgba(204,0,0,0.06);
}

/* Outline buttons */
.border-white\/30:hover {
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 0 30px rgba(255,255,255,0.1) !important;
}

/* ==========================================================================
   CTA Shimmer
   ========================================================================== */
.cta-shimmer {
    position: relative;
    overflow: hidden;
}

.cta-shimmer::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -100%;
    width: 40%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.04) 45%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 55%,
        transparent 70%
    );
    animation: shimmerSlow 6s ease-in-out infinite;
}

@keyframes shimmerSlow {
    0%, 100% { left: -100%; }
    50% { left: 130%; }
}

/* ==========================================================================
   Stats Counter Cards
   ========================================================================== */
.bg-primary.rounded-2xl,
.bg-accent.rounded-2xl,
.bg-gray-900.rounded-2xl,
.bg-gray-50.rounded-2xl {
    transition:
        transform 0.5s var(--spring-bouncy),
        box-shadow 0.5s var(--spring-soft);
}

.bg-primary.rounded-2xl:hover,
.bg-accent.rounded-2xl:hover,
.bg-gray-900.rounded-2xl:hover,
.bg-gray-50.rounded-2xl:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Counter
   ========================================================================== */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s var(--spring-smooth),
        transform 0.7s var(--spring-bouncy);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { position: relative; }

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    pointer-events: none;
}

footer a { transition: color 0.25s var(--spring-smooth), box-shadow 0.3s ease, transform 0.3s var(--spring-bouncy); }
footer a:hover { transform: translateX(2px); }

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ==========================================================================
   Selection
   ========================================================================== */
::selection {
    background: rgba(204,0,0,0.12);
    color: var(--primary);
}

/* ==========================================================================
   Dynamic Homepage Effects - Enhanced
   ========================================================================== */

/* Hero gradient animation - more dramatic */
@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

.bg-gradient-to-br.from-gray-900.via-primary.to-primary-700 {
    background-size: 300% 300%;
    animation: heroGradient 4s ease-in-out infinite;
}

/* Floating particles - bigger, brighter, more */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.hero-particles span {
    position: absolute;
    display: block;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: floatUp 6s linear infinite;
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

.hero-particles span:nth-child(1) { left: 5%; width: 5px; height: 5px; animation-delay: 0s; animation-duration: 5s; }
.hero-particles span:nth-child(2) { left: 15%; width: 3px; height: 3px; animation-delay: 1s; animation-duration: 7s; }
.hero-particles span:nth-child(3) { left: 25%; width: 6px; height: 6px; animation-delay: 2s; animation-duration: 4.5s; box-shadow: 0 0 12px rgba(184,0,0,0.5); background: rgba(255,200,200,0.6); }
.hero-particles span:nth-child(4) { left: 35%; width: 4px; height: 4px; animation-delay: 0.5s; animation-duration: 6.5s; }
.hero-particles span:nth-child(5) { left: 45%; width: 7px; height: 7px; animation-delay: 3s; animation-duration: 5.5s; }
.hero-particles span:nth-child(6) { left: 55%; width: 3px; height: 3px; animation-delay: 1.5s; animation-duration: 8s; box-shadow: 0 0 10px rgba(184,0,0,0.5); background: rgba(255,180,180,0.6); }
.hero-particles span:nth-child(7) { left: 65%; width: 5px; height: 5px; animation-delay: 4s; animation-duration: 4s; }
.hero-particles span:nth-child(8) { left: 75%; width: 4px; height: 4px; animation-delay: 2.5s; animation-duration: 6s; }
.hero-particles span:nth-child(9) { left: 82%; width: 8px; height: 8px; animation-delay: 5s; animation-duration: 5s; box-shadow: 0 0 15px rgba(255,255,255,0.5); }
.hero-particles span:nth-child(10){ left: 90%; width: 3px; height: 3px; animation-delay: 1s; animation-duration: 7.5s; }

@keyframes floatUp {
    0% { transform: translateY(110vh) translateX(0) scale(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 0.8; }
    100% { transform: translateY(-20vh) translateX(40px) scale(1.5); opacity: 0; }
}

/* CTA button pulse glow - more visible */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184,0,0,0.7), 0 4px 20px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 0 25px rgba(184,0,0,0), 0 0 50px rgba(184,0,0,0.3), 0 8px 30px rgba(0,0,0,0.4); }
}

.cta-shimmer a[class*="bg-accent"] {
    animation: ctaPulse 2s ease-in-out infinite;
}

/* Stats number float - bigger */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bg-primary.rounded-2xl .counter,
.bg-accent.rounded-2xl .counter,
.bg-gray-900.rounded-2xl .counter {
    display: inline-block;
    animation: gentleFloat 2.5s ease-in-out infinite;
}

/* Service icon bounce - bigger */
@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.3); }
    70% { transform: scale(0.95); }
}

.bg-white.rounded-2xl:hover svg {
    animation: iconBounce 0.7s var(--spring-bouncy);
}

/* Hero heading glow pulse */
@keyframes headingGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.1); }
    50% { text-shadow: 0 0 40px rgba(255,255,255,0.2), 0 0 80px rgba(184,0,0,0.15), 0 0 120px rgba(184,0,0,0.08); }
}

#home h1 {
    animation: headingGlow 3s ease-in-out infinite;
}

/* Section title underline animation on scroll */
section h2 span.text-primary {
    position: relative;
}

/* Scroll indicator bounce - faster */
.animate-bounce {
    animation: bounce 1s infinite;
}

/* Card border pulse - more visible */
@keyframes cardBorderPulse {
    0%, 100% { border-color: rgba(255,255,255,0.5); }
    50% { border-color: rgba(184,0,0,0.2); }
}

.bg-white.rounded-2xl {
    animation: cardBorderPulse 3s ease-in-out infinite;
}

/* Reveal stagger */
.reveal:nth-child(7) { transition-delay: 600ms; }
.reveal:nth-child(8) { transition-delay: 700ms; }
.reveal:nth-child(9) { transition-delay: 800ms; }
.reveal:nth-child(10) { transition-delay: 900ms; }

/* ==========================================================================
   Linear-Inspired Visual Effects
   ========================================================================== */

/* Unified clean background - no dot grid */
section.bg-white {
    background: #fafbfc;
}

/* Subtle texture only on very large surfaces */
section.bg-gray-50 {
    background: #f5f6f8;
}

/* Hero and dark sections: grain texture overlay */
#home::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
}

/* Card top edge highlight - brighter */
.bg-white.rounded-2xl::before,
.bg-gray-50.rounded-2xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
    z-index: 4;
    pointer-events: none;
    border-radius: inherit;
}

/* Gradient text on key headings */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Active press micro-interaction - more dramatic */
a:active, button:active {
    transform: scale(0.94) !important;
    transition: transform 0.06s var(--spring-bouncy) !important;
}

/* Smooth focus ring animation - wider */
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(184,0,0,0.25);
    border-radius: 8px;
    animation: focusIn 0.35s var(--spring-bouncy);
}

@keyframes focusIn {
    from { box-shadow: 0 0 0 0px rgba(184,0,0,0); }
    to { box-shadow: 0 0 0 4px rgba(184,0,0,0.25); }
}

/* Scroll progress bar - thicker */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent), #ff4444);
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(184,0,0,0.4);
}

/* Dropdown items separator - more visible */
#header .group .absolute a:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ==========================================================================
   Animations - Reduced Motion
   ========================================================================== */
@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; transform: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    #header, #mobile-menu, .animate-bounce { display: none !important; }
    section { page-break-inside: avoid; padding: 1rem 0 !important; }
    body { color: #000; background: #fff; }
}
