:root {
  --bg: #0b0e13;
  --surface: #11161e;
  --surface-light: #19212c;
  --text: #f3f6f8;
  --muted: #8f9aa8;
  --accent: #b7f36b;
  --line: rgba(243, 246, 248, 0.12);
  --heading: "Space Grotesk", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 30; padding: 10px 15px; border-radius: 999px; background: var(--accent); color: #10150b; font-weight: 700; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 25; width: 100%; height: 3px; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--accent); box-shadow: 0 0 12px rgba(183, 243, 107, .7); }
.glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; filter: blur(100px); opacity: .1; z-index: -1; }
.glow-one { background: var(--accent); top: -220px; right: -150px; }
.glow-two { background: #5276ff; bottom: -280px; left: -200px; }
.site-header, .section, .site-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-mark { width: 35px; height: 35px; }
.nav-links { display: flex; gap: 34px; color: var(--muted); font-size: .92rem; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.language-switcher { display: flex; gap: 4px; margin-left: 26px; padding: 4px; border: 1px solid var(--line); border-radius: 100px; }
.lang-btn { border: 0; border-radius: 100px; padding: 5px 8px; background: transparent; color: var(--muted); cursor: pointer; font: 600 .68rem var(--body); transition: color .2s ease, background .2s ease; }
.lang-btn:hover, .lang-btn.active { background: var(--accent); color: #10150b; }
.menu-toggle { display: none; border: 0; background: none; color: var(--text); font-size: 1.4rem; }
.music-toggle { position: fixed; right: 24px; bottom: 24px; z-index: 10; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 100px; padding: 11px 16px; background: rgba(17, 22, 30, .88); color: var(--text); cursor: pointer; font: 600 .82rem var(--body); box-shadow: 0 12px 30px rgba(0, 0, 0, .24); backdrop-filter: blur(12px); transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.music-toggle:hover, .music-toggle.is-playing { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.music-toggle span:first-child { font-size: 1.1rem; line-height: 1; }
.section { padding: 115px 0; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; padding-top: 80px; }
.eyebrow, .section-label { color: var(--accent); font-size: .77rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow span { font-size: 1rem; }
h1, h2 { font-family: var(--heading); letter-spacing: -2px; line-height: 1.05; }
h1 { max-width: 700px; font-size: clamp(3rem, 6vw, 5.6rem); margin: 22px 0; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-text { color: var(--muted); font-size: 1.12rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button { border: 1px solid var(--line); border-radius: 100px; padding: 13px 21px; font-size: .9rem; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #10150b; font-weight: 700; }
.button-primary span, .contact-link span { margin-left: 8px; font-size: 1.1rem; }
.button-ghost { color: var(--muted); }
.button-ghost:hover { background: var(--surface); color: var(--text); }
.hero-meta { display: flex; gap: 30px; margin-top: 48px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item strong { color: var(--accent); font: 700 1.5rem var(--heading); line-height: 1; }
.meta-item span { color: var(--muted); font-size: .74rem; }
.hero-card { justify-self: end; width: min(320px, 100%); background: linear-gradient(145deg, var(--surface-light), var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 28px; transform: rotate(3deg); box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.avatar-placeholder { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, #31413b, #18221e); color: var(--accent); font: 700 4.5rem var(--heading); letter-spacing: -6px; margin-bottom: 22px; }
.avatar-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,19,.02) 35%, rgba(11,14,19,.42) 100%); pointer-events: none; }
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 27%; }
.status { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: .75rem; margin-bottom: 24px; }
.status > span:first-child { flex: 0 0 7px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.hero-card p { font: 600 1.2rem var(--heading); }
.hero-card small { color: var(--muted); font-size: .8rem; }
.section-label { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-top: 58px; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.about-copy { color: var(--muted); max-width: 500px; }
.about-copy p + p { margin-top: 20px; }
.projects-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; padding: 58px 0 42px; }
.projects-heading h2 { max-width: 600px; }
.projects-heading p { color: var(--muted); max-width: 330px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { min-height: 420px; display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(183, 243, 107, .55); background: var(--surface-light); }
.project-featured { background: linear-gradient(145deg, rgba(183, 243, 107, .13), var(--surface) 48%); }
.project-topline { display: flex; justify-content: space-between; color: var(--accent); font-size: .76rem; }
.project-status { color: var(--muted); }
.project-status.live { color: var(--accent); }
.project-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 112px; margin: 18px 0 0; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.project-visual::after { content: ""; position: absolute; width: 130px; height: 130px; right: -38px; bottom: -58px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255, 255, 255, .04), 0 0 0 36px rgba(255, 255, 255, .03); }
.project-visual span { position: relative; z-index: 1; font: 700 1.7rem var(--heading); letter-spacing: -1px; }
.project-visual small { position: relative; z-index: 1; color: rgba(255, 255, 255, .62); font-size: .62rem; letter-spacing: 1.4px; }
.visual-qpick { background: linear-gradient(135deg, #314d35, #14201b); color: var(--accent); }
.visual-scooter { background: linear-gradient(135deg, #302b50, #171624); color: #b8a8ff; }
.visual-weather { background: linear-gradient(135deg, #183c57, #121b2c); color: #9dd9ff; }
.project-visual.has-image { padding: 0; }
.project-visual.has-image img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: center 24%; }
.project-visual.has-image::after { display: none; }
.project-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 45px 0 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent); font: 600 1.25rem var(--heading); }
.project-visual + .project-icon { margin-top: 18px; }
.project-card h3 { font: 600 1.35rem var(--heading); line-height: 1.15; }
.project-card p { color: var(--muted); font-size: .88rem; margin-top: 13px; }
.project-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 28px; }
.project-tags span { padding: 5px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font-size: .7rem; }
.project-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 18px; color: var(--accent); font-size: .82rem; font-weight: 600; }
.project-link span { font-size: 1rem; transition: transform .2s ease; }
.project-link:hover span { transform: translate(3px, -3px); }
.skills-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; padding: 58px 0 42px; }
.skills-heading h2 { max-width: 560px; }
.skills-heading p { color: var(--muted); max-width: 300px; }
.skill-list { border-top: 1px solid var(--line); }
.skill-item { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 20px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.skill-item span { color: var(--accent); font-size: .8rem; }
.skill-item strong { font: 600 1.15rem var(--heading); }
.skill-item b { color: var(--muted); font-size: .86rem; font-weight: 400; text-align: right; }
.timeline { max-width: 850px; margin: 58px auto 0; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 34px; padding: 0 0 42px; position: relative; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 154px; width: 1px; height: calc(100% - 28px); background: var(--line); }
.timeline-date { color: var(--accent); font-size: .8rem; padding-top: 5px; }
.timeline-content { position: relative; padding-left: 28px; }
.timeline-content::before { content: ""; position: absolute; top: 9px; left: -4px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line); }
.timeline-content h3 { font: 600 1.35rem var(--heading); }
.timeline-place { color: var(--accent); font-size: .85rem; margin: 5px 0 10px; }
.timeline-content > p:last-child { color: var(--muted); font-size: .9rem; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 70px; margin-top: 58px; text-align: center; }
.contact-box h2 { max-width: 700px; margin: 20px auto 32px; }
.contact-note { max-width: 520px; margin: -10px auto 30px; color: var(--muted); font-size: .92rem; }
.social-links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.contact-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font: 600 1.05rem var(--heading); }
.social-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.social-icon svg { width: 100%; height: 100%; fill: currentColor; }
.site-footer { display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .78rem; }
.back-to-top { position: fixed; right: 24px; bottom: 78px; z-index: 9; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, color .2s ease, border-color .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 720px) {
  .site-header, .section, .site-footer { width: min(100% - 32px, 560px); }
  .site-header { height: 76px; }
  .menu-toggle { display: block; cursor: pointer; }
  .music-toggle { right: 16px; bottom: 16px; }
  .language-switcher { margin-left: auto; margin-right: 12px; }
  .nav-links { display: none; position: absolute; top: 68px; right: 16px; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; z-index: 5; }
  .nav-links.open { display: flex; }
  .section { padding: 78px 0; }
  .hero { min-height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 55px; padding-top: 70px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .hero-card { align-self: center; transform: rotate(2deg); }
  .hero-meta { gap: 22px; margin-top: 38px; }
  .about-grid, .projects-heading, .skills-heading { grid-template-columns: 1fr; display: grid; gap: 30px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 380px; }
  .skill-item { grid-template-columns: 38px 1fr; gap: 12px; }
  .skill-item b { grid-column: 2; text-align: left; }
  .timeline-item { grid-template-columns: 82px 1fr; gap: 16px; }
  .timeline-item:not(:last-child)::after { left: 85px; }
  .timeline-content { padding-left: 20px; }
  .contact-box { padding: 45px 20px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .back-to-top { right: 16px; bottom: 70px; }
}
