.page {
    max-width: 800px;
    margin: 0 auto
}

body {
    background-color: #f5f3f0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme="dark"] {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] .Experience-title {
    color: #f0f0f0;
}

body[data-theme="dark"] p,
body[data-theme="dark"] .intro,
body[data-theme="dark"] .Experience-date,
body[data-theme="dark"] .Experience-description {
    color: #b0b0b0;
}

body[data-theme="dark"] a {
    color: #d0d0d0;
}

body[data-theme="dark"] .Experience-Row,
body[data-theme="dark"] .project-card {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .experience-block {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .tech-tag,
body[data-theme="dark"] .project-link {
    background-color: rgba(255, 255, 255, 0.08);
    color: #d0d0d0;
}

body[data-theme="dark"] .view-all-link {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.15);
    color: #d0d0d0;
}

body[data-theme="dark"] .Resume {
    border-color: #f0f0f0;
    color: #f0f0f0;
}

body[data-theme="dark"] .company-logo,
body[data-theme="dark"] .education-logo {
    background-color: rgba(255, 255, 255, 0.06);
    color: #f0f0f0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left {
    flex-wrap: wrap;
    row-gap: 10px;
    min-width: 0;
}

/* —— Site audio (fixed top-left, theme-aware) —— */
.site-audio {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
    z-index: 1200;
    width: min(344px, calc(100vw - 24px));
    max-width: 344px;
    min-width: 0;
    box-sizing: border-box;
    pointer-events: auto;
}

.site-audio > audio {
    display: none;
}

.site-audio-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 13px 11px;
    border-radius: 14px;
    background: linear-gradient(165deg, #ffffff 0%, #f4f1ed 100%);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
}

/* Top-right: tucks full player into CD + expand control */
.site-audio-minimize {
    position: absolute;
    top: 5px;
    right: 6px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.48);
    cursor: pointer;
}

.site-audio-minimize:hover {
    color: rgba(0, 0, 0, 0.85);
}

body[data-theme="dark"] .site-audio-minimize {
    color: rgba(255, 255, 255, 0.52);
}

body[data-theme="dark"] .site-audio-minimize:hover {
    color: rgba(255, 255, 255, 0.92);
}

.site-audio.is-collapsed .site-audio-minimize {
    display: none;
}

.site-audio:not(.is-collapsed) .site-audio-head {
    padding-right: 24px;
}

.site-audio-expanded {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

/* `hidden` must win over `display:flex` (otherwise full player stays visible above the mini CD). */
.site-audio-expanded[hidden] {
    display: none !important;
}

.site-audio-collapsed {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 2px 2px;
}

.site-audio-collapsed[hidden] {
    display: none !important;
}

.site-audio.is-collapsed {
    width: auto;
    max-width: none;
    min-width: 0;
}

.site-audio.is-collapsed .site-audio-shell {
    padding: 8px 10px;
    align-items: center;
    width: fit-content;
    max-width: none;
}

.site-audio-expand {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.55);
}

body[data-theme="dark"] .site-audio-expand {
    color: rgba(255, 255, 255, 0.65);
}

.site-audio-mini-disc {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: conic-gradient(from 0deg, #e8e4df, #cfc8c0, #e8e4df);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.07),
        0 2px 10px rgba(0, 0, 0, 0.12);
}

body[data-theme="dark"] .site-audio-mini-disc {
    background: conic-gradient(from 0deg, #3a3a3a, #252525, #3a3a3a);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.4);
}

.site-audio-mini-disc::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: linear-gradient(165deg, #f4f1ed 0%, #ddd8d2 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
    z-index: 1;
    pointer-events: none;
}

body[data-theme="dark"] .site-audio-mini-disc::after {
    background: linear-gradient(165deg, #3d3d3d 0%, #1e1e1e 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.site-audio-mini-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-audio-mini-cover[hidden] {
    display: none !important;
}

.site-audio.is-collapsed.is-audio-playing .site-audio-mini-disc {
    animation: site-audio-cd-spin 10s linear infinite;
}

@keyframes site-audio-cd-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-audio.is-collapsed.is-audio-playing .site-audio-mini-disc {
        animation: none;
    }
}

body[data-theme="dark"] .site-audio-shell {
    background: linear-gradient(165deg, #333333 0%, #232323 100%);
    color: #f2f2f2;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Cover + transport stacked; frees full text column for seek + volume */
.site-audio-left-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.site-audio-art {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.site-audio-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.site-audio-art.has-cover .site-audio-art-fallback {
    display: none;
}

body[data-theme="dark"] .site-audio-art {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.site-audio-body {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(3.65rem, auto) auto;
    gap: 8px;
    align-content: start;
}

/* Track meta: full width, wraps — min row height keeps sliders from jumping */
.site-audio-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    align-self: stretch;
}

.site-audio-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: -0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.site-audio-artist {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.52);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body[data-theme="dark"] .site-audio-artist {
    color: rgba(255, 255, 255, 0.58);
}

/* Under title: current · seek · end (flex-grow) | volume */
.site-audio-playback {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.site-audio-transport {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.site-audio-seek-inline {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    margin-inline-start: -1px;
    min-height: 22px;
    overflow-x: visible;
}

/* Thumb overflow clipped here only so end-time text is not cut off. */
.site-audio-seek-track {
    flex: 1 1 0;
    min-width: 52px;
    max-width: none;
    width: auto;
    box-sizing: border-box;
    padding-inline: 3px 1px;
    overflow-x: clip;
}

.site-audio-seek-track input[type="range"] {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 18px;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    accent-color: #333;
}

.site-audio-seek-track input[type="range"]:focus {
    outline: none;
}

.site-audio-seek-track input[type="range"]:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.65);
    outline-offset: 2px;
    border-radius: 4px;
}

.site-audio-seek-track input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.16);
}

.site-audio-seek-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 9px;
    height: 9px;
    margin-top: -3px;
    border-radius: 50%;
    background: #1a1a1a;
    border: none;
    box-sizing: border-box;
}

.site-audio-seek-track input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.16);
}

