/* =============================================
   Design System — Neo-Geometric Tech
   Colors: Amber #F58634 / Charcoal / Bone
   Typography: Space Grotesk + Inter
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    /* Light Theme */
    --bg-primary: #f5f0eb;
    --bg-secondary: #ebe5de;
    --bg-card: #ffffff;
    --bg-card-hover: #faf7f4;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-muted: #8a8a9e;
    --accent: #F58634;
    --accent-hover: #e07020;
    --accent-glow: rgba(245, 134, 52, 0.25);
    --accent-subtle: rgba(245, 134, 52, 0.08);
    --border: rgba(26, 26, 46, 0.1);
    --border-strong: rgba(26, 26, 46, 0.2);
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 8px 32px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.12);
    --header-bg: rgba(245, 240, 235, 0.85);
    --timeline-line: rgba(26, 26, 46, 0.12);
    --skill-bg: rgba(245, 134, 52, 0.08);
    --skill-border: rgba(245, 134, 52, 0.2);
    --stat-bg: rgba(245, 134, 52, 0.06);
}

[data-theme="dark"] {
    --bg-primary: #0d0d1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --text-primary: #f5f0eb;
    --text-secondary: #a8a8c0;
    --text-muted: #6a6a88;
    --accent: #F58634;
    --accent-hover: #ff9a4d;
    --accent-glow: rgba(245, 134, 52, 0.3);
    --accent-subtle: rgba(245, 134, 52, 0.1);
    --border: rgba(245, 240, 235, 0.06);
    --border-strong: rgba(245, 240, 235, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(13, 13, 26, 0.9);
    --timeline-line: rgba(245, 240, 235, 0.08);
    --skill-bg: rgba(245, 134, 52, 0.1);
    --skill-border: rgba(245, 134, 52, 0.25);
    --stat-bg: rgba(245, 134, 52, 0.08);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

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

.btn--sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    transition: transform 0.3s ease;
}

.header__logo:hover {
    transform: scale(1.05);
}

.logo__dot {
    color: var(--accent);
}

.header__nav {
    display: flex;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
}

.nav__link.active::after,
.nav__link:hover::after {
    transform: scaleX(1);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 6px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(15deg);
}

.theme-icon--moon {
    display: none;
}

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

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

/* Mobile Menu Toggle */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    padding: 10px;
}

.header__menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.header__menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.header__menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Language Switcher (hidden on desktop) */
.mobile-lang-switcher {
    display: none;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero__bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero__content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    gap: 80px;
}

.hero__greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero__name {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    margin-bottom: 16px;
    line-height: 1.05;
}

.hero__name--accent {
    color: var(--accent);
    display: inline-block;
}

.hero__typing {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    height: 2em;
    display: flex;
    align-items: center;
}

.typing__cursor {
    color: var(--accent);
    font-weight: 700;
    animation: blink 0.8s step-end infinite;
}

.hero__location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero__location svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Photo */
.hero__photo {
    position: relative;
    justify-self: center;
}

.hero__photo-frame {
    width: 340px;
    height: 400px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    position: relative;
    z-index: 2;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.9) contrast(1.05);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.hero__photo:hover .hero__img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1.1);
}

.hero__photo-accent {
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 2px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    z-index: 1;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.hero__photo:hover .hero__photo-accent {
    top: 12px;
    left: 12px;
    opacity: 0.7;
}

.hero__photo-dots {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.3;
    z-index: 0;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
    color: var(--accent);
}

/* --- Sections --- */
.section {
    padding: 100px 24px;
    position: relative;
}

.section--alt {
    background: var(--bg-secondary);
}

.section__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section__title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
}

.section__accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 48px;
    border-radius: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section__accent-line.revealed {
    width: 100px;
}

/* --- About --- */
.about__text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 48px;
}

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

.stat {
    text-align: center;
    padding: 32px 20px;
    background: var(--stat-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat__number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-line);
}

