/* ══════════════════════════════════════
   MD. Ibrahim Shake Shuvo - style.css
   B2B Lead Generation & Web Scraping Specialist
   Plus Jakarta Sans body + Fraunces serif display + Caveat handwriting.
══════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img,
video {
    display: block;
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════════ */

:root {
    /* ── 1. Theme-agnostic ── */
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ease: cubic-bezier(0.25, 0, 0, 1);
    --gutter: clamp(20px, 4.5vw, 64px);
    --max: 1080px;
    --sp: clamp(64px, 8vw, 96px);
    --theme-swap: 0.28s;

    /* ── 2. Always-dark bands ── */
    --on-dark: rgba(255, 255, 255, 0.95);
    --on-dark-2: rgba(255, 255, 255, 0.78);
    --on-dark-3: rgba(255, 255, 255, 0.58);
    --on-dark-faint: rgba(255, 255, 255, 0.25);
    --on-dark-border: rgba(255, 255, 255, 0.10);
    --on-dark-border-strong: rgba(255, 255, 255, 0.18);
    --on-dark-fill: rgba(255, 255, 255, 0.08);

    /* ── 3. Themed: dark by default ── */
    --ink: #f8fafc;
    --ink-2: #cbd5e1;
    --ink-3: #94a3b8;
    --bg: #0b0f19;
    --bg-2: #0f172a;
    --bg-dark: #070a12;
    --surface: #131b2e;
    --surface-2: #1e293b;
    --surface-3: #334155;
    --border: rgba(255, 255, 255, 0.09);
    --border-mid: rgba(255, 255, 255, 0.18);
    --shadow-sm: rgba(0, 0, 0, 0.35);
    --shadow-md: rgba(0, 0, 0, 0.55);
    --accent: #38bdf8;
    --accent-emerald: #34d399;
    --accent-muted: rgba(56, 189, 248, 0.12);
    --focus-ring: #38bdf8;
    --select-bg: #0369a1;
    --select-ink: #ffffff;
    --nav-bg: rgba(11, 15, 25, 0.88);
    --nav-border: rgba(255, 255, 255, 0.08);
    --nav-pill-bg: rgba(15, 23, 42, 0.90);
    --nav-pill-border: rgba(255, 255, 255, 0.12);
    --nav-pill-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    --nav-link-sweep: linear-gradient(90deg, #38bdf8 0%, #60a5fa 24%, #2dd4bf 50%, #38bdf8 100%);
    --pill-bg: #0f172a;
    --pill-bg-hover: #1e293b;
    --pill-border: rgba(255, 255, 255, 0.15);
    --pill-ink: #f8fafc;
    --pill-knob-bg: #38bdf8;
    --pill-knob-ink: #0b0f19;
    --pill-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    --pill-shadow-hi: 0 12px 26px rgba(0, 0, 0, 0.55);
    --visual-neutral: linear-gradient(160deg, #131b2e 0%, #1e293b 100%);
    color-scheme: dark;
}

/* ── Explicit light theme override ── */
[data-theme="light"] {
    --ink: #111827;
    --ink-2: #4b5563;
    --ink-3: #6b7280;
    --bg: #fafafb;
    --bg-2: #f3f4f6;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --surface-3: #e5e7eb;
    --border: rgba(0, 0, 0, 0.08);
    --border-mid: rgba(0, 0, 0, 0.14);
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.10);
    --accent: #0284c7;
    --accent-emerald: #059669;
    --accent-muted: rgba(2, 132, 199, 0.08);
    --focus-ring: #0284c7;
    --select-bg: #0284c7;
    --select-ink: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(0, 0, 0, 0.06);
    --nav-pill-bg: rgba(255, 255, 255, 0.88);
    --nav-pill-border: rgba(255, 255, 255, 0.95);
    --nav-pill-shadow: 0 14px 36px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --nav-link-sweep: linear-gradient(90deg, #0284c7 0%, #2563eb 24%, #0891b2 50%, #0369a1 76%, #0284c7 100%);
    --pill-bg: #ffffff;
    --pill-bg-hover: #f1f5f9;
    --pill-border: rgba(0, 0, 0, 0.12);
    --pill-ink: #0f172a;
    --pill-knob-bg: #0f172a;
    --pill-knob-ink: #ffffff;
    --pill-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    --pill-shadow-hi: 0 12px 26px rgba(15, 23, 42, 0.14);
    --visual-neutral: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%);
    color-scheme: light;
}

/* ── Dark theme tokens (alias) ── */
[data-theme="dark"] {
    --ink: #f8fafc;
    --ink-2: #cbd5e1;
    --ink-3: #94a3b8;
    --bg: #0b0f19;
    --bg-2: #0f172a;
    --bg-dark: #070a12;
    --surface: #131b2e;
    --surface-2: #1e293b;
    --surface-3: #334155;
    --border: rgba(255, 255, 255, 0.09);
    --border-mid: rgba(255, 255, 255, 0.18);
    --shadow-sm: rgba(0, 0, 0, 0.35);
    --shadow-md: rgba(0, 0, 0, 0.55);
    --accent: #38bdf8;
    --accent-emerald: #34d399;
    --accent-muted: rgba(56, 189, 248, 0.12);
    --focus-ring: #38bdf8;
    --select-bg: #0369a1;
    --select-ink: #ffffff;
    --nav-bg: rgba(11, 15, 25, 0.88);
    --nav-border: rgba(255, 255, 255, 0.08);
    --nav-pill-bg: rgba(15, 23, 42, 0.90);
    --nav-pill-border: rgba(255, 255, 255, 0.12);
    --nav-pill-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    --nav-link-sweep: linear-gradient(90deg, #38bdf8 0%, #60a5fa 24%, #2dd4bf 50%, #38bdf8 100%);
    --pill-bg: #0f172a;
    --pill-bg-hover: #1e293b;
    --pill-border: rgba(255, 255, 255, 0.15);
    --pill-ink: #f8fafc;
    --pill-knob-bg: #38bdf8;
    --pill-knob-ink: #0b0f19;
    --pill-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    --pill-shadow-hi: 0 12px 26px rgba(0, 0, 0, 0.55);
    --visual-neutral: linear-gradient(160deg, #131b2e 0%, #1e293b 100%);
    color-scheme: dark;
}

:root {
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

html.theme-swapping,
html.theme-swapping *,
html.theme-swapping *::before,
html.theme-swapping *::after {
    transition: background-color var(--theme-swap) ease, border-color var(--theme-swap) ease, box-shadow var(--theme-swap) ease, color var(--theme-swap) ease !important;
}

body {
    position: relative;
    background: transparent;
    color: var(--ink);
    font-family: var(--font);
    font-weight: 550;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Site-Wide Background (Uploaded Sunset Karst Landscape - Full Transparent View) ── */
body::before,
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/assets/site_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease, filter 0.4s ease;
    filter: brightness(1.02) contrast(1.15) saturate(1.1);
}

[data-theme="light"] body::before {
    background-image: url('/assets/site_bg.jpg');
    filter: brightness(1.05) contrast(1.08);
}

::selection {
    background: var(--select-bg);
    color: var(--select-ink);
}

:where(a, button, [role="button"], input, select, textarea):focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.hero-h1,
.display-title,
.section-headline {
    font-family: var(--font-display);
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 var(--gutter);
    pointer-events: none;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#nav.scrolled {
    height: 76px;
    background: transparent;
    border-bottom: 0;
}

.nav-inner,
nav#nav:nth-of-type(1) > div:nth-of-type(1) {
    position: relative;
    width: min(100%, 780px);
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 20px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    pointer-events: auto;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* ── Collapsed State on Scroll / Section Transition ── */
#nav.nav-collapsed:not(.nav-expanded) .nav-inner,
#nav.nav-collapsed:not(.nav-expanded) nav#nav:nth-of-type(1) > div:nth-of-type(1) {
    opacity: 0;
    transform: translateY(-80px) scale(0.92);
    pointer-events: none;
}

/* ── Expanded State (When User Clicks the 3-Line Corner Button) ── */
#nav.nav-expanded .nav-inner,
#nav.nav-expanded nav#nav:nth-of-type(1) > div:nth-of-type(1) {
    opacity: 1;
    transform: translateY(4px) scale(1);
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    animation: navExpandPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

[data-theme="light"] #nav.nav-expanded .nav-inner,
[data-theme="light"] #nav.nav-expanded nav#nav:nth-of-type(1) > div:nth-of-type(1) {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(2, 132, 199, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(2, 132, 199, 0.25);
}

@keyframes navExpandPop {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translateY(4px) scale(1);
    }
}

/* ── Floating 3-Line Corner Trigger Button ── */
.nav-floating-toggle {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 350;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    opacity: 0;
    transform: scale(0.6) translateY(-15px);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

[data-theme="light"] .nav-floating-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(2, 132, 199, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 14px rgba(2, 132, 199, 0.22);
}

/* Appears as a 3-line icon in the top right when scrolled or collapsed */
#nav.nav-collapsed .nav-floating-toggle {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.nav-floating-toggle:hover {
    transform: scale(1.1) translateY(-2px);
    background: rgba(15, 23, 42, 0.98);
    border-color: #38bdf8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.6);
}

[data-theme="light"] .nav-floating-toggle:hover {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 20px rgba(2, 132, 199, 0.4);
}

/* 3 Animated Hamburger Lines */
.floating-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #38bdf8;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                background-color 0.25s ease;
    transform-origin: center;
}

[data-theme="light"] .floating-line {
    background: #0284c7;
}

/* Morph to 'X' (Close icon) when expanded */
#nav.nav-expanded .nav-floating-toggle .line-top {
    transform: translateY(7px) rotate(45deg);
}

#nav.nav-expanded .nav-floating-toggle .line-mid {
    opacity: 0;
    transform: scaleX(0);
}

#nav.nav-expanded .nav-floating-toggle .line-bot {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-inner > *,
nav#nav:nth-of-type(1) > div:nth-of-type(1) > * {
    position: relative;
    z-index: 3;
}

/* ── Animated Rotating Border Beam on Nav Pill ── */
.nav-inner::before,
nav#nav:nth-of-type(1) > div:nth-of-type(1)::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 999px;
    padding: 1.5px;
    background: conic-gradient(
        from var(--border-angle),
        rgba(2, 132, 199, 0.12) 0%,
        rgba(2, 132, 199, 0.28) 22%,
        #0284c7 40%,
        #38bdf8 50%,
        #818cf8 60%,
        rgba(2, 132, 199, 0.28) 78%,
        rgba(2, 132, 199, 0.12) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: navBorderRotate 3.8s linear infinite;
    z-index: 2;
}

/* ── Soft Ambient Halo Following the Border Beam ── */
.nav-inner::after,
nav#nav:nth-of-type(1) > div:nth-of-type(1)::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    padding: 3px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 32%,
        rgba(56, 189, 248, 0.45) 50%,
        transparent 68%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: navBorderRotate 3.8s linear infinite;
    filter: blur(5px);
    z-index: 1;
    opacity: 0.9;
}

