:root {
    --page-bg: radial-gradient(120% 120% at 0% 100%, #1f2937 0%, #020617 45%, #050810 100%);
    --card-bg: rgba(15, 23, 42, 0.75);
    --card-border: rgba(148, 163, 184, 0.15);
    --card-border-hover: rgba(251, 146, 60, 0.45);
    --accent: #f97316;
    --accent-strong: #ea580c;
    --accent-soft: rgba(249, 115, 22, 0.18);
    --accent-gradient: linear-gradient(120deg, #f97316 0%, #fb923c 55%, #facc15 100%);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5f5;
    --text-muted: #94a3b8;
    --surface-100: rgba(15, 23, 42, 0.6);
    --surface-200: rgba(15, 23, 42, 0.85);
    --divider: rgba(148, 163, 184, 0.15);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.45);
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.55);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f97316, #fb923c);
    border-radius: 6px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

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

section {
    scroll-margin-top: 96px;
}

.wrapper {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(18px);
    background: rgba(2, 6, 23, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: grid;
    place-items: center;
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
    color: #0b1120;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link {
    color: var(--text-secondary);
    position: relative;
    padding-block: 6px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero {
    padding: clamp(5rem, 12vw, 7.5rem) 0 4rem;
    position: relative;
}

.hero-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.hero-copy {
    grid-column: span 7;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(249, 115, 22, 0.35);
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(2.4rem, 4.8vw, 3.9rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
    text-align: justify;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 2.5rem;
}

.stat-badge {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-family: "Sora", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.98rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #0b1120;
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.6);
}

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

.hero-portrait {
    grid-column: span 5;
}

.hero-portrait::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: var(--radius-xl);
    background: var(--accent-gradient);
    opacity: 0.4;
    filter: blur(24px);
    z-index: -1;
}

.hero-portrait-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow: var(--shadow-lg);
    background: rgba(15, 23, 42, 0.6);
}

.hero-portrait img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-bio {
    margin-top: 1.75rem;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(249, 115, 22, 0.2);
    background: rgba(15, 23, 42, 0.55);
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: justify;
}

.social-strip {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.65);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: transform 0.3s ease, border 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--accent);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 2.75rem;
    padding-top: 1rem;
}

.section-badge {
    font-size: 0.85rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: inline-block;
}

.section-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-description {
    max-width: 520px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-align: justify;
}

.grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.4rem);
}

.grid-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.timeline-card,
.info-card,
.publication-card,
.reference-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: clamp(1.6rem, 4vw, 2.1rem);
    transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.timeline-card:hover,
.info-card:hover,
.publication-card:hover,
.reference-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    background: rgba(15, 23, 42, 0.9);
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1.6rem, 4vw, 2.1rem);
    right: clamp(1.6rem, 4vw, 2.1rem);
    height: 3px;
    border-radius: 999px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.timeline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(148, 163, 184, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.4rem;
    text-align: justify;
}

.timeline-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    color: var(--text-secondary);
}

.timeline-list li {
    position: relative;
    padding-left: 22px;
}

.timeline-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.timeline-details {
    margin-top: 1.3rem;
    border-top: 1px solid var(--divider);
    padding-top: 1.1rem;
}

.timeline-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    position: relative;
}

.timeline-details summary::-webkit-details-marker {
    display: none;
}

.timeline-details summary::before {
    content: "\25B8";
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.timeline-details summary:hover {
    color: var(--accent-strong);
}

.timeline-details summary:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.65);
    outline-offset: 6px;
    border-radius: var(--radius-md);
}

.timeline-details[open] summary::before {
    transform: rotate(90deg);
}

.timeline-details[open] summary {
    color: var(--text-primary);
}

.timeline-expanded {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    color: var(--text-secondary);
}

.timeline-expanded p {
    text-align: justify;
}

.timeline-expanded .timeline-list {
    margin-top: 0.2rem;
}

.timeline-steps {
    margin-left: 1.4rem;
    display: grid;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.timeline-steps li {
    line-height: 1.6;
}

.education-timeline {
    position: relative;
    margin-top: 2.75rem;
    padding-left: 32px;
}

.education-timeline .timeline-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 2px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
}

.education-timeline .timeline-items {
    display: grid;
    gap: 1.9rem;
}

.education-timeline .timeline-node {
    position: relative;
    padding: 0;
}

.education-timeline .timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.6);
    background: var(--accent-gradient);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.1);
}

.education-timeline .timeline-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    transition: border 0.3s ease, transform 0.3s ease;
}

.education-timeline .timeline-node:hover .timeline-content {
    border-color: var(--card-border-hover);
    transform: translateX(6px);
}

.education-timeline .timeline-years {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.education-timeline h3 {
    font-size: 1.25rem;
}

.education-timeline .timeline-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.6rem;
}

.tag {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.12);
    padding: 8px 14px;
    border-radius: 999px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.info-card p,
.publication-card p,
.reference-card p {
    color: var(--text-secondary);
    text-align: justify;
}

.publication-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.publication-meta {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.reference-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.6rem;
}

.reference-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(249, 115, 22, 0.35);
}

.reference-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.9rem;
}

.contact-card {
    padding: clamp(1.6rem, 4vw, 2rem);
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-link {
    font-size: 1.05rem;
    font-weight: 600;
}

.footer {
    margin-top: clamp(4rem, 12vw, 6rem);
    padding: 2.5rem 0 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
}

.fade-in.is-visible {
    animation: reveal 0.6s ease forwards;
}

.fade-in.is-visible[data-delay="1"] {
    animation-delay: 0.1s;
}

.fade-in.is-visible[data-delay="2"] {
    animation-delay: 0.2s;
}

.fade-in.is-visible[data-delay="3"] {
    animation-delay: 0.3s;
}

.fade-in.is-visible[data-delay="4"] {
    animation-delay: 0.4s;
}

.fade-in.is-visible[data-delay="5"] {
    animation-delay: 0.5s;
}

.fade-in.is-visible[data-delay="6"] {
    animation-delay: 0.6s;
}

.fade-in.is-visible[data-delay="7"] {
    animation-delay: 0.7s;
}

.fade-in.is-visible[data-delay="8"] {
    animation-delay: 0.8s;
}

.fade-in.is-visible[data-delay="9"] {
    animation-delay: 0.9s;
}

@keyframes reveal {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-list {
        position: absolute;
        inset: 80px 0 auto;
        flex-direction: column;
        background: var(--surface-200);
        padding: 24px;
        margin: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.15);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-list.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .hero-copy {
        grid-column: 1 / -1;
    }

    .hero-portrait {
        grid-column: 1 / -1;
        order: -1;
    }

    .hero-intro {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-badge {
        flex: 1 1 160px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-description {
        max-width: none;
    }
}

@media (max-width: 540px) {
    .hero-title {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .hero-stats {
        flex-direction: column;
    }

    .hero-bio {
        padding: 20px;
    }

    .brand {
        font-size: 0.85rem;
    }

    .education-timeline {
        padding-left: 24px;
    }

    .education-timeline .timeline-rail {
        left: 10px;
    }

    .education-timeline .timeline-dot {
        left: -26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
