/* ==========================================================================
   BIJOY KUMAR SARKAR — PORTFOLIO
   Design tokens are kept stable across index.html, credit-risk-eda.html and
   rsvp-movies-analysis.html — do not rename --neon-cyan / --neon-purple /
   --neon-gradient / --bg-surface / --text-secondary, the case-study pages
   reference them directly.
   ========================================================================== */

:root {
    --bg-void: #050508;
    --bg-surface: #0e0e14;
    --bg-surface-alt: #12121a;
    --border-soft: rgba(255, 255, 255, 0.07);
    --border-softer: rgba(255, 255, 255, 0.04);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --neon-cyan: #4ef2d2;
    --neon-purple: #bc7eff;
    --neon-blue: #4facfe;
    --neon-gradient: linear-gradient(135deg, #4ef2d2 0%, #4facfe 50%, #bc7eff 100%);
    --shadow-glow: 0 0 20px rgba(78, 242, 210, 0.25);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
a, button { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: none; }

::selection { background: rgba(78, 242, 210, 0.25); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -999px; top: auto;
    background: var(--neon-cyan);
    color: #050508;
    padding: 12px 22px;
    border-radius: 8px;
    z-index: 10006;
    font-weight: 600;
}
.skip-link:focus { left: 20px; top: 20px; }

/* ============ PRELOADER ============ */
.preloader {
    position: fixed; inset: 0; z-index: 10002;
    background: var(--bg-void);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-mark {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--text-secondary);
}
.preloader-count {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.battery-shell { display: flex; align-items: center; gap: 5px; position: relative; }
.battery-body {
    width: 92px; height: 40px; padding: 4px;
    border: 3px solid var(--text-secondary); border-radius: 9px;
    overflow: hidden;
}
.battery-fill {
    height: 100%; width: 0%; border-radius: 4px;
    background: var(--neon-gradient);
    box-shadow: 0 0 14px rgba(78, 242, 210, 0.55);
    transition: width 0.4s ease;
}
.battery-nub { width: 7px; height: 16px; background: var(--text-secondary); border-radius: 0 4px 4px 0; }
.battery-bolt {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1);
    color: #fff; font-size: 1.1rem; opacity: 0;
    text-shadow: 0 0 10px var(--neon-cyan);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.battery-bolt.flash { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }

.preloader-welcome {
    font-family: var(--font-display); font-size: 1.05rem; color: var(--text-secondary);
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.preloader-welcome.show { opacity: 1; transform: translateY(0); }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-outline { display: none; }
@media (pointer: fine) {
    body, a, button, .nav-item, .cta-button, .stack-pill { cursor: none; }
    .cursor-dot, .cursor-outline {
        display: block; position: fixed; top: 0; left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%; z-index: 10000; pointer-events: none;
    }
    .cursor-dot { width: 8px; height: 8px; background-color: var(--neon-cyan); }
    .cursor-outline {
        width: 40px; height: 40px; border: 1px solid var(--neon-purple);
        transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out;
    }
    .cursor-outline.hovering {
        width: 60px; height: 60px;
        background-color: rgba(188, 126, 255, 0.15);
        border-color: var(--neon-cyan);
    }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 10001; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--neon-gradient); box-shadow: var(--shadow-glow); border-radius: 0 2px 2px 0; }

/* ============ STARFIELD BACKGROUND ============ */
.stars-container { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#stars-canvas { width: 100%; height: 100%; display: block; }

/* ============ HEADER / NAV ============ */
header#main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    padding: max(26px, env(safe-area-inset-top)) 4% 26px;
    display: flex; justify-content: center;
    transition: padding 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
header#main-header.scrolled {
    padding: 16px 4%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
nav { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; }
.creative-logo {
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    color: var(--text-primary); display: flex; align-items: baseline; gap: 8px;
}
.header-subtitle { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary); font-weight: 400; }
.nav-links { display: flex; gap: 34px; }
.nav-item { color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; transition: color 0.25s ease; }
.nav-item:hover { color: var(--text-primary); }
.hamburger {
    display: none; color: var(--text-primary); font-size: 1.3rem; cursor: pointer;
    width: 44px; height: 44px; align-items: center; justify-content: center;
}

/* ============ FLOATING SOCIAL SIDEBAR ============ */
.floating-social-sidebar {
    position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 14px; z-index: 998;
}
.social-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg-surface); border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.15rem;
    transition: all 0.3s ease;
}
.social-icon.whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.social-icon.linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.social-icon.github:hover { background: #fff; color: #111; border-color: #fff; }
.social-icon.email:hover { background: var(--neon-purple); color: #fff; border-color: var(--neon-purple); }

/* ============ BUTTONS ============ */
.cta-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600; font-family: var(--font-body);
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cta-button.primary { background: var(--neon-gradient); color: #050508; }
.cta-button.primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(78, 242, 210, 0.25); }
.cta-button.secondary { background: transparent; border-color: var(--border-soft); color: var(--text-primary); }
.cta-button.secondary:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); transform: translateY(-3px); }
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Shine sweep on hover (used sparingly — cards + primary CTA) */
.card-animation { position: relative; overflow: hidden; }
.card-animation::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease; z-index: 1; pointer-events: none;
}
.card-animation:hover::before { left: 200%; }