.site-audio-seek-track input[type="range"]::-moz-range-thumb {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 50%;
    background: #1a1a1a;
    box-sizing: border-box;
}

body[data-theme="dark"] .site-audio-seek-track input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.22);
}

body[data-theme="dark"] .site-audio-seek-track input[type="range"]::-webkit-slider-thumb {
    background: #f0f0f0;
}

body[data-theme="dark"] .site-audio-seek-track input[type="range"]::-moz-range-track {
    background: rgba(255, 255, 255, 0.22);
}

body[data-theme="dark"] .site-audio-seek-track input[type="range"]::-moz-range-thumb {
    background: #f0f0f0;
}

.site-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(0, 0, 0, 0.72);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

body[data-theme="dark"] .site-audio-btn {
    color: rgba(255, 255, 255, 0.88);
}

.site-audio-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #111;
}

body[data-theme="dark"] .site-audio-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-audio-btn:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.85);
    outline-offset: 2px;
}

.site-audio-btn-play {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fafafa;
}

body[data-theme="dark"] .site-audio-btn-play {
    background: #f0f0f0;
    color: #141414;
}

.site-audio-btn-play:hover {
    background: #000;
    color: #fff;
}

body[data-theme="dark"] .site-audio-btn-play:hover {
    background: #fff;
    color: #000;
}

.site-audio-btn-play .site-audio-icon-pause {
    display: none;
}

.site-audio-btn-play.is-playing .site-audio-icon-play {
    display: none;
}

.site-audio-btn-play.is-playing .site-audio-icon-pause {
    display: block;
}

.site-audio-volume {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
    padding-inline-start: 0;
    margin-inline-start: 0;
    position: relative;
    z-index: 2;
}

.site-audio-btn-mute {
    width: 22px;
    height: 22px;
}

.site-audio-vol-iconwrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.site-audio-vol-iconwrap .site-audio-vol-svg {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
}

.site-audio-vol-iconwrap[data-volume-state="low"] .site-audio-vol-svg[data-vol="low"],
.site-audio-vol-iconwrap[data-volume-state="mid"] .site-audio-vol-svg[data-vol="mid"],
.site-audio-vol-iconwrap[data-volume-state="high"] .site-audio-vol-svg[data-vol="high"],
.site-audio-vol-iconwrap[data-volume-state="mute"] .site-audio-vol-svg[data-vol="mute"] {
    display: block;
}

.site-audio-volume input[type="range"] {
    width: 58px;
    flex-shrink: 0;
    height: 3px;
    accent-color: #333;
    cursor: pointer;
    box-sizing: border-box;
}

body[data-theme="dark"] .site-audio-volume input[type="range"] {
    accent-color: #e8e8e8;
}

.site-audio-seek-inline .site-audio-time {
    font-size: 0.58rem;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    min-width: 2.05rem;
    width: auto;
    text-align: right;
}

