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

:root {
    --primary: #1a2332;
    --accent: #0984e3;
    --accent-light: #74b9ff;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #dfe6e9;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ── Header ── */
header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1a2e, #0d3b66, #1a535c, #2d3a4a);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem 4rem;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles */
.particle {
    position: absolute;
    bottom: -20px;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    background: rgba(116, 185, 255, 0.4);
    border-radius: 50%;
    animation: floatUp var(--duration) var(--delay) ease-in infinite;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-350px) translateX(30px);
        opacity: 0;
    }
}

/* Header text animations */
.header-content {
    position: relative;
    z-index: 1;
    animation: headerFadeIn 1s ease-out;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header .title {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 0.25rem;
}

header .subtitle {
    font-size: 1rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

header .location {
    font-size: 0.9rem;
    opacity: 0.6;
}

header .location i {
    margin-right: 0.3rem;
}

/* ── Navigation ── */
nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after {
    width: 100%;
}

/* ── Sections ── */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Scroll fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

section h2 i {
    margin-right: 0.5rem;
}

section p {
    color: var(--text-light);
}

/* ── Experience ── */
.role-card h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.role-card .company {
    font-weight: 600;
    color: var(--text);
}

.role-card .period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ── Skills ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.skill-tag {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.15);
}

/* ── Achievements ── */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.achievement-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.achievement-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.achievement-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.achievement-card li {
    font-size: 0.88rem;
    color: var(--text-light);
    padding-left: 1rem;
    position: relative;
}

.achievement-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ── Languages ── */
.languages-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.languages-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-name {
    font-weight: 500;
    min-width: 80px;
}

.lang-level {
    font-size: 0.8rem;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-weight: 500;
    transition: filter 0.2s;
}

.lang-level:hover {
    filter: brightness(0.92);
}

.lang-level.native {
    background: #d4f5e9;
    color: #00815a;
}

.lang-level.professional {
    background: #d6eaff;
    color: #0968c3;
}

.lang-level.limited {
    background: #fff3d6;
    color: #9a6700;
}

.lang-level.elementary {
    background: #f0f0f0;
    color: #636e72;
}

/* ── Actively Learning ── */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.learning-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg);
    border: 2px solid var(--accent-light);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--text);
    animation: pulseGlow 3s ease-in-out infinite;
    transition: transform 0.2s;
}

.learning-card:hover {
    transform: scale(1.05);
}

.learning-card i {
    font-size: 2rem;
    color: var(--accent);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(9, 132, 227, 0.15);
    }
    50% {
        box-shadow: 0 0 20px rgba(9, 132, 227, 0.35);
    }
}

/* ── Contact ── */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list li i {
    color: var(--accent);
    width: 1.2rem;
    margin-right: 0.5rem;
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}