/* "Techie" hover treatment: rotating gradient ring + scanner corner brackets.
   Calm at rest, activates on hover/focus so the resting page stays clean. */
.tech-card {
    position: relative;
    isolation: isolate;
}
.tech-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 0deg, var(--neon-cyan), var(--neon-purple), var(--neon-blue), var(--neon-cyan));
    -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;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: tech-spin 3.5s linear infinite;
    animation-play-state: paused;
    pointer-events: none;
    z-index: 0;
}
.tech-card::after {
    content: '';
    position: absolute; inset: 10px;
    background-image:
        linear-gradient(var(--neon-cyan), var(--neon-cyan)),
        linear-gradient(var(--neon-cyan), var(--neon-cyan)),
        linear-gradient(var(--neon-cyan), var(--neon-cyan)),
        linear-gradient(var(--neon-cyan), var(--neon-cyan));
    background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px;
    background-position: top left, top left, bottom right, bottom right;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}
.tech-card:hover::before, .tech-card:focus-visible::before { opacity: 1; animation-play-state: running; }
.tech-card:hover::after, .tech-card:focus-visible::after { opacity: 0.8; }
.tech-card > * { position: relative; z-index: 1; }
@keyframes tech-spin { to { transform: rotate(360deg); } }

/* Scroll-triggered underline accent under each section eyebrow */
.eyebrow { position: relative; display: inline-block; padding-bottom: 10px; }
.eyebrow::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    height: 2px; width: 0;
    background: var(--neon-gradient);
    transition: width 1s ease 0.2s;
}
.content-block.active .eyebrow::after, .scroll-reveal.active .eyebrow::after { width: 44px; }

/* ============ SHARED TYPE (used on case-study pages too) ============ */
.gradient-headline {
    font-family: var(--font-display); font-weight: 700; line-height: 1.1;
    background: var(--neon-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { color: var(--text-secondary); font-size: 1.1rem; margin: 14px 0 8px; max-width: 60ch; }

/* ============ MAIN LAYOUT ============ */
main { max-width: 1200px; margin: 0 auto; padding: 0 4%; position: relative; z-index: 1; }

/* ============ STICKY HERO LAYOUT ============ */
.sticky-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 70px;
    padding-top: 150px;
    align-items: start;
}
.identity-rail {
    position: sticky;
    top: 120px;
    display: flex; flex-direction: column; gap: 18px;
    padding-bottom: 60px;
}
.identity-photo-frame {
    width: 100%; max-width: 230px; aspect-ratio: 1 / 1;
    border-radius: 50%; padding: 4px;
    background: var(--neon-gradient);
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
    position: relative;
}
.identity-photo-frame::after {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    border: 1px solid rgba(78, 242, 210, 0.25);
    animation: ring-pulse 3s ease-in-out infinite;
}
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.15; }
}
.identity-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-surface); display: block; }

.live-status-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-soft);
    padding: 8px 16px; border-radius: 20px; font-size: 0.82rem; color: var(--text-secondary);
    width: fit-content;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px #2ecc71; animation: pulse-dot 2s infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.identity-name { font-size: 1.6rem; line-height: 1.15; }
