/* COLOR PALETTE (70/20/10 Rule) */
:root {
    --bg-base: #121212;
    --bg-surface: #1C1C1C;
    --text-primary: #E0E0E0;
    --text-secondary: #9E9E9E;

    /* Flat distinct colors for section headers */
    --color-experience: #10B981;
    /* Emerald */
    --color-projects: #8B5CF6;
    /* Violet */
    --color-education: #F59E0B;
    /* Amber */
    --color-certificates: #EC4899;
    /* Pink */
    --color-skills: #3B82F6;
    /* Blue */

    --spacing-sm: 0.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    white-space: nowrap;
}

h2 {
    font-weight: 700;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--bg-surface);
}

#experience h2 {
    color: var(--color-experience);
}

#projects h2 {
    color: var(--color-projects);
}

#education h2 {
    color: var(--color-education);
}

#certificates h2 {
    color: var(--color-certificates);
}

#skills h2 {
    color: var(--color-skills);
}

h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-skills);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: #60A5FA;
}

/* TWO-COLUMN LAYOUT */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 4rem;
    align-items: start;
}

/* 1. INTRODUCTION (Sticky Sidebar) */
header {
    position: sticky;
    top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    align-self: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.contact-link:hover,
.contact-link:hover svg {
    color: var(--text-primary);
}

main section {
    margin-bottom: var(--spacing-xl);
}

/* CONTENT ITEMS */
.content-item {
    margin-bottom: var(--spacing-lg);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.date-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: monospace;
    font-weight: 500;
}

/* LISTS */
ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: var(--spacing-sm);
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

ul li::before {
    content: "○";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1;
}

/* FEATURED PROJECT */
.featured-project {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* SKILLS & TOOLS BADGES */
.skills-category {
    margin-bottom: var(--spacing-md);
}

.skills-category h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-surface);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-badge i {
    font-size: 1.25rem;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg-surface);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: max-content;
    margin-left: auto;
    margin-bottom: 2.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

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

.lang-btn.active {
    background-color: var(--color-skills);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* RESPONSIVE DESIGN FOR MOBILE */
@media (max-width: 900px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    header {
        position: relative;
        top: 0;
        align-items: center;
        text-align: center;
        border-bottom: 1px solid var(--bg-surface);
        padding-bottom: 2rem;
    }

    .contact-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .lang-switcher {
        margin: 0 auto var(--spacing-md) auto;
    }
}
