body {
    font-size: 16px;
    line-height: 1.65;
    color: #222;
    background-color: #ffffff;
    margin: 0;
}

/* =========================
   Navbar
   ========================= */

.navbar {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    margin-bottom: 0 !important;
}

.navbar-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.3px;
}

/* Hide default Quarto title block and remove top gap */
.quarto-title-block,
#title-block-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#quarto-content {
    padding-top: 0 !important;
}

main.content {
    max-width: 1200px;
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 3rem;
}

/* General headings */
h1,
h2,
h3 {
    font-weight: 600;
}

h2 {
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

/* =========================
   Homepage hero section
   ========================= */

.hero-section {
    position: relative;
    min-height: calc(100vh - 70px);
    padding: 3rem 2rem;
    overflow: hidden;

    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background-image: url("images/whitescliff.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to right,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(255, 255, 255, 0.72) 25%,
            rgba(255, 255, 255, 0.35) 48%,
            rgba(255, 255, 255, 0.08) 75%,
            rgba(255, 255, 255, 0.02) 100%);

    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-left: 3vw;
}

.hero-left {
    text-align: center;
    max-width: 760px;
    padding: 1.2rem 1.2rem;
    background: transparent;
}

.hero-left h1,
.hero-left h3,
.hero-subtitle,
.hero-description {
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
}

.profile-image {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.15rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.hero-left h1 {
    font-size: 2.35rem;
    line-height: 1.1;
    margin-top: 0.25rem;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.hero-left h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #444;
}

.hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.2rem;
    white-space: nowrap;
}

.hero-description {
    font-size: 0.96rem;
    line-height: 1.72;
    color: #444;
    margin: 0 auto 1.4rem auto;
    max-width: 560px;
    text-align: left;
}

/* =========================
   Hero buttons
   ========================= */

.hero-btn {
    margin: 0.55rem 0.35rem 0 0.35rem;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 178px;
    padding: 0.82rem 1.55rem;

    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.15px;
    text-decoration: none;

    border-radius: 999px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: #3f6287 !important;
    color: #ffffff !important;
    border: 1px solid rgba(63, 98, 135, 0.95) !important;
    box-shadow: 0 10px 22px rgba(63, 98, 135, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #355675 !important;
    border-color: #355675 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(53, 86, 117, 0.28);
}

.btn-secondary {
    background: rgba(215, 228, 238, 0.82) !important;
    color: #2b4054 !important;
    border: 1px solid rgba(93, 121, 148, 0.32) !important;
    box-shadow: 0 8px 18px rgba(45, 70, 95, 0.10);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(201, 219, 232, 0.95) !important;
    color: #203346 !important;
    border-color: rgba(74, 104, 132, 0.46) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(45, 70, 95, 0.15);
}

.btn-outline-dark {
    background: rgba(255, 255, 255, 0.48) !important;
    color: #2f3f4f !important;
    border: 1px solid rgba(70, 90, 110, 0.28) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(7px);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: rgba(255, 255, 255, 0.76) !important;
    color: #233241 !important;
    border-color: rgba(70, 90, 110, 0.42) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.09);
}

/* =========================
   Research interests marquee
   ========================= */

.interest-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    overflow: hidden;
    white-space: nowrap;

    background: rgba(238, 243, 247, 0.96);
    border-top: 1px solid rgba(120, 140, 155, 0.18);
    border-bottom: 1px solid rgba(120, 140, 155, 0.18);

    padding: 1.05rem 0;
}

.interest-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 25rem;

    animation: interest-marquee-scroll 38s linear infinite;
    will-change: transform;
}

.interest-line {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;

    font-size: 1.18rem;
    font-weight: 400;
    letter-spacing: 0.35px;
    color: #2d3e50;
    white-space: nowrap;
}

@keyframes interest-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 2rem));
    }
}

.interest-marquee:hover .interest-track {
    animation-play-state: paused;
}

/* =========================
   Homepage projects cards
   ========================= */

.home-projects-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4rem 4.5rem 4.8rem 4.5rem;

    background:
        linear-gradient(135deg,
            #eef3f7 0%,
            #dce8f0 45%,
            #c5d6e3 100%);

    color: #1f2a33;
}

.home-projects-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    margin-bottom: 2.8rem;
    color: #1f2a33;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    max-width: 1050px;
    margin: 0 auto;
}

