/* ══════════════════════════════════════
   Alexandra Andreea Ifrim — CV
   alexandraifrim.com
   ══════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
    --bg: #F6F2ED;
    --bg-alt: #EDE7DF;
    --text: #1A1A1A;
    --text-light: #5A5550;
    --accent: #8B6F4E;
    --accent-light: #B8A088;
    --accent-dark: #5E4A33;
    --white: #FFFFFF;
    --border: #D4C9BC;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-height: 72px;
    --section-max: 1000px;
}

/* ── DARK MODE ── */
.dark {
    --bg: #0F0F0F;
    --bg-alt: #1A1A1A;
    --text: #E8E4DF;
    --text-light: #9B948B;
    --accent: #C4A47A;
    --accent-light: #8B7A64;
    --accent-dark: #DFC9A8;
    --white: #1E1E1E;
    --border: #2E2A25;
}

/* Dark mode grain — lighter, more subtle */
.dark::after {
    opacity: 0.015;
}

/* Dark mode nav glass */
.dark .nav {
    background: rgba(15, 15, 15, 0.88);
    border-bottom-color: rgba(46, 42, 37, 0.5);
}

/* Dark mode cards */
.dark .edu-card {
    background-color: #181818;
    border-color: rgba(46, 42, 37, 0.6);
}

.dark .edu-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-light);
}

/* Dark mode skill tags */
.dark .skill-tag {
    background-color: #181818;
    border-color: var(--border);
}

.dark .skill-tag:hover {
    box-shadow: 0 4px 12px rgba(196, 164, 122, 0.08);
}

.dark .skill-tag.highlight {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #0F0F0F;
}

/* Dark mode contact buttons */
.dark .hero-contact a {
    border-color: var(--border);
}

.dark .hero-contact a:hover {
    box-shadow: 0 4px 15px rgba(196, 164, 122, 0.1);
}

/* Dark mode lang switch */
.dark .lang-switch {
    background-color: #1A1A1A;
    border-color: var(--border);
}

.dark .lang-btn.active {
    background-color: #2A2A2A;
    color: var(--accent-dark);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Dark mode footer */
.dark .footer {
    border-top-color: var(--border);
}

/* Dark mode timeline dot */
.dark .vol-item::before {
    border-color: var(--bg);
    box-shadow: 0 0 0 3px rgba(196, 164, 122, 0.12);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.08);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s ease;
}

.dark .theme-toggle svg {
    transform: rotate(180deg);
}

/* Sun icon hidden in light, visible in dark (and vice versa) */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
.dark .theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun  { display: block; }

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 9999;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* ── CURSOR GLOW (desktop) ── */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 111, 78, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.dark .cursor-glow {
    background: radial-gradient(circle, rgba(196, 164, 122, 0.06) 0%, transparent 70%);
}

/* ── PHOTO PARALLAX CONTAINER ── */
.hero-photo picture,
.about-hero-photo picture {
    overflow: hidden;
    border-radius: 16px;
}

.hero-photo img,
.about-hero-photo img {
    will-change: transform;
    transform: scale(1.04);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── GRAIN OVERLAY ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(246, 242, 237, 0.85);
    border-bottom: 1px solid rgba(212, 201, 188, 0.4);
    transition: padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    padding: 0.8rem 3rem;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.06);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 101;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logo:hover .logo-mark {
    background-color: var(--accent);
    color: var(--white);
}

.logo-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Nav right area */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switch */
.lang-switch {
    display: flex;
    background-color: var(--bg-alt);
    border-radius: 100px;
    padding: 3px;
    border: 1px solid var(--border);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border: none;
    background: none;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-light);
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lang-btn.active {
    background-color: var(--white);
    color: var(--accent-dark);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.lang-btn:hover:not(.active) {
    color: var(--accent);
}

/* Mobile menu button */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 101;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ══════════════════════════════════════
   HERO — SPLIT LAYOUT
   ══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
    max-width: 1060px;
    width: 100%;
}

.hero-text {
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-name {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.hero-name em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-contact a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 111, 78, 0.12);
}

