/* =============================================
   GRAPHITE THEME — Editorial Light / Grey
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

:root {
    --bg: #d4d4d4;
    --accent: #8d0000;
    --accent-2: #7a0000;
    --accent-3: #620000;
    --glow: rgba(141, 0, 0, 0.18);
    --glow-strong: rgba(141, 0, 0, 0.35);
    --glass-bg: rgba(24, 23, 23, 0.06);
    --glass-border: rgba(141, 0, 0, 0.18);
    --glass-hover: rgba(141, 0, 0, 0.08);
    --text: #181717;
    --text-muted: #656464;
    --text-faint: #2b2a2a;
    --font: 'Poppins', sans-serif;
    --mono: 'Space Mono', monospace;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* background handled by particle canvas */

/* ===== NAV ===== */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 0 6%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: rgba(212, 212, 212, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 2px;
}
.logo span { color: var(--accent); }

.navbar { display: flex; gap: 4px; }
.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* ===== HERO — Alex Graham scrolling marquee style ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Top: badge */
.hero-top {
    flex-shrink: 0;
    padding: 100px 6% 0;
    opacity: 0;
    animation: heroFadeUp 0.5s ease 0.15s forwards;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.4)} }

/* Centre: scrolling name row */
.hero-name-row {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    min-height: 0;
}
.hero-name-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: nameScroll 24s linear infinite;
    will-change: transform;
}
.hero-name-item {
    font-size: clamp(88px, 13vw, 180px);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px #2b2a2a;
    paint-order: stroke fill;
    white-space: nowrap;
    line-height: 1;
    user-select: none;
}
.hero-name-sep {
    color: var(--accent);
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
}
@keyframes nameScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Photo — centred over the scrolling name */
.hero-photo-slot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}
.hero-photo-placeholder {
    width: 190px; height: 250px;
    background: rgba(141, 0, 0, 0.04);
    border: 1px dashed rgba(141, 0, 0, 0.18);
    border-radius: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 900;
    color: rgba(141, 0, 0, 0.22);
    letter-spacing: 6px;
}
.hero-photo {
    height: 72vh;
    width: auto;
    max-width: 42vw;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 8px 40px rgba(43, 42, 42, 0.4)) contrast(1.3) brightness(1.05);
    display: block;
    mix-blend-mode: multiply;
}

/* Bottom: typed role + CTA */
.hero-bottom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 6%;
    border-top: 1px solid var(--glass-border);
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 0.5s ease 0.4s forwards;
}
.hero-role {
    font-family: var(--mono);
    font-size: clamp(11px, 1.3vw, 14px);
    color: var(--text-muted);
    flex: 1;
    min-width: 180px;
}
.hero-role span { color: var(--accent); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
    font-size: 13px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 24px var(--glow); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 40px var(--glow-strong); transform: translateY(-2px); }
.btn-outline { background: rgba(24,23,23,0.06); color: var(--text); border: 1px solid var(--glass-border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-fun { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); animation: funPulse 2.5s ease-in-out infinite; }
.btn-fun:hover { background: var(--accent); color: #fff; transform: translateY(-2px); animation: none; box-shadow: 0 0 24px var(--glow-strong); }
@keyframes funPulse { 0%, 100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 18px 5px var(--glow-strong); } }
.btn-full { width: 100%; justify-content: center; }

/* Stats */
.hero-stats {
    flex-shrink: 0;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 18px 6%;
    opacity: 0;
    animation: heroFadeUp 0.5s ease 0.55s forwards;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--mono);
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 11px; color: var(--text-faint); letter-spacing: 0.5px; margin-top: 2px; }

/* ===== SECTION BASE ===== */
.section { padding: 100px 6%; position: relative; z-index: 1; }
.section-alt { background: rgba(24,23,23,0.06); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1.1;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(43, 42, 42, 0.12);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(141,0,0,0.3);
    box-shadow: 0 8px 40px rgba(141,0,0,0.12);
    transform: translateY(-4px);
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }

.about-info-card { padding: 32px; }
.about-avatar-glass {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 0 40px var(--glow);
    position: relative;
}
.about-avatar-glass::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(141,0,0,0.3);
    animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.info-rows { display: flex; flex-direction: column; gap: 12px; }