.timeline__item {
    position: relative;
    margin-bottom: 48px;
    padding-left: 32px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline__item:hover .timeline__dot {
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-glow);
}

.timeline__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 28px 32px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.timeline__card:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.timeline__role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline__company {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline__period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.03em;
}

.timeline__tasks {
    list-style: none;
}

.timeline__tasks li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline__tasks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 2px;
    background: var(--accent);
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 28px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.skill-category__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 2px;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 1.2rem;
}

.skill-category__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    background: var(--skill-bg);
    border: 1px solid var(--skill-border);
    border-radius: 2px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* --- Education --- */
.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 40px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.education-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.education__degree {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.education__institution {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.education__period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
}

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

.language-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.language-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.language__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.language__level {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.language__bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 0;
    overflow: hidden;
}

.language__bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.language__bar-fill.animated {
    /* Width set inline */
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 2px;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-item__icon {
    background: var(--accent);
    color: #fff;
}

.contact-item__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-item__value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-6px) rotate(-5deg);
    box-shadow: 0 12px 24px var(--accent-glow);
}

/* --- Footer --- */
.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* --- Animations --- */
@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }

    .hero__photo-frame {
        width: 280px;
        height: 340px;
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .header__nav.open {
        display: flex;
    }

    .header__menu-toggle {
        display: flex;
    }

    .lang-switcher {
        display: none;
    }

    .header__nav.open .mobile-lang-switcher {
        display: flex;
        gap: 8px;
        padding: 12px 0;
        border-top: 1px solid var(--border);
        margin-top: 8px;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__text {
        order: 2;
    }

    .hero__photo {
        order: 1;
        justify-self: center;
    }

    .hero__photo-frame {
        width: 220px;
        height: 260px;
    }

    .hero__photo-accent {
        display: none;
    }

    .hero__photo-dots {
        display: none;
    }

    .hero__name {
        font-size: 2.4rem;
    }

    .hero__typing {
        justify-content: center;
    }

    .hero__location {
        justify-content: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .section {
        padding: 64px 20px;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

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

    .timeline {
        padding-left: 24px;
    }

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

    .timeline__item {
        padding-left: 20px;
    }

    .timeline__dot {
        left: -24px;
    }

    .timeline__card {
        padding: 20px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

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

    .hero__typing {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Mobile lang switcher inside menu */
    .header__nav.open .mobile-lang-switcher {
        display: flex;
        gap: 8px;
        padding: 12px 0;
        border-top: 1px solid var(--border);
        margin-top: 8px;
    }
}

/* --- Reduced Motion --- */
@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Print --- */
@media print {

    .header,
    .hero__scroll-indicator,
    .hero__bg-accent,
    .hero__photo-accent,
    .hero__photo-dots,
    .hero__actions,
    .footer,
    .theme-toggle,
    .lang-switcher,
    .social-links,
    .header__menu-toggle {
        display: none !important;
    }

    body {
        font-size: 11pt;
        color: #000 !important;
        background: #fff !important;
        line-height: 1.5;
    }

    .hero {
        min-height: auto !important;
        padding: 20px 0 !important;
    }

    .hero__content {
        grid-template-columns: 80px 1fr !important;
        gap: 20px !important;
    }

    .hero__photo-frame {
        width: 80px !important;
        height: 80px !important;
        clip-path: none !important;
        border-radius: 50% !important;
    }

    .hero__name {
        font-size: 22pt !important;
    }

    .hero__typing {
        display: none;
    }

    .section {
        padding: 16px 0 !important;
    }

    .section--alt {
        background: transparent !important;
    }

    .section__title {
        font-size: 14pt !important;
    }

    .section__accent-line {
        margin-bottom: 12px !important;
    }

    .about__stats {
        display: none;
    }

    .timeline__card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        padding: 12px !important;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .skill-category {
        padding: 12px !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .skill-tag {
        font-size: 9pt;
    }

    .languages-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .language-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .contact-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        padding: 8px 12px !important;
    }

    .contact-item__icon {
        display: none;
    }

    .education-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}