/* ── Hero Photo ── */
.hero-photo {
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-photo picture {
    display: block;
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
    filter: grayscale(15%) contrast(1.03);
    transition: filter 0.5s ease;
}

.hero-photo img:hover {
    filter: grayscale(0%) contrast(1);
}

.hero-photo picture::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(139, 111, 78, 0.15);
    pointer-events: none;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeUp 0.8s 1s forwards;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s infinite;
}

/* ── Hero CTA ── */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.03em;
    transition: gap 0.3s ease, opacity 0.3s ease;
}

.hero-cta:hover {
    gap: 1rem;
    opacity: 0.8;
}

/* ══════════════════════════════════════
   SECTIONS (shared)
   ══════════════════════════════════════ */
section {
    padding: 6rem 3rem;
    max-width: var(--section-max);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.section-number {
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-light);
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

/* ══════════════════════════════════════
   EXPERIENCE
   ══════════════════════════════════════ */
.exp-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(212, 201, 188, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.exp-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.exp-meta {
    padding-top: 0.2rem;
}

.exp-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.exp-location {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.exp-role {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.exp-company {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.exp-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-tasks li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 1.2rem;
    position: relative;
}

.exp-tasks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 1px;
    background-color: var(--accent-light);
}

/* ══════════════════════════════════════
   EDUCATION
   ══════════════════════════════════════ */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.edu-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 201, 188, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.edu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-light);
}

.edu-year {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.edu-degree {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.edu-school {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ══════════════════════════════════════
   SKILLS
   ══════════════════════════════════════ */
.skills-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.skill-group-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-dark);
    margin-bottom: 1rem;
}

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

.skill-tag {
    padding: 0.5rem 1.2rem;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 111, 78, 0.1);
}

.skill-tag.highlight {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ══════════════════════════════════════
   VOLUNTEERING TIMELINE
   ══════════════════════════════════════ */
.vol-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.vol-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.vol-item {
    position: relative;
    padding-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.vol-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.vol-item::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 0.4rem;
    width: 9px;
    height: 9px;
    background-color: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(139, 111, 78, 0.15);
}

.vol-year {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.vol-role {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.vol-org {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.vol-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 4rem 3rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--section-max);
    margin: 0 auto;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-partner {
    margin-bottom: 1.2rem;
}

.footer-partner a {
    font-size: 0.78rem;
    color: var(--text-light);
    opacity: 0.5;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-partner a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-legal {
    font-size: 0.76rem;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-light);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-sep {
    opacity: 0.4;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.6;
}

.footer-credit {
    font-size: 0.7rem;
    color: var(--text-light);
    opacity: 0.35;
    margin-top: 0.6rem;
}

.footer-credit a {
    color: var(--text-light);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-credit a:hover {
    color: var(--accent);
    opacity: 1;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.1);
    }
}

/* ══════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════ */
.about-page {
    padding-top: var(--nav-height);
}

.nav-active {
    color: var(--accent) !important;
}

/* ── About Hero (editorial split) ── */
.about-hero {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
    padding: 3rem 3rem 4rem;
}

.about-hero-photo picture {
    display: block;
    position: relative;
}

.about-hero-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
    filter: grayscale(15%) contrast(1.03);
    transition: filter 0.5s ease;
}

.about-hero-photo img:hover {
    filter: grayscale(0%) contrast(1);
}

.about-hero-photo picture::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(139, 111, 78, 0.15);
    pointer-events: none;
}

.about-hero-caption {
    font-size: 0.72rem;
    color: var(--text-light);
    opacity: 0.6;
    margin-top: 0.8rem;
    font-style: italic;
}

.about-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

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

.about-lead {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ── Letter body ── */
.about-letter {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 3rem 3rem;
}

.about-section {
    margin: 0 0 2rem 0;
    padding: 0;
    max-width: none;
}

.about-section h2 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.about-section p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 0.7rem;
}

.about-section em {
    font-style: italic;
    color: var(--text);
}

/* ── CTA block ── */
.about-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.about-cta > p {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.about-cta-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.8rem;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.about-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 111, 78, 0.2);
}

.dark .about-btn {
    color: #0F0F0F;
}

.about-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.8rem;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    color: var(--text);
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.about-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}


/* ══════════════════════════════════════
   POLICY PAGE
   ══════════════════════════════════════ */
