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

:root {
    --font:    "Manrope", system-ui, sans-serif;
    --accent:  #db65d5;
    --accent2: #da84d5;
    --bg:      #0f1011;
    --surface: #1a1c1d;
    --deep:    #151718;
    --text:    #fafafa;
    --muted:   #8f8d8d;
    --border:  #ffffff0a;
}

/* ── Base ───────────────────────────────────────────── */
body {
    font-family: var(--font);
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.25s ease;
}

::selection { background: #db65d528; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header / Nav ───────────────────────────────────── */
header {
    height: 65px;
    background: var(--surface);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(147deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tab a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin-left: 0.5rem;
    color: var(--text);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.tab a:hover {
    background: #db65d517;
    color: #ffd1fd;
    text-decoration: none;
}

.tab a.active {
    background: #db65d55d;
    color: #fdd2fc;
}

/* ── Main / Tabs ────────────────────────────────────── */
main {
    flex: 1;
    padding: 3rem;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}

.tabcontent { display: none; }

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}
.tabcontent.tab-animate {
    animation: tabFadeIn 0.3s ease-out forwards;
}

/* ── Cards / Frames ─────────────────────────────────── */
.card {
    background: var(--surface);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-top: 1rem;
}

.card h2 {
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.card h3 {
    color: var(--accent2);
    margin-bottom: 0.4rem;
}

.card p, .card li {
    color: #d0d0d0;
    font-size: 0.97rem;
    line-height: 1.65;
}

.card ul {
    list-style: none;
    margin-top: 0.4rem;
}

.card ul li::before {
    content: "•  ";
    color: var(--accent);
}

/* ── Page title ─────────────────────────────────────── */
.page-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

/* ── Home hero ──────────────────────────────────────── */
.hero {
    padding: 2.5rem 0 1rem;
}

.hero .greeting {
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: #b0b0b0;
    margin-top: 0.8rem;
    max-width: 480px;
}

/* ── Tag pills ──────────────────────────────────────── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #db65d51a;
    color: #fdd2fc;
    border-radius: 6px;
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── CV timeline ─────────────────────────────────────── */
.timeline { margin-top: 0.4rem; }

.timeline-item {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--border);
}

.timeline-item:first-child { border-top: none; }

.timeline-year {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    padding-top: 0.1rem;
}

.timeline-desc {
    color: #d0d0d0;
    font-size: 0.97rem;
}

/* ── Hobby cards ─────────────────────────────────────── */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hobby-card {
    background: var(--deep);
    border-radius: 10px;
    padding: 1.2rem;
}

.hobby-card .hobby-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hobby-card h3 {
    color: var(--text);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.hobby-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ── Country info ────────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.5rem 1rem;
    margin-top: 0.4rem;
}

.info-label {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    padding-top: 0.05rem;
}

.info-value {
    color: #d0d0d0;
    font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
    color: #585858;
    font-family: var(--font);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    user-select: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    header { padding: 1rem; }
    main   { padding: 1rem; }

    .hero h1      { font-size: 2.2rem; }
    .page-title   { font-size: 1.8rem; }

    .tab a {
        padding: 0.35rem 0.55rem;
        font-size: 0.85rem;
    }

    .hobby-grid { grid-template-columns: 1fr; }
}