.project-card {
    height: 270px;
    border-radius: 8px;
    overflow: hidden;
    background: #dbe6ee;
    box-shadow: 0 10px 24px rgba(30, 50, 70, 0.18);
}

.project-card a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.project-card:hover img {
    transform: scale(1.045);
    opacity: 0.92;
}

.project-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(245, 248, 250, 0.74);
    color: #1f2a33;
    text-align: center;

    padding: 0.9rem 1.2rem;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* =========================
   Beyond Work fan carousel
   ========================= */

.beyond-work-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 4.5rem 4.5rem 4.8rem 4.5rem;

    background:
        linear-gradient(135deg,
            #f8fbfd 0%,
            #eef4f8 48%,
            #dfeaf2 100%);

    color: #1f2a33;
}

.beyond-work-title {
    text-align: center;
    font-size: 2.15rem;
    font-weight: 500;
    letter-spacing: 0.7px;
    margin-bottom: 0.65rem;
    color: #1f2a33;
}

.beyond-work-intro {
    max-width: 760px;
    margin: 0 auto 2.8rem auto;
    text-align: center;
    color: #52616f;
    font-size: 1.02rem;
    line-height: 1.7;
}

.fan-carousel {
    position: relative;
    max-width: 980px;
    height: 430px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.fan-stage {
    position: relative;
    width: 720px;
    height: 390px;
}

.fan-card {
    position: absolute;
    top: 0;
    left: 50%;

    width: 300px;
    height: 380px;

    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);

    border-radius: 18px;
    border: 8px solid rgba(255, 255, 255, 0.92);

    box-shadow: 0 18px 38px rgba(30, 50, 70, 0.22);

    opacity: 0;
    transform: translateX(-50%) scale(0.75);
    transition:
        transform 0.55s ease,
        opacity 0.55s ease,
        filter 0.55s ease;

    filter: saturate(0.96);
}

.fan-card.active {
    opacity: 1;
    z-index: 5;
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
    filter: saturate(1.05);
}

.fan-card.left-1 {
    opacity: 0.92;
    z-index: 4;
    transform: translateX(-50%) translateX(-130px) translateY(22px) rotate(-10deg) scale(0.92);
}

.fan-card.left-2 {
    opacity: 0.72;
    z-index: 3;
    transform: translateX(-50%) translateX(-235px) translateY(55px) rotate(-18deg) scale(0.82);
}

.fan-card.right-1 {
    opacity: 0.92;
    z-index: 4;
    transform: translateX(-50%) translateX(130px) translateY(22px) rotate(10deg) scale(0.92);
}

.fan-card.right-2 {
    opacity: 0.72;
    z-index: 3;
    transform: translateX(-50%) translateX(235px) translateY(55px) rotate(18deg) scale(0.82);
}

.fan-card.hidden-card {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateX(-50%) translateY(80px) scale(0.7);
}

.fan-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(120, 140, 155, 0.28);

    background: rgba(255, 255, 255, 0.82);
    color: #2d3e50;

    font-size: 2rem;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 24px rgba(30, 50, 70, 0.12);
    transition: all 0.25s ease;
    z-index: 10;
}

.fan-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 30px rgba(30, 50, 70, 0.18);
}

.fan-btn-left {
    left: 1rem;
}

.fan-btn-right {
    right: 1rem;
}

.fan-caption {
    max-width: 620px;
    width: fit-content;
    margin: 0.85rem auto 0 auto;
    text-align: center;

    padding: 0.72rem 1.35rem;
    border-radius: 999px;

    background: rgba(255, 248, 242, 0.9);
    border: 1px solid rgba(180, 145, 115, 0.22);
    box-shadow: 0 10px 24px rgba(120, 90, 60, 0.08);

    color: #5a4638;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: normal;
}

.fan-hint {
    margin: 0.75rem auto 0 auto;
    text-align: center;
    color: #6d7c89;
    font-size: 0.9rem;
}

/* =========================
   Education & Skills section
   ========================= */

.education-skills-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 4.5rem 4.5rem 4.8rem 4.5rem;

    background:
        linear-gradient(135deg,
            #f8fbfd 0%,
            #eef4f8 48%,
            #dfeaf2 100%);

    color: #1f2a33;
}

