/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --bg:           #0b0b12;
    --surface:      #13131e;
    --card:         #1a1a28;
    --card-hover:   #1f1f30;
    --border:       #252535;
    --border-light: #2e2e42;

    --accent:       #c4a1ff;
    --accent-light: #dbbeff;
    --accent-dark:  #9a72e8;
    --accent-glow:  rgba(196, 161, 255, 0.15);
    --accent-glow2: rgba(196, 161, 255, 0.08);

    --text:         #f0f0f8;
    --text-sec:     #9898b2;
    --text-muted:   #5a5a72;

    --green:        #6ee7b7;
    --red:          #f87171;
    --yellow:       #fbbf24;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;

    --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg:    0 8px 48px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 4px 32px rgba(196, 161, 255, 0.18);

    --transition:   0.22s ease;
    --font-body:    'Inter', sans-serif;
    --font-heading: 'Sora', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --header-h:     72px;
    --max-w:        1160px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 128px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-sec { color: var(--text-sec); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 56px;
}

.section-heading h2 { max-width: 600px; }
.section-heading p { color: var(--text-sec); max-width: 560px; font-size: 1.05rem; }
.section-heading.centered { align-items: center; text-align: center; }
.section-heading.centered h2,
.section-heading.centered p { margin: 0 auto; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(11, 11, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
    border-color: var(--border);
    background: rgba(11, 11, 18, 0.96);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.03em;
}

.logo:hover { color: var(--text); }
.logo-dot { color: var(--accent); }

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

.nav-link {
    color: var(--text-sec);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--text); background: rgba(255,255,255,0.06); }

.nav-link--cta {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 6px 18px;
}

.nav-link--cta:hover {
    background: var(--accent-glow) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    line-height: 1;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: transparent;
}

.btn-ghost:hover { background: var(--accent-glow); }

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card--accent:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    background: var(--surface);
}

/* ============================================================
   TAG / BADGE
   ============================================================ */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--accent-glow2);
    color: var(--accent-light);
    border: 1px solid rgba(196, 161, 255, 0.2);
}

.tag--dark {
    background: rgba(255,255,255,0.04);
    color: var(--text-sec);
    border-color: var(--border);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge--green { background: rgba(110, 231, 183, 0.12); color: var(--green); border: 1px solid rgba(110,231,183,0.2); }
.badge--yellow { background: rgba(251, 191, 36, 0.12); color: var(--yellow); border: 1px solid rgba(251,191,36,0.2); }
.badge--private { background: rgba(248, 113, 113, 0.1); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }

.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(196, 161, 255, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 161, 255, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-eyebrow-line {
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-eyebrow span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero h1 .highlight {
    position: relative;
    color: var(--accent);
    display: inline-block;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-sec);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hero-desc {
    font-size: 1.12rem;
    color: var(--text-sec);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-photo {
    width: 280px;
    height: 340px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(196,161,255,0.12);
    flex-shrink: 0;
    position: relative;
}

.hero-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.hero-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-lg) + 8px);
    border: 1px solid rgba(196, 161, 255, 0.2);
    pointer-events: none;
}

/* ============================================================
   PROJECT CARD (HOME + PROJECTS PAGE)
   ============================================================ */
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(196,161,255,0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 40px rgba(196,161,255,0.1);
}
.project-card[data-href] { cursor: pointer; }

.project-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.project-card-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--card-hover) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-placeholder svg {
    opacity: 0.2;
}

.project-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.project-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.project-card-desc {
    font-size: 0.88rem;
    color: var(--text-sec);
    line-height: 1.6;
    flex: 1;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-card-links {
    display: flex;
    gap: 8px;
}

/* ============================================================
   SKILLS GRID
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.skill-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-sec);
    font-family: var(--font-mono);
    transition: all var(--transition);
    text-align: center;
}

.skill-item:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow2);
}

.skill-group { margin-bottom: 32px; }
.skill-group-label {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ============================================================
   TIMELINE (EXPERIENCE)
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(196,161,255,0.2);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.timeline-dates {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.timeline-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.timeline-org { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.timeline-loc { color: var(--text-muted); font-size: 0.82rem; }

.timeline-bullets {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-bullets li {
    font-size: 0.88rem;
    color: var(--text-sec);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

/* ============================================================
   CASE STUDY (project pages)
   ============================================================ */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.case-study-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.case-study-item--relevance {
    grid-column: 1 / -1;
    border-left: 3px solid var(--accent);
}

.case-study-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}

.case-study-item p {
    color: var(--text-sec);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ============================================================
   PUBLICATION CARD
   ============================================================ */
.pub-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.pub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.pub-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.pub-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.pub-journal {
    font-style: italic;
    color: var(--accent);
    font-weight: 600;
}

.pub-year { color: var(--text-sec); font-size: 0.9rem; }
.pub-role-badge {
    background: var(--accent-glow2);
    color: var(--accent-light);
    border: 1px solid rgba(196,161,255,0.2);
    border-radius: 100px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.pub-abstract {
    color: var(--text-sec);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 24px;
}

.pub-grant {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(110, 231, 183, 0.08);
    border: 1px solid rgba(110,231,183,0.2);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--green);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sec);
    letter-spacing: 0.02em;
}