.identity-role { min-height: 1.5em; }
#role-rotator {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
    background: var(--neon-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
    display: inline-block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.identity-summary { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.65; max-width: 34ch; }
.identity-cta-group { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.identity-cta-group .cta-button { justify-content: center; width: 100%; padding: 12px 22px; font-size: 0.9rem; }

.vcard-btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    background: transparent; border: 1px solid var(--neon-purple); color: var(--neon-purple);
    padding: 10px 18px; border-radius: 8px; font-size: 0.85rem; font-family: inherit;
    cursor: pointer; transition: all 0.3s ease; width: fit-content;
}
.vcard-btn:hover { background: var(--neon-purple); color: #fff; }

.identity-socials { display: flex; gap: 12px; margin-top: 2px; }
.identity-socials a {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft);
    color: var(--text-secondary); font-size: 0.95rem; transition: all 0.25s ease;
}
.identity-socials a:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); transform: translateY(-3px); }

/* ============ CONTENT COLUMN ============ */
.content-flow { min-width: 0; display: flex; flex-direction: column; gap: 90px; }
.eyebrow {
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 1px;
    color: var(--neon-cyan); margin-bottom: 14px;
}
.lead-paragraph { font-size: 1.1rem; line-height: 1.8; color: var(--text-primary); max-width: 62ch; }
.block-heading { font-size: 1.9rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.block-subheading { color: var(--text-secondary); font-size: 1rem; margin-bottom: 30px; max-width: 58ch; }

/* ============ EXPERIENCE TIMELINE ============ */
.timeline { display: flex; flex-direction: column; gap: 26px; }
.timeline-card {
    background: rgba(14, 14, 20, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-softer);
    padding: 30px; border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover { transform: translateY(-4px); border-color: rgba(188, 126, 255, 0.25); box-shadow: 0 10px 30px rgba(188, 126, 255, 0.06); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; border-bottom: 1px solid var(--border-softer); padding-bottom: 15px; gap: 14px; }
.card-header h3 { font-size: 1.25rem; color: #fff; }
.card-header h4 { color: var(--text-secondary); font-weight: 500; font-family: var(--font-body); margin-top: 4px; font-size: 0.95rem; }
.card-header .client { color: var(--neon-cyan); font-size: 0.9rem; }
.timeline-date {
    background: rgba(79, 172, 254, 0.1); color: var(--neon-cyan);
    padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    border: 1px solid rgba(78, 242, 210, 0.2); white-space: nowrap;
}
.experience-details { display: flex; flex-direction: column; gap: 12px; color: var(--text-secondary); font-size: 0.95rem; }
.experience-details li { position: relative; padding-left: 20px; line-height: 1.55; }
.experience-details li::before { content: "▹"; position: absolute; left: 0; color: var(--neon-purple); font-weight: bold; }

/* ============ TOOLKIT ============ */
.stack-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.stack-pill {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--bg-surface); border: 1px solid var(--border-soft);
    padding: 10px 18px; border-radius: 50px; font-size: 0.88rem; font-weight: 500;
    color: var(--text-primary);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stack-pill i { color: var(--neon-purple); font-size: 0.95rem; }
.stack-pill:hover { transform: translateY(-3px); border-color: var(--neon-cyan); box-shadow: 0 8px 20px rgba(78, 242, 210, 0.12); }
.stack-pill--img img { width: 15px; height: 15px; border-radius: 4px; object-fit: contain; }
.stack-footnote { margin-top: 18px; font-size: 0.85rem; color: var(--text-secondary); font-style: italic; }

.radar-block { max-width: 440px; margin: 50px 0 0; }
.radar-block h3 { text-align: center; color: var(--text-secondary); font-size: 0.85rem; font-family: var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }

.skill-bars { display: flex; flex-direction: column; gap: 16px; }
.skill-bar-row { display: grid; grid-template-columns: 108px 1fr 34px; align-items: center; gap: 12px; }
.skill-bar-label { font-size: 0.85rem; color: var(--text-primary); }
.skill-bar-track { height: 7px; background: rgba(255,255,255,0.07); border-radius: 6px; overflow: hidden; }
.skill-bar-fill {
    --target: 0%;
    height: 100%; width: var(--target); border-radius: 6px;
    background: var(--neon-gradient);
    box-shadow: 0 0 8px rgba(78, 242, 210, 0.35);
    animation: fill-bar 1.3s cubic-bezier(.16,1,.3,1) both;
    animation-delay: 0.15s;
}
@keyframes fill-bar { from { width: 0%; } to { width: var(--target); } }
.skill-bar-value { font-size: 0.78rem; color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
    .skill-bar-row { grid-template-columns: 92px 1fr 30px; gap: 8px; }
    .skill-bar-label { font-size: 0.78rem; }
}

/* ============ APPROACH / PHASE CARDS ============ */
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 6px; }
.phase-card {
    background: var(--bg-surface-alt); border: 1px solid var(--border-soft);
    border-left: 2px solid var(--neon-cyan);
    border-radius: 8px; padding: 26px 22px;
}
.phase-tag { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--neon-cyan); margin-bottom: 14px; }
.phase-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.phase-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ============ PROJECTS ============ */
.project-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 6px; }
.project-card-v2 {
    background: linear-gradient(135deg, rgba(14,14,20,0.85) 0%, rgba(22,22,34,0.85) 100%);
    border: 1px solid var(--border-softer); border-radius: 14px; padding: 30px;
    display: flex; flex-direction: column; gap: 12px;
    position: relative; overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.project-card-v2:hover { transform: translateY(-6px); border-color: rgba(78, 242, 210, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.45); }
.project-card-v2.backend-card:hover { border-color: rgba(188, 126, 255, 0.3); }
.project-card-v2--static { cursor: default; }
.project-card-v2--static:hover { transform: none; box-shadow: none; border-color: var(--border-softer); }
.project-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 1px; }
.project-card-v2 h3 { font-size: 1.2rem; }
.project-card-v2 p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; flex-grow: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tech span { font-size: 0.72rem; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.project-link { color: var(--neon-cyan); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s ease; margin-top: 4px; }
.project-card-v2:hover .project-link { gap: 12px; }
.backend-card .project-link { color: var(--neon-purple); }
.project-link--muted { color: var(--text-secondary); }

/* ============ IMPACT / STAT COUNTERS ============ */
.impact-section { padding: 70px 0; text-align: center; }
.impact-section .eyebrow { justify-content: center; display: flex; }
.stats-counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.stat-counter-card { padding: 32px 16px; background: var(--bg-surface); border: 1px solid var(--border-soft); border-radius: 12px; }
.stat-counter-card h3 { font-size: 2.4rem; font-weight: 700; }
.stat-number { font-variant-numeric: tabular-nums; }
.stat-suffix { font-size: 1.3rem; color: var(--neon-cyan); font-family: var(--font-display); font-weight: 700; }
.stat-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 8px; }

