/* Portfolio 2026 – Dr. Mohammad Hamdan  |  Optimised for speed */

:root {
    --bg-primary:    #0a0a0b;
    --bg-secondary:  #111113;
    --accent-warm:   #f97316;
    --accent-cool:   #06b6d4;
    --accent-violet: #8b5cf6;
    --text-primary:  #fafafa;
    --text-secondary:#a1a1aa;
    --text-muted:    #52525b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

/* ── Custom Cursor ────────────────────────────────────────────────── */
.cursor {
    width: 20px; height: 20px;
    border: 2px solid var(--accent-warm);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
    /* Use transform-based positioning set by JS; no left/top repaint */
    top: 0; left: 0;
    will-change: transform;
}

.cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent-warm);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    will-change: transform;
}

.cursor.hover {
    transform: translate(var(--cx, 0), var(--cy, 0)) scale(2.5) !important;
    border-color: var(--accent-cool);
    background: rgba(6, 182, 212, 0.1);
}

/* ── Background Effects (no animated grain) ───────────────────────── */
.bg-gradient {
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 0% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
    pointer-events: none; z-index: 0;
}

/* Reduced to 2 orbs; smaller blur radius (60px→ 50px) for cheaper compositing */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: float 24s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
    top: -10%; right: -5%;
}

.orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    bottom: 10%; left: -5%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(20px, -20px); }
    66%       { transform: translate(-15px, 15px); }
}

/* Subtle dot-grid; no animated grain */
.grid-lines {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none; z-index: 1;
}

/* ── Loader ───────────────────────────────────────────────────────── */
.loader {
    position: fixed; inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden { opacity: 0; visibility: hidden; }

.loader-text {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

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

/* ── Navigation ──────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1rem 2rem;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 11, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
}

.logo-dot {
    width: 8px; height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    will-change: opacity, transform;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.25s ease;
    cursor: none;
}

.nav-link:hover { color: var(--text-primary); }

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: var(--text-primary) !important;
}

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

.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    position: relative;
    padding: 6rem 0;
    z-index: 10;
}

/* ── Glass Card (backdrop-filter halved for perf) ────────────────── */
.glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

/* ── Section Header ──────────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-cool), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeSlideDown 0.8s ease forwards;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.title-line { display: block; }

.title-gradient {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-cool), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-cool);
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s ease 0.25s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeSlideUp 0.8s ease 0.35s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeSlideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-violet));
    color: white;
    border: none;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(249,115,22,0.3); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeSlideUp 0.8s ease 0.55s forwards;
    opacity: 0;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    background: linear-gradient(180deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 350px;
    height: 420px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

/* Lighter glow: reduced blur, lower opacity */
.image-glow {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-violet));
    filter: blur(40px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.image-border {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-cool), var(--accent-violet));
    border-radius: 22px;
    z-index: 1;
}

/* Small in-hero orbs: reduced blur */
.visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    animation: float 18s ease-in-out infinite;
    will-change: transform;
}

.visual-orb.orb-1 {
    width: 120px; height: 120px;
    background: rgba(249,115,22,0.35);
    top: -10%; left: -10%;
}

.visual-orb.orb-2 {
    width: 90px; height: 90px;
    background: rgba(6,182,212,0.35);
    bottom: 10%; right: -5%;
    animation-delay: -6s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── About ───────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-card {
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.about-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(139,92,246,0.1));
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--accent-warm);
}

.about-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.about-card p  { font-size: 0.875rem; color: var(--text-muted); }

.info-card { padding: 2rem; }

.info-card h4 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.info-icon { font-size: 1.25rem; }

.membership-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-warm);
}

/* ── Timeline ────────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-warm), var(--accent-violet));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem; top: 1.5rem;
    width: 16px; height: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-warm);
    border-radius: 50%;
    z-index: 1;
}

.timeline-marker.current { background: var(--accent-warm); }

.timeline-marker .pulse {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent-warm);
    border-radius: 50%;
    animation: ping 1.5s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes ping {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.timeline-marker.humanitarian {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.timeline-content {
    padding: 1.5rem;
    margin-left: 1rem;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-date { font-size: 0.75rem; color: var(--text-muted); }

.timeline-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.current-badge    { background: rgba(34,197,94,0.1);  color: #22c55e; }
.humanitarian-badge { background: rgba(239,68,68,0.1); color: #ef4444; }

.timeline-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-company    { color: var(--accent-cool); margin-bottom: 0.5rem; }
.timeline-description{ color: var(--text-secondary); font-size: 0.9rem; }
.humanitarian-card   { border-color: rgba(239,68,68,0.2); }

/* ── Education ───────────────────────────────────────────────────── */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.edu-card {
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

.edu-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(249,115,22,0.05), rgba(139,92,246,0.05));
}

