/* ==========================================================================
   DESIGN SYSTEM — Minimal Premium
   ========================================================================== */

/* --- Tokens --- */
:root {
    --surface: #FAFAF8;
    --surface-transparent: rgba(250, 250, 248, 0.85);
    --surface-raised: #FFFFFF;
    --surface-muted: #F5F3EF;

    --ink: #1A1A1A;
    --ink-secondary: #6B6B6B;
    --ink-tertiary: #9CA3AF;

    --accent: #B45309;
    --accent-soft: rgba(180, 83, 9, 0.08);
    --accent-hover: #92400E;

    --border: #E8E5E0;
    --border-light: #F0EDE8;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 100px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;

    --content-max: 680px;
    --page-max: 1080px;
    --section-gap: 96px;
}

[data-theme="dark"] {
    --surface: #121212;
    --surface-transparent: rgba(18, 18, 18, 0.85);
    --surface-raised: #1E1E1E;
    --surface-muted: #171717;

    --ink: #F5F5F0;
    --ink-secondary: #A1A1AA;
    --ink-tertiary: #71717A;

    --accent: #D97706;
    --accent-soft: rgba(217, 119, 6, 0.15);
    --accent-hover: #F59E0B;

    --border: #27272A;
    --border-light: #18181B;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.8);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    background: var(--surface);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; color: var(--ink); }

.container {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--surface-transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--duration) var(--ease);
}

.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
    letter-spacing: 0.02em;
}

.nav-links a i { font-size: 1.25rem; }

.nav-links a:hover {
    color: var(--ink);
    background: var(--accent-soft);
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    transform: scale(1.05);
}

.nav-cta {
    background: var(--ink) !important;
    color: var(--surface) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--accent-hover) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    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.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../../assets/images/about.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
}

.hero-overline {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink-tertiary);
    margin-bottom: 40px;
    letter-spacing: 0.04em;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--ink-secondary);
}

.hero-contact .dot {
    width: 3px;
    height: 3px;
    background: var(--ink-tertiary);
    border-radius: 50%;
    display: inline-block;
}

/* ==========================================================================
   HIGHLIGHTS STRIP
   ========================================================================== */
.highlights {
    padding: 0;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.highlights-strip {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.highlight-item {
    background: var(--surface-raised);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.highlight-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.highlight-item strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

.highlight-item span:not(.highlight-icon) {
    font-size: 0.78rem;
    color: var(--ink-tertiary);
    font-weight: 400;
}

/* ==========================================================================
   SECTION SYSTEM
   ========================================================================== */
.section {
    padding: var(--section-gap) 0;
}

.section--muted { background: var(--surface-muted); }

.section-header { margin-bottom: 48px; }

.overline {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-flex,
.skills-with-gif,
.edu-with-gif {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    flex-wrap: wrap;
}

.about-flex .about-content,
.skills-with-gif .skills-cloud {
    flex: 1 1 60%;
}

.edu-with-gif .edu-grid {
    flex: 1 1 60%;
}

.section-gif {
    flex: 0 0 200px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.section-gif img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0.88;
}

.about-content { max-width: 100%; }

.about-content p {
    color: var(--ink-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content p:last-child { margin-bottom: 0; }

.about-content strong { color: var(--ink); }

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.experience-list { max-width: 100%; }

.exp-body-with-gif {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.exp-body-with-gif .exp-body { flex: 1 1 60%; }
.exp-body-with-gif .section-gif { flex: 0 0 180px; margin-top: 8px; }

.exp-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 48px;
    border-left: 1px solid var(--border);
}

.exp-item:last-child { padding-bottom: 0; }

.exp-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
}

.exp-meta { margin-bottom: 8px; }

.exp-date {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}

.exp-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.exp-org {
    font-size: 0.85rem;
    color: var(--ink-tertiary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.exp-achievements {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.exp-achievements li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--ink-secondary);
    line-height: 1.75;
}

.exp-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: var(--content-max);
}

.skill-tag {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-secondary);
    padding: 8px 18px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all var(--duration) var(--ease);
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.skill-tag.accent {
    background: var(--accent-soft);
    border-color: rgba(180, 83, 9, 0.15);
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================================================
   EDUCATION
   ========================================================================== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: var(--content-max);
}

.edu-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.edu-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.edu-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.edu-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
}

.edu-institution {
    font-size: 0.82rem;
    color: var(--ink-tertiary);
    margin-bottom: 14px;
}

.edu-grade {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    margin-bottom: 16px;
}

.edu-coursework {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.edu-coursework span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-tertiary);
    padding: 4px 12px;
    background: var(--surface-muted);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
}

.edu-description {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   CERTIFICATIONS & LANGUAGES
   ========================================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 96px;
    align-items: start;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.cert-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cert-list strong { font-size: 0.92rem; }
.cert-list span { font-size: 0.82rem; color: var(--ink-tertiary); }

.lang-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.lang-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lang-name { font-weight: 600; font-size: 0.92rem; }
.lang-level { font-size: 0.82rem; color: var(--ink-tertiary); }

.traits-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.traits-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.traits-list span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-secondary);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all var(--duration) var(--ease);
}

.traits-list span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.traits-gif {
    flex-shrink: 0;
    margin-top: 40px;
}

.traits-gif img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--surface-raised);
    border-top: 1px solid var(--border-light);
    padding: 64px 0;
}