@keyframes navBorderRotate {
    0% {
        --border-angle: 0deg;
    }
    100% {
        --border-angle: 360deg;
    }
}

#nav.scrolled .nav-inner,
#nav.scrolled nav#nav:nth-of-type(1) > div:nth-of-type(1) {
    width: min(100%, 740px);
    max-width: 740px;
    padding: 8px 14px 8px 20px;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    transform: translateY(2px);
}

[data-theme="dark"] .nav-inner,
[data-theme="dark"] nav#nav:nth-of-type(1) > div:nth-of-type(1) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] #nav.scrolled .nav-inner,
[data-theme="dark"] #nav.scrolled nav#nav:nth-of-type(1) > div:nth-of-type(1) {
    background: rgba(11, 15, 25, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .nav-inner::before,
    .nav-inner::after,
    nav#nav:nth-of-type(1) > div:nth-of-type(1)::before,
    nav#nav:nth-of-type(1) > div:nth-of-type(1)::after {
        animation: none;
    }
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 15.5px;
    font-weight: 750;
    color: #090e17;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
    text-decoration: none;
    letter-spacing: -0.015em;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover {
    color: #0284c7;
    transform: translateY(-1px);
}

[data-theme="dark"] .nav-logo {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .nav-logo:hover {
    color: #38bdf8;
}

.nav-logo-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 13.5px;
    font-weight: 650;
    color: #0b132b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 6px 13px;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a>span {
    color: inherit;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    transition: color 0.25s ease;
}

.nav-links a:hover>span,
.nav-links a:focus-visible>span {
    color: #0284c7;
    -webkit-text-fill-color: #0284c7;
}

.nav-links a:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.14);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
    transform: translateY(-1px);
}

[data-theme="dark"] .nav-links a {
    color: #f1f5f9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .nav-links a:hover>span,
[data-theme="dark"] .nav-links a:focus-visible>span {
    color: #38bdf8;
    -webkit-text-fill-color: #38bdf8;
}

[data-theme="dark"] .nav-links a:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.nav-cta {
    position: relative;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
    box-shadow: 0 2px 14px rgba(2, 132, 199, 0.45);
    overflow: visible !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: ctaBreathPulse 3s ease-in-out infinite;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.25s ease !important;
}

.nav-cta > span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-image: none !important;
    font-weight: 700;
}

[data-theme="dark"] .nav-cta {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45), 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Expanding Radar Pulse Ring on Nav CTA */
.nav-cta::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid #38bdf8;
    opacity: 0;
    pointer-events: none;
    animation: ctaRadarRing 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes ctaBreathPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 12px rgba(2, 132, 199, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 22px rgba(2, 132, 199, 0.65), 0 0 16px rgba(56, 189, 248, 0.5);
    }
}

@keyframes ctaRadarRing {
    0%, 60% {
        inset: -2px;
        opacity: 0.85;
        transform: scale(1);
    }
    85% {
        inset: -8px;
        opacity: 0;
        transform: scale(1.22);
    }
    100% {
        inset: -8px;
        opacity: 0;
        transform: scale(1.24);
    }
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.08) !important;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    box-shadow: 0 8px 28px rgba(2, 132, 199, 0.7), 0 0 20px rgba(56, 189, 248, 0.6) !important;
    animation-play-state: paused;
}

.nav-cta-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.nav-cta:hover .nav-cta-arrow {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .nav-cta,
    .nav-cta::after {
        animation: none;
    }
    .nav-cta:hover {
        transform: none !important;
    }
}

@keyframes nav-text-gradient {
    to {
        background-position: -160% 50%;
    }
}

/* ══════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════ */

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    background: var(--surface-2);
    cursor: pointer;
    color: var(--ink-2);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--surface-3);
    color: var(--ink);
    transform: rotate(-12deg);
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* ══════════════════════════════════════
   MOBILE MENU 3-DOT TOGGLE & DROPDOWN
   Targets nav#nav:nth-of-type(1) > div:nth-of-type(1) (.nav-inner)
══════════════════════════════════════ */

.mobile-menu-toggle {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    background: var(--surface-2);
    cursor: pointer;
    color: var(--ink-2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--surface-3);
    color: var(--ink);
    transform: scale(1.05);
}

.mobile-toggle-line {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-inner.mobile-menu-active .mobile-menu-toggle .mobile-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.nav-inner.mobile-menu-active .mobile-menu-toggle .mobile-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    /* Hide horizontal desktop nav links */
    .nav-inner .nav-links {
        display: none !important;
    }

    /* Style the dropdown menu when active */
    .nav-inner.mobile-menu-active .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: calc(100% + 12px) !important;
        right: 14px !important;
        width: 230px !important;
        background: var(--nav-pill-bg) !important;
        border: 1px solid var(--nav-pill-border) !important;
        border-radius: 20px !important;
        padding: 10px !important;
        box-shadow: var(--nav-pill-shadow) !important;
        backdrop-filter: blur(28px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
        z-index: 500 !important;
        gap: 6px !important;
        transform-origin: top right !important;
        animation: mobileNavReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    .nav-inner.mobile-menu-active .nav-links li {
        width: 100% !important;
        display: block !important;
    }

    .nav-inner.mobile-menu-active .nav-links a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 11px 18px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
        font-weight: 650 !important;
        color: var(--ink) !important;
        text-shadow: none !important;
        background: transparent !important;
        box-shadow: none !important;
        transition: background 0.25s ease, color 0.25s ease !important;
    }

    .nav-inner.mobile-menu-active .nav-links a:hover {
        background: rgba(2, 132, 199, 0.1) !important;
        color: #0284c7 !important;
        transform: none !important;
    }

    [data-theme="dark"] .nav-inner.mobile-menu-active .nav-links a:hover {
        background: rgba(56, 189, 248, 0.15) !important;
        color: #38bdf8 !important;
    }

    .nav-inner.mobile-menu-active .nav-links .nav-cta {
        margin-top: 6px !important;
        width: 100% !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
        color: #ffffff !important;
        animation: none !important;
    }

    [data-theme="dark"] .nav-inner.mobile-menu-active .nav-links .nav-cta {
        background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
        color: #ffffff !important;
    }
}

@keyframes mobileNavReveal {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ══════════════════════════════════════
   REVEALS & ANIMATIONS
══════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */

#hero,
div#portfolio-main-view:nth-of-type(1) > section#hero:nth-of-type(1) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(85vh, 720px);
    padding: 110px var(--gutter) 48px;
    background: transparent;
    position: relative;
    text-align: center;
}

.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-content,
div#portfolio-main-view:nth-of-type(1) > section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 2px 6px var(--shadow-sm);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.08s forwards;
}

.hero-badge-role {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-badge-at {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-3);
}

.hero-badge-loc {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-left: 9px;
    border-left: 1px solid var(--border);
}

.hero-h1 {
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.038em;
    color: var(--ink);
    text-wrap: balance;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.16s forwards;
}

.hero-h1-line {
    display: block;
}

.hero-mark,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1) {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 700;
    cursor: default;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-mark:hover,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1):hover {
    color: #2563eb;
    transform: translateY(-1.5px);
    letter-spacing: -0.01em;
}

[data-theme="dark"] .hero-mark,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1) {
    color: #38bdf8;
}

[data-theme="dark"] .hero-mark:hover,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1):hover {
    color: #7dd3fc;
    transform: translateY(-1.5px);
}

.hero-mark::selection,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1)::selection {
    background: var(--accent);
    color: #ffffff;
}

[data-theme="dark"] .hero-mark::selection,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1)::selection {
    background: #38bdf8;
    color: #0b0f19;
}

.hero-mark-stroke {
    position: absolute;
    left: -1.5%;
    bottom: -0.15em;
    width: 103%;
    height: 0.32em;
    overflow: visible;
    fill: none;
    stroke: var(--accent);
    stroke-width: 3.6;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: heroDraw 0.85s var(--ease) 0.78s forwards;
    transition: stroke 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mark:hover .hero-mark-stroke,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1):hover .hero-mark-stroke {
    stroke: #2563eb;
    transform: scaleY(1.2);
}

[data-theme="dark"] .hero-mark-stroke {
    stroke: #38bdf8;
}

[data-theme="dark"] .hero-mark:hover .hero-mark-stroke,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(2) > span:nth-of-type(1):hover .hero-mark-stroke {
    stroke: #7dd3fc;
}

@keyframes heroDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-lead,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2) {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 72ch;
    font-size: clamp(15.5px, 1.3vw, 17.5px);
    line-height: 1.65;
    font-weight: 550;
    text-align: center;
    color: #090e17;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid color-mix(in srgb, var(--border-mid) 80%, transparent);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.24s forwards;
}

[data-theme="dark"] .hero-lead,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2) {
    color: #f8fafc;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.32s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.25s var(--ease), background 0.25s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--ink) 85%, var(--accent) 15%);
}

.hero-cta-arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}

.hero-cta:hover .hero-cta-arrow {
    transform: translateY(3px);
}

.hero-cta--quiet {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-mid);
}

.hero-cta--quiet:hover {
    background: var(--surface-2);
    border-color: var(--ink-3);
}

/* ── Animated LinkedIn Hero Action Button ── */
.hero-cta--linkedin {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--surface) 86%, #0a66c2 14%);
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--border-mid) 75%, #0a66c2 25%);
    box-shadow: 0 2px 10px rgba(10, 102, 194, 0.08);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0, 0, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0, 0, 1),
                background-color 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease;
}

.hero-cta--linkedin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
    transform: skewX(-24deg);
    animation: linkedinShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes linkedinShimmer {
    0%, 70% {
        left: -120%;
    }
    100% {
        left: 200%;
    }
}

.hero-cta--linkedin:hover {
    transform: translateY(-2px) scale(1.02);
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.hero-linkedin-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0, 0, 1);
}

.hero-cta--linkedin:hover .hero-linkedin-icon {
    transform: scale(1.15) rotate(-6deg);
}

.hero-linkedin-arrow {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    transition: transform 0.25s cubic-bezier(0.25, 0, 0, 1);
}

.hero-cta--linkedin:hover .hero-linkedin-arrow {
    transform: translate(3px, -3px);
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta--linkedin::before {
        animation: none;
        display: none;
    }
    .hero-cta--linkedin:hover {
        transform: none;
    }
    .hero-cta--linkedin:hover .hero-linkedin-icon,
    .hero-cta--linkedin:hover .hero-linkedin-arrow {
        transform: none;
    }
}

.hero-proof,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(3) {
    margin-top: 28px;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #1e293b;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid color-mix(in srgb, var(--border-mid) 80%, transparent);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-proof strong,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(3) strong {
    font-weight: 700;
    color: var(--accent);
}