.info-row { display: flex; flex-direction: column; gap: 2px; }
.info-key { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }
.info-val { font-size: 12px; color: var(--text-muted); }

.about-body { padding: 32px; }
.about-body p { font-size: 14px; color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; }
.about-body strong { color: var(--text); }

.edu-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.edu-card {
    background: rgba(141,0,0,0.06);
    border: 1px solid rgba(141,0,0,0.12);
    border-radius: 12px;
    padding: 16px 20px;
    transition: var(--transition);
}
.edu-card:hover { border-color: rgba(141,0,0,0.3); }
.edu-year { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 4px; }
.edu-degree { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.edu-school { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.edu-courses { font-size: 10px; color: var(--text-faint); font-family: var(--mono); line-height: 1.7; }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card { padding: 24px; }
.skill-card h3 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
    font-family: var(--mono);
    font-size: 10px;
    background: rgba(141,0,0,0.08);
    border: 1px solid rgba(141,0,0,0.15);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 50px;
    transition: var(--transition);
}
.glass-card:hover .skill-tag { color: var(--text); border-color: rgba(141,0,0,0.3); }
.skill-lang {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 2px 9px;
    border-radius: 50px;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 40px; margin-bottom: 40px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}
.tl-item { margin-bottom: 32px; position: relative; }
.tl-dot {
    position: absolute;
    left: -46px; top: 6px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--glow);
    border: 2px solid var(--bg);
}
.tl-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(141,0,0,0.3);
    animation: pulse-ring 2.5s ease-in-out infinite;
}
@keyframes pulse-ring { 0%,100%{transform:scale(1);opacity:0.3} 50%{transform:scale(1.8);opacity:0} }

.tl-content { padding: 28px; }
.tl-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tl-date { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.tl-badge {
    font-family: var(--mono);
    font-size: 9px;
    background: rgba(141,0,0,0.1);
    border: 1px solid rgba(141,0,0,0.2);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tl-role { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tl-org { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-bottom: 14px; }
.tl-list { padding-left: 16px; }
.tl-list li { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.8; }
.tl-list li strong { color: var(--text); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    background: rgba(141,0,0,0.08);
    border: 1px solid rgba(141,0,0,0.15);
    padding: 2px 9px;
    border-radius: 50px;
}

.pub-card {
    padding: 28px 32px;
    background: rgba(141,0,0,0.05);
    border: 1px solid rgba(141,0,0,0.15);
    border-radius: 16px;
    margin-top: 8px;
}
.pub-label { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.pub-text { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.pub-text strong { color: var(--text); }
.pub-contrib { font-size: 12px; color: var(--text-faint); line-height: 1.8; border-left: 2px solid rgba(141,0,0,0.2); padding-left: 12px; margin-bottom: 12px; }
.pub-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pub-journal { font-size: 12px; font-weight: 600; color: var(--accent-2); }
.pub-year { font-family: var(--mono); font-size: 11px; color: var(--text-faint); background: rgba(24,23,23,0.06); border: 1px solid var(--glass-border); padding: 2px 10px; border-radius: 50px; }
.pub-doi { font-family: var(--mono); font-size: 11px; color: var(--accent); text-decoration: none; }
.pub-doi:hover { color: var(--accent-2); text-decoration: underline; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.projects-grid .glass-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 10px); }

.proj-card-inner { padding: 32px; }
.proj-num {
    font-family: var(--mono);
    font-size: 40px;
    font-weight: 700;
    color: rgba(141,0,0,0.08);
    position: absolute;
    top: 16px; right: 20px;
    line-height: 1;
    transition: var(--transition);
}
.glass-card:hover .proj-num { color: rgba(141,0,0,0.15); }
.proj-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.proj-desc { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
    font-family: var(--mono);
    font-size: 10px;
    background: rgba(141,0,0,0.08);
    border: 1px solid rgba(141,0,0,0.15);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 50px;
}
.proj-link {
    display: block;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
}
.proj-link:hover { color: var(--accent-2); text-decoration: underline; }

/* Floating cursor-following View button */
.proj-view-btn {
    position: absolute;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    box-shadow: 0 0 24px var(--glow);
    white-space: nowrap;
}
.projects-grid .glass-card:hover .proj-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }

.contact-info { padding: 36px; }
.contact-info p { font-size: 14px; color: var(--text-muted); line-height: 1.9; margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
    display: flex;
    gap: 16px;
    font-size: 13px;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(24,23,23,0.04);
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    align-items: center;
}
.contact-row:hover { border-color: rgba(141,0,0,0.3); color: var(--accent); background: rgba(141,0,0,0.05); }
.contact-key { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; min-width: 70px; }

.contact-form-wrap { padding: 36px; }
.form-group { margin-bottom: 18px; }
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    padding: 13px 16px;
    outline: none;
    transition: var(--transition);
    resize: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); background: rgba(141,0,0,0.04); }
.form-input::placeholder { color: var(--text-faint); }
.form-textarea { min-height: 110px; }

/* ===== GALLERY ===== */
.gallery-grid {
    columns: 3;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(212,212,212,0.85) 0%, rgba(212,212,212,0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text);
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(212, 212, 212, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 80px rgba(141,0,0,0.15);
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: 24px; right: 28px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    font-family: var(--mono);
}
.lightbox-close:hover { color: var(--text); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24,23,23,0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 20px;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(141,0,0,0.15);
    border-color: rgba(141,0,0,0.4);
    color: var(--text);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 2px;
}

@media (max-width: 1024px) { .gallery-grid { columns: 2; } }
@media (max-width: 480px)  { .gallery-grid { columns: 1; } }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 32px 6%;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
    position: relative;
    z-index: 1;
}
.footer span { color: var(--accent); }

/* Scroll top */
.scroll-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #fff;
    border: none; font-size: 18px;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 999;
    box-shadow: 0 0 20px var(--glow);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent-2); transform: translateY(-3px); }