/* ============ CLOSING CTA ============ */
.closing-cta-section { padding: 20px 0 60px; }
.cta-banner {
    background: linear-gradient(135deg, rgba(78,242,210,0.06), rgba(188,126,255,0.06));
    border: 1px solid var(--border-soft); border-radius: 20px; padding: 60px;
}
.cta-badge {
    display: inline-flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--text-secondary);
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-soft);
    padding: 7px 16px; border-radius: 20px; margin-bottom: 24px;
}
.cta-banner h2 { font-size: 2.4rem; margin-bottom: 16px; }
.cta-banner > p { color: var(--text-secondary); max-width: 60ch; margin-bottom: 40px; font-size: 1.03rem; line-height: 1.6; }
.contact-details { display: flex; flex-direction: column; gap: 22px; max-width: 480px; margin-bottom: 40px; }
.contact-row { display: flex; align-items: flex-start; gap: 18px; }
.highlight-icon {
    background: rgba(188, 126, 255, 0.1); color: var(--neon-purple);
    width: 42px; height: 42px; border-radius: 8px;
    display: flex; justify-content: center; align-items: center; flex-shrink: 0;
}
.contact-row h5 { font-size: 0.95rem; color: #fff; margin-bottom: 3px; font-family: var(--font-body); }
.contact-row a { color: var(--text-secondary); font-size: 1rem; transition: color 0.2s ease; word-break: break-word; }
.contact-row a:hover { color: var(--neon-cyan); }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.github-stats-block { text-align: center; margin-top: 50px; }
.github-stats-block img { max-width: 100%; border-radius: 10px; }
.github-stats-block img.hidden { display: none; }
.github-stats-block p { color: var(--text-secondary); font-size: 0.8rem; margin-top: 10px; }
.github-fallback-link { color: var(--neon-cyan); }
.github-stats-fallback {
    display: none; flex-direction: column; align-items: center; gap: 14px;
    max-width: 340px; margin: 0 auto; padding: 32px 24px;
    background: var(--bg-surface); border: 1px solid var(--border-soft); border-radius: 14px;
}
.github-stats-fallback.show { display: flex; }
.github-stats-fallback i { font-size: 1.8rem; color: var(--text-secondary); }
.github-stats-fallback p { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }

.closing-wordmark {
    font-weight: 700;
    font-size: clamp(2rem, 8vw, 6.5rem);
    text-align: center;
    margin-top: 80px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.15);
    letter-spacing: -0.02em;
    user-select: none;
}

