/* Minimalist Monochrome Theme */
:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #e5e5e5;
    --accent-color: #000000;
    --bg-light: #f9f9f9;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.2s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0b0f19;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #1e293b;
        --accent-color: #ffffff;
        --bg-light: #131a28;
    }
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #e5e5e5;
    --accent-color: #000000;
    --bg-light: #f9f9f9;
}

[data-theme="dark"] {
    --bg-color: #0b0f19;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
    --accent-color: #ffffff;
    --bg-light: #131a28;
}



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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Nav */
.app-header {
    position: sticky;
    top: 0;
    background-color: rgba(var(--bg-color), 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
    white-space: nowrap;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary, .nav-links a.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

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

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.btn-outline:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed);
}

.theme-toggle:hover {
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Icon Toggling logic */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun-icon { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .moon-icon { display: none; }
}

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

[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: block; }

/* Hero */
.hero-section {
    padding: 8rem 0 6rem;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Section */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    transition: transform var(--transition-speed) ease;
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-primary);
    border: 2px solid var(--bg-color);
}

.role-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.role-duration {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.role-achievements {
    list-style-position: outside;
    margin-left: 1.25rem;
    color: var(--text-secondary);
}

.role-achievements li {
    margin-bottom: 0.75rem;
}
.role-achievements li:last-child {
    margin-bottom: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.skill-category p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.skill-category {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.skill-category:hover {
    transform: translateY(-2px);
}

/* Contact */
.contact-card {
    border: 1px solid var(--border-color);
    padding: 4rem 3rem;
    border-radius: 8px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.contact-card .section-title {
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.contact-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-link:hover {
    color: var(--text-secondary);
}

/* Footer */
.app-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    .hero-section {
        padding: 4rem 0 3rem;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-links {
        display: flex;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.5rem;
        gap: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .hero-actions .btn {
        text-align: center;
    }
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    .timeline {
        margin-left: 0.5rem;
    }
}

/* Print Styles for 'Export CV' */
@media print {
    .app-header, .hero-actions, .contact-card {
        display: none !important;
    }
    body {
        background-color: white !important;
        color: black !important;
    }
    /* Minimalize margins to fit on A4 nicely */
    .hero-section {
        padding: 2rem 0;
    }
    .section {
        padding: 2rem 0;
        break-inside: avoid;
    }
    .timeline {
        border-color: #000;
    }
    .timeline-dot {
        background-color: #000;
        border-color: #fff;
    }
    a {
        text-decoration: none;
        color: #000;
    }
    .role-achievements {
        color: #000;
    }
    .hero-subtitle, .hero-description, .role-duration, .company-name, .skill-category p {
        color: #333 !important;
    }
}