/* ===== CUSTOM CURSOR ===== */
#cursor-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    left: -20px; top: -20px;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, background 0.25s;
}
#cursor-ring {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(141, 0, 0, 0.55);
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    left: -40px; top: -40px;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s;
}
body.cursor-hover #cursor-ring { width: 64px; height: 64px; border-color: var(--accent); }
body.cursor-hover #cursor-dot  { width: 0; height: 0; }
@media (hover: none) { #cursor-dot, #cursor-ring { display: none !important; } }

/* ===== MARQUEE BAND ===== */
.marquee-band {
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    position: relative;
    z-index: 1;
    background: rgba(141, 0, 0, 0.02);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span {
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}
.marquee-track span:hover { color: var(--accent); }
.marquee-dot { color: var(--accent) !important; font-size: 10px; }

/* ===== WORD REVEAL (section headings) ===== */
.word-reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}
.word-reveal > span {
    display: inline-block;
    transform: translateY(108%);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.word-reveal.visible > span { transform: translateY(0); }

/* ===== DBW PROJECTS ===== */
.section-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.dbw-proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}
.dbw-proj-card {
    display: flex;
    gap: 1.1rem;
    padding: 1.5rem;
    align-items: flex-start;
}
.dbw-proj-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.dbw-proj-body { flex: 1; }
.dbw-proj-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.dbw-proj-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.75rem; }
.dbw-proj-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.dbw-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.dbw-link:hover { text-decoration: underline; }
.dbw-link-muted { color: var(--text-muted); font-weight: 400; font-style: italic; }
.dbw-link-muted:hover { color: var(--accent); }

/* ===== SOLVED EXERCISES ===== */
.solved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}
.solved-card { padding: 1.6rem; }
.solved-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.solved-badge {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--mono);
    min-width: 2.4rem;
}
.solved-title { font-size: 1rem; font-weight: 700; }
.solved-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.85rem; }
.solved-links { margin-top: 0.85rem; }

@media (max-width: 1024px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .projects-grid .glass-card:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; }
    .skills-grid { grid-template-columns: 1fr; }
    .dbw-proj-grid, .solved-grid { grid-template-columns: 1fr; }
    .hero-name-item { letter-spacing: -0.025em; }
    .hero-bottom { gap: 16px; }
    .hero-cta { margin-top: 4px; }
    .hero-photo-placeholder { width: 130px; height: 170px; font-size: 20px; }
    .hero-photo { height: 55vh; max-width: 70vw; }
    .navbar { display: none; }
    .hamburger { display: flex; }
}