/* ============ FOOTER ============ */
footer { text-align: center; padding: 40px 20px; color: #4b5563; font-size: 0.9rem; border-top: 1px solid var(--border-softer); margin-top: 40px; }

/* ============ BACK TO TOP ============ */
#back-to-top {
    position: fixed; bottom: max(25px, env(safe-area-inset-bottom)); left: 25px; z-index: 998;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg-surface); border: 1px solid var(--border-soft); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

/* ============ COMMAND PALETTE ============ */
.cmdk-trigger {
    position: fixed; bottom: max(25px, env(safe-area-inset-bottom)); right: 25px; z-index: 9998;
    background: #111118; color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 30px;
    padding: 12px 18px; display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}
.cmdk-trigger:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 15px rgba(78,242,210,0.3); }
.cmdk-trigger kbd { background: rgba(255,255,255,0.08); padding: 2px 7px; border-radius: 4px; font-size: 0.75rem; font-family: inherit; }
.cmdk-overlay {
    position: fixed; inset: 0; background: rgba(3,3,8,0.75);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 10000; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.cmdk-overlay.open { display: flex; }
.cmdk-box {
    width: 90%; max-width: 560px; max-height: 70vh;
    background: #0c0c14; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6); overflow: hidden; display: flex; flex-direction: column;
}
.cmdk-input {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff; font-size: 1.05rem; padding: 18px 20px; outline: none; font-family: inherit;
}
.cmdk-list { overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; color: var(--text-secondary); cursor: pointer; font-size: 0.95rem; }
.cmdk-item i { width: 20px; color: var(--neon-purple); }
.cmdk-item.active, .cmdk-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.cmdk-empty { padding: 24px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

/* ============ CLICK BURST ============ */
.click-burst {
    position: fixed; width: 6px; height: 6px; border-radius: 50%;
    background: var(--neon-cyan); pointer-events: none; z-index: 9999; box-shadow: 0 0 6px var(--neon-cyan);
}

/* ============ SCROLL REVEAL ============ */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
    .sticky-layout { grid-template-columns: 300px 1fr; gap: 50px; }
    .phase-grid, .project-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
    header#main-header, header#main-header.scrolled { padding: 15px 4%; background: rgba(5,5,8,0.9); backdrop-filter: blur(12px); }
    .hamburger { display: block; }
    .nav-links {
        display: none; position: fixed; top: 68px; left: 0; width: 100%;
        flex-direction: column; text-align: center; gap: 20px; padding: 24px 0;
        background: var(--bg-void); border-bottom: 1px solid var(--border-soft);
    }
    .nav-links.active { display: flex; animation: fadeInDown 0.3s ease forwards; }
    @keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .nav-item { font-size: 1.05rem; display: block; padding: 10px 0; }

    .floating-social-sidebar { display: none; }

    .sticky-layout { grid-template-columns: 1fr; gap: 50px; padding-top: 120px; }
    .identity-rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding-bottom: 0; }
    .identity-photo-frame { width: 100px; max-width: 100px; aspect-ratio: 1; border-radius: 50%; }
    .identity-photo-frame::after { inset: -6px; }
    .identity-photo { border-radius: 50%; }
    .identity-name, .identity-role, .identity-summary, .live-status-badge { flex-basis: 100%; }
    .identity-cta-group { flex-direction: row; flex-basis: 100%; }
    .identity-cta-group .cta-button { width: auto; flex: 1; }
    .identity-summary { max-width: 100%; }

    .content-flow { gap: 70px; }
    .stats-counter-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner { padding: 36px 26px; }
    .cta-banner h2 { font-size: 2rem; }
    .cmdk-trigger span.cmdk-label, .cmdk-trigger kbd { display: none; }
    .cmdk-trigger { padding: 15px; border-radius: 50%; }
}

@media (max-width: 640px) {
    .phase-grid, .project-grid-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .block-heading { font-size: 1.55rem; }
    .cta-banner h2 { font-size: 1.7rem; }
    .creative-logo { font-size: 0.95rem; }
    .header-subtitle { font-size: 0.68rem; }
    .stats-counter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
