@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --navy:      #0f172a;
    --navy-mid:  #1e3a5f;
    --blue:      #0ea5e9;
    --blue-dark: #0284c7;
    --gray-50:   #f8fafc;
    --gray-100:  #f1f5f9;
    --gray-200:  #e2e8f0;
    --gray-400:  #94a3b8;
    --gray-500:  #64748b;
    --gray-600:  #475569;
    --gray-700:  #334155;
    --white:     #ffffff;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
    --shadow:    0 4px 16px rgba(15,23,42,0.08);
    --shadow-lg: 0 20px 40px rgba(15,23,42,0.12);
    --radius:    10px;
    --transition: all 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ── NAVBAR ─────────────────────────────────────────── */

.navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    background: none;
    -webkit-text-fill-color: var(--navy);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.8375rem;
    padding: 6px 11px;
    border-radius: 6px;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
    background: var(--gray-100);
}

.nav-link::after { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── HERO ────────────────────────────────────────────── */

.hero {
    background: var(--navy);
    color: var(--white);
    padding: 112px 24px 96px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(14,165,233,0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 740px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14,165,233,0.12);
    border: 1px solid rgba(14,165,233,0.28);
    color: #38bdf8;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.5rem 0 1.25rem;
    animation: slideDown 0.5s ease both;
}

.profile-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 3px solid var(--blue);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.15);
    transform: scale(1.15);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin-bottom: 0.875rem;
    color: var(--white);
    animation: slideDown 0.5s ease 0.05s both;
}

.subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    animation: slideUp 0.5s ease 0.1s both;
}

.tagline {
    font-size: 0.975rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.75rem;
    font-style: italic;
    animation: slideUp 0.5s ease 0.15s both;
}

.hero-description {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-size: 0.975rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.65);
    animation: slideUp 0.5s ease 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: slideUp 0.5s ease 0.25s both;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    padding: 11px 26px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.cta-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14,165,233,0.38);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 11px 26px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-1px);
}

.scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

/* ── SECTION BASE ────────────────────────────────────── */

section {
    padding: 92px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}


.section-header h2 {
    display: inline-block;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--navy);
    line-height: 1.15;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--blue);
    margin: 0.875rem auto 0;
    border-radius: 2px;
}

/* ── ABOUT ───────────────────────────────────────────── */

.about {
    background: var(--white);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.025rem;
    margin-bottom: 1.25rem;
    color: var(--gray-600);
    line-height: 1.82;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ── SKILLS ──────────────────────────────────────────── */

.skills {
    background: var(--gray-50);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.skill-card {
    background: var(--white);
    padding: 1.625rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.skill-card h3 {
    color: var(--navy);
    margin-bottom: 1.125rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 0.35rem 0 0.35rem 18px;
    color: var(--gray-500);
    font-size: 0.875rem;
    position: relative;
    line-height: 1.5;
}

.skill-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
}

/* ── PROJECTS ────────────────────────────────────────── */

.projects {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: var(--white);
    padding: 1.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.875rem;
    gap: 1rem;
}

.project-card h3 {
    color: var(--navy);
    font-size: 1.025rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    flex: 1;
    line-height: 1.4;
}

.project-tag {
    background: rgba(14,165,233,0.09);
    color: var(--blue-dark);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.675rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.75;
    text-align: justify;
}

.project-highlights {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--gray-500);
    list-style: disc;
    font-size: 0.85rem;
}

.project-highlights li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.tech-tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ── EXPERIENCE ──────────────────────────────────────── */

.experience {
    background: var(--gray-50);
}

.experience-grid {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding-left: 2rem;
}

.experience-grid::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 2.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), rgba(14,165,233,0));
}

.experience-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.experience-item:last-child {
    padding-bottom: 0;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -1.9375rem;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--gray-50);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.18);
}

.experience-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
    line-height: 1.4;
}