[data-theme="dark"] .hero-proof,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(3) {
    color: #f1f5f9;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .hero-proof strong,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(3) strong {
    color: var(--accent);
}

/* ══════════════════════════════════════
   HERO PROFILE PORTRAIT
══════════════════════════════════════ */

.hero-playground {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    justify-self: end;
}

.playground {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 30px var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.playground:hover {
    border-color: var(--border-mid);
    box-shadow: 0 18px 40px var(--shadow-md);
    transform: translateY(-2px);
}

.hero-photo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--surface-2);
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.playground:hover .hero-portrait-img {
    transform: scale(1.04);
}

.puzzle-peek {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--pz-image) var(--pz-peek-pos) / var(--pz-bg-size) no-repeat;
    opacity: 0;
    transform: scale(1.02);
    transition: all 0.4s var(--ease);
    filter: saturate(0.8) brightness(0.95);
    pointer-events: none;
}

.puzzle-wrap.is-hovering .puzzle-peek {
    opacity: 0.92;
    filter: none;
    transform: scale(1);
}

.puzzle-wrap.is-peeking .puzzle-peek {
    z-index: 2;
    opacity: 1;
    filter: none;
    transform: scale(1);
}

.puzzle-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pz-piece {
    --col: 0;
    --row: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% / var(--pz-cols));
    height: calc(100% / var(--pz-cols));
    padding: 0;
    border: 0;
    border-radius: var(--pz-radius);
    background-image: var(--pz-image);
    background-repeat: no-repeat;
    background-size: var(--pz-bg-size);
    background-position: var(--bx) var(--by);
    cursor: grab;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    transform: translate(calc(var(--col) * 100%), calc(var(--row) * 100%)) scale(var(--pz-fill));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.34s var(--ease), border-radius 0.5s var(--ease), box-shadow 0.22s ease;
}

.pz-piece:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pz-piece.is-dragging,
.pz-piece.is-lifted {
    z-index: 5;
    cursor: grabbing;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.pz-piece.is-dragging {
    transition: none;
    transform: translate(var(--dx), var(--dy)) scale(calc(var(--pz-fill) * 1.07));
}

.pz-piece.is-lifted {
    transform: translate(calc(var(--col) * 100%), calc(var(--row) * 100%)) scale(calc(var(--pz-fill) * 1.07));
}

.pz-piece.is-target {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}

.puzzle-wrap.is-solved {
    --pz-fill: 1;
    --pz-radius: 0px;
}

.puzzle-wrap.is-solved .pz-piece {
    cursor: default;
    box-shadow: none;
}

.puzzle-wrap.is-solved::after {
    content: '';
    position: absolute;
    inset: -30% -60%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(72deg, transparent 42%, rgba(255, 255, 255, 0.38) 50%, transparent 58%);
    animation: pz-sweep 1.5s cubic-bezier(0.3, 0, 0.2, 1) 0.45s both;
}

@keyframes pz-sweep {
    from {
        transform: translateX(-72%);
        opacity: 0;
    }
    22% {
        opacity: 1;
    }
    to {
        transform: translateX(72%);
        opacity: 0;
    }
}

.playground-hint,
.puzzle-done {
    position: absolute;
    inset: auto 0 14px 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.playground-hint.hidden {
    opacity: 0;
    transform: translateY(5px);
}

.playground-hint span,
.puzzle-done span {
    padding: 4px 12px 5px;
    border-radius: 999px;
    background: rgba(8, 11, 16, 0.65);
    backdrop-filter: blur(7px);
    font-family: 'Caveat', cursive;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.playground-hint svg {
    width: 44px;
    height: 24px;
    margin: 0 0 -2px 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scaleY(-1) rotate(-8deg);
}

.puzzle-done {
    opacity: 0;
    transform: translateY(6px);
}

.puzzle-wrap.is-solved .puzzle-done {
    animation: pz-said 3.6s var(--ease) 0.85s both;
}

@keyframes pz-said {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    18%, 70% {
        opacity: 1;
        transform: none;
    }
    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.puzzle-chips {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.pz-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font: 500 11.5px/1 var(--font);
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-sm);
    transition: all 0.2s ease;
}

.pz-chip:hover {
    color: var(--ink);
    background: var(--surface-2);
    border-color: var(--border-mid);
}

.pz-chip svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* ══════════════════════════════════════
   CAPABILITIES / TRUST STRIP
══════════════════════════════════════ */

.capabilities-strip {
    border-y: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    backdrop-filter: blur(4px);
    padding: 18px var(--gutter);
}

.strip-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.strip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* ══════════════════════════════════════
   WORK / SELECTED PROJECTS
══════════════════════════════════════ */

#work,
#projects,
section#projects {
    position: relative;
    z-index: 5;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: clamp(36px, 5vw, 64px) var(--gutter) 24px;
    scroll-margin-top: 80px;
}

.section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 24px;
}

.work-intro {
    max-width: 60ch;
    margin: -12px 0 36px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-2);
}

.project-list {
    display: flex;
    flex-direction: column;
    max-width: var(--max);
    margin: 0 auto;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: clamp(36px, 4vw, 56px) 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.25s, border-color 0.25s;
}

.project-card:first-child {
    border-top: 1px solid var(--border);
}

.project-visual {
    width: 100%;
    margin-bottom: clamp(20px, 2.5vw, 28px);
}

.project-visual-media,
section#work:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > img:nth-of-type(1) {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover .project-visual-media,
.project-card:hover section#work:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > img:nth-of-type(1) {
    transform: scale(1.012);
    box-shadow: 0 18px 42px var(--shadow-md);
}

.project-body {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 clamp(32px, 4vw, 56px);
}

.project-copy {
    grid-column: 1;
    min-width: 0;
}

.project-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-title {
    font-family: var(--font);
    font-size: clamp(21px, 2.3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 12px;
}

.project-summary {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 58ch;
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-metric {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--border-mid);
    border-radius: 980px;
    padding: 0 13px;
}

.project-cta {
    grid-column: 2;
    justify-self: end;
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pill-ink);
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: var(--pill-shadow);
    transition: all 0.22s ease;
    white-space: nowrap;
}

.project-cta::after {
    content: "→";
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pill-knob-bg);
    color: var(--pill-knob-ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.project-card:hover .project-cta {
    background: var(--pill-bg-hover);
    transform: translateX(4px);
    box-shadow: var(--pill-shadow-hi);
}

/* ══════════════════════════════════════
   AUTOMATION / CAPABILITIES BENTO (DARK)
══════════════════════════════════════ */

#motion {
    background: transparent !important;
    backdrop-filter: none;
    padding: var(--sp) var(--gutter);
    color: var(--on-dark-2);
    position: relative;
    z-index: 1;
}

.section-eyebrow-light {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-dark-3);
    margin-bottom: 8px;
}

.motion-headline {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--on-dark);
    margin-bottom: 36px;
}

.motion-bento {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    row-gap: 16px;
}

.motion-card {
    background: #151d2e;
    border-radius: 16px;
    border: 1px solid var(--on-dark-border);
    position: relative;
    overflow: hidden;
    padding: 24px;
    transition: border-color 0.25s, transform 0.25s;
}

.motion-card:hover {
    border-color: var(--on-dark-border-strong);
}

.mc-tile--tall {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #162035 0%, #0d1424 100%);
}

.mc-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-dark-2);
    background: var(--on-dark-fill);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--on-dark-border-strong);
    margin-bottom: 14px;
}

.mc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--on-dark);
    margin-bottom: 6px;
}

.mc-sub {
    font-size: 13px;
    line-height: 1.6;
    color: var(--on-dark-3);
}

.mc-code-box {
    margin-top: 20px;
    background: #090e18;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    font-family: monospace;
    font-size: 11.5px;
    color: #38bdf8;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   SERVICES & HOW I WORK (#personal)
══════════════════════════════════════ */

#personal {
    background: transparent !important;
    backdrop-filter: none;
    padding: var(--sp) var(--gutter);
}

.personal-headline {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 12px;
}

.personal-sub {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 62ch;
    margin-bottom: 36px;
}

.pw-stack {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.pw-group,
div#portfolio-main-view:nth-of-type(1) > section#personal:nth-of-type(4) > div:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) {
    position: relative;
    border-radius: 22px;
    padding: 24px;
    margin: -24px;
    background: transparent;
    transition: background 0.4s cubic-bezier(0.25, 0, 0, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0, 0, 1),
                border-color 0.4s cubic-bezier(0.25, 0, 0, 1);
    border: 1px solid transparent;
    display: block;
    width: 100%;
}

.pw-group:hover,
div#portfolio-main-view:nth-of-type(1) > section#personal:nth-of-type(4) > div:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1):hover {
    background: color-mix(in srgb, var(--surface) 35%, transparent);
    border-color: color-mix(in srgb, var(--border) 60%, transparent);
    box-shadow: 0 16px 40px -16px var(--shadow-sm);
}

.pw-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    position: relative;
    transition: border-color 0.3s ease;
}

.pw-group-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0, 0, 1);
}

.pw-group:hover .pw-group-head::after {
    width: 140px;
}

.pw-group-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.3s ease;
}

.pw-group-label::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6);
    animation: pulseBeacon 2.4s infinite;
}

@keyframes pulseBeacon {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(2, 132, 199, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    }
}

.pw-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pw-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    cursor: default;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease,
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.3s ease;
}

/* Dynamic sheen reflection animation on hover */
.pw-pin::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.09) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
    transform: scale(0.6);
}

.pw-pin::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    opacity: 0;
}

[data-theme="dark"] .pw-pin::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.pw-pin:hover {
    transform: translateY(-6px) scale(1.012);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-mid));
    box-shadow: 0 16px 36px -8px var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
    background-color: var(--surface);
}

.pw-pin:hover::before {
    opacity: 1;
    transform: scale(1);
}

.pw-pin:hover::after {
    opacity: 1;
    animation: pinShimmer 0.85s ease-out forwards;
}

@keyframes pinShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 220%;
    }
}

.pw-pin-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: color 0.25s ease;
}

.pw-pin:hover .pw-pin-title {
    color: var(--accent);
}

.pw-pin-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-2);
    margin-bottom: 16px;
    flex-grow: 1;
    transition: color 0.25s ease;
}

.pw-pin:hover .pw-pin-desc {
    color: var(--ink);
}