.policy-page {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 1rem;
}

.policy-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
}

.policy-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.policy-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.policy-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.policy-intro {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

.policy-section {
    margin: 0 0 1.4rem 0;
    padding: 0;
    max-width: none;
}

.policy-section h2 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.policy-section p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.policy-section a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(139, 111, 78, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease;
}

.policy-section a:hover {
    text-decoration-color: var(--accent);
}

.policy-list {
    padding-left: 0.8rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.3rem;
}

.policy-list li {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.65;
    position: relative;
    padding-left: 0.9rem;
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 1px;
    background-color: var(--accent-light);
}

.policy-back {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.policy-back a {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--accent);
    transition: opacity 0.3s ease;
}

.policy-back a:hover {
    opacity: 0.7;
}


/* ══════════════════════════════════════
   404 ERROR PAGE
   ══════════════════════════════════════ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-family: var(--serif);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 300;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: -0.5rem;
}

.error-title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.error-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.8rem;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.error-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.dark .error-btn {
    color: #0F0F0F;
}

/* ══════════════════════════════════════
   SITEMAP LIST
   ══════════════════════════════════════ */
.sitemap-list {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.sitemap-list li {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.65;
    padding-left: 1rem;
    position: relative;
}

.sitemap-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-size: 0.8rem;
}

.sitemap-list a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(139, 111, 78, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease;
}

.sitemap-list a:hover {
    text-decoration-color: var(--accent);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .exp-card,
    .edu-card,
    .vol-item {
        opacity: 1;
        transform: none;
    }

    .cursor-glow,
    .scroll-progress {
        display: none !important;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════ */
@media (max-width: 900px) {
    .section-title {
        font-size: 1.8rem;
    }

    .exp-card {
        grid-template-columns: 160px 1fr;
        gap: 1.5rem;
    }

    /* ── Mobile Nav ── */
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .nav-right {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 100;
    }

    .nav-right.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 0.12em;
        padding: 0.5rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-links a::after {
        display: none;
    }

    .lang-switch {
        margin-top: 0.5rem;
    }

    .lang-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle {
        margin-top: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ── Hero ── */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-photo {
        order: 0;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-contact {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
        min-height: 44px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 2rem 3rem;
    }

    .about-hero-photo {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-letter {
        padding: 0 2rem 2rem;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-name {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .hero-photo {
        max-width: 250px;
    }

    .hero-contact {
        flex-direction: column;
        align-items: center;
    }

    .hero-contact a {
        min-height: 44px;
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.6rem;
        white-space: normal;
    }

    .section-line {
        flex-basis: 100%;
        order: 3;
    }

    .exp-card {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 2rem 0;
    }

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

    .footer {
        padding: 3rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem 0.5rem;
    }

    .footer-credit {
        text-align: center;
    }

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

    .about-cta-links {
        flex-direction: column;
        align-items: center;
    }

    .about-btn,
    .about-btn-outline {
        min-height: 44px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .error-btn {
        min-height: 44px;
    }

    .about-hero {
        padding: 1.5rem 1.5rem 2rem;
    }

    .about-hero-photo {
        max-width: 260px;
    }

    .about-letter {
        padding: 0 1.5rem 2rem;
    }

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

    .about-section h2 {
        font-size: 1.15rem;
    }

    .about-section p {
        font-size: 0.88rem;
    }

    .sitemap-list li {
        padding: 0.35rem 0 0.35rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-sep {
        display: none;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .policy-content {
        padding: 0 1.5rem;
    }

    .policy-section {
        margin-bottom: 1.2rem;
    }
}

/* ══════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════ */
@media print {
    body::after {
        display: none;
    }

    .nav,
    .hero-scroll,
    .nav-mobile-toggle,
    .cursor-glow,
    .scroll-progress {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        padding: 1.5rem 0;
        break-inside: avoid;
    }

    .exp-card,
    .edu-card,
    .vol-item {
        opacity: 1;
        transform: none;
        break-inside: avoid;
    }

    .edu-card:hover {
        transform: none;
        box-shadow: none;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: var(--text-light);
    }

    .hero-contact a[href]::after {
        display: none;
    }
}
