/* ============================================================
   JOËL FISCHER — PORTFOLIO 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg:       #08080F;
    --surface:  rgba(255,255,255,0.04);
    --surface2: rgba(255,255,255,0.07);
    --border:   rgba(255,255,255,0.08);
    --border-a: rgba(0,212,255,0.28);
    --cyan:     #00D4FF;
    --violet:   #7C3AED;
    --gold:     #F59E0B;
    --green:    #10B981;
    --text:     #E2E8F0;
    --text-s:   #94A3B8;
    --text-m:   #475569;
    --max-w:    900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── BACKGROUND MESH ─────────────────────────────────── */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 55% 45% at 10% 10%, rgba(124,58,237,.12) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(0,212,255,.08) 0%, transparent 65%),
        var(--bg);
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 2rem;
    background: rgba(8,8,15,.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: .6rem;
}

.nav-brand {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }

.nav-lang {
    padding: .3rem .75rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-s);
    border: 1px solid var(--border);
    transition: all .2s;
}
.nav-lang:hover, .nav-lang.active {
    color: var(--cyan);
    border-color: var(--border-a);
    background: rgba(0,212,255,.06);
}

/* ── LAYOUT ──────────────────────────────────────────── */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-s);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.section-title .ti { font-size: 1.1rem; }
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-a), transparent);
}

/* ── GLASS ───────────────────────────────────────────── */
.glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 18px;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 2rem;
    text-align: center;
}

.hero-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, var(--cyan) 0%, #A78BFA 50%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: .9rem;
    color: var(--text-s);
    letter-spacing: .07em;
    margin-bottom: 1.8rem;
    font-weight: 400;
}

.hero-quote {
    font-style: italic;
    color: var(--text-s);
    font-size: .93rem;
    border-left: 2px solid var(--cyan);
    padding-left: 1rem;
    text-align: left;
    max-width: 580px;
    margin: 0 auto 2rem;
    opacity: .85;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 30px;
    font-size: .76rem;
    font-weight: 500;
    border: 1px solid;
}
.bc { border-color: rgba(0,212,255,.4);   background: rgba(0,212,255,.08);   color: var(--cyan); }
.bv { border-color: rgba(124,58,237,.4);  background: rgba(124,58,237,.08);  color: #A78BFA; }
.bg { border-color: rgba(245,158,11,.4);  background: rgba(245,158,11,.08);  color: var(--gold); }
.bn { border-color: rgba(16,185,129,.4);  background: rgba(16,185,129,.08);  color: var(--green); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: center;
}

.btn-p {
    padding: .6rem 1.3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #fff;
    transition: opacity .2s, transform .2s;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: none;
}
.btn-p:hover { opacity: .82; transform: translateY(-2px); }

.btn-g {
    padding: .6rem 1.3rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: .85rem;
    text-decoration: none;
    background: var(--surface);
    color: var(--text-s);
    border: 1px solid var(--border);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.btn-g:hover { color: var(--cyan); border-color: var(--border-a); background: rgba(0,212,255,.06); transform: translateY(-2px); }

/* ── ABOUT ───────────────────────────────────────────── */
.about-card { padding: 2rem; }

.about-card p {
    color: var(--text-s);
    margin-bottom: 1.1rem;
    font-size: .95rem;
    line-height: 1.8;
}
.about-card p:last-child { margin-bottom: 0; }

.about-card a { color: var(--cyan); text-decoration: none; font-weight: 500; transition: opacity .2s; }
.about-card a:hover { opacity: .7; text-decoration: underline; }

/* ── SKILLS ──────────────────────────────────────────── */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: .85rem;
    margin-bottom: 2rem;
}

.goal-card {
    padding: 1.2rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .2s, transform .2s;
}
.goal-card:hover { border-color: var(--border-a); transform: translateY(-3px); }

.goal-icon { font-size: 1.4rem; margin-bottom: .5rem; }
.goal-text { font-size: .85rem; color: var(--text-s); }

.sub-label {
    font-size: .75rem;
    color: var(--text-m);
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: .7rem;
    margin-top: 1.5rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }

.chip {
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-s);
    transition: all .2s;
}
.chip:hover { color: var(--cyan); border-color: var(--border-a); }

.proj-mini {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: .5rem;
    transition: border-color .2s;
}
.proj-mini:hover { border-color: var(--border-a); }

.proj-mini-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    margin-top: .55rem;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0,212,255,.6);
}

.proj-mini-text { font-size: .88rem; color: var(--text-s); }
.proj-mini-text a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.proj-mini-text a:hover { text-decoration: underline; }

/* ── TIMELINE ────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
    content: '';
    position: absolute;
    left: .45rem; top: .5rem; bottom: .5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--violet));
    opacity: .35;
    border-radius: 2px;
}

.t-item {
    position: relative;
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: .85rem;
    transition: border-color .2s;
}
.t-item:hover { border-color: var(--border-a); }

.t-item::before {
    content: '';
    position: absolute;
    left: -1.65rem; top: 1.3rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 7px rgba(0,212,255,.6);
}

.t-year {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: .78rem;
    color: var(--cyan);
    letter-spacing: .05em;
    margin-bottom: .25rem;
}

.t-desc { font-size: .9rem; color: var(--text-s); }

/* ── PROJECT CARDS ───────────────────────────────────── */
.proj-list { display: flex; flex-direction: column; gap: .85rem; }

.proj-card {
    padding: 1.3rem 1.4rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .2s, transform .2s;
}
.proj-card:hover { border-color: var(--border-a); transform: translateX(4px); }

.proj-head {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}

.proj-year-badge {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    padding: .22rem .65rem;
    border-radius: 6px;
    background: rgba(0,212,255,.1);
    border: 1px solid rgba(0,212,255,.25);
    color: var(--cyan);
    letter-spacing: .04em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: .05rem;
}

.proj-desc { font-size: .88rem; color: var(--text-s); line-height: 1.5; }

.proj-links { display: flex; flex-wrap: wrap; gap: .45rem; }

.pl {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .7rem;
    border-radius: 7px;
    font-size: .78rem;
    text-decoration: none;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    color: var(--text-s);
    transition: all .2s;
}
.pl:hover { color: #fff; background: rgba(0,212,255,.15); border-color: rgba(0,212,255,.4); }

.pl-vibe {
    background: rgba(124,58,237,.1);
    border-color: rgba(124,58,237,.25);
    color: #A78BFA;
}
.pl-vibe:hover { background: rgba(124,58,237,.25); border-color: rgba(124,58,237,.5); color: #fff; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
    margin-top: 3rem;
    padding: 1.8rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(8,8,15,.7);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: .6rem;
}

.footer-links a {
    color: var(--text-m);
    text-decoration: none;
    font-size: .83rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-copy { font-size: .73rem; color: var(--text-m); }

/* ── REVEAL ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
    nav { padding: .7rem 1rem; }
    .hero { padding: 3rem 1rem 1.5rem; }
    .section { padding: 2rem 1rem; }
    .about-card { padding: 1.3rem; }
    .goals-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
    .goals-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: 2.4rem; }
}