.education-skills-title {
    text-align: center;
    font-size: 2.15rem;
    font-weight: 500;
    letter-spacing: 0.7px;
    margin-bottom: 0.65rem;
    color: #1f2a33;
}

.education-skills-intro {
    max-width: 760px;
    margin: 0 auto 2.9rem auto;
    text-align: center;
    color: #52616f;
    font-size: 1.02rem;
    line-height: 1.7;
}

.education-skills-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.15fr;
    gap: 1.7rem;
    max-width: 1120px;
    margin: 0 auto;
    align-items: stretch;
}

.education-card,
.skills-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(120, 140, 155, 0.22);
    border-radius: 18px;
    padding: 1.8rem 2rem;
    box-shadow: 0 14px 30px rgba(30, 50, 70, 0.08);
    backdrop-filter: blur(8px);
}

.education-card h2,
.skills-card h2 {
    margin-top: 0;
    margin-bottom: 1.45rem;
    font-size: 1.32rem;
    font-weight: 650;
    color: #1f2a33;
}

.education-entry {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(120, 140, 155, 0.16);
}

.education-entry:first-of-type {
    border-top: none;
    padding-top: 0;
}

.education-year {
    color: #6d7c89;
    font-size: 0.82rem;
    letter-spacing: 0.35px;
    line-height: 1.5;
    padding-top: 0.2rem;
}

.education-entry h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3e50;
}

.education-entry p {
    margin: 0;
    color: #52616f;
    line-height: 1.6;
}

.skill-block {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(120, 140, 155, 0.16);
}

.skill-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.skill-label {
    font-weight: 700;
    color: #1f2a33;
    font-size: 0.96rem;
    padding-top: 0.38rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-tags span {
    display: inline-block;
    padding: 0.34rem 0.76rem;
    border-radius: 999px;
    background: rgba(238, 243, 247, 0.9);
    color: #3f5368;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    border: 1px solid rgba(120, 140, 155, 0.2);
}

/* =========================
   About / Contact section
   ========================= */

.about-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.5rem 5rem 5rem 5rem;

    background:
        linear-gradient(135deg,
            #25313b 0%,
            #2f3c48 45%,
            #24313d 100%);

    color: #f1f1f1;
}

.about-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    margin-bottom: 3rem;
    color: #f5f5f5;
}

.about-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #e6e6e6;
    padding-right: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.48);
}

.about-contact {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    padding-left: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    color: #f1f1f1;
}

.contact-item a {
    color: #b8d7ff;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-icon {
    width: 2.2rem;
    min-width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.95rem;
    font-weight: 700;
    color: #25313b;
    background: #eef3f7;
}

/* =========================
   Footer
   ========================= */

.site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.7rem 4.5rem;
    background: #eef3f7;
    color: #65717d;

    font-size: 0.88rem;
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(120, 140, 155, 0.18);
}

.footer-left,
.footer-right {
    line-height: 1.5;
}

.footer-right {
    font-family: monospace;
    color: #7b8792;
}

/* =========================
   Projects detail page
   ========================= */

main.content h2 {
    margin-top: 2.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

main.content hr {
    display: none;
}

main.content h3 {
    font-size: 1.25rem;
    margin-top: 1.6rem;
}

main.content p {
    max-width: 850px;
}

main.content .btn {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}

/* =========================
   Project detail cards page
   ========================= */

.project-detail-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem 1rem;
}

.project-detail-title {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 2.2rem;
    color: #1f2a33;
}

.project-detail-card {
    background: #ffffff;
    border: 1px solid rgba(120, 140, 155, 0.22);
    border-radius: 14px;
    padding: 2rem 2.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 26px rgba(30, 50, 70, 0.08);
}

.project-detail-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.65rem;
    line-height: 1.35;
    color: #1f2a33;
}

.project-detail-card p {
    max-width: 850px;
    color: #333;
    line-height: 1.75;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.3rem;
}

.project-tags span {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef3f7;
    color: #3f5368;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    border: 1px solid rgba(120, 140, 155, 0.18);
}

.project-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.7rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: #3f6287;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(63, 98, 135, 0.18);
    transition: all 0.25s ease;
}

.project-link-button:hover {
    background: #355675;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(53, 86, 117, 0.24);
}

/* =========================
   Experience timeline page
   ========================= */

.experience-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 2.8rem 1rem 4.5rem 1rem;
}

