:root {
    --bg-color-main: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #eef4f8;
    --text-primary: #182230;
    --text-secondary: #5c6978;
    --text-muted: #7b8794;
    --text-accent: #2563eb;
    --text-accent-alt: #0f766e;
    --border-color: #dfe6ee;
    --border-strong: #cbd5e1;
    --shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.08);
    --shadow-light: 0 8px 20px rgba(15, 23, 42, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-color-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.58;
    letter-spacing: 0;
}

body::selection {
    background: #dbeafe;
    color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

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

.highlight {
    color: var(--text-accent-alt);
    font-weight: 600;
}

.supervisor-link {
    color: var(--text-accent);
    font-weight: 700;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(223, 230, 238, 0.92);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.75rem;
    gap: 1rem;
}

.logo {
    flex: 0 0 auto;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.95rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a {
    white-space: nowrap;
}

.nav-links a.active {
    color: var(--text-accent);
    font-weight: 700;
}

.nav-btn {
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.34rem 0.7rem;
    color: var(--text-primary);
    background: #ffffff;
}

.nav-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    align-items: center;
    gap: 2.75rem;
    min-height: auto;
    padding: 1.15rem 0 0.85rem;
}

.hero-copy {
    max-width: 740px;
}

.greeting {
    margin-bottom: 0.35rem;
    color: var(--text-accent-alt);
    font-size: 0.88rem;
    font-weight: 700;
}

.name {
    max-width: 780px;
    margin-bottom: 0.4rem;
    font-size: 3.7rem;
}

.name-pronunciation-wrap {
    position: relative;
    display: inline-block;
    padding-right: 1.35rem;
}

.pronunciation-button {
    position: absolute;
    right: 0;
    bottom: 0.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 50%;
    padding: 0;
    appearance: none;
    background: #ffffff;
    color: var(--text-accent);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.pronunciation-button:hover,
.pronunciation-button:focus-visible,
.pronunciation-button.is-playing {
    border-color: rgba(37, 99, 235, 0.44);
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.pronunciation-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 3px;
}

.pronunciation-button svg {
    width: 0.82rem;
    height: 0.82rem;
    fill: currentColor;
}

.pronunciation-button svg path:nth-child(n+2) {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.title {
    max-width: 720px;
    margin-bottom: 0.55rem;
    color: #334155;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.32;
}

.bio {
    max-width: 720px;
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.email-link {
    gap: 0.45rem;
}

.email-link span {
    overflow-wrap: anywhere;
}

.email-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.primary-link {
    border: 1px solid var(--text-accent);
    background: var(--text-accent);
    color: #ffffff;
}

.primary-link:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

.secondary-link {
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--text-primary);
}

.secondary-link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

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

.social-icon {
    border-bottom: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.social-icon:hover {
    border-color: #93c5fd;
}

.related-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.related-links span {
    font-weight: 600;
}

.related-links a {
    border-bottom: 1px solid transparent;
    color: var(--text-secondary);
}

.related-links a:hover {
    border-color: #93c5fd;
}

.hero-portrait {
    justify-self: end;
    width: min(100%, 230px);
    aspect-ratio: 4 / 5;
    perspective: 900px;
}

.portrait-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    padding: 0;
    appearance: none;
    background: transparent;
    box-shadow: var(--shadow-soft);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transform-style: preserve-3d;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease;
}

.portrait-card:hover,
.portrait-card:focus-visible {
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.portrait-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 4px;
}

.hero-portrait.is-flipped .portrait-card {
    transform: rotateY(180deg);
}

.portrait-face {
    position: absolute;
    inset: 0;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-soft);
    backface-visibility: hidden;
}

.portrait-front img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    transform: scale(1.35);
    transform-origin: center 18%;
}

.portrait-back {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.72rem;
    padding: 1.15rem;
    background: linear-gradient(145deg, #f8fbff 0%, #eaf4f2 100%);
    color: var(--text-primary);
    transform: rotateY(180deg);
}

.fun-facts-title {
    color: var(--text-accent-alt);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.fun-fact {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.section-padding {
    padding: 1.65rem 0;
    scroll-margin-top: 76px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 1.38rem;
}

.section-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border-color);
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading-row .section-title {
    flex: 1;
    margin-bottom: 0;
}

.section-more-link {
    flex: 0 0 auto;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.36rem 0.7rem;
    background: #ffffff;
    color: var(--text-accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.section-more-link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.education-experience-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.education-experience-layout > .section-padding {
    flex: 1 1 0;
    min-width: 0;
}

.glass-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-light);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.glass-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

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

.timeline-item {
    padding: 1.1rem 1.25rem;
}

.experience-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.8rem;
}

.experience-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.company-logo {
    display: block;
    flex: 0 0 auto;
}

.microsoft-logo {
    width: 29px;
    height: 29px;
}

.oracle-logo {
    width: 40px;
    height: auto;
    fill: #c74634;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.timeline-header h4 {
    font-size: 1.02rem;
}

.date {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: right;
}

.organization {
    margin-bottom: 0.6rem;
    color: var(--text-accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.duties {
    display: grid;
    gap: 0.3rem;
    padding-left: 1.05rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.duties li::marker {
    color: var(--text-accent-alt);
}

.news-list {
    display: grid;
    gap: 0.75rem;
}

.news-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: baseline;
    padding: 0.95rem 1.1rem;
}

.news-date {
    color: var(--text-accent-alt);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.news-item strong {
    color: var(--text-primary);
}

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

.pub-card {
    display: block;
    padding: 1.05rem;
    color: inherit;
}

.pub-card h4 {
    margin-bottom: 0.55rem;
    font-size: 1rem;
    transition: color 180ms ease;
}

.pub-card:hover h4 {
    color: var(--text-accent);
}

.authors {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.conference {
    color: var(--text-accent);
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 700;
}

.ranking-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.rank-badge {
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    padding: 0.2rem 0.52rem;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.rank-muted {
    border-color: var(--border-color);
    background: var(--surface-soft);
    color: var(--text-muted);
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 0.95rem;
}

.project-card,
.skills-card {
    padding: 1.1rem;
}

.project-card {
    display: block;
    color: inherit;
}

.project-card:hover {
    color: inherit;
}

.project-card:hover h4 {
    color: var(--text-accent);
}

.project-header h4 {
    font-size: 1rem;
}

.project-desc {
    margin-top: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skill-category h5 {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
}

.mt-15 {
    margin-top: 1rem;
}

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

.tag {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    padding: 0.26rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.blog-main {
    padding-top: 1.2rem;
}

.blog-hero {
    display: grid;
    gap: 0.75rem;
    padding: 1.35rem 0 0.8rem;
}

.back-link {
    width: fit-content;
    border-bottom: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 700;
}

.back-link:hover {
    border-color: #93c5fd;
}

.blog-title {
    max-width: 760px;
    font-size: 3.2rem;
}

.blog-intro {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.blog-list {
    display: grid;
    gap: 0.75rem;
}

.blog-controls {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding: 1rem;
}

.blog-search-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.blog-search {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.72rem 0.85rem;
    background: #ffffff;
    color: var(--text-primary);
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.blog-search:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.blog-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-filter {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    appearance: none;
    background: #ffffff;
    color: #1e40af;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tag-filter:hover,
.tag-filter:focus-visible,
.tag-filter.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--text-accent);
}

.tag-filter:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.blog-result-count {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.blog-card,
.blog-empty {
    padding: 1.15rem;
}

.blog-card {
    display: block;
    color: inherit;
}

.blog-card[hidden] {
    display: none;
}

.blog-card:hover h3 {
    color: var(--text-accent);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0.6rem;
    color: var(--text-accent-alt);
    font-size: 0.82rem;
    font-weight: 800;
}

.blog-card h3,
.blog-empty h3 {
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
}

.blog-card p,
.blog-empty p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.85rem;
}

.blog-read-more {
    display: inline-block;
    margin-top: 0.85rem;
    color: var(--text-accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.post-main {
    max-width: 880px;
}

.post-article {
    padding: 1.4rem;
}

.post-header {
    margin-bottom: 1.1rem;
}

.post-title {
    margin: 0.55rem 0;
    font-size: 2.5rem;
}

.post-summary {
    color: var(--text-secondary);
    font-size: 1rem;
}

.post-content {
    display: grid;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.post-content h2 {
    margin-top: 0.4rem;
    font-size: 1.28rem;
}

.post-content ul {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.2rem;
}

.post-content ol {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.2rem;
}

.post-content strong {
    color: var(--text-primary);
}

.post-callout {
    border-left: 4px solid var(--text-accent);
    border-radius: 0 8px 8px 0;
    padding: 0.95rem 1rem;
    background: #eff6ff;
    color: #1e3a5f;
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

.post-callout-conclusion {
    border-left-color: var(--text-accent-alt);
    background: #ecfdf5;
}

.post-hashtags {
    color: var(--text-accent);
    font-size: 0.84rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.verification-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.verification-chain span {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.58rem 0.68rem;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.verification-chain b {
    color: var(--text-accent-alt);
}

.post-table-wrap {
    overflow-x: auto;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.88rem;
}

.post-table th,
.post-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.68rem 0.72rem;
    text-align: left;
    vertical-align: top;
}

.post-table th {
    color: var(--text-primary);
    font-weight: 800;
}

.post-table td {
    color: var(--text-secondary);
}

.post-table tr:last-child th,
.post-table tr:last-child td {
    border-bottom: 0;
}

.post-code {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.84rem;
    line-height: 1.5;
}

.post-code code {
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

.post-figure {
    margin: 0.35rem 0 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
}

.post-figure figcaption {
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.pipeline-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.pipeline-step {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.72rem;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

.pipeline-arrow {
    color: var(--text-accent-alt);
    font-weight: 800;
}

.timeline-visual,
.parallel-visual {
    display: grid;
    gap: 0.65rem;
}

.timeline-step,
.parallel-lane {
    display: grid;
    gap: 0.18rem;
    border: 1px solid #d9e5ee;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f8fbff;
}

.timeline-step span,
.parallel-lane span {
    color: var(--text-accent-alt);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-step strong,
.parallel-lane strong {
    color: var(--text-primary);
    font-size: 0.94rem;
}

.timeline-step em,
.parallel-lane em {
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-style: normal;
}

.timeline-visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.parallel-visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.post-nav-link {
    display: grid;
    gap: 0.05rem;
    color: var(--text-primary);
}

.post-nav-link span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.post-nav-link strong {
    font-size: 0.86rem;
}

.post-nav-link:not(.disabled):hover strong {
    color: var(--text-accent);
}

.post-nav-link.disabled {
    color: var(--text-muted);
}

.post-nav-link:last-child {
    text-align: right;
}

footer {
    margin-top: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 1.65rem;
        min-height: auto;
        padding: 1.8rem 0 1.4rem;
    }

    .hero-portrait {
        justify-self: start;
        width: min(100%, 210px);
    }

    .name {
        font-size: 3rem;
    }

    .blog-title {
        font-size: 2.7rem;
    }

    .post-title {
        font-size: 2.15rem;
    }

    .pipeline-visual {
        grid-template-columns: 1fr;
    }

    .timeline-visual,
    .parallel-visual {
        grid-template-columns: 1fr;
    }

    .pipeline-arrow {
        text-align: center;
        transform: rotate(90deg);
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-content {
        justify-content: center;
        align-items: center;
        padding: 0.7rem 1rem;
        gap: 0.55rem 0.75rem;
    }

    .logo {
        flex: 1 1 100%;
        text-align: center;
    }

    .nav-links {
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.45rem 0.7rem;
    }

    .hero {
        padding-top: 0.9rem;
        row-gap: 0;
    }

    .hero-copy {
        display: contents;
    }

    .greeting {
        order: 1;
    }

    .name {
        order: 2;
    }

    #pronunciation-audio {
        order: 3;
    }

    .title {
        order: 4;
    }

    .bio {
        order: 5;
    }

    .hero-portrait {
        display: block;
        order: 6;
        justify-self: center;
        width: min(68vw, 210px);
        margin: 0.1rem auto 0.85rem;
    }

    .hero-actions {
        order: 7;
    }

    .social-links {
        order: 8;
    }

    .name {
        font-size: 2.45rem;
    }

    .title {
        font-size: 1.08rem;
    }

    .section-padding {
        padding: 1.45rem 0;
    }

    .section-title {
        font-size: 1.22rem;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .section-more-link {
        width: fit-content;
    }

    .education-experience-layout {
        flex-direction: column;
        gap: 0;
    }

    .education-experience-layout > .section-padding {
        width: 100%;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.35rem;
    }

    .experience-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.7rem;
    }

    .experience-logo {
        width: 42px;
        height: 42px;
    }

    .microsoft-logo {
        width: 26px;
        height: 26px;
    }

    .oracle-logo {
        width: 37px;
    }

    .date {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.1rem;
    }

    .blog-title {
        font-size: 2.15rem;
    }

    .post-title {
        font-size: 1.85rem;
    }

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

    .primary-link,
    .secondary-link {
        width: 100%;
    }

    .hero-portrait {
        width: 100%;
        max-width: 200px;
    }

    .timeline-item,
    .project-card,
    .skills-card,
    .pub-card {
        padding: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