.pw-pin-tags {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    padding: 6px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: fit-content;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pw-pin:hover .pw-pin-tags {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
    .pw-group,
    .pw-pin {
        transition: none;
    }
    .pw-pin:hover {
        transform: none;
    }
    .pw-pin::before,
    .pw-pin::after {
        display: none;
        animation: none;
    }
    .pw-group-label::before {
        animation: none;
    }
}

/* Quote banner */
.pw-pin-media--quote {
    background: #0284c7;
    border-radius: 18px;
    padding: 32px 36px;
    color: #ffffff;
}

.pw-pin-quote {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 12px;
}

.pw-pin-quote-author {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* ══════════════════════════════════════
   ABOUT & EDUCATION SECTION (Smart & Cool Modern Aesthetics)
══════════════════════════════════════ */

#about {
    position: relative;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: var(--sp) var(--gutter);
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(59, 130, 246, 0.03) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

#about::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, rgba(14, 165, 233, 0.02) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.about-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%), var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: clamp(30px, 4.5vw, 48px);
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8, #38bdf8, #0284c7);
    background-size: 200% auto;
    opacity: 0.85;
    animation: aboutGlowBar 6s linear infinite;
}

@keyframes aboutGlowBar {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.32);
    box-shadow: 0 28px 60px -14px rgba(2, 132, 199, 0.2), 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.about-text {
    font-size: clamp(16px, 1.35vw, 18.5px);
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 26px;
    letter-spacing: -0.01em;
    position: relative;
}

/* Smart Tech Stack Box */
.about-skills-box {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    margin: 24px 0 !important;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -8px rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-skills-box:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 32px -8px rgba(2, 132, 199, 0.15);
}

.about-skills-box h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    margin-bottom: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

.about-skills-box h3::after {
    content: "SYSTEM STACK";
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    letter-spacing: 0.5px;
}

.about-skills-box ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 12px !important;
}

.about-skills-box ul li {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px !important;
    font-size: 13.5px !important;
    color: var(--ink) !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-skills-box ul li:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.28);
    transform: translateX(4px);
    color: #ffffff !important;
}

.about-skills-box ul li span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

/* Education row */
.about-education {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
    margin: 22px 0 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.about-education:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.about-degree {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.about-inst {
    font-size: 13px;
    color: var(--ink-2);
}

.about-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.22);
}

/* Smart Interactive Stats Cards */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-stat-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    overflow: hidden;
}

.about-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.25), 0 0 16px -4px rgba(56, 189, 248, 0.2);
}

.about-stat-item:hover::before {
    opacity: 1;
}

.about-stat-num {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-display, inherit);
    color: #f8fafc;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.about-stat-item:hover .about-stat-num {
    transform: scale(1.03);
}

.about-stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-2);
    line-height: 1.45;
}

@media (max-width: 900px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
    .about-skills-box ul {
        grid-template-columns: 1fr !important;
    }
}

/* ══════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════ */

#contact {
    background: transparent !important;
    backdrop-filter: none;
    padding: var(--sp) var(--gutter);
    scroll-margin-top: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

section#contact:nth-of-type(6) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) {
    display: flex;
    flex-direction: column;
}

/* Creative Animated Contact Icons Bar (Pure Borderless Icons with Creative Transitions) */
.contact-icons-bar {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 10px 0;
    background: transparent;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    width: fit-content;
    max-width: 100%;
}

.contact-icon-bubble {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: none !important;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.35s ease,
                color 0.3s ease;
    will-change: transform, box-shadow;
    animation: contact-bubble-float 4.5s ease-in-out infinite;
}

/* Stagger floating rhythm for a playful organic waving effect */
.contact-icon-bubble:nth-child(1) { animation-delay: 0s; }
.contact-icon-bubble:nth-child(2) { animation-delay: 0.6s; }
.contact-icon-bubble:nth-child(3) { animation-delay: 1.2s; }
.contact-icon-bubble:nth-child(4) { animation-delay: 1.8s; }
.contact-icon-bubble:nth-child(5) { animation-delay: 2.4s; }
.contact-icon-bubble:nth-child(6) { animation-delay: 3.0s; }

@keyframes contact-bubble-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.contact-bubble-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bubble-accent, var(--accent)) 0%, transparent 70%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 0;
    transform: scale(0.8);
}

.contact-bubble-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.contact-bubble-inner svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

/* Tooltip on hover */
.contact-bubble-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
    z-index: 20;
}

.contact-icon-bubble:hover .contact-bubble-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Platform specific branding and hover transition animations (border-free) */
.contact-icon-bubble--email {
    --bubble-accent: #38bdf8;
    color: #38bdf8;
}
.contact-icon-bubble--email:hover {
    border: none !important;
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 14px 28px -6px rgba(56, 189, 248, 0.45);
    transform: translateY(-8px) scale(1.15);
}

.contact-icon-bubble--linkedin {
    --bubble-accent: #0a66c2;
    color: #0a66c2;
}
[data-theme="dark"] .contact-icon-bubble--linkedin {
    color: #38bdf8;
}
.contact-icon-bubble--linkedin:hover {
    border: none !important;
    background: rgba(10, 102, 194, 0.22);
    box-shadow: 0 14px 28px -6px rgba(10, 102, 194, 0.5);
    transform: translateY(-8px) scale(1.15);
}

.contact-icon-bubble--whatsapp {
    --bubble-accent: #25d366;
    color: #25d366;
}
.contact-icon-bubble--whatsapp:hover {
    border: none !important;
    background: rgba(37, 211, 102, 0.22);
    box-shadow: 0 14px 28px -6px rgba(37, 211, 102, 0.5);
    transform: translateY(-8px) scale(1.15);
}

.contact-icon-bubble--github {
    --bubble-accent: #a78bfa;
    color: var(--ink);
}
.contact-icon-bubble--github:hover {
    border: none !important;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.22);
    box-shadow: 0 14px 28px -6px rgba(167, 139, 250, 0.45);
    transform: translateY(-8px) scale(1.15);
}

.contact-icon-bubble--facebook {
    --bubble-accent: #1877f2;
    color: #1877f2;
}
.contact-icon-bubble--facebook:hover {
    border: none !important;
    background: rgba(24, 119, 242, 0.22);
    box-shadow: 0 14px 28px -6px rgba(24, 119, 242, 0.5);
    transform: translateY(-8px) scale(1.15);
}

.contact-icon-bubble--location {
    --bubble-accent: #f59e0b;
    color: #f59e0b;
}
.contact-icon-bubble--location:hover {
    border: none !important;
    background: rgba(245, 158, 11, 0.22);
    box-shadow: 0 14px 28px -6px rgba(245, 158, 11, 0.5);
    transform: translateY(-8px) scale(1.15);
}

.contact-icon-bubble:hover .contact-bubble-glow {
    opacity: 0.85;
    transform: scale(1.1);
}

.contact-icon-bubble:hover .contact-bubble-inner svg {
    transform: scale(1.22) rotate(8deg);
}

.contact-icon-bubble:active {
    transform: translateY(-2px) scale(0.95);
    transition-duration: 0.1s;
}

/* Fallback/Legacy styling support */
.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-info-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 8px 24px var(--shadow-sm);
    background: var(--surface-2);
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-card-icon--email {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
}

.contact-card-icon--linkedin {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.14);
    border-color: rgba(10, 102, 194, 0.3);
}

[data-theme="dark"] .contact-card-icon--linkedin {
    color: #38bdf8;
    background: rgba(10, 102, 194, 0.22);
}

.contact-card-icon--whatsapp {
    color: #25d366;
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.3);
}

.contact-card-icon--github {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-mid);
}

.contact-card-icon--facebook {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.14);
    border-color: rgba(24, 119, 242, 0.3);
}

.contact-card-icon--location {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.3);
}

.contact-info-card:hover .contact-card-icon {
    transform: scale(1.08);
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.contact-card-val {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.35;
}

.contact-card-arrow {
    margin-left: auto;
    font-size: 15px;
    color: var(--ink-3);
    transition: transform 0.2s ease, color 0.2s ease;
    padding-left: 8px;
}

.contact-info-card:hover .contact-card-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(24px, 3.5vw, 36px);
    box-shadow: 0 10px 30px var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-mid);
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-submit {
    min-height: 46px;
    padding: 0 24px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.form-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   CASE STUDY MODAL
══════════════════════════════════════ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 88vh;
    overflow-y: auto;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    transform: scale(0.96);
    transition: transform 0.25s var(--ease);
}

.modal-backdrop.is-open .modal-dialog {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 12px;
}

.modal-table th,
.modal-table td {
    padding: 9px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.modal-table th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--ink);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */

footer#footer {
    background: transparent !important;
    backdrop-filter: none;
    padding: clamp(40px, 5vw, 64px) var(--gutter);
    color: var(--on-dark-2);
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--on-dark-border);
}

.footer-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--on-dark);
    text-decoration: none;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 0.32em;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-dark-2);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a::after {
    content: "↗";
    display: inline-block;
    font-size: 0.9em;
    line-height: 1;
    transform: translateY(-0.04em);
    transition: transform 0.25s var(--ease);
}

.footer-nav a:hover {
    color: var(--on-dark);
}

.footer-nav a:hover::after {
    transform: translate(0.14em, -0.18em);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-copy {
    font-size: 13px;
    color: var(--on-dark-3);
}

.footer-weather {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--on-dark-3);
}

.fw-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.fw-dot.live {
    animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.fw-city {
    color: var(--on-dark);
    font-weight: 500;
}

/* ══════════════════════════════════════
   RESPONSIVE QUERIES
══════════════════════════════════════ */

@media (max-width: 840px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-playground {
        max-width: 320px;
        margin: 0 auto;
    }
    .project-body {
        grid-template-columns: 1fr;
    }
    .project-cta {
        grid-column: 1;
        justify-self: start;
        margin-top: 16px;
    }
    .motion-bento {
        grid-template-columns: 1fr;
    }
    .mc-tile--tall {
        grid-column: 1;
        grid-row: auto;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #nav {
        padding: 0 16px;
        height: 62px;
    }
    .nav-links a {
        padding: 0 9px;
        font-size: 12.5px;
    }
    #nav.scrolled .nav-inner {
        width: 100%;
        padding: 6px 12px;
    }
    #hero {
        padding: 96px 16px 40px;
    }
    .hero-h1 {
        font-size: clamp(30px, 8.5vw, 42px);
    }
    .hero-lead {
        font-size: 15px;
    }
    .hero-actions {
        gap: 8px;
    }
    .hero-cta {
        width: 100%;
        justify-content: center;
    }
    .project-visual-media {
        aspect-ratio: 16 / 10;
    }
    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════
   HERO LEADS SAMPLE CTA BUTTON
   Target: section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(1)
══════════════════════════════════════ */
.hero-cta--samples,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(1) {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta--samples:hover,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(1):hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.5);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
}

[data-theme="dark"] .hero-cta--samples,
[data-theme="dark"] section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(1) {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 4px 22px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

.hero-sample-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.hero-cta--samples:hover .hero-sample-icon,
section#hero:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(1):hover .hero-sample-icon {
    transform: scale(1.1);
}

