:root {
    --bg: #faf8f5;
    --surface: #fff;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --accent: #2d5a4a;
    --accent-soft: #e8f0ed;
    --border: #e8e4df;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}


/* Landing page */

.landing {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.landing.landing-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-name {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    color: var(--text);
}

.landing-center {
    text-align: center;
}

.landing-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem 0;
    min-height: 1.2em;
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.landing-title .typing-cursor {
    font-size: 0.9em;
}

.landing-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    color: var(--text-muted);
    margin: 0 0 1.75rem 0;
    letter-spacing: 0.02em;
}

.landing-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: var(--surface);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.landing-btn:hover {
    background: #244736;
    transform: translateY(-1px);
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}


/* Nav */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-home {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.nav-home:hover {
    color: var(--accent);
}


/* Main */

main {
    max-width: 1050px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}


/* About */

.about-section {
    margin-top: 10rem;
}

.about-content {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 640px) {
    .about-content {
        grid-template-columns: minmax(300px, 400px) 1fr;
        gap: 2rem;
    }
}

.about-left {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.about-education {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-education-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.about-education-item {
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.about-education-item:last-child {
    margin-bottom: 0;
}

.about-education-item strong {
    color: var(--text);
    font-weight: 600;
}

.about-photo-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    max-width: none;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-title {
    font-family: 'Instrument Serif', serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    margin-top: 3rem;
}

.about-title .accent {
    color: var(--accent);
    font-style: italic;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 52ch;
}

.social-link-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.social-link-wrap .tooltip {
    bottom: 115%;
    width: auto;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.social-link-wrap:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link i,
.social-link svg {
    font-size: 1.3rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-link:hover {
    background: var(--accent);
    color: var(--surface);
    transform: translateY(-2px);
}

@keyframes fade-up-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link {
    opacity: 0;
    animation: fade-up-in 0.4s ease forwards;
}

.social-links .social-link-wrap:nth-child(1) .social-link {
    animation-delay: 0.1s;
}

.social-links .social-link-wrap:nth-child(2) .social-link {
    animation-delay: 0.2s;
}

.social-links .social-link-wrap:nth-child(3) .social-link {
    animation-delay: 0.3s;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.resume-download:hover {
    background: var(--accent);
    color: var(--surface);
    transform: translateY(-2px);
}

.resume-download-icon {
    flex-shrink: 0;
}

.skills-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 2.25rem 0 0.75rem 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--accent-soft);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.skill-item i[class^="devicon-"],
.skill-item i[class*=" devicon-"] {
    font-size: 1.25rem;
    line-height: 1;
}

.skill-icon-text {
    font-style: normal;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--accent);
}


/* Cards (Experience, Projects, Leadership, Volunteering) */

.cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


/* Added the next 2 sections to highlight areas */

.cards:hover .card {
    opacity: 0.4;
    filter: blur(0.5px);
    transition: 0.3s;
}

.cards .card:hover {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(66, 133, 244, 0.2);
}

.card {
    background: var(--surface);
    z-index: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    color: #4285F4;
    border-color: var(--accent-soft);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px) scale(1.02);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.card:hover .card-role {
    color: #e0cf83;
    transition: color 0.3s ease;
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-details .card-date::before {
    content: "·";
    margin-right: 0.75rem;
    font-weight: 400;
}

.card-role {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.card-company {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

.card-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.card-link:hover {
    background: var(--accent);
    color: var(--surface);
}

.card-links.card-links-icons {
    gap: 1.25rem;
    margin-top: 1rem;
}

.card-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.card-link-icon svg {
    flex-shrink: 0;
}

.card-link-icon:hover {
    background: var(--accent);
    color: var(--surface);
}

.tech-stack-wrap {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.tech-stack-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
}

.tech-stack-pill {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-weight: 500;
}


/* Contact */

.section-title-contact {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--border);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-section {
    background: var(--accent);
    color: var(--surface);
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
    width: 100%;
    margin-bottom: 0rem;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--accent-soft);
    margin-bottom: 1.25rem;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}

.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 1.25rem;
    word-break: break-all;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-btn {
    align-self: center;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--border);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.2s;
}

.contact-btn:hover {
    background: #5f8a75;
    transform: translateY(-1px);
}


/* Footer */

.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text-muted);
}

.footer p {
    margin: 0;
}

.zoom-container input {
    display: none;
}


/* Enlarged state when checked */

.zoom-container input:checked+img {
    transform: scale(2);
    /* Zoom by 2x */
    position: relative;
    z-index: 100;
}

.zoom-container img {
    width: 300px;
    cursor: pointer;
    /* --- The Rounded Edges --- */
    border-radius: 15px;
    /* Adjust px for more/less roundness */
    overflow: hidden;
    /* Clips the image to the rounded shape */
    /* Existing hover/light-up logic */
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.zoom-container img:hover {
    filter: brightness(1.15);
    /* The glow now follows the rounded shape */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    /* Subtle "pop" on hover */
}

.career-timeline {
    position: relative;
    width: 95%;
    height: 200px;
    margin: 2rem 0 -2rem 0;
    overflow: visible;
}

.squiggle-svg {
    width: 95%;
    height: 100px;
    overflow: visible;
    display: block;
}


/* 1. Initial State (Hidden) */

.squiggle-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    /* These match the pathLength="1" */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.1s;
    /* Prevents a 'flash' on load */
}


/* 2. Animation Trigger */

.career-timeline.is-active .squiggle-path {
    animation: draw-squiggle 3s ease-in-out forwards;
}

@keyframes draw-squiggle {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}


/* Dots and Labels */

.node-dot {
    fill: var(--surface);
    stroke: var(--accent);
    stroke-width: 3;
    transform: scale(0);
    transform-origin: center;
}

.career-timeline.is-active .node-dot {
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


/* Apply staggered delays to dots */

.node-dot:nth-child(1) {
    animation-delay: 0.3s;
}

.node-dot:nth-child(2) {
    animation-delay: 0.9s;
}

.node-dot:nth-child(3) {
    animation-delay: 1.5s;
}

.node-dot:nth-child(4) {
    animation-delay: 2.1s;
}

.node-dot:nth-child(5) {
    animation-delay: 2.7s;
}


/* Labels Positioned Higher */

.timeline-labels {
    position: absolute;
    top: -50px;
    /* Pulls everything up */
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.label-group {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 150px;
    /* Gap between top and bottom text */
    opacity: 0;
}

.career-timeline.is-active .label-group {
    animation: fade-in-text 0.5s ease-out forwards;
}


/* Match delays with dots */

.label-group:nth-child(1) {
    animation-delay: 0.3s;
}

.label-group:nth-child(2) {
    animation-delay: 0.9s;
}

.label-group:nth-child(3) {
    animation-delay: 1.5s;
}

.label-group:nth-child(4) {
    animation-delay: 2.1s;
}

.label-group:nth-child(5) {
    animation-delay: 2.7s;
}

@keyframes pop-in {
    to {
        transform: scale(1);
    }
}

@keyframes fade-in-text {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.description {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(45, 90, 74, 0.1);
    /* Subtle accent border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.badge-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.badge {
    width: 45px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--accent-soft);
    border-radius: 50%;
    /* Makes it a circle */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-glow 2s infinite;
}


/* Tooltip (Hidden by default) */

.tooltip {
    position: absolute;
    bottom: 110%;
    /* Sits above the badge */
    width: 200px;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}


/* The Hover State */

.badge-container:hover .badge {
    transform: scale(1.15);
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.3);
}

.badge-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(47, 120, 61, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}


/* Reveal each section */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}


/* Active state: Visible and in position */

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Staggered Delay for internal content */

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}


/*Index.html: pills */

.pill-links {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.pill {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
    text-decoration-color: var(--accent);
}