/* ========================================
   Elegant Editorial Portfolio
   ======================================== */

:root {
    --bg-primary: #fefefe;
    --bg-secondary: #faf9f7;
    --bg-tertiary: #f5f3f0;
    --text-primary: #4a4742;
    --text-secondary: #6f6c66;
    --text-muted: #9a948b;
    /* Cohesive warm earth-tone palette — terracotta, coral, mauve, sand */
    --accent-lavender: #b89299;   /* warm dusty mauve (was purple) */
    --accent-mint:     #b3a895;   /* warm taupe-sage (was greenish) */
    --accent-peach:    #d8907a;   /* dusty coral */
    --accent-rose:     #c89098;   /* dusty rose */
    --accent-sky:      #ad8898;   /* dusty plum-mauve (was blue) */
    --accent-sage:     #b8ad95;   /* warm sand-sage */
    --peachy-highlight: #ecbfa6;
    --accent-spark:    #b66848;   /* deeper terracotta — primary emphasis */
    --accent-spark-soft: #c8856b;
    --border: rgba(74, 71, 66, 0.08);
    --nav-height: 70px;
    --section-padding: 70px;
}

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

*::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #faf8f2;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


a {
    color: var(--accent-lavender);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #9a8ab5;
}

/* ========================================
   Background Blobs
   ======================================== */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    animation: float 35s ease-in-out infinite;
    mix-blend-mode: multiply;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-peach);
    top: -15%;
    left: -10%;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: var(--accent-rose);
    bottom: -10%;
    right: -5%;
    animation-delay: -12s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-lavender);
    top: 40%;
    left: 60%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(254, 254, 254, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.03em;
}

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

.nav-resume {
    padding: 10px 22px !important;
    border: 1.5px solid var(--accent-lavender) !important;
    border-radius: 25px;
    color: var(--text-primary) !important;
    background: rgba(184, 169, 201, 0.1);
    transition: all 0.2s !important;
}

.nav-resume:hover {
    background: var(--accent-lavender) !important;
    color: white !important;
}

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

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

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(254, 254, 254, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 25px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

.mobile-menu .nav-resume {
    display: inline-block;
    text-align: center;
    margin-top: 8px;
    padding: 12px 24px;
    border: 1.5px solid var(--accent-lavender);
    border-radius: 25px;
    color: var(--text-primary);
    background: rgba(184, 169, 201, 0.1);
}

/* ========================================
   Main Content
   ======================================== */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-lavender);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 28px;
}

.hero-description {
    max-width: 720px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

svg.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    transform-origin: 50% 50%;
}

.btn:hover .btn-icon,
.paper-link:hover .btn-icon {
    animation: wiggle 0.6s ease-in-out;
}

.btn-primary {
    background: var(--accent-lavender);
    color: white;
    border: 2px solid var(--accent-lavender);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-sage);
}

.btn-secondary:hover {
    background: var(--accent-sage);
    color: white;
}

.btn-large {
    padding: 20px 44px;
    font-size: 1rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 50px;
    white-space: nowrap;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 300px;
}

.section-number {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-spark);
    letter-spacing: 0.02em;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-text .pull {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    border-left: 2px solid var(--accent-lavender);
    padding: 4px 0 4px 20px;
    margin: 24px 0;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    list-style: none;
    margin-top: 24px;
}

.tech-list li {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tech-list li::before {
    content: '\2022';
    color: var(--accent-mint);
    margin-right: 10px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.image-wrapper {
    position: relative;
}

.image-placeholder {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--accent-rose) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.profile-img {
    width: 280px;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-sage);
    border-radius: 20px;
    z-index: -1;
    transition: 0.3s;
}

.image-wrapper:hover::after {
    top: 10px;
    left: 10px;
}

/* ========================================
   Experience Section
   ======================================== */
.experience-container {
    display: flex;
    gap: 40px;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    border-left: 2px solid var(--border);
}

.tab-btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--accent-lavender);
}

.experience-content {
    flex: 1;
    max-width: 720px;
}

.experience-panel {
    display: none;
}

.experience-panel.active {
    display: block;
}

.experience-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.experience-company {
    color: var(--accent-lavender);
    font-style: italic;
}

.experience-date {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.experience-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent-mint);
}

/* ========================================
   Section Subhead
   ======================================== */
.section-subhead {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--text-primary);
    margin: 2rem 0 1.5rem;
    letter-spacing: -0.01em;
}

/* ========================================
   Research — Featured Paper
   ======================================== */
.paper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 60px;
}
.paper-figure {
    display: flex;
    flex-direction: column;
}
.paper-figure-frame {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 14px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 10px 25px -10px rgba(74, 71, 66, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.paper-figure-frame:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -12px rgba(74, 71, 66, 0.14);
}
.paper-figure-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.paper-figure figcaption {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 10px;
}
.paper-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.paper-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 18px;
    color: var(--border);
}
.paper-venue { color: var(--accent-lavender); }
.paper-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.paper-authors {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
}
.paper-authors strong { color: var(--text-primary); font-weight: 600; }
.paper-abstract {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.paper-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.paper-link {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    border: 1px solid var(--text-primary);
    padding: 9px 18px;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    border-radius: 25px;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.paper-link svg.btn-icon { width: 14px; height: 14px; }
.paper-link:hover { background: var(--text-primary); color: var(--bg-primary); transform: translateY(-2px); }
.paper-link.primary { background: var(--accent-lavender); color: white; border-color: var(--accent-lavender); }
.paper-link.primary:hover { background: var(--text-primary); border-color: var(--text-primary); }

/* Other Research index */
.other-research {
    margin-top: 50px;
}
.work-list {
    border-top: 1px solid var(--text-primary);
    padding: 0;
    list-style: none;
}
.work-list li {
    border-bottom: 1px solid var(--border);
}
.work-row {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    gap: 24px;
    padding: 26px 0;
    align-items: start;
    transition: padding 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0;
}
.work-row:hover {
    background: rgba(255, 255, 255, 0.35);
    padding-left: 14px;
    padding-right: 14px;
}
.work-row:hover .work-title {
    font-style: italic;
}
.work-year {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding-top: 4px;
}
.work-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.work-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 500;
    transition: font-style 0.2s ease;
}
.work-title em { font-style: italic; }
.work-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 640px;
}
.work-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 4px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.work-meta-line span:not(:last-child)::after {
    content: '·';
    margin-left: 18px;
    color: var(--border);
}
.work-arrow {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--accent-lavender);
    text-align: right;
    padding-top: 4px;
    transition: transform 0.25s;
}
.work-row:hover .work-arrow { transform: translateX(6px); }