.experience-title {
    font-size: 2.45rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #1f2a33;
}

.experience-intro {
    max-width: 760px;
    color: #52616f;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    margin-left: 1rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 105px;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(63, 98, 135, 0.15),
            rgba(63, 98, 135, 0.45),
            rgba(63, 98, 135, 0.15));
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2.2rem;
    margin-bottom: 2.2rem;
}

.timeline-year {
    position: relative;
    color: #3f6287;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.4px;
    padding-top: 1.1rem;
    text-align: right;
}

.timeline-year::after {
    content: "";
    position: absolute;
    right: -1.72rem;
    top: 1.25rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #3f6287;
    border: 3px solid #eef3f7;
    box-shadow: 0 0 0 4px rgba(63, 98, 135, 0.13);
    z-index: 2;
}

.timeline-card {
    background: #ffffff;
    border: 1px solid rgba(120, 140, 155, 0.22);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 26px rgba(30, 50, 70, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(30, 50, 70, 0.12);
}

.timeline-card h2 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.45rem;
    line-height: 1.35;
    color: #1f2a33;
    border-bottom: none;
}

.experience-meta {
    font-size: 0.95rem;
    color: #6a7885;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-card p {
    color: #333;
    line-height: 1.75;
    max-width: 850px;
    margin-bottom: 1rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.experience-tags span {
    display: inline-block;
    padding: 0.34rem 0.75rem;
    border-radius: 999px;
    background: #eef3f7;
    color: #3f5368;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    border: 1px solid rgba(120, 140, 155, 0.18);
}

/* =========================
   Mobile responsive
   ========================= */

@media (max-width: 900px) {
    .hero-section {
        min-height: auto;
        padding: 2.5rem 1.2rem;
        justify-content: center;
        background-position: center center;
    }

    .hero-bg-overlay {
        background:
            linear-gradient(to bottom,
                rgba(255, 255, 255, 0.82) 0%,
                rgba(255, 255, 255, 0.65) 55%,
                rgba(255, 255, 255, 0.35) 100%);
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-left {
        max-width: 100%;
    }

    .profile-image {
        width: 165px;
        height: 165px;
    }

    .hero-left h1 {
        font-size: 2.1rem;
    }

    .hero-left h3 {
        font-size: 1.05rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        white-space: normal;
    }

    .hero-description {
        text-align: center;
        font-size: 0.95rem;
    }

    .hero-btn {
        display: inline-flex;
        min-width: 210px;
        margin-top: 0.65rem;
    }

    .home-projects-section {
        padding: 3rem 2rem;
    }

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

    .project-card {
        height: 240px;
    }

    .education-skills-section {
        padding: 3rem 2rem;
    }

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

    .about-section {
        padding: 3.5rem 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .about-text {
        padding-right: 0;
        border-right: none;
        text-align: left;
    }

    .about-contact {
        padding-left: 0;
    }

    .site-footer {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
        padding: 1.5rem 1.5rem;
    }
}

@media (max-width: 800px) {
    .experience-page {
        padding: 2.4rem 1rem 3.5rem 1rem;
    }

    .timeline {
        margin-left: 0;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding-left: 2.2rem;
    }

    .timeline-year {
        text-align: left;
        padding-top: 0;
        font-size: 0.95rem;
    }

    .timeline-year::after {
        left: -2.02rem;
        right: auto;
        top: 0.2rem;
    }

    .timeline-card {
        padding: 1.45rem 1.35rem;
    }

    .timeline-card h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 650px) {
    .home-projects-section {
        padding: 2.5rem 1rem;
    }

    .project-card {
        height: 210px;
    }

    .project-card-overlay {
        font-size: 1.08rem;
    }

    .about-section {
        padding: 3rem 1.3rem;
    }

    .about-title {
        font-size: 1.9rem;
    }

    .about-text {
        font-size: 0.98rem;
    }

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

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline-dark {
        width: 100%;
        max-width: 260px;
    }

    .interest-line {
        font-size: 1rem;
        padding-right: 3rem;
    }

    .education-skills-section {
        padding: 2.6rem 1rem;
    }

    .education-skills-title {
        font-size: 1.9rem;
    }

    .education-card,
    .skills-card {
        padding: 1.45rem 1.35rem;
    }

    .education-entry,
    .skill-block {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .skill-label {
        padding-top: 0;
    }
}