/* ==========================================================================
 *  Base & CSS Variables (Theming)
 *  ========================================================================== */

:root {
    --bg-page: #fafaf9;          /* Tailwind stone-50 */
    --text-primary: #1c1917;     /* Tailwind stone-900 */
    --text-secondary: #57534e;   /* Tailwind stone-600 */
    --text-muted: #78716c;       /* Tailwind stone-500 */
    --text-subtle: #a8a29e;      /* Tailwind stone-400 */
    --text-body: #292524;        /* Tailwind stone-800 */
    --border-color: #e7e5e4;     /* Tailwind stone-200 */
    --border-subtle: #f5f5f4;    /* Tailwind stone-100 */
    --header-bg: rgba(250, 250, 249, 0.8);
    --header-border: rgba(231, 229, 228, 0.6);
    --selection-bg: #e7e5e4;
    --btn-border: #d6d3d1;       /* Tailwind stone-300 */
    --btn-primary-bg: #1c1917;
    --btn-primary-text: #fafaf9;
}

html.dark {
    --bg-page: #09090b;          /* Tailwind zinc-950 */
    --text-primary: #f4f4f5;     /* Tailwind zinc-100 */
    --text-secondary: #a1a1aa;   /* Tailwind zinc-400 */
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;      /* Tailwind zinc-500 */
    --text-body: #e4e4e7;        /* Tailwind zinc-200 */
    --border-color: #27272a;     /* Tailwind zinc-800 */
    --border-subtle: #18181b;    /* Tailwind zinc-900 */
    --header-bg: rgba(9, 9, 11, 0.8);
    --header-border: rgba(39, 39, 42, 0.6);
    --selection-bg: #27272a;
    --btn-border: #3f3f46;       /* Tailwind zinc-700 */
    --btn-primary-bg: #f4f4f5;
    --btn-primary-text: #18181b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background-color: var(--selection-bg);
}

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

/* ==========================================================================
 *  Header & Controls
 *  ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
}

.header-container {
    max-width: 64rem; /* 1024px / 5xl */
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

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

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--btn-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

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

/* ==========================================================================
 *  Page Layout & Sections
 *  ========================================================================== */

.page-container {
    max-width: 56rem; /* 896px / 4xl */
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    .page-container {
        padding: 5rem 1.5rem;
    }
}

.section-block {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-block {
        margin-bottom: 6rem;
    }
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
 *  Hero / Intro Section
 *  ========================================================================== */

.section-hero {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-hero {
        margin-bottom: 6rem;
    }
}

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hero-layout {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

.hero-name {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .hero-name {
        font-size: 3rem;
        line-height: 1;
    }
}

.hero-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--text-secondary);
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 1.25rem;
    }
}

.hero-contact {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-underlined:hover {
    text-decoration: underline;
}

.social-links {
    padding-top: 0.25rem;
    display: flex;
    gap: 1rem;
    font-size: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
 *  About Section
 *  ========================================================================== */

.about-text {
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 300;
    color: var(--text-body);
}

@media (min-width: 768px) {
    .about-text {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
 *  Timeline / Experience Section
 *  ========================================================================== */

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

.timeline-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .timeline-item {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 300;
}

@media (min-width: 768px) {
    .timeline-date {
        padding-top: 0.25rem;
    }
}

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

@media (min-width: 768px) {
    .timeline-content {
        grid-column: span 3 / span 3;
    }
}

.role-title {
    font-size: 1.125rem;
    font-weight: 500;
}

.role-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.bullet-list {
    list-style-type: disc;
    list-style-position: inside;
    color: var(--text-body);
    font-weight: 300;
    line-height: 1.625;
}

.bullet-list li {
    margin-bottom: 0.375rem;
}

/* ==========================================================================
 *  Two-Column Grid (Education & Languages)
 *  ========================================================================== */

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .two-column-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credential-title {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.language-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-body);
    font-weight: 300;
}

.language-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.language-level {
    color: var(--text-subtle);
}

/* ==========================================================================
 *  Skills Section
 *  ========================================================================== */

.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-body);
}

.skill-tag {
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
    font-weight: 300;
}

/* ==========================================================================
 *  Footer / CTA Section
 *  ========================================================================== */

.footer-cta {
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
}

.cta-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 300;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.icon-arrow {
    font-size: 10px;
}

/* ==========================================================================
 *  Print Adjustments
 *  ========================================================================== */

@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .no-print {
        display: none !important;
    }

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