/* ========================================
   Beyond the Lab
   ======================================== */
.beyond-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 20px;
}
.beyond-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 22px -10px rgba(74, 71, 66, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.beyond-card:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -12px rgba(74, 71, 66, 0.15);
}
.beyond-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent-lavender);
    transform-origin: 50% 50%;
}
.beyond-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}
.beyond-card:hover .beyond-icon {
    animation: wiggle 0.6s ease-in-out;
}
.beyond-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.beyond-card p {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========================================
   Contact Section
   ======================================== */
.section-contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 20px;
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    font-style: italic;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 50px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: inline-flex;
}

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

.footer-social a svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
    transform-origin: 50% 50%;
}

.footer-social a:hover svg {
    animation: wiggle 0.6s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    15%      { transform: rotate(-12deg) translateY(-3px); }
    35%      { transform: rotate(10deg) translateY(-3px); }
    55%      { transform: rotate(-8deg) translateY(-2px); }
    75%      { transform: rotate(6deg) translateY(-1px); }
}

.footer-credit {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ========================================
   Cursor Spotlight
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 169, 201, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet and smaller */
@media (max-width: 900px) {
    .nav-inner {
        padding: 0 25px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .main {
        padding: 0 25px;
    }

    /* Smaller blobs on tablet */
    .blob-1 {
        width: 350px;
        height: 350px;
    }

    .blob-2 {
        width: 300px;
        height: 300px;
    }

    .blob-3 {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .profile-img {
        width: 220px;
    }

    .experience-container {
        flex-direction: column;
    }

    .experience-tabs {
        flex-direction: row;
        overflow-x: auto;
        border-left: none;
        border-bottom: 2px solid var(--border);
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
    }

    .tab-btn.active::before {
        left: 0;
        top: auto;
        bottom: -2px;
        width: 100%;
        height: 2px;
    }

    /* Research — stack featured paper, tighten grids */
    .paper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .work-row {
        grid-template-columns: 60px 1fr 40px;
        gap: 16px;
    }

    /* Section heading */
    .section-heading {
        font-size: 1.6rem;
    }

    .section-heading::after {
        max-width: 150px;
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    :root {
        --section-padding: 40px;
        --nav-height: 60px;
    }

    .main {
        padding: 0 20px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    /* Smaller blobs on mobile */
    .blob-1 {
        width: 250px;
        height: 250px;
    }

    .blob-2 {
        width: 200px;
        height: 200px;
    }

    .blob-3 {
        width: 150px;
        height: 150px;
    }

    /* Hero adjustments */
    .hero {
        min-height: calc(100vh - 60px);
        padding-top: calc(var(--nav-height) + 20px);
    }

    .hero-greeting {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        text-align: center;
        padding: 14px 28px;
        width: 100%;
    }

    .btn-large {
        padding: 16px 32px;
    }

    /* About section */
    .profile-img {
        width: 200px;
    }

    .image-wrapper::after {
        top: 10px;
        left: 10px;
    }

    .tech-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Experience tabs */
    .tab-btn {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .experience-title {
        font-size: 1.2rem;
    }

    .experience-list li {
        font-size: 0.9rem;
        padding-left: 20px;
    }

    /* Research — tighten for mobile */
    .paper-title { font-size: 1.4rem; }
    .paper-figure-frame { aspect-ratio: 16 / 10; }
    .work-title { font-size: 1.2rem; }
    .section-subhead { font-size: 1.4rem; }

    /* Beyond grid → single column on phones */
    .beyond-grid {
        grid-template-columns: 1fr;
    }
    .beyond-title {
        font-size: 1.3rem;
    }

    /* Contact */
    .section-contact {
        padding: 60px 20px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 30px 20px;
    }

    .footer-social {
        gap: 20px;
    }

    .footer-social svg {
        width: 20px;
        height: 20px;
    }

    /* Section heading */
    .section-heading {
        font-size: 1.4rem;
        gap: 15px;
        flex-wrap: wrap;
    }

    .section-heading::after {
        max-width: 100px;
    }

    .section-number {
        font-size: 0.9rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .paper-title {
        font-size: 1.2rem;
    }
    .work-title {
        font-size: 1.1rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .profile-img {
        width: 180px;
    }
}

/* ========================================
   Animations
   ======================================== */
.hero-content > *,
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-greeting { animation-delay: 0.2s; }
.hero-name { animation-delay: 0.3s; }
.hero-tagline { animation-delay: 0.4s; }
.hero-description { animation-delay: 0.5s; }
.hero-cta { animation-delay: 0.6s; }

#about { animation-delay: 0.2s; }
#experience { animation-delay: 0.2s; }
#projects { animation-delay: 0.2s; }
#skills { animation-delay: 0.2s; }
#contact { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