.experience-item .dates {
    font-size: 0.775rem;
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    display: inline-block;
    background: rgba(14,165,233,0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.experience-item ul {
    list-style: none;
    padding: 0;
}

.experience-item li {
    padding: 0.3rem 0 0.3rem 16px;
    color: var(--gray-500);
    font-size: 0.875rem;
    position: relative;
    line-height: 1.6;
}

.experience-item li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-300);
    font-size: 0.7rem;
    top: 0.45rem;
    line-height: 1;
}

/* ── EDUCATION ───────────────────────────────────────── */

.education {
    background: var(--white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 780px;
    margin: 0 auto;
}

.education-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.625rem;
    transition: var(--transition);
    border-left: 3px solid var(--blue);
}

.education-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.education-item h3 {
    font-size: 1.025rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
    letter-spacing: -0.025em;
}

.education-item p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.education-detail {
    color: var(--blue-dark) !important;
    font-weight: 600;
}

.education-dates {
    color: var(--gray-400) !important;
    font-size: 0.8rem !important;
    margin-top: 0.5rem;
}

/* ── PUBLICATIONS ────────────────────────────────────── */

.publications {
    background: var(--gray-50);
}

.publication-list {
    display: grid;
    gap: 1rem;
    max-width: 780px;
    margin: 0 auto;
}

.publication-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem 1.625rem;
    transition: var(--transition);
}

.publication-item:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.publication-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.55;
    letter-spacing: -0.015em;
    text-align: justify;
}

.publication-item p {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.publication-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.publication-link:hover {
    color: var(--blue);
}

/* ── CONTACT ─────────────────────────────────────────── */

.contact {
    background: var(--navy);
    color: var(--white);
}

.contact .section-header h2 {
    color: var(--white);
}

.contact-intro {
    text-align: center;
    font-size: 0.975rem;
    color: rgba(255,255,255,0.5);
    margin-top: -2rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 540px;
    margin: 0 auto;
}

.contact-info {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius);
    padding: 1.875rem;
}

.contact-info h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.contact-blurb {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    text-align: justify;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.linkedin-btn {
    background: #0a66c2;
    color: var(--white);
}

.linkedin-btn:hover {
    background: #0958a8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10,102,194,0.4);
}

.email-btn {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
}

.email-btn:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.contact-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius);
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.875rem;
    background: rgba(255,255,255,0.07);
    color: var(--white);
    transition: var(--transition);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    background: rgba(255,255,255,0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}


.form-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.contact-form .linkedin-btn {
    display: flex;
    justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────── */

.footer {
    background: #060d1a;
    color: rgba(255,255,255,0.4);
    padding: 1.75rem 24px;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

/* ── ANIMATIONS ──────────────────────────────────────── */

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

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

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

/* ── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 0.75rem;
        gap: 2px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu.active { display: flex; }
    .nav-link { padding: 0.7rem 1rem; width: 100%; }

    section { padding: 72px 0; }

    .hero { padding: 88px 24px 80px; }

    .profile-photo {
        width: 110px;
        height: 110px;
        transform: scale(1.08);
    }

    .section-header h2 { font-size: 1.75rem; }

    /* justify looks broken on narrow screens */
    .about-content p,
    .project-card p,
    .publication-item h3,
    .contact-blurb { text-align: left; }

    .contact-intro { margin-top: -1rem; }

    .experience-grid { padding-left: 1.75rem; }
    .experience-item::before { left: -1.6875rem; }

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

@media (max-width: 480px) {
    .hero { padding: 72px 20px 64px; }

    .profile-photo {
        width: 92px;
        height: 92px;
        transform: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn,
    .secondary-btn { width: 100%; text-align: center; }

    .section-header h2 { font-size: 1.5rem; }

    .skills-grid,
    .projects-grid,
    .education-grid { grid-template-columns: 1fr; }

    .project-header { flex-direction: column; gap: 0.5rem; }

    .contact-content { max-width: 100%; }

    .contact-form { padding: 1.25rem; }

    .logo-text { font-size: 0.9rem; }

    .social-links { gap: 1rem; }
}
