/* === Base & Variables === */
:root {
    --pink: #d6336c;
    --pink-light: #f06595;
    --pink-soft: #fff0f3;
    --pink-pale: #fce4ec;
    --dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --gray-bg: #fafafa;
    --border: #e8e8e8;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(214, 51, 108, 0.08);
    --shadow-hover: 0 4px 20px rgba(214, 51, 108, 0.15);
    --transition: 0.3s ease;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    line-height: 1.3;
}

a {
    color: var(--pink);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--pink-light);
}

/* === Custom Cursor === */
/* Pink dot cursor site-wide; uses inline SVG so no external files needed */
body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><circle cx="6" cy="6" r="5" fill="%23d6336c" opacity="0.85"/></svg>') 6 6, auto;
}

/* Larger pink dot for clickable / interactive elements */
a, button, .btn, [role="button"] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><circle cx="9" cy="9" r="8" fill="%23d6336c" opacity="0.85"/></svg>') 9 9, pointer;
}

/* === Skip Link (Accessibility) === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--pink);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 10000;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 8px;
    color: #fff;
}

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

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.nav-name:hover {
    color: var(--pink);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-email {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-left: 8px;
    transition: color var(--transition);
}

.nav-email:hover {
    color: var(--pink);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
}

/* === Hero === */
#hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--white) 0%, var(--pink-soft) 30%, var(--pink-pale) 60%, var(--white) 100%);
    background-size: 300% 300%;
    animation: hero-gradient 12s ease infinite;
}

@keyframes hero-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.accent {
    color: var(--pink);
}

.title {
    font-size: 1.15rem;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 4px;
}

.affiliation {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pink);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}

.btn-outline:hover {
    background: var(--pink);
    color: var(--white);
    transform: translateY(-1px);
}

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

.social-links a {
    font-size: 1.4rem;
    color: var(--text-light);
    transition: color var(--transition), transform var(--transition);
}

.social-links a:hover {
    color: var(--pink);
    transform: translateY(-2px);
}

.hero-photo {
    flex-shrink: 0;
}

.hero-img {
    width: 340px;
    height: 400px;
    border-radius: 50% / 45%;
    border: 3px solid var(--pink);
    object-fit: cover;
    object-position: top;
}

/* === Sections === */
section {
    padding: 80px 0;
}

.alt-bg {
    background: var(--gray-bg);
}

h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--pink);
    margin-top: 8px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

/* === Research Interests === */
.interest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.interest-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
}

.interest-card:hover {
    border-color: var(--pink);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.interest-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--pink);
}

.interest-card h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.interest-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* === Timeline === */
.timeline {
    margin-top: 36px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    min-width: 120px;
    font-weight: 700;
    color: var(--pink);
    font-size: 0.9rem;
    padding-top: 2px;
}

.timeline-content h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Publications === */
.pub-category {
    margin-bottom: 40px;
}

.pub-category h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-ft50 {
    background: var(--pink);
    color: var(--white);
}

.badge-sole {
    background: var(--dark);
    color: var(--white);
}

.badge-peer {
    background: var(--pink-pale);
    color: var(--pink);
}

.badge-book {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-review {
    background: #fff3e0;
    color: #e65100;
}

.pub-list {
    list-style: none;
    counter-reset: pub-counter;
}

.pub-list li {
    counter-increment: pub-counter;
    padding: 14px 0 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.7;
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list li strong {
    color: var(--pink);
}

.pub-list li em {
    color: var(--dark);
}

.journal-tag {
    display: inline-block;
    background: var(--pink-soft);
    color: var(--pink);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap;
}

.pub-note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.pipeline-list {
    list-style: none;
    padding: 0;
}

.pipeline-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.pipeline-list li:last-child {
    border-bottom: none;
}

/* === Conferences === */
.conference-grid {
    margin-top: 36px;
}

.conference-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.conference-item:last-child {
    border-bottom: none;
}

.conf-year {
    min-width: 80px;
    font-weight: 800;
    color: var(--pink);
    font-size: 1rem;
}

.conference-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Teaching === */
.teaching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 36px;
}

.teaching-col h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pink);
}

.teaching-col ul {
    list-style: none;
}

.teaching-col li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.teaching-col li:last-child {
    border-bottom: none;
}

/* === Awards === */
.awards-list {
    margin-top: 36px;
}

.award-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.award-item:last-child {
    border-bottom: none;
}

.award-year {
    min-width: 70px;
    font-weight: 800;
    color: var(--pink);
    font-size: 0.9rem;
}

.award-item strong {
    color: var(--dark);
    font-size: 0.95rem;
}

.award-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* === Media === */
.media-grid {
    margin-top: 36px;
}

.media-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.media-item:last-child {
    border-bottom: none;
}

.media-year {
    min-width: 50px;
    font-weight: 800;
    color: var(--pink);
    font-size: 0.9rem;
}

.media-item strong {
    color: var(--dark);
    font-size: 0.95rem;
}

.media-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* === Talks === */
.talks-venues {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 2.2;
    margin-top: 20px;
}

/* === Service === */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 36px;
}

.service-col h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 10px;
    margin-top: 20px;
}

.service-col h3:first-child {
    margin-top: 0;
}

.service-col ul {
    list-style: none;
}

.service-col li {
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--text-light);
}

.reviewer-journals {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === Contact === */
.contact-section {
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 36px;
}

.contact-item h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pink);
    margin-bottom: 6px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text);
}

.contact-item a {
    color: var(--dark);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--pink);
}

/* === Footer === */
footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--white);
}

footer p {
    font-size: 0.82rem;
    color: var(--text-light);
}