.site-audio-seek-inline .site-audio-time-end {
    font-size: 0.58rem;
    font-variant-numeric: tabular-nums;
    color: rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    min-width: 2.35rem;
    width: auto;
    text-align: left;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

body[data-theme="dark"] .site-audio-seek-inline .site-audio-time,
body[data-theme="dark"] .site-audio-seek-inline .site-audio-time-end {
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 420px) {
    .site-audio-seek-inline .site-audio-time-end {
        display: none;
    }

    .site-audio-seek-track {
        min-width: 40px;
    }

    .site-audio-body {
        grid-template-rows: minmax(3.35rem, auto) auto;
    }
}

@media (max-width: 360px) {
    .site-audio-volume input[type="range"] {
        width: 44px;
    }
}

@media (max-width: 340px) {
    .site-audio-volume input[type="range"] {
        display: none;
    }
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #000;
}

body[data-theme="dark"] .nav-link {
    color: #d0d0d0;
}

body[data-theme="dark"] .nav-link:hover {
    color: #fff;
}

.header-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #333;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-social:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

body[data-theme="dark"] .header-social {
    color: #d0d0d0;
}

body[data-theme="dark"] .header-social:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-email {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.header-email:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

body[data-theme="dark"] .header-email {
    color: #d0d0d0;
}

body[data-theme="dark"] .header-email:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-email .copied {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(33, 32, 32, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.header-resume {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.header-resume:hover {
    background-color: #000;
    transform: translateY(-2px);
}

body[data-theme="dark"] .header-resume {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

body[data-theme="dark"] .header-resume:hover {
    background-color: #fff;
}

.theme-toggle {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

body[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

body[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

body[data-theme="dark"] .sun-icon {
    display: none;
}

body[data-theme="dark"] .moon-icon {
    display: block;
}

/* Visually hidden (screen-reader only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
}

.hero-background {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 16px 0;
    font-size: 2.5rem;
    font-weight: 600;
}

.profile-info .intro {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.profile-info .intro a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid #667eea;
    transition: all 0.2s ease;
}

.profile-info .intro a:hover {
    color: #5568d3;
    border-bottom-color: #5568d3;
    background-color: rgba(102, 126, 234, 0.05);
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 3px;
}

body[data-theme="dark"] .profile-info .intro {
    color: #b0b0b0;
}

body[data-theme="dark"] .profile-info .intro a {
    color: #8b9aff;
    border-bottom-color: #8b9aff;
}

body[data-theme="dark"] .profile-info .intro a:hover {
    color: #a5b3ff;
    border-bottom-color: #a5b3ff;
    background-color: rgba(139, 154, 255, 0.1);
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-background {
        height: 180px;
    }
}

.pfp {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    background-color: #f2eeea;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .pfp {
    border-color: #2a2a2a;
    background-color: #252525;
}

h2 {
    text-align: left;
}

.footer-email .copied {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(33, 32, 32, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.DocFlow {
    width: 200px;
    height: 200px;
    text-align: center;
}

footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.footer-content>p {
    justify-self: start;
}

#otu-webring {
    justify-self: start;
    margin-left: 20px;
}

.otu-logo {
    opacity: 0.6;
    filter: brightness(0) invert(0.3);
}

body[data-theme="dark"] .otu-logo {
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

.webring-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.webring-nav:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

body[data-theme="dark"] .webring-nav {
    color: #999;
}

body[data-theme="dark"] .webring-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fafafa;
}

.footer-content>.footer-links {
    justify-self: end;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #666;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

body[data-theme="dark"] .footer-social {
    color: #999;
}

body[data-theme="dark"] .footer-social:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #d0d0d0;
}

.footer-text {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

body[data-theme="dark"] .footer-text {
    color: #999;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.footer-email:hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="dark"] .footer-email {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

body[data-theme="dark"] .footer-email:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-content>p {
        justify-self: center;
    }

    .footer-content>.footer-links {
        justify-self: center;
    }
}

.experience-education-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .experience-education-wrapper {
        grid-template-columns: 1fr;
    }
}

#Experience,
#Education {
    margin: 0;
}

.experience-block {
    background-color: #fcfbfa;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.Experience-Row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.experience-clickable {
    cursor: pointer;
    border-radius: 10px;
    padding: 12px;
    margin-left: -12px;
    margin-right: -12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.experience-clickable:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

body[data-theme="dark"] .experience-clickable:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.experience-clickable:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.7);
    outline-offset: 2px;
}

.Experience-Row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Modal detail nodes follow the rows in #Experience, so the last row is never :last-child */
#Experience .experience-block > .Experience-Row:not(:has(+ .Experience-Row)) {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#Education .Experience-Row {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Flex: let the text column use full width in each row */
#Experience .Experience-content {
    min-width: 0;
}

/* Slightly smaller bios so short lines (e.g. Shopify) fit in the narrower experience column without changing the education column */
#Experience .Experience-description {
    font-size: 0.875rem;
}

/* Experience Modal */
.experience-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 20px 48px;
    -webkit-overflow-scrolling: touch;
}

.experience-modal[aria-hidden="false"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.experience-modal-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
    background-color: #fcfbfa;
    border-radius: 16px;
    padding: 40px 44px 40px 44px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

body[data-theme="dark"] .experience-modal-content {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.experience-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.experience-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

body[data-theme="dark"] .experience-modal-close {
    color: #b0b0b0;
}

body[data-theme="dark"] .experience-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.experience-modal-dynamic {
    padding-right: 36px;
}

.experience-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

body[data-theme="dark"] .experience-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.experience-modal-logo-wrap {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f0ebe6 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body[data-theme="dark"] .experience-modal-logo-wrap {
    background: linear-gradient(165deg, #383838 0%, #2e2e2e 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.experience-modal-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.experience-modal-header-text {
    min-width: 0;
    flex: 1;
}

.experience-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.experience-modal-title-row .experience-modal-title {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.experience-modal-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #444;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        transform 0.15s ease;
}

.experience-modal-external:hover {
    color: #333;
    background-color: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.35);
    transform: translateY(-1px);
}

.experience-modal-external:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.75);
    outline-offset: 2px;
}

body[data-theme="dark"] .experience-modal-external {
    color: #c8c8c8;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .experience-modal-external:hover {
    color: #fff;
    background-color: rgba(102, 126, 234, 0.22);
    border-color: rgba(139, 154, 255, 0.45);
}

.experience-modal-external-icon {
    display: block;
}

.experience-modal-title {
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1.2;
}

body[data-theme="dark"] .experience-modal-title {
    color: #f5f5f5;
}

.experience-modal-role {
    margin: 0 0 12px 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    color: #555;
}

body[data-theme="dark"] .experience-modal-role {
    color: #b8b8b8;
}

.experience-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.8125rem;
    color: #6e6e6e;
    font-weight: 500;
}

body[data-theme="dark"] .experience-modal-meta {
    color: #9a9a9a;
}

.experience-modal-subtitle {
    margin: 0 0 18px 0;
    color: #777;
    font-weight: 500;
}

body[data-theme="dark"] .experience-modal-subtitle {
    color: #999;
}

.experience-modal-body {
    margin-top: 22px;
    color: #3a3a3a;
    line-height: 1.7;
}

body[data-theme="dark"] .experience-modal-body {
    color: #d4d4d4;
}

.experience-modal-lead {
    margin: 0 0 22px 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
}

body[data-theme="dark"] .experience-modal-lead {
    color: #c8c8c8;
}

.experience-modal-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-modal-highlights li {
    margin: 0;
    padding: 14px 16px 14px 18px;
    border-left: 3px solid #667eea;
    border-radius: 0 12px 12px 0;
    background-color: rgba(102, 126, 234, 0.07);
    line-height: 1.65;
    font-size: 0.9375rem;
    color: #3a3a3a;
}

body[data-theme="dark"] .experience-modal-highlights li {
    background-color: rgba(102, 126, 234, 0.14);
    border-left-color: #8b9aff;
    color: #dedede;
}

.experience-modal-tech-block {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

body[data-theme="dark"] .experience-modal-tech-block {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.experience-modal-tech-heading {
    margin: 0 0 12px 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
}

body[data-theme="dark"] .experience-modal-tech-heading {
    color: #8c8c8c;
}

.experience-modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.experience-modal-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 11px;
    border-radius: 999px;
    color: #444;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

body[data-theme="dark"] .experience-modal-tag {
    color: #c8c8c8;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

body.experience-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .experience-modal-content {
        margin: 16px auto;
        padding: 28px 20px 28px 22px;
        border-radius: 14px;
    }

    .experience-modal-dynamic {
        padding-right: 28px;
    }

    .experience-modal-header {
        gap: 14px;
        padding-bottom: 18px;
    }

    .experience-modal-logo-wrap {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .experience-modal-logo {
        width: 38px;
        height: 38px;
    }

    .experience-modal-title {
        font-size: 1.3rem;
    }
}

.company-logo-container {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.company-logo {
    width: 72px;
    height: 72px;
    padding: 8px;
    background-color: transparent;
    border-radius: 50%;
    object-fit: contain;
}

.education-logo {
    width: 56px;
    height: 56px;
    padding: 8px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
}

/* Dropdown Section Inside Education Block */
.dropdown-section-inner {
    margin-top: 24px;
    padding-top: 0;
}

.dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

body[data-theme="dark"] .dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
}

.dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="dark"] .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.dropdown-toggle.active {
    background-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="dark"] .dropdown-toggle.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease;
}

.dropdown-content.open {
    max-height: 500px;
    padding-top: 20px;
}

.dropdown-content .Experience-Row {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.Experience-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding-top: 4px;
}

.Experience-date {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.Experience-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.Experience-role {
    margin: 4px 0 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: #555;
}

body[data-theme="dark"] .Experience-role {
    color: #b0b0b0;
}

.Experience-description {
    margin: 8px 0 0 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Projects Section */
#Projects {
    margin: 60px 0;
}


.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    font-family: Georgia, serif;
    margin: 0 0 12px 0;
    text-transform: lowercase;
    text-align: center;
}


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

.project-card {
    background-color: #fcfbfa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.project-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    padding: 4px 12px;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.project-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

.view-all-projects {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #fcfbfa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

.view-all-link svg {
    transition: transform 0.2s ease;
}

.view-all-link:hover svg {
    transform: translateX(2px);
}

/* Personal Interests Section */
#PersonalInterests {
    margin: 80px 0 60px 0;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }
}

.interest-card {
    background-color: #fcfbfa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

body[data-theme="dark"] .interest-card {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

.interest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.interest-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.interest-icon svg {
    color: #333;
}

body[data-theme="dark"] .interest-icon svg {
    color: #d0d0d0;
}

.spotify-icon-container svg {
    color: transparent;
    fill: #1DB954;
}

body[data-theme="dark"] .spotify-icon-container svg {
    color: transparent;
}

.anilist-home-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

body[data-theme="dark"] .anilist-home-icon {
    filter: brightness(1);
}

.interest-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

body[data-theme="dark"] .interest-title {
    color: #f0f0f0;
}

.interest-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

body[data-theme="dark"] .interest-description {
    color: #b0b0b0;
}

/* Personal Blog Section */
#PersonalBlog {
    margin: 60px 0 40px 0;
}

.blog-container {
    background-color: #fcfbfa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

body[data-theme="dark"] .blog-container {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

.blog-content {
    flex: 1;
}

.blog-title {
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    font-family: Georgia, serif;
    margin: 0 0 8px 0;
    text-transform: lowercase;
    color: #333;
}

body[data-theme="dark"] .blog-title {
    color: #f0f0f0;
}

.blog-description {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

body[data-theme="dark"] .blog-description {
    color: #b0b0b0;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.blog-link:hover {
    background-color: #000;
    transform: translateX(4px);
}

body[data-theme="dark"] .blog-link {
    background-color: #444;
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .blog-link:hover {
    background-color: #555;
}

.blog-link svg {
    transition: transform 0.3s ease;
}

.blog-link:hover svg {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

/* Blog Posts Container */
.blog-posts-container {
    max-width: 700px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post-preview {
    background-color: #fcfbfa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post-preview:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blog-post-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 12px 0 0 0;
}

body[data-theme="dark"] .blog-post-excerpt {
    color: #b0b0b0;
}

.blog-post {
    background-color: #fcfbfa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

body[data-theme="dark"] .blog-post-preview {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .blog-post-preview:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .blog-post {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .blog-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.blog-post-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .blog-post-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.blog-post-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

body[data-theme="dark"] .blog-post-title {
    color: #f0f0f0;
}

.blog-post-date {
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

body[data-theme="dark"] .blog-post-date {
    color: #999;
}

.blog-post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

body[data-theme="dark"] .blog-post-content {
    color: #d0d0d0;
}

.blog-post-content p {
    margin: 0 0 16px 0;
}

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

.blog-post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: #333;
}

body[data-theme="dark"] .blog-post-content h3 {
    color: #f0f0f0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #444;
}

body[data-theme="dark"] .blog-post-content ul,
body[data-theme="dark"] .blog-post-content ol {
    color: #d0d0d0;
}

.blog-post-content li {
    margin: 8px 0;
}

.blog-post-content a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-post-content a:hover {
    color: #764ba2;
}

body[data-theme="dark"] .blog-post-content a {
    color: #8b9aff;
}

body[data-theme="dark"] .blog-post-content a:hover {
    color: #a5b3ff;
}

/* Blog Modal */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.blog-modal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fcfbfa;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
}

.blog-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.blog-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

body[data-theme="dark"] .blog-modal-content {
    background-color: #2a2a2a;
}

body[data-theme="dark"] .blog-modal-close {
    color: #b0b0b0;
}

body[data-theme="dark"] .blog-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}

@media (max-width: 768px) {
    .blog-post-preview {
        padding: 24px 20px;
    }

    .blog-post-title {
        font-size: 1.4rem;
    }

    .blog-modal-content {
        padding: 24px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}