/* ══════════════════════════════════════
   LEADS SAMPLES SHOWCASE PAGE
══════════════════════════════════════ */
.leads-samples-view {
    min-height: 100vh;
    padding: clamp(20px, 3vw, 40px) clamp(16px, 3.5vw, 48px) 88px;
    background-color: var(--bg);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 10% 8%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 12%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 55%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--ink);
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInLeads 0.35s ease-out;
}

[data-theme="light"] .leads-samples-view {
    background-color: var(--bg);
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 10% 8%, rgba(2, 132, 199, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 12%, rgba(5, 150, 105, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.05) 0%, transparent 55%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
}

@keyframes fadeInLeads {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leads-page-inner {
    max-width: 100%;
    margin: 0 auto;
}

/* Topbar */
.leads-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.leads-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-back-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back-portfolio:hover {
    background: var(--surface-2);
    border-color: var(--border-mid);
    color: var(--accent);
    transform: translateX(-2px);
}

.leads-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-2);
}

.leads-breadcrumb-sep {
    opacity: 0.5;
}

.leads-breadcrumb-current {
    color: var(--ink);
    font-weight: 600;
}

/* Admin Top Bar items */
.leads-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin-pill:hover {
    background: var(--surface-2);
    color: var(--ink);
    border-color: var(--accent);
}

.admin-badge-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-size: 12px;
    font-weight: 700;
}

.admin-live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite;
}

.btn-add-sample {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

.btn-add-sample:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-admin-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin-logout:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

/* Leads Page Header */
.leads-header {
    margin-bottom: 36px;
}

.leads-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.leads-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.leads-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 14px;
}

.leads-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 760px;
    margin-bottom: 22px;
}

.leads-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.leads-stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

/* Controls Bar (Search & Filters) */
.leads-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px var(--shadow-sm);
}

@media (min-width: 768px) {
    .leads-controls-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.leads-search-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.leads-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-2);
    pointer-events: none;
}

.leads-search-input {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 42px;
    border-radius: 10px;
    border: 1px solid var(--border-mid);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    transition: all 0.2s ease;
}

.leads-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.leads-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.leads-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    padding: 7px 14px;
    border-radius: 9999px;
    background: var(--bg);
    border: 1px solid var(--border-mid);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    color: var(--ink);
    border-color: var(--ink-2);
}

.filter-pill.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

/* Results Count & Admin Active Hint */
.leads-results-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--ink-2);
    font-weight: 500;
    flex-wrap: wrap;
    gap: 12px;
}

.leads-admin-active-hint {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #0284c7;
    font-size: 12px;
    font-weight: 600;
}

[data-theme="dark"] .leads-admin-active-hint {
    color: #38bdf8;
    background: rgba(2, 132, 199, 0.2);
}

/* ══════════════════════════════════════
   LEADS SAMPLE CARDS GRID
══════════════════════════════════════ */
.leads-grid,
div#leads-samples-view:nth-of-type(2) > div:nth-of-type(1) > div#leads-grid:nth-of-type(4) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

@media (max-width: 480px) {
    .leads-grid,
    div#leads-samples-view:nth-of-type(2) > div:nth-of-type(1) > div#leads-grid:nth-of-type(4) {
        grid-template-columns: 1fr;
    }
}

.lead-sample-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.lead-sample-card:hover {
    border-color: var(--border-mid);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.lead-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    overflow: hidden;
    cursor: pointer;
}

.lead-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.lead-sample-card:hover .lead-card-img {
    transform: scale(1.04);
}

.lead-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.lead-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    z-index: 2;
}

.lead-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lead-quality-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.lead-quality-pill svg {
    flex-shrink: 0;
}

.lead-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lead-card-location-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.lead-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 10px;
}

.lead-card-quality-box {
    background: var(--surface-2);
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.lead-card-quality-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    display: block;
    margin-bottom: 4px;
}

.lead-card-quality-val {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lead-card-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.lead-card-field-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-weight: 500;
}

.lead-sheet-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #059669;
    margin-top: 10px;
    margin-bottom: 2px;
}

[data-theme="dark"] .lead-sheet-indicator {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.32);
    color: #34d399;
}

.lead-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: none;
}

.btn-card-download {
    flex: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9.5px 12px;
    border-radius: 8px;
    background: #059669;
    color: #ffffff;
    border: 1px solid #047857;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    white-space: nowrap;
}

.btn-card-download:hover {
    background: #047857;
    border-color: #065f46;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.btn-card-download:active {
    transform: translateY(0);
}

.btn-card-download svg {
    flex-shrink: 0;
}

[data-theme="dark"] .btn-card-download {
    background: #059669;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

[data-theme="dark"] .btn-card-download:hover {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
}

.btn-card-preview {
    flex: 0.95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-card-preview:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-card-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-edit:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-card-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-delete:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.btn-card-delete.confirm-delete-active {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    padding: 8px 12px !important;
}

/* Leads Bottom CTA */
.leads-cta-banner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    margin-top: 40px;
}

@media (min-width: 768px) {
    .leads-cta-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.leads-cta-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.leads-cta-content p {
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.5;
    max-width: 600px;
}

/* ══════════════════════════════════════
   ADMIN MODALS (AUTH & EDITOR)
══════════════════════════════════════ */
.modal-dialog--auth {
    max-width: 440px;
}

.modal-dialog--editor,
div#sample-editor-modal:nth-of-type(4) > div:nth-of-type(1) {
    max-width: 560px;
}

.modal-dialog--preview {
    max-width: 860px;
}

.auth-modal-header,
.editor-modal-header {
    margin-bottom: 24px;
}

.auth-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

[data-theme="dark"] .auth-badge-icon {
    color: #38bdf8;
    background: rgba(2, 132, 199, 0.2);
}

.auth-title,
.editor-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.auth-subtitle,
.editor-subtitle {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.45;
}

.editor-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.btn-text-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-text-link:hover {
    color: var(--ink);
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.btn-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-2);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-password-toggle:hover {
    color: var(--ink);
}

.auth-error-msg {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-actions,
.editor-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.auth-actions .form-submit,
.editor-actions .form-submit {
    flex: 1;
    margin-top: 0;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

.required-star {
    color: #ef4444;
}

/* Photo Selector Tabs & Presets */
.photo-source-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.photo-tab {
    padding: 6px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-tab.active {
    background: var(--surface-2);
    color: var(--ink);
}

.photo-panel {
    margin-bottom: 14px;
}

.photo-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preset-choice-btn {
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.2s ease;
}

.preset-choice-btn img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.preset-choice-btn span {
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
}

.preset-choice-btn.active,
.preset-choice-btn:hover {
    border-color: var(--accent);
}

.preset-choice-btn.active span {
    color: var(--accent);
}

.photo-dropzone {
    border: 2px dashed var(--border-mid);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg);
    transition: all 0.2s ease;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
    border-color: var(--accent);
    background: var(--surface-2);
}

.photo-dropzone svg {
    color: var(--accent);
}

.dropzone-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.dropzone-sub {
    font-size: 11.5px;
    color: var(--ink-2);
}

.photo-preview-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.preview-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.photo-preview-box {
    width: 72px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.photo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ══════════════════════════════════════
   DATASET PREVIEW MODAL
══════════════════════════════════════ */
.dataset-preview-header {
    margin-bottom: 20px;
}

.preview-badge-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.preview-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.preview-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--ink-2);
}

.preview-meta-item--quality {
    color: #10b981;
    font-weight: 600;
}

.preview-visual-box {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.preview-visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    margin-bottom: 10px;
}

.preview-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 24px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.preview-table th {
    background: var(--surface-2);
    padding: 10px 14px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.preview-table td {
    padding: 10px 14px;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.preview-table tr:last-child td {
    border-bottom: none;
}

.preview-table tr:hover td {
    background: rgba(2, 132, 199, 0.04);
}

.badge-verified-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-weight: 600;
    font-size: 11px;
}

.preview-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-preview-download-sheet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9px;
    background: #059669;
    color: #ffffff;
    border: 1px solid #047857;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28);
}

.btn-preview-download-sheet:hover {
    background: #047857;
    border-color: #065f46;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.38);
    transform: translateY(-1px);
}

.btn-preview-download-sheet:active {
    transform: translateY(0);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin-icon {
    animation: spin 0.9s linear infinite;
}

/* ─────────────────────────────────────────────────────────────────────────
   9. COMPLETE WEBSITE ADMIN CMS & DATABASE DASHBOARD
───────────────────────────────────────────────────────────────────────── */
.admin-cms-view {
    min-height: 100vh;
    padding: clamp(20px, 3vw, 40px) clamp(16px, 3.5vw, 48px) 88px;
    background-color: var(--bg);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 10% 8%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 12%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 55%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--ink);
    max-width: 1400px;
    margin: 0 auto;
}

[data-theme="light"] .admin-cms-view {
    background-color: var(--bg);
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 10% 8%, rgba(2, 132, 199, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 12%, rgba(5, 150, 105, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.05) 0%, transparent 55%);
    background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
}

.cms-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.cms-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cms-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cms-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 9999px;
    background: #10b981;
    color: #ffffff;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cms-save:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-cms-save:active {
    transform: translateY(0);
}

.btn-cms-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    background: var(--bg-card);
    color: var(--ink-2);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cms-secondary:hover {
    color: var(--ink);
    border-color: var(--ink-3);
    background: var(--bg-card-hover);
}

.cms-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .cms-layout {
        grid-template-columns: 1fr;
    }
}

.cms-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    position: sticky;
    top: 24px;
}

.cms-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 900px) {
    .cms-sidebar {
        position: static;
        overflow-x: auto;
    }
    .cms-nav-list {
        flex-direction: row;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

.cms-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-2);
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cms-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
}

.cms-nav-btn.active {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.cms-tab-content {
    display: none !important;
}

.cms-tab-content.active {
    display: block !important;
    animation: cmsFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cmsFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cms-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 10px 30px var(--shadow-sm);
    margin-bottom: 24px;
}

.cms-panel-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cms-panel-title {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cms-panel-desc {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.5;
}

.cms-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 680px) {
    .cms-grid-2 {
        grid-template-columns: 1fr;
    }
}

.cms-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 800px) {
    .cms-grid-3 {
        grid-template-columns: 1fr;
    }
}

.cms-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.cms-item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.cms-item-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

.cms-sync-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
}

.cms-sync-pulse.syncing {
    color: #60a5fa;
}

.cms-sync-pulse.synced {
    color: #10b981;
}

.nav-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 12.5px;
    font-weight: 600;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat-num {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-display, inherit);
    color: var(--ink);
    letter-spacing: -0.02em;
}

.about-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
}

/* ══════════════════════════════════════════════════════════
   CMS PANEL FOOTERS & FLOATING SAVE ACTION BAR
   ══════════════════════════════════════════════════════════ */
.cms-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cms-panel-footer-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
}

.cms-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    display: inline-block;
    animation: pulseDotGlow 2s infinite ease-in-out;
}