.edu-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(139,92,246,0.1));
    border-radius: 12px;
    color: var(--accent-warm);
    flex-shrink: 0;
}

.edu-year        { font-size: 0.75rem; color: var(--accent-warm); margin-bottom: 0.5rem; display: block; }
.edu-content h3  { font-family: 'Instrument Serif', serif; font-size: 1.1rem; margin-bottom: 0.5rem; }
.edu-institution { color: var(--text-secondary); margin-bottom: 0.5rem; }
.edu-thesis      { font-size: 0.875rem; color: var(--text-muted); font-style: italic; }

.certifications {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
}

.cert-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cert-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cert-year {
    padding: 0.25rem 0.75rem;
    background: rgba(6,182,212,0.1);
    color: var(--accent-cool);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.cert-name { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Publications ────────────────────────────────────────────────── */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pub-card { padding: 2rem; }

.pub-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(139,92,246,0.1);
    color: var(--accent-violet);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pub-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.pub-meta  { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }

.pub-tags  { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.pub-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ── Skills ──────────────────────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-category { padding: 2rem; }

.skill-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.skill-icon.medical { background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(249,115,22,0.1)); color: #ef4444; }
.skill-icon.tech    { background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(139,92,246,0.1)); color: var(--accent-cool); }
.skill-icon.lang    { background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(6,182,212,0.1));  color: #22c55e; }

.skill-category h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-list li {
    color: var(--text-secondary);
    padding-left: 1rem;
    position: relative;
}

.skill-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-warm);
}

.language-bars { display: flex; flex-direction: column; gap: 1rem; }

.lang-item {
    display: grid;
    grid-template-columns: 70px 1fr 40px;
    align-items: center;
    gap: 1rem;
}

.lang-name  { color: var(--text-secondary); font-size: 0.9rem; }

.lang-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
    border-radius: 3px;
}

.lang-level { color: var(--text-muted); font-size: 0.75rem; }

/* ── Awards ──────────────────────────────────────────────────────── */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.award-card    { padding: 1.5rem; text-align: center; }

.award-year {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    background: linear-gradient(180deg, var(--accent-warm), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.award-icon    { font-size: 2rem; margin-bottom: 1rem; }
.award-content h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.award-content p  { font-size: 0.8rem; color: var(--text-muted); }

/* ── Contact ─────────────────────────────────────────────────────── */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-description { color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }

.contact-methods { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.contact-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(139,92,246,0.1));
    border-radius: 12px;
    color: var(--accent-warm);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value { color: var(--text-primary); }

.quote-carousel {
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.quotes-wrapper { overflow: hidden; }

.quotes-track {
    display: flex;
    transition: transform 0.45s ease;
}

.quote-slide {
    min-width: 100%;
    text-align: center;
    padding: 0 2rem;
}

.visual-quote {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1.5rem;
}

.visual-author { color: var(--accent-warm); font-size: 0.875rem; }

.quote-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.quote-nav:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.quote-prev { left: 1rem; }
.quote-next { right: 1rem; }

.quote-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }

.quote-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.quote-dot.active { background: var(--accent-warm); transform: scale(1.2); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }

.footer-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-grid        { grid-template-columns: 1fr; }
    .education-grid    { grid-template-columns: 1fr; }
    .edu-card.featured { grid-column: span 1; }
    .skills-grid       { grid-template-columns: 1fr; }
    .awards-grid       { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }

    .nav-menu {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(10,10,11,0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .nav-menu.active { transform: translateY(0); opacity: 1; }

    .nav-toggle { display: flex; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content       { max-width: 100%; }
    .hero-cta           { justify-content: center; flex-wrap: wrap; }
    .hero-stats         { justify-content: center; }
    .hero-description   { margin: 0 auto 2rem; }
    .hero-visual        { margin-top: 3rem; }
    .hero-image-container { width: 280px; height: 340px; }

    .about-cards        { grid-template-columns: 1fr; }
    .publications-grid  { grid-template-columns: 1fr; }
    .cert-list          { grid-template-columns: 1fr; }
    .awards-grid        { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
