:root {
  --ink: #18202f;
  --muted: #6d7482;
  --orange: #ff6b35;
  --yellow: #ffc857;
  --cream: #fffaf4;
  --purple: #6c63ff;
  --line: #e9e7e2;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: "Space Grotesk", sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.page-glow { position: absolute; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.glow-one { width: 260px; height: 260px; background: rgba(255, 200, 87, .16); right: -80px; top: 80px; }
.glow-two { width: 220px; height: 220px; background: rgba(108, 99, 255, .08); left: -140px; top: 480px; }

.header {
  height: 84px;
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  transition: .3s ease;
}
.header.scrolled { height: 72px; background: rgba(255, 250, 244, .92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(24,32,47,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; border-radius: 12px 12px 12px 3px; background: var(--orange); transform: rotate(-4deg); }
.brand-dot { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; font-size: 14px; font-weight: 600; color: #626977; }
.nav-link::after { content: ""; position: absolute; height: 2px; width: 0; background: var(--orange); left: 0; bottom: -8px; transition: .25s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { width: 100%; }
.nav-cta { padding: 12px 18px; border: 1px solid var(--ink); border-radius: 10px; font-size: 14px; font-weight: 700; transition: .25s; }
.nav-cta:hover { color: white; background: var(--ink); transform: translateY(-2px); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 8px; transition: .3s; }

.hero { min-height: 720px; padding-top: 136px; padding-bottom: 70px; display: grid; grid-template-columns: 53% 47%; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; }
.eyebrow > span { width: 28px; height: 2px; background: currentColor; }
.hero h1 { margin: 18px 0 8px; font-size: clamp(48px, 5.5vw, 74px); line-height: 1.02; letter-spacing: -3px; }
.hero h1 strong { color: var(--orange); }
.hero-role { margin: 0 0 22px; color: var(--purple); font: 700 25px "Space Grotesk", sans-serif; }
.hero-description { max-width: 520px; color: var(--muted); line-height: 1.75; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { height: 52px; padding: 0 20px; display: inline-flex; align-items: center; gap: 22px; border-radius: 10px; font-weight: 700; transition: .25s; }
.button-primary { color: white; background: var(--orange); box-shadow: 0 12px 28px rgba(255,107,53,.24); }
.button-primary span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.18); }
.button-secondary { border: 1px solid var(--line); background: white; }
.button:hover { transform: translateY(-3px); }
.hero-stats { display: flex; gap: 42px; margin-top: 44px; }
.hero-stats div { display: grid; }
.hero-stats strong { font: 700 27px "Space Grotesk", sans-serif; }
.hero-stats span { color: var(--muted); font-size: 12px; margin-top: 3px; }

.hero-visual { height: 480px; position: relative; display: grid; place-items: center; }
.portrait { width: 330px; height: 400px; position: relative; z-index: 3; display: grid; place-items: center; border-radius: 48% 48% 24px 24px; background: linear-gradient(145deg, #ffb15a, #ff7a45); box-shadow: 20px 24px 0 #ffe6b5; overflow: hidden; }
.portrait-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, black, transparent); }
.avatar { width: 230px; height: 230px; display: grid; place-items: center; border: 12px solid rgba(255,255,255,.34); border-radius: 50%; background: var(--ink); color: white; font: 700 54px "Space Grotesk", sans-serif; box-shadow: 0 20px 40px rgba(100,52,29,.18); }
.orbit { position: absolute; border: 1px dashed rgba(255,107,53,.28); border-radius: 50%; }
.orbit-one { width: 420px; height: 420px; }
.orbit-two { width: 360px; height: 360px; border-color: rgba(108,99,255,.18); }
.code-card { position: absolute; z-index: 5; background: var(--ink); color: #dfe5f0; border-radius: 12px; box-shadow: 0 18px 40px rgba(24,32,47,.18); }
.code-card-top { right: -20px; top: 30px; width: 210px; padding: 38px 18px 18px; transform: rotate(3deg); font-size: 12px; }
.code-card code { font-family: monospace; line-height: 1.7; }
.code-card code span { color: #ff8e67; } .code-card code b { color: #75d6b5; }
.code-dot { position: absolute; top: 13px; width: 7px; height: 7px; border-radius: 50%; } .red { left: 15px; background: #ff6b6b; } .yellow { left: 28px; background: #ffd166; } .green { left: 41px; background: #70d6a7; }
.skill-pill { position: absolute; z-index: 6; height: 46px; display: grid; place-items: center; border-radius: 12px; color: white; font-weight: 700; box-shadow: 0 12px 24px rgba(24,32,47,.15); }
.pill-html { width: 54px; left: 5px; top: 115px; background: var(--orange); transform: rotate(-8deg); }
.pill-css { width: 54px; right: 8px; bottom: 58px; background: var(--purple); transform: rotate(8deg); }
.pill-js { width: 54px; left: 24px; bottom: 30px; background: #e7b62b; transform: rotate(5deg); }

.section { padding-top: 110px; padding-bottom: 110px; }
.section-heading h2 { margin: 14px 0 42px; font-size: clamp(36px, 4vw, 52px); line-height: 1.12; letter-spacing: -2px; }
.section-heading h2 strong { color: var(--orange); }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.about-card, .education-card { border: 1px solid var(--line); border-radius: 18px; background: white; }
.about-card { padding: 34px 38px; }
.about-card > p:last-child { max-width: 600px; color: var(--muted); line-height: 1.8; font-size: 17px; }
.about-kicker { margin: 0 0 12px; color: var(--orange); text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; font-weight: 700; }
.education-card { display: flex; align-items: center; gap: 18px; padding: 28px; }
.education-icon { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border-radius: 16px; background: #fff1dc; font-size: 30px; }
.education-card h3 { margin: 0 0 4px; font-size: 23px; }
.education-card p { margin: 0 0 8px; color: var(--muted); }
.education-card span { color: var(--purple); font-weight: 700; font-size: 13px; }

.skills { background: #f5f7fb; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card { padding: 30px; border: 1px solid #e6e8ee; border-radius: 18px; background: white; transition: .25s; }
.skill-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(24,32,47,.08); }
.skill-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; font: 700 18px "Space Grotesk", sans-serif; }
.html-icon { color: #d95d32; background: #ffe6dc; }.css-icon { color: #5d55cc; background: #e9e7ff; }.js-icon { color: #9a7612; background: #fff1ba; }
.skill-card h3 { margin: 22px 0 8px; font-size: 22px; }
.skill-card p { min-height: 50px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.progress { height: 6px; margin: 22px 0 8px; overflow: hidden; border-radius: 20px; background: #eef0f4; }
.progress span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--orange); }
.skill-card small { color: var(--muted); }

.project-card { display: grid; grid-template-columns: 58% 42%; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.project-preview { padding: 24px 24px 0; background: #ffe9cb; }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 10px 10px 0 0; background: white; }
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #ddd; } .browser-bar span:first-child { background: #ff7b70; }
.preview-content { height: 280px; display: grid; grid-template-columns: 25% 75%; gap: 12px; padding: 16px; border-radius: 0 0 12px 12px; background: #fffaf4; }
.preview-sidebar { border-radius: 8px; background: linear-gradient(160deg, var(--ink) 0 25%, #374157 25% 55%, #ff8357 55%); }
.preview-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-main div { border-radius: 8px; background: #fff; box-shadow: inset 0 -90px 0 #f1eee8; }.preview-main div:first-child { grid-row: span 2; background: linear-gradient(145deg, #ffc857, #ff8a55); box-shadow: none; }
.project-info { padding: 46px 38px; }
.project-number { color: var(--orange); font: 700 12px "Space Grotesk", sans-serif; letter-spacing: 1px; }
.project-info h3 { margin: 18px 0 12px; font-size: 27px; }
.project-info > p:not(.project-number) { color: var(--muted); line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { padding: 7px 10px; border-radius: 7px; background: #f2f3f6; font-size: 12px; font-weight: 700; }

.contact { margin-top: 20px; background: var(--ink); color: white; }
.contact-inner { min-height: 330px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.eyebrow.light { color: #ffc857; }
.contact h2 { margin: 12px 0 0; font-size: clamp(38px, 4vw, 52px); line-height: 1.1; }
.contact h2 strong { color: #ffc857; }
.contact-details { display: grid; gap: 12px; }
.contact-details a { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; transition: .25s; }
.contact-details a:hover { border-color: #ffc857; transform: translateX(6px); }
.contact-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,200,87,.12); color: #ffc857; }
.contact-details div { display: grid; }
.contact-details small { color: #aeb5c2; margin-bottom: 3px; }.contact-details strong { font-size: 14px; }
.footer { background: var(--ink); color: #aeb5c2; border-top: 1px solid rgba(255,255,255,.08); }
.footer .container { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 13px; }.footer a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.back-to-top { position: fixed; z-index: 40; right: 22px; bottom: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: white; background: var(--orange); box-shadow: 0 10px 24px rgba(255,107,53,.3); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s; }
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 72px; left: 20px; right: 20px; display: grid; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 20px 40px rgba(24,32,47,.12); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .25s; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 13px 12px; }.nav-link::after { display: none; }
  .menu-toggle { display: block; order: 3; }.nav-cta { margin-left: auto; margin-right: 8px; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }.hero-content { text-align: center; }.eyebrow { justify-content: center; }.hero-description { margin-inline: auto; }.hero-actions, .hero-stats { justify-content: center; }.hero-visual { margin-top: 30px; }.about-grid, .project-card { grid-template-columns: 1fr; }.skill-grid { grid-template-columns: 1fr; }.contact-inner { grid-template-columns: 1fr; gap: 30px; padding: 70px 0; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 30px, 1120px); }.nav-cta { display: none; }.header { height: 72px; }.hero { min-height: auto; padding-top: 105px; }.hero h1 { font-size: 43px; letter-spacing: -2px; }.hero-role { font-size: 20px; }.hero-description { font-size: 15px; }.hero-actions { flex-direction: column; }.button { justify-content: center; }.hero-stats { gap: 24px; }.hero-visual { height: 390px; transform: scale(.82); margin-inline: -40px; }.section { padding-top: 78px; padding-bottom: 78px; }.section-heading h2 { font-size: 35px; }.about-card { padding: 26px; }.education-card { align-items: flex-start; }.project-preview { min-height: 300px; }.preview-content { height: 220px; }.project-info { padding: 34px 24px; }.contact-details strong { font-size: 12px; }.footer p { max-width: 220px; }.code-card-top { right: -6px; }
}