.last-updated {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* === Featured In Bar === */
.featured-bar {
    padding: 32px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.featured-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.featured-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.featured-logo:hover {
    color: var(--pink);
}

/* === About Blurb === */
.about-blurb {
    max-width: 800px;
    margin: 24px 0 48px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(214, 51, 108, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--pink-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(214, 51, 108, 0.4);
}

/* === Bible Verses === */
.hero-verse {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.verse-ref {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--pink);
}

.footer-verse {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* === Typewriter === */
.typewriter-line {
    font-size: 1.05rem;
    color: var(--pink);
    font-weight: 500;
    min-height: 1.6em;
    margin-bottom: 4px;
}

.typewriter-cursor {
    animation: blink 0.8s infinite;
    color: var(--pink);
    font-weight: 300;
}

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

/* === Currently Section === */
.currently-section {
    background: var(--pink-soft);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 48px;
}

.currently-title {
    font-size: 1rem;
    color: var(--pink);
    margin-bottom: 16px;
}

.currently-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.currently-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.currently-emoji {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.currently-label {
    font-weight: 700;
    color: var(--pink);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === World Map === */
#map-section {
    padding: 80px 0;
}

.world-map {
    margin-top: 36px;
    background: var(--pink-soft);
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
}

.map-svg {
    width: 100%;
    height: auto;
}

.map-land {
    fill: var(--pink-pale);
    stroke: var(--pink);
    stroke-width: 0.5;
    opacity: 0.6;
}

.map-pin {
    fill: var(--pink);
    stroke: var(--white);
    stroke-width: 2;
}

.map-pulse {
    fill: none;
    stroke: var(--pink);
    stroke-width: 1.5;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { r: 5; opacity: 0.8; }
    100% { r: 18; opacity: 0; }
}

.map-label {
    font-size: 11px;
    fill: var(--dark);
    font-weight: 600;
    text-anchor: middle;
}

/* === Confetti Easter Egg === */
.confetti {
    position: fixed;
    top: -40px;
    z-index: 9999;
    animation: flamingo-fall linear forwards;
    pointer-events: none;
    line-height: 1;
}

@keyframes flamingo-fall {
    0% {
        transform: translateY(0) rotate(0deg) scaleX(1);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) rotate(-15deg) scaleX(-1);
    }
    50% {
        transform: translateY(50vh) rotate(10deg) scaleX(1);
    }
    75% {
        transform: translateY(75vh) rotate(-10deg) scaleX(-1);
    }
    100% {
        transform: translateY(105vh) rotate(15deg) scaleX(1);
        opacity: 0;
    }
}

.easter-egg-wrap {
    position: relative;
    display: inline-block;
}

#easter-egg {
    display: inline-block;
    cursor: pointer;
    font-size: 1.1em;
    animation: dot-glow 2s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(214, 51, 108, 0.4);
    transition: transform 0.2s ease;
}

#easter-egg:hover {
    transform: scale(1.5);
    text-shadow: 0 0 16px rgba(214, 51, 108, 0.8);
}

.press-me {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--pink);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    animation: press-me-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes press-me-pulse {
    0%, 100% { opacity: 0; }
    40%, 60% { opacity: 1; }
}

@keyframes dot-glow {
    0%, 100% { text-shadow: 0 0 4px rgba(214, 51, 108, 0.2); }
    50% { text-shadow: 0 0 14px rgba(214, 51, 108, 0.6); }
}

/* === Scroll Animations === */
.animate-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-img {
        width: 220px;
        height: 260px;
    }

    .interest-grid {
        grid-template-columns: 1fr;
    }

    .teaching-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        gap: 4px;
    }

    .timeline-year {
        min-width: auto;
    }

    .contact-grid {
        flex-direction: column;
        gap: 24px;
    }

    .conference-item {
        flex-direction: column;
        gap: 4px;
    }

    .award-item,
    .media-item {
        flex-direction: column;
        gap: 4px;
    }

    section {
        padding: 50px 0;
    }

    .currently-grid {
        grid-template-columns: 1fr;
    }
}

/* === Dark Mode Toggle Button === */
.dark-mode-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--pink);
    border-color: var(--pink);
}

/* === Dark Mode === */
html.dark-mode {
    --dark: #f0f0f0;
    --text: #e0e0e0;
    --text-light: #aaa;
    --white: #1a1a2e;
    --gray-bg: #16162a;
    --border: #2a2a45;
    --pink-soft: #2a1a2e;
    --pink-pale: #2e1a28;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 20px rgba(214, 51, 108, 0.25);
}

html.dark-mode nav {
    background: rgba(26, 26, 46, 0.95);
}

html.dark-mode .nav-name {
    color: #f0f0f0;
}

html.dark-mode .hero-img {
    border-color: var(--pink);
}

html.dark-mode .interest-card {
    background: #16162a;
}

html.dark-mode .featured-logo {
    color: #555;
}

html.dark-mode .featured-logo:hover {
    color: var(--pink);
}

html.dark-mode footer {
    background: #1a1a2e;
}

html.dark-mode .currently-section {
    background: #2a1a2e;
}

html.dark-mode .badge-peer {
    background: #2e1a28;
}

html.dark-mode .badge-book {
    background: #1a2e1a;
    color: #4caf50;
}

html.dark-mode .badge-review {
    background: #2e2a1a;
    color: #ff9800;
}

html.dark-mode .journal-tag {
    background: #2a1a2e;
}

html.dark-mode .btn-outline {
    border-color: var(--pink);
    color: var(--pink);
}

html.dark-mode .btn-outline:hover {
    background: var(--pink);
    color: #fff;
}

html.dark-mode .dark-mode-toggle {
    border-color: #2a2a45;
    color: #ffd93d;
}

html.dark-mode .dark-mode-toggle:hover {
    border-color: #ffd93d;
}