@keyframes pulseDotGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Floating Quick Save Bar (Sticky at bottom of screen when in CMS view) */
.cms-floating-save-bar {
    position: sticky;
    bottom: 24px;
    left: 0;
    right: 0;
    margin-top: 32px;
    z-index: 99;
    pointer-events: auto;
}

.cms-floating-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(18, 24, 38, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    padding: 10px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    animation: floatingBarEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="light"] .cms-floating-bar-inner {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

@keyframes floatingBarEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cms-floating-bar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.kbd-hint {
    font-size: 11.5px;
    color: var(--ink-2);
    font-weight: 500;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.kbd-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10.5px;
    font-family: inherit;
    color: var(--ink);
}

.cms-floating-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ══════════════════════════════════════════════════════════
   LEADS SAMPLES PAGE - ENHANCED CARD & CONTROLS UI/UX
   ══════════════════════════════════════════════════════════ */
.lead-sample-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px var(--shadow-sm);
    position: relative;
}

.lead-sample-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.lead-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-card-hover);
    overflow: hidden;
    cursor: pointer;
}

.lead-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.lead-sample-card:hover .lead-card-img {
    transform: scale(1.06);
}

.lead-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.3) 0%, transparent 40%, rgba(10, 15, 28, 0.85) 100%);
    pointer-events: none;
}

.lead-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.lead-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.lead-quality-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.lead-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lead-card-location-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 8px;
}

.lead-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 12px;
}

.lead-card-quality-box,
div#leads-samples-view > div > div#leads-grid > article > div:nth-of-type(2) > div:nth-of-type(2) {
    background: rgba(255, 255, 255, 0.04);
    border: none !important;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.lead-card-quality-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-2);
    display: block;
    margin-bottom: 3px;
}

.lead-card-quality-val {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lead-card-fields,
div#leads-samples-view > div > div#leads-grid > article > div:nth-of-type(2) > div:nth-of-type(3) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    border: none !important;
    border-top: none !important;
}

.lead-card-field-tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--ink-2);
    font-weight: 500;
}

.lead-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: none;
    flex-wrap: wrap;
}

.btn-lead-preview,
.btn-lead-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-lead-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--ink);
}

.btn-lead-preview:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.btn-lead-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9.5px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.btn-lead-download:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-lead-download:active {
    transform: translateY(0);
}

/* Card Admin Action Buttons */
.lead-card-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card-edit,
.btn-card-delete {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-card-edit:hover {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

.btn-card-delete:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
}

/* ══════════════════════════════════════
   DATABASE INQUIRY MESSAGE CARD (CONTACT FORM)
   Direct database feedback instead of opening Gmail
══════════════════════════════════════ */
.form-db-message-card {
    margin-top: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    animation: fadeInDbCard 0.35s ease-out;
}

@keyframes fadeInDbCard {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.db-msg-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.db-msg-body {
    flex: 1;
    min-width: 0;
}

.db-msg-title {
    font-size: 15px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-msg-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 10px;
}

.db-msg-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11.5px;
}

.db-msg-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.db-msg-id {
    color: var(--ink-3);
    font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ══════════════════════════════════════
   CMS INBOX & CLIENT INQUIRIES LIST
══════════════════════════════════════ */
.cms-inbox-header-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.cms-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

.cms-inbox-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cms-inquiry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cms-inquiry-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: var(--surface-2);
}

.cms-inquiry-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.cms-inquiry-sender {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cms-inquiry-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.cms-inquiry-email {
    font-size: 13px;
    color: #38bdf8;
    text-decoration: none;
    font-family: ui-monospace, monospace;
}

.cms-inquiry-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-inquiry-service {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-inquiry-time {
    color: var(--ink-3);
    font-size: 11.5px;
}

.cms-inquiry-body {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}

.cms-inquiry-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.btn-inquiry-reply {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-inquiry-reply:hover {
    background: #38bdf8;
    color: #0b0f19;
}

.btn-inquiry-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-inquiry-delete:hover {
    background: #ef4444;
    color: #ffffff;
}

.cms-inbox-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--ink-3);
}

.cms-inbox-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.6;
}

/* ══════════════════════════════════════
   RESPONSIVENESS & PERFORMANCE FOR ALL DEVICES
   (PC, Mobile, Tablet, Low-spec / Older Devices)
══════════════════════════════════════ */

/* Performance Optimizations: Rendering isolation & GPU assist */
section#motion,
section#personal,
section#about,
section#contact {
    content-visibility: auto;
    contain-intrinsic-size: 1px 650px;
}

/* Smooth hardware compositing without memory bloat */
.nav-inner,
.project-card,
.pw-pin,
.lead-sample-card,
.modal-dialog {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Fallbacks for older models without hardware backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    #nav,
    .nav-inner,
    footer#footer,
    .modal-backdrop,
    .lead-table-header {
        background-color: #0f172a !important;
    }
}

/* Tablet & Mobile Layout Adjustments (1024px, 768px, 480px) */
@media (max-width: 1024px) {
    .cms-layout {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }
    .project-list {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .cms-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .cms-sidebar {
        position: static;
        width: 100%;
    }
    .cms-nav-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .cms-nav-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-info-card {
        padding: 14px 16px;
        min-height: 52px;
    }
    .form-submit,
    .btn-lead-download,
    .hero-cta {
        min-height: 48px;
    }
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    .hero-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 48px;
    }
    .hero-proof {
        text-align: center;
        font-size: 12.5px;
    }
    .capabilities-strip {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .capabilities-strip::-webkit-scrollbar {
        display: none;
    }
    .strip-inner {
        flex-wrap: nowrap;
        width: max-content;
        padding: 0 16px;
    }
    .leads-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .leads-topbar-left,
    .leads-topbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .leads-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .leads-search-wrap {
        width: 100%;
    }
    .leads-filter-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        flex-wrap: nowrap;
    }
    .filter-pill {
        flex-shrink: 0;
        white-space: nowrap;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    :root {
        --gutter: 14px;
        --sp: 48px;
    }
    .hero-h1 {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.22;
        letter-spacing: -0.02em;
    }
    .hero-badge {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 11.5px;
    }
    .project-card {
        border-radius: 12px;
    }
    .project-body {
        padding: 16px 14px;
    }
    .project-title {
        font-size: 17px;
        line-height: 1.35;
    }
    .project-metrics {
        gap: 6px;
        flex-wrap: wrap;
    }
    .project-metric {
        font-size: 11px;
        padding: 3px 8px;
    }
    .lead-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .btn-lead-download {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 44px;
    }
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .about-stat-item {
        padding: 14px 10px;
    }
    .about-stat-num {
        font-size: 16px;
    }
    .pw-pin {
        padding: 18px 16px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
}

/* Modal Responsive Dialogs & Touch Safety */
.modal-dialog,
.leads-preview-modal-dialog,
.case-study-modal-dialog {
    max-width: min(94vw, 760px);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .modal-dialog,
    .leads-preview-modal-dialog,
    .case-study-modal-dialog {
        width: 95vw !important;
        margin: 10px auto;
        padding: 18px 14px !important;
        border-radius: 14px;
    }
    .modal-table-wrap,
    .lead-sheet-preview-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .modal-table {
        min-width: 480px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PERFORMANCE & SMOOTHNESS FOR OLDER DEVICES / LOW-END HARDWARE
   ══════════════════════════════════════════════════════════════ */
/* Modern content-visibility and layout containment to eliminate lag */
section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

#hero {
    content-visibility: visible !important;
}

.project-card,
.pw-pin,
.lead-sample-card,
.about-card {
    contain: layout style;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Lightweight interaction layer on mobile and low-end devices */
@media (hover: none) {
    /* Touch device optimizations: disable expensive hover animations and shimmer loops */
    .pw-pin::after,
    .project-card::after {
        display: none !important;
        animation: none !important;
    }
    .pw-pin:hover,
    .project-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Reduced motion for older devices or battery-saver mode */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pw-pin::before,
    .pw-pin::after,
    .puzzle-hero-wrap,
    .puzzle-piece {
        animation: none !important;
        transition: none !important;
    }
}

/* High performance image decoding & rendering */
img {
    content-visibility: auto;
}

.project-media {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    aspect-ratio: 16 / 10;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s var(--ease);
}

@media (hover: hover) {
    .project-card:hover .project-img {
        transform: scale(1.02);
    }
}

/* ─────────────────────────────────────────────────────────────
   AI ASSISTANT CHAT WIDGET (GEMINI POWERED)
   ───────────────────────────────────────────────────────────── */
.ai-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 450;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Floating Launcher Button */
.ai-chat-launcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    position: relative;
    user-select: none;
    outline: none;
}

.ai-chat-launcher:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.ai-chat-launcher:active {
    transform: translateY(0) scale(0.98);
}

.ai-chat-launcher-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    position: relative;
    z-index: 2;
}

.ai-chat-pulse-ring {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.5);
    animation: aiChatPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes aiChatPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.ai-chat-launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-launcher-label {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 450;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-window.ai-chat-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}

.ai-chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0284c7;
}

.ai-chat-avatar-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0f172a;
}