.form-control {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 140px; }

/* ============================================================
   HIGHLIGHT BOXES
   ============================================================ */
.highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-list li {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.6;
}

.highlight-list li::before {
    content: '▸';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}

/* ============================================================
   SCREENSHOT GRID
   ============================================================ */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.screenshot-item img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.screenshot-item img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 32px;
    opacity: 0;
    transition: opacity 0.2s;
}
.lightbox-overlay.active { opacity: 1; }
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95vw;
    max-height: 95vh;
    cursor: default;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius);
    box-shadow: 0 0 80px rgba(196, 161, 255, 0.2);
}
.lightbox-info {
    max-width: 720px;
    text-align: center;
    margin-top: 16px;
}
.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0f8;
    margin-bottom: 8px;
}
.lightbox-blurb {
    font-size: 0.88rem;
    color: #9898b2;
    line-height: 1.65;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.screenshot-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    font-family: var(--font-mono);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: calc(var(--header-h) + 64px) 0 64px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 600px;
    height: 400px;
    background: radial-gradient(circle at 80% 0%, rgba(196,161,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--text-sec); font-size: 1.1rem; max-width: 600px; }

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
    transition: color var(--transition);
}

.back-link:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 120px;
    padding-top: 48px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); }

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-sec);
    font-size: 0.88rem;
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-social a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   NOTICE BOXES
   ============================================================ */
.notice {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 24px;
    align-items: flex-start;
}

.notice--info {
    background: rgba(196,161,255,0.06);
    border: 1px solid rgba(196,161,255,0.18);
    color: var(--text-sec);
}

.notice--info .notice-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }

.notice--private {
    background: rgba(248,113,113,0.06);
    border: 1px solid rgba(248,113,113,0.18);
    color: var(--text-sec);
}

.notice--private .notice-icon { color: var(--red); flex-shrink: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-fade-up-delay-1 { animation: fadeUp 0.6s 0.1s ease both; }
.animate-fade-up-delay-2 { animation: fadeUp 0.6s 0.2s ease both; }
.animate-fade-up-delay-3 { animation: fadeUp 0.6s 0.3s ease both; }

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ABOUT PAGE PHOTO
   ============================================================ */
.page-hero .about-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}
.about-photo-wrap {
    position: relative;
    flex-shrink: 0;
}
.about-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-lg) + 8px);
    border: 1px solid rgba(196, 161, 255, 0.2);
    pointer-events: none;
}
.about-photo {
    width: 280px;
    height: 340px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(196,161,255,0.12);
    display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .page-hero .about-hero-inner { grid-template-columns: 1fr; }
    .about-photo-wrap { text-align: center; }
    .about-photo { width: 200px; height: 240px; margin: 0 auto; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-nav { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .nav-primary {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 99;
    }

    .nav-primary.open { transform: translateY(0); }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-link { font-size: 1rem; padding: 10px 0; background: none !important; }
    .nav-link--cta { border: none; padding: 10px 0; }

    .nav-toggle { display: flex; }

    .section { padding: 72px 0; }
    .section-heading { margin-bottom: 40px; }

    .hero-stats { gap: 24px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }

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

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .pub-card { padding: 24px; }
    .pub-meta { flex-direction: column; gap: 8px; }
}

/* ============================================================
   TYPED ANIMATION
   ============================================================ */
.typed-role {
    color: var(--accent);
    display: inline-block;
    min-width: 1ch;
}

.typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent);
    vertical-align: middle;
    margin-left: 3px;
    border-radius: 1px;
    animation: blink 0.9s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ============================================================
   PROJECT FILTER TABS
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-sec);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 18px;
    transition: all var(--transition);
}

.filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.filter-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
    font-weight: 600;
}

.project-card[data-hidden] {
    display: none;
}

/* ============================================================
   SEEKING PILL
   ============================================================ */
.seeking-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(110, 231, 183, 0.08);
    border: 1px solid rgba(110, 231, 183, 0.25);
    border-radius: 100px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 12px;
    margin-left: 12px;
    white-space: nowrap;
}

.seeking-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-green 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 600px) {
    .seeking-pill { display: none; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    *, *::before, *::after {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    body { font-size: 11pt; line-height: 1.5; }
    .site-header, .nav-toggle, .seeking-pill,
    .site-footer, .hero::before, .hero::after,
    .page-hero::before, .btn, .lightbox-overlay { display: none !important; }
    .hero { min-height: auto !important; padding: 24px 0 !important; }
    .page-hero { padding: 24px 0 !important; margin-bottom: 24px !important; border-bottom: 1px solid #ccc !important; }
    .container { max-width: 100% !important; padding: 0 !important; }
    a { text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555 !important; }
    .project-card { break-inside: avoid; border: 1px solid #ccc !important; }
    .card { break-inside: avoid; border: 1px solid #ccc !important; }
    img { max-width: 100% !important; }
    .about-photo { border: 1px solid #ccc !important; }
    h1 { font-size: 20pt !important; }
    h2 { font-size: 16pt !important; }
}