.footer-inner { max-width: var(--content-max); }

.footer-brand { margin-bottom: 32px; }

.footer-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
}

.footer-title {
    font-size: 0.85rem;
    color: var(--ink-secondary);
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--ink-secondary);
    transition: color var(--duration) var(--ease);
}

.footer-socials a:hover { color: var(--accent); }

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-contacts a,
.footer-contacts span {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    transition: color var(--duration) var(--ease);
}

.footer-contacts a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--ink-tertiary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.25);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible~.reveal.visible { transition-delay: 0.08s; }

/* ==========================================================================
   ACCESSIBILITY & SKIP LINK
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--surface);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 200;
    transition: top 0.25s var(--ease);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
}

.skip-link:focus { top: 16px; }

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   RESPONSIVE — 768px
   ========================================================================== */
@media (max-width: 768px) {
    :root { --section-gap: 64px; }

    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        background: var(--surface-raised);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform 0.3s var(--ease);
        gap: 4px;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { display: block; width: 100%; text-align: center; padding: 12px; }
    .nav-toggle { display: flex; }

    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero-name { font-size: clamp(2.2rem, 8vw, 3rem); }
    .hero-contact { flex-direction: column; gap: 8px; }
    .hero-contact .dot { display: none; }

    .highlights { margin-top: -24px; }
    .highlights-strip { grid-template-columns: 1fr 1fr; }

    .edu-grid { grid-template-columns: 1fr; }

    .certifications-grid { gap: 48px; }
    .traits-row { flex-direction: column; }
    .traits-gif { margin-top: 16px; }

    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================================================
   RESPONSIVE — 480px
   ========================================================================== */
@media (max-width: 480px) {
    .highlights-strip { grid-template-columns: 1fr; }

    .hero-name { font-size: 2rem; }
    .section-title { font-size: 1.4rem; }

    .footer-contacts { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   RESPONSIVE — 375px
   ========================================================================== */
@media (max-width: 375px) {
    .hero-name { font-size: 1.8rem; }
    .hero-contact { flex-direction: column; gap: 4px; }
    .hero-contact .dot { display: none; }
    .section-gif img { width: 120px; height: 120px; }
    .highlights-strip { grid-template-columns: 1fr; }
    .highlight-item { padding: 16px 20px; }
    .nav-logo { font-size: 0.95rem; }
    .nav-cta { padding: 6px 12px; font-size: 0.75rem; }
    .nav-actions { gap: 8px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .footer-contacts { flex-direction: column; gap: 8px; }
    .footer-socials { justify-content: center; }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    @page { margin: 1.5cm; size: A4; }

    .nav, .nav-toggle, .btn, .skip-link, .section-gif, .hero-bg-overlay, .theme-toggle, .footer-socials {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 10pt;
        line-height: 1.4;
    }

    .hero { min-height: auto; padding: 0; margin-bottom: 24px; }
    .hero::before { display: none; }
    .hero-name { font-size: 22pt; }
    .hero-overline { font-size: 10pt; color: #333; }

    .section { padding: 24px 0; page-break-inside: avoid; }
    .section--muted { background: transparent; }

    .highlights-strip { box-shadow: none; border: 1px solid #ddd; }
    .reveal { opacity: 1 !important; transform: none !important; }

    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }

    .footer { background: #fff; padding: 24px 0; border-top: 1px solid #ddd; }
}