.ai-chat-header-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.ai-chat-header-subtitle {
    margin: 3px 0 0 0;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-chat-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.ai-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-chat-btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ai-chat-btn-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Chat Messages Area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Message Rows */
.ai-msg-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.ai-msg-row.user {
    justify-content: flex-end;
}

.ai-msg-row.assistant {
    justify-content: flex-start;
}

.ai-msg-bubble {
    max-width: 86%;
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.ai-msg-row.user .ai-msg-bubble {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border-radius: 14px 14px 2px 14px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ai-msg-row.assistant .ai-msg-bubble {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 14px 14px 14px 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-msg-bubble p {
    margin: 0 0 8px 0;
}
.ai-msg-bubble p:last-child {
    margin-bottom: 0;
}

.ai-msg-bubble strong {
    color: #ffffff;
    font-weight: 700;
}

.ai-msg-bubble a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ai-msg-bubble a:hover {
    color: #7dd3fc;
}

.ai-msg-bubble ul,
.ai-msg-bubble ol {
    margin: 6px 0;
    padding-left: 18px;
}

.ai-msg-bubble li {
    margin-bottom: 4px;
}

/* Interactive Direct Contact Handoff Actions */
.ai-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ai-contact-btn.call-btn {
    background: #10b981;
    color: #ffffff !important;
}
.ai-contact-btn.call-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.ai-contact-btn.whatsapp-btn {
    background: #25d366;
    color: #ffffff !important;
}
.ai-contact-btn.whatsapp-btn:hover {
    background: #1ebd5a;
    transform: translateY(-1px);
}

.ai-contact-btn.email-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.ai-contact-btn.email-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Typing indicator */
.ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #1e293b;
    border-radius: 14px 14px 14px 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: aiTypingBounce 1.2s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiTypingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Quick Suggestion Chips */
.ai-chat-suggestions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
}
.ai-chat-suggestions::-webkit-scrollbar {
    display: none;
}

.ai-chat-chip {
    flex-shrink: 0;
    padding: 6px 11px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.ai-chat-chip:hover {
    background: rgba(2, 132, 199, 0.2);
    border-color: #0284c7;
    color: #ffffff;
}

/* Chat Input Bar */
.ai-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ai-chat-input::placeholder {
    color: #64748b;
}

.ai-chat-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.ai-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.15s;
}

.ai-chat-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.ai-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsiveness for AI Chat */
@media (max-width: 480px) {
    .ai-chat-widget {
        bottom: 16px;
        right: 16px;
    }
    .ai-chat-window {
        bottom: 74px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        height: calc(100vh - 100px);
    }
}

/* ─────────────────────────────────────────────────────────────
   ANIMATED PROJECT GALLERY & CASE STUDY SHOWCASE (CREATIVE, TRANSITIONAL & CLEAN)
   ───────────────────────────────────────────────────────────── */
#projects,
section#projects {
    position: relative !important;
    z-index: 10 !important;
    content-visibility: visible !important;
    contain: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: clamp(48px, 6vw, 84px) var(--gutter) 48px !important;
    overflow: hidden !important;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), rgba(16, 185, 129, 0.6), transparent);
    animation: projectsScanTop 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes projectsScanTop {
    0%, 100% { transform: translateX(-25%); opacity: 0.3; }
    50% { transform: translateX(25%); opacity: 0.9; }
}

#projects .section-inner,
#projects .section-eyebrow,
#projects .section-title,
#projects h2,
#projects .work-intro,
main#portfolio-main-view:nth-of-type(1) > section#projects:nth-of-type(2) > div:nth-of-type(1) > h2:nth-of-type(1) {
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#projects h2.section-title,
main#portfolio-main-view:nth-of-type(1) > section#projects:nth-of-type(2) > div:nth-of-type(1) > h2:nth-of-type(1) {
    color: #ffffff !important;
    font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.25) !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.6rem !important;
}

#projects .section-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    color: #38bdf8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 3px 12px !important;
    border-radius: 999px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15) !important;
}

#projects .work-intro {
    color: var(--ink-2, #cbd5e1) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-width: 62ch !important;
    margin-bottom: 28px !important;
}

.project-card,
.project-card.reveal,
.project-card.in,
#projects-list-container .project-card {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 26px !important;
    padding: 20px 24px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.42) 0%, rgba(9, 14, 28, 0.52) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 20px !important;
    margin-bottom: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

.project-card:hover {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 22px 60px -10px rgba(0, 0, 0, 0.85), 0 0 36px rgba(56, 189, 248, 0.22) !important;
    transform: translateY(-4px) !important;
}

.project-animated-gallery,
.cyber-bot-deck {
    width: 100%;
    max-width: 330px;
    flex: 0 0 330px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 14, 26, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.08);
    position: relative;
    backdrop-filter: blur(14px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-animated-gallery:hover,
.cyber-bot-deck:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.16);
}

/* Dynamic Specular Light Glare */
.cyber-deck-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
    background: radial-gradient(circle 220px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    mix-blend-mode: overlay;
    transition: background 0.1s ease;
}

/* Cyber Laser Scanner Line */
.cyber-laser-scanner {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.8) 30%, #38bdf8 50%, rgba(16, 185, 129, 0.8) 70%, transparent 100%);
    box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.6);
    pointer-events: none;
    z-index: 25;
    opacity: 0;
}

.cyber-laser-scanner.scanning {
    animation: laserScanSweep 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes laserScanSweep {
    0% {
        top: 0%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Cyber Deck HUD Header */
.pag-header.cyber-hud-bar,
.pag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 10;
}

.cyber-hud-left,
.pag-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cyber-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2.5px 7px;
    border-radius: 20px;
}

.cyber-pulse-emitter {
    position: relative;
    width: 6px;
    height: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-pulse-core {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.cyber-pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #10b981;
    animation: pulseRing 1.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pulseRing {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.cyber-status-title {
    font-size: 9px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.cyber-status-meta {
    font-size: 8.5px;
    font-weight: 600;
    color: var(--ink-2);
    padding-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.pag-tabs.cyber-mode-tabs,
.pag-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pag-tab-btn.cyber-tab,
.pag-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2.5px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.pag-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.pag-tab-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.cyber-hud-actions,
.pag-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cyber-hud-btn,
.pag-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ink-2);
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}

.cyber-hud-btn:hover,
.pag-tool-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.cyber-btn-simulate {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.cyber-btn-simulate:hover,
.cyber-btn-simulate.active {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* ─────────────────────────────────────────────────────────────
   3D HOLOGRAPHIC STAGE WITH PERSPECTIVE MORPH TRANSITION
   ───────────────────────────────────────────────────────────── */
.pag-stage.cyber-stage,
.pag-stage {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 215px;
    background: radial-gradient(circle at 50% 50%, #0d1527 0%, #060a12 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6px;
    isolation: isolate;
    perspective: 900px;
    transform-style: preserve-3d;
}

/* Ambient Backlight Glow */
.pag-stage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    max-width: 90%;
    height: 160px;
    background: radial-gradient(ellipse at center, var(--pag-glow, rgba(56, 189, 248, 0.32)) 0%, rgba(56, 189, 248, 0.1) 40%, rgba(8, 13, 22, 0) 70%);
    filter: blur(22px);
    pointer-events: none;
    z-index: 0;
    transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: auraBreath 4.5s ease-in-out infinite alternate;
}

/* ─────────────────────────────────────────────────────────────
   CREATIVE 3D PERSPECTIVE FLIP / MORPH TRANSITIONS
   ───────────────────────────────────────────────────────────── */
.pag-slide.cyber-slide,
.pag-slide {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2px 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: perspective(900px) rotateY(45deg) translateZ(-50px) scale(0.9);
    filter: blur(4px);
    transition: 
        transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.48s ease,
        filter 0.48s ease,
        visibility 0.48s ease;
    transform-origin: center center;
    z-index: 1;
    will-change: transform, opacity, filter;
}

.pag-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: perspective(900px) rotateY(0deg) translateZ(0) scale(1) !important;
    filter: blur(0px) !important;
    z-index: 5 !important;
}

/* Creative 3D Exit to the Left */
.pag-slide.slide-exit-left {
    opacity: 0 !important;
    visibility: visible !important;
    transform: perspective(900px) rotateY(-45deg) translateZ(-60px) scale(0.88) !important;
    filter: blur(4px) !important;
    z-index: 2 !important;
}

/* Creative 3D Exit to the Right */
.pag-slide.slide-exit-right {
    opacity: 0 !important;
    visibility: visible !important;
    transform: perspective(900px) rotateY(45deg) translateZ(-60px) scale(0.88) !important;
    filter: blur(4px) !important;
    z-index: 2 !important;
}

.pag-slide.slide-exit {
    opacity: 0 !important;
    visibility: visible !important;
    transform: perspective(900px) rotateY(-40deg) translateZ(-50px) scale(0.88) !important;
    filter: blur(4px) !important;
    z-index: 2 !important;
}

/* ─────────────────────────────────────────────────────────────
   PIPELINE GRAPH HUD (SLIDE 0)
   ───────────────────────────────────────────────────────────── */
.cyber-pipeline-canvas {
    width: 100%;
    max-width: 310px;
    cursor: zoom-in;
    position: relative;
    z-index: 2;
    transition: transform 0.25s ease;
}

.cyber-pipeline-canvas:hover {
    transform: translateY(-2px) scale(1.015);
}

.pipeline-graph-hud {
    background: rgba(11, 19, 35, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9px;
    padding: 8px 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pipeline-node-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 6px;
}

.pipeline-node {
    flex: 1;
    min-width: 70px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    padding: 5px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.25s ease;
}

.pipeline-node:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 1);
}

.pipeline-node.node-worker.active-pulse {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    animation: nodePulse 2.4s infinite ease-in-out;
}

@keyframes nodePulse {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
    }
    50% {
        border-color: #10b981;
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    }
}

.node-icon {
    font-size: 14px;
    line-height: 1;
}

.node-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
}

.node-sub {
    font-size: 7.5px;
    color: var(--ink-2);
    white-space: nowrap;
}

.node-status-tag {
    font-size: 7.5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink-2);
    margin-top: 1px;
}

.node-status-tag.tag-green {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.node-status-tag.tag-accent {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Connector & Glowing Packet Stream */
.pipeline-connector {
    position: relative;
    width: 24px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pipeline-line {
    width: 100%;
    height: 1.5px;
    background: rgba(56, 189, 248, 0.3);
}

.pipeline-packet {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
    animation: packetStream 1.6s infinite linear;
}

.pipeline-packet.packet-2 {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: packetStream 1.6s infinite linear 0.8s;
}

@keyframes packetStream {
    0% {
        left: 0%;
        opacity: 0.1;
    }
    40% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0.1;
    }
}

/* Live Simulation Supercharged State */
.pag-stage.is-simulating .pipeline-packet {
    animation-duration: 0.4s !important;
    background: #facc15 !important;
    box-shadow: 0 0 10px #facc15 !important;
}

.pag-stage.is-simulating .pipeline-node.node-worker {
    border-color: #facc15 !important;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.5) !important;
}

.pipeline-live-ticker {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    background: rgba(6, 11, 20, 0.85);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
}

.pipeline-live-ticker .ticker-dot {
    color: #10b981;
    font-size: 7px;
    animation: livePulse 1.2s infinite ease-in-out;
}

.pipeline-live-ticker .ticker-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pag-mockup-wrap {
    width: 100%;
    max-width: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: zoom-in;
    transition: transform 0.25s ease;
    position: relative;
    z-index: 2;
}

.pag-mockup-wrap:hover {
    transform: translateY(-2px) scale(1.015);
}

/* ─────────────────────────────────────────────────────────────
   PHONE CHASSIS: Sleek Compact Mobile Frame
   ───────────────────────────────────────────────────────────── */
.pag-phone-chassis.cyber-phone-chassis,
.pag-phone-chassis {
    position: relative;
    width: 100%;
    max-width: 130px;
    background: #0d131f;
    border-radius: 18px;
    padding: 3.5px;
    margin: 0 auto;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 18px var(--pag-glow, rgba(16, 185, 129, 0.32)),
        0 10px 24px -6px rgba(0, 0, 0, 0.9);
}

.pag-slide.active .pag-phone-chassis {
    animation: subtleFloatPhone 5.5s ease-in-out infinite alternate;
}

/* Dynamic Island */
.pag-phone-island {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 10px;
    background: #000000;
    border-radius: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pag-phone-speaker {
    width: 16px;
    height: 2px;
    background: #27272a;
    border-radius: 2px;
}

.pag-phone-lens {
    width: 3.5px;
    height: 3.5px;
    background: #09090b;
    border-radius: 50%;
}

.pag-phone-screen {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #0e1621;
    display: flex;
}

.pag-mockup-img.is-phone {
    width: 100%;
    height: auto;
    max-height: 135px;
    display: block;
    object-fit: contain;
}

/* ─────────────────────────────────────────────────────────────
   DESKTOP CHASSIS: Compact Terminal Window Frame
   ───────────────────────────────────────────────────────────── */
.pag-desktop-chassis.cyber-desktop-chassis,
.pag-desktop-chassis {
    position: relative;
    width: 100%;
    max-width: 285px;
    background: #181818;
    border-radius: 7px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.9),
        0 0 20px var(--pag-glow, rgba(168, 85, 247, 0.28)),
        0 10px 26px -8px rgba(0, 0, 0, 0.9);
}

.pag-slide.active .pag-desktop-chassis {
    animation: subtleFloatDesktop 5.5s ease-in-out infinite alternate;
}

.pag-desktop-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    background: linear-gradient(180deg, #282828 0%, #1c1c1c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 9.5px;
    color: #e2e8f0;
    gap: 6px;
}

.pag-window-controls {
    display: flex;
    gap: 3.5px;
    align-items: center;
}

.pag-win-btn {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.pag-win-close { background: #ff5f56; }
.pag-win-min { background: #ffbd2e; }
.pag-win-max { background: #27c93f; }

.pag-window-title {
    font-size: 9.5px;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pag-window-tag {
    font-size: 8.5px;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.pag-desktop-screen {
    position: relative;
    width: 100%;
    background: #181818;
    overflow: hidden;
    display: flex;
}

.pag-mockup-img.is-desktop {
    width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
    object-fit: contain;
}

/* ─────────────────────────────────────────────────────────────
   CAPTION & LABELS (COMPACT)
   ───────────────────────────────────────────────────────────── */
.pag-caption-bar.cyber-caption-bar,
.pag-caption-bar {
    width: 100%;
    max-width: 300px;
    margin-top: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5px 6px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.pag-caption-text {
    font-size: 10px;
    color: #f1f5f9;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 195px;
}

.pag-caption-badge.cyber-badge,
.pag-caption-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1.5px 4.5px;
    border-radius: 3px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   PROJECT INFO PANE (CLEAN & MINIMALIST - TITLE & ARCHITECTURE ONLY)
   ───────────────────────────────────────────────────────────── */
.project-body,
.project-body--clean {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 6px 0 !important;
}

.project-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.project-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.live-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.8s infinite ease-in-out;
}

.project-stack-hint {
    font-size: 11.5px;
    color: var(--ink-3, #94a3b8);
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.02em;
}

.project-title,
#projects .project-title,
.project-card .project-title {
    color: #ffffff !important;
    font-size: clamp(1.3rem, 2.3vw, 1.65rem) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 4px 0 16px 0 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: color 0.25s ease, text-shadow 0.25s ease !important;
}

.project-card:hover .project-title {
    color: #38bdf8 !important;
    text-shadow: 0 2px 20px rgba(56, 189, 248, 0.45) !important;
}

.project-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2px;
}

.btn-open-architecture {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(16, 185, 129, 0.14) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.btn-open-architecture:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(16, 185, 129, 0.26) 100%);
    border-color: rgba(56, 189, 248, 0.75);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35);
}

.btn-open-architecture .btn-arch-icon {
    font-size: 14px;
    color: #38bdf8;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.btn-open-architecture .btn-arch-arrow {
    font-size: 15px;
    color: #10b981;
    transition: transform 0.25s ease;
}

.btn-open-architecture:hover .btn-arch-arrow {
    transform: translateX(4px);
}

.btn-project-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink-2, #cbd5e1);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-project-github:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-project-github svg {
    flex-shrink: 0;
}

.btn-github-arrow {
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.btn-project-github:hover .btn-github-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   FULL PROJECT ARCHITECTURE MODAL (CINEMATIC & HIGH-TECH)
   ───────────────────────────────────────────────────────────── */
.arch-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 7, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.arch-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.arch-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: 88vh;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 26, 0.99) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(24px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-modal-backdrop.is-active .arch-modal-dialog {
    transform: scale(1) translateY(0);
}

.arch-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.7);
    gap: 16px;
}

.arch-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.arch-modal-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.arch-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.arch-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: scale(1.05);
}

.arch-modal-body {
    padding: 26px;
    overflow-y: auto;
    max-height: calc(88vh - 150px);
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

/* Architecture Flow Visualizer */
.arch-flow-diagram {
    background: rgba(10, 16, 30, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 26px;
}

.arch-flow-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.arch-flow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.arch-flow-node {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.arch-flow-node:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.arch-node-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.arch-node-name {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 3px;
}

.arch-node-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.arch-flow-arrow {
    font-size: 18px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    animation: flowPulse 2s infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

.arch-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.arch-spec-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
}

.arch-spec-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arch-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arch-spec-item {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-2, #cbd5e1);
    position: relative;
    padding-left: 18px;
}

.arch-spec-item::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: #10b981;
    font-weight: bold;
}

.arch-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.8);
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .arch-flow-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .arch-flow-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }
    @keyframes flowPulse {
        0%, 100% { opacity: 0.5; transform: translateY(0); }
        50% { opacity: 1; transform: translateY(3px); }
    }
    .arch-specs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Floating Effects & Live Indicators */
@keyframes subtleFloatPhone {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-4px);
    }
}

@keyframes subtleFloatDesktop {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-3px);
    }
}

@keyframes auraBreath {
    0% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(0.96);
    }
    100% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.75);
    }
}

.pag-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.3px;
}

.pag-live-pulse-dot {
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 5px #10b981;
    animation: livePulse 1.6s infinite ease-in-out;
}

.pag-controls.cyber-controls,
.pag-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pag-dots.cyber-dots,
.pag-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pag-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.pag-dot.active {
    width: 16px;
    border-radius: 3px;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.pag-nav-arrows.cyber-arrows,
.pag-nav-arrows {
    display: flex;
    gap: 5px;
}

.pag-arrow-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pag-arrow-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.pag-progress-track.cyber-progress-track,
.pag-progress-track {
    width: 100%;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.pag-progress-fill.cyber-progress-fill,
.pag-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #38bdf8, #a855f7);
    transition: width 0.1s linear;
}

.project-markdown-box {
    margin-top: 16px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-2);
}

.proj-sec-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.proj-sec-title:first-child {
    margin-top: 0;
}

.proj-sec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proj-sec-li {
    position: relative;
    padding-left: 20px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.proj-sec-li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

.proj-num-list {
    list-style: decimal inside;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
}

@media (max-width: 860px) {
    .project-card,
    .project-card.reveal,
    .project-card.in,
    #projects-list-container .project-card {
        flex-direction: column !important;
        padding: 16px !important;
        gap: 16px !important;
    }
    .project-animated-gallery {
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
    .pag-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .pag-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
    .pag-tab-btn {
        flex-shrink: 0;
        font-size: 10px;
        padding: 3px 7px;
    }
    .pag-stage {
        min-height: 180px;
        max-height: 200px;
        padding: 8px 6px;
    }
    .pag-phone-chassis {
        max-width: 130px;
        padding: 4px;
        border-radius: 20px;
    }
    .pag-mockup-img.is-phone {
        max-height: 135px;
    }
    .pag-desktop-chassis {
        max-width: 100%;
    }
    .pag-mockup-img.is-desktop {
        max-height: 120px;
    }
    .pag-caption-bar {
        font-size: 10px;
        flex-direction: row;
        align-items: center;
        padding: 3px 6px;
    }
}

@media (max-width: 540px) {
    .project-animated-gallery {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .pag-header {
        padding: 8px 10px;
        gap: 6px;
    }
    .pag-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 5px;
    }
    .pag-tabs::-webkit-scrollbar {
        display: none;
    }
    .pag-tab-btn {
        padding: 3px 7px;
        font-size: 10.5px;
    }
    .pag-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .pag-tool-btn {
        padding: 3px 6px;
        font-size: 10.5px;
    }
    .pag-stage {
        min-height: 220px;
        max-height: 245px;
        padding: 8px 4px;
    }
    .pag-phone-chassis {
        max-width: 140px;
        padding: 5px;
        border-radius: 22px;
        border-width: 2px;
    }
    .pag-phone-island {
        width: 48px;
        height: 12px;
        top: 8px;
    }
    .pag-phone-screen {
        border-radius: 16px;
    }
    .pag-mockup-img.is-phone {
        max-height: 170px;
    }
    .pag-desktop-chassis {
        max-width: 100%;
        border-radius: 6px;
    }
    .pag-desktop-titlebar {
        padding: 4px 8px;
        font-size: 10px;
    }
    .pag-window-title {
        font-size: 10px;
    }
    .pag-window-tag {
        display: none;
    }
    .pag-mockup-img.is-desktop {
        max-height: 150px;
    }
    .pag-caption-bar {
        padding: 4px 8px;
        margin-top: 6px;
    }
    .pag-caption-text {
        font-size: 10.5px;
        line-height: 1.35;
    }
    .pag-controls {
        padding: 6px 10px;
    }
    .pag-arrow-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }
    .btn-read-more {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .project-title {
        font-size: 1.15rem !important;
    }
    .pipeline-node {
        min-width: 58px;
        padding: 4px 2px;
    }
    .node-icon {
        font-size: 12px;
    }
    .node-label {
        font-size: 8.5px;
    }
    .node-sub {
        font-size: 7px;
    }
    .pipeline-connector {
        width: 16px;
    }
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL BOLD TYPOGRAPHY & BOLD VIBRANT PICTURE ENHANCEMENTS
   High contrast, rich legibility and crisp visual presence
   ───────────────────────────────────────────────────────────── */

body,
p,
span,
li,
a,
label,
button,
input,
textarea {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6,
.hero-h1,
.display-title,
.section-headline,
.section-title,
.personal-headline,
.project-title,
.motion-headline {
    font-weight: 850 !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-sub,
.personal-sub,
.work-intro,
.about-text,
.project-summary,
.mc-sub,
.pw-pin-desc {
    font-weight: 600 !important;
    color: var(--ink) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

/* Bold Crisp Picture Presets */
img,
.hero-portrait-img,
.project-visual-media,
.pag-mockup-img,
picture img {
    font-weight: bold;
    filter: contrast(1.15) saturate(1.18) brightness(1.02);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(255, 255, 255, 0.12);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease, box-shadow 0.4s ease;
}

img:hover,
.hero-portrait-img:hover,
.project-visual-media:hover,
.pag-mockup-img:hover {
    filter: contrast(1.22) saturate(1.25) brightness(1.05);
}

.playground {
    border: 2px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6), 0 0 28px rgba(56, 189, 248, 0.18) !important;
}

.hero-photo-wrap {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}




