:root {
  --bg: #0B0B0F;
  --bg-2: #111118;
  --card: rgba(255,255,255,0.045);
  --card-strong: rgba(255,255,255,0.065);
  --text: #FFFFFF;
  --muted: #A7A7B3;
  --muted-2: #747481;
  --accent: #F59E0B;
  --accent-light: #FDBA4A;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.17);
  --shadow: 0 24px 70px rgba(0,0,0,0.30);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 76px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

[data-theme="light"] {
  --bg: #F7F7F5;
  --bg-2: #ECECE8;
  --card: rgba(0,0,0,0.035);
  --card-strong: rgba(0,0,0,0.055);
  --text: #111116;
  --muted: #5D5D67;
  --muted-2: #7C7C85;
  --border: rgba(0,0,0,0.10);
  --border-strong: rgba(0,0,0,0.17);
  --shadow: 0 24px 70px rgba(24,24,24,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; transition: background .35s ease, color .35s ease; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { background: var(--accent); color: #111; }

.skip-link { position: fixed; left: 18px; top: -80px; z-index: 10000; padding: 12px 16px; border-radius: 10px; background: var(--accent); color: #111; font-weight: 800; transition: top .2s ease; }
.skip-link:focus { top: 18px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 120px 0; }
.section--alt { background: var(--bg-2); }

.loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--bg); transition: opacity .55s ease, visibility .55s ease; }
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { width: min(280px, 70vw); text-align: center; }
.loader__name { display: block; font-size: 12px; font-weight: 800; letter-spacing: .34em; margin-right: -.34em; }
.loader__line { display: block; width: 100%; height: 1px; margin-top: 16px; background: var(--border); overflow: hidden; position: relative; }
.loader__line::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; background: var(--accent); animation: loader 1s var(--ease) infinite; }
@keyframes loader { 0% { transform: translateX(-110%); } 100% { transform: translateX(230%); } }

.scroll-progress { position: fixed; z-index: 2000; top: 0; left: 0; width: 0; height: 2px; background: var(--accent); box-shadow: 0 0 16px rgba(245,158,11,.45); }

.site-header { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease, transform .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); border-bottom-color: var(--border); }
.navbar { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; gap: 0; line-height: .88; font-size: 15px; font-weight: 800; letter-spacing: .17em; width: max-content; }
.brand span:last-child { font-size: 10px; color: var(--accent); letter-spacing: .25em; margin-top: 5px; }
.nav-shell { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-link { position: relative; display: inline-flex; padding: 10px 10px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color .25s ease; }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; }
.icon-button, .menu-toggle { border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--accent); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; padding: 9px; }
.menu-toggle span { display: block; width: 100%; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hero { min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: calc(var(--header-height) + 60px); }
.hero__layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 60px; }
.hero__content { max-width: 680px; }
.eyebrow { margin: 0 0 16px; color: var(--accent-light); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.eyebrow__dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(245,158,11,.08); }
.hero h1 { margin: 0; font-size: clamp(4rem, 9vw, 8.5rem); line-height: .86; letter-spacing: -.07em; font-weight: 800; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px var(--border-strong); }
.hero__role { display: flex; align-items: center; gap: 6px; min-height: 40px; margin: 28px 0 14px; color: var(--text); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; }
.typing-caret { display: inline-block; width: 1px; height: 1.2em; background: var(--accent); animation: blink .8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__intro { max-width: 590px; color: var(--muted); font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 19px; border-radius: 12px; border: 1px solid var(--border); font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease; }
.button i { font-size: 12px; transition: transform .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:hover i { transform: translateX(3px); }
.button--primary { background: var(--accent); color: #111; border-color: var(--accent); box-shadow: 0 10px 30px rgba(245,158,11,.12); }
.button--primary:hover { background: var(--accent-light); box-shadow: 0 16px 40px rgba(245,158,11,.18); }
.button--secondary { background: var(--card); color: var(--text); }
.button--secondary:hover { border-color: var(--accent); background: var(--card-strong); }
.button--full { width: 100%; }
.social-links { display: flex; gap: 9px; }
.social-links a, .contact-socials a, .social-placeholder { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: var(--card); transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease; }
.social-links a:hover, .contact-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social-links a::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translate(-50%, 5px); opacity: 0; pointer-events: none; white-space: nowrap; padding: 5px 8px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 10px; font-weight: 700; transition: opacity .2s ease, transform .2s ease; }
.social-links a:hover::after { opacity: 1; transform: translate(-50%, 0); }

.hero__visual { min-height: 590px; display: grid; place-items: center; position: relative; }
.hero-photo-frame { width: min(510px, 100%); aspect-ratio: 1 / 1.13; position: relative; border-radius: 38% 38% 16% 16% / 28% 28% 13% 13%; padding: 11px; background: linear-gradient(145deg, rgba(245,158,11,.8), var(--border), transparent 70%); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-photo-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, rgba(245,158,11,.18), transparent 50%); pointer-events: none; }
.profile-photo { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 34% 34% 13% 13% / 25% 25% 11% 11%; border: 1px solid rgba(255,255,255,.16); filter: saturate(.95) contrast(1.02); }
.hero-photo-glow { position: absolute; z-index: 0; width: 80%; height: 80%; right: -18%; bottom: -16%; background: rgba(245,158,11,.23); filter: blur(80px); border-radius: 50%; }
.hero-photo-ring { position: absolute; inset: 7% -8% -8% 8%; border: 1px solid rgba(245,158,11,.20); border-radius: 42% 30% 20% 32%; transform: rotate(-6deg); }
.photo-tag { position: absolute; z-index: 4; left: -22px; bottom: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(15px); color: var(--muted); font-size: 11px; font-weight: 700; }
.photo-tag i { color: var(--accent); }
.floating-note { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); color: var(--muted); font-size: 10px; font-weight: 700; box-shadow: 0 15px 40px rgba(0,0,0,.15); }
.floating-note--top { top: 11%; right: -2%; animation: float 5s ease-in-out infinite; }
.floating-note--top i { color: var(--accent); }
.floating-note--bottom { bottom: 8%; right: 4%; animation: float 5.5s ease-in-out infinite reverse; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(245,158,11,.10); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(70px); }
.hero__glow--one { width: 400px; height: 400px; left: -160px; top: 20%; background: rgba(245,158,11,.08); }
.hero__glow--two { width: 520px; height: 520px; right: -260px; bottom: -150px; background: rgba(253,186,74,.06); }
.hero__grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent); pointer-events: none; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.scroll-cue i { color: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(5px); } }

.section-heading { max-width: 700px; margin-bottom: 55px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h2, .goals-copy h2 { margin: 0 0 15px; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.section-heading h2 span, .goals-copy h2 span, .github-card h2 span { color: var(--accent); }
.section-heading > p:last-child { margin: 0; color: var(--muted); max-width: 620px; }
.section-heading--center > p:last-child { margin-inline: auto; }
.lead { font-size: 18px; color: var(--text); }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: start; }
.about-copy > p { color: var(--muted); }
.about-copy .lead { color: var(--text); }
.about-photo-card { position: relative; margin-top: 35px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 16/9; }
.about-photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .6s var(--ease); }
.about-photo-card:hover img { transform: scale(1.035); }
.about-photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.68), transparent 55%); }
.about-photo-caption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.about-photo-caption span { color: var(--accent-light); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.about-photo-caption strong { max-width: 250px; font-size: 15px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.info-card { min-height: 185px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s var(--ease), border-color .3s ease, background .3s ease; }
.info-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,.35); background: var(--card-strong); }
.info-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(245,158,11,.10); color: var(--accent); }
.info-card span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.info-card strong, .info-card a { font-size: 14px; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--accent); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { min-height: 360px; position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: transform .35s var(--ease), border-color .35s ease, background .35s ease; }
.service-card::before { content: ""; position: absolute; width: 150px; height: 150px; right: -80px; top: -80px; border-radius: 50%; background: rgba(245,158,11,.10); filter: blur(25px); transition: transform .4s ease; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(245,158,11,.34); background: var(--card-strong); }
.service-card:hover::before { transform: scale(1.5); }
.service-number { position: absolute; top: 22px; right: 22px; color: var(--muted-2); font-size: 10px; font-weight: 800; }
.service-icon { width: 52px; height: 52px; margin: 40px 0 55px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 15px; color: var(--accent); background: rgba(245,158,11,.06); font-size: 19px; }
.service-card h3 { margin: 0 0 12px; font-size: 19px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; }
.card-link { position: absolute; left: 26px; bottom: 24px; color: var(--muted-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.card-link i { color: var(--accent); margin-left: 5px; }

.skills-layout { display: grid; grid-template-columns: 1.45fr .55fr; gap: 22px; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skill-card { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); min-height: 160px; transition: transform .3s var(--ease), border-color .3s ease; }
.skill-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,.30); }
.skill-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.skill-card__top i { font-size: 22px; color: var(--accent); }
.skill-card__top span { padding: 5px 7px; border-radius: 6px; background: rgba(245,158,11,.08); color: var(--accent-light); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.skill-card h3 { margin: 0 0 5px; font-size: 15px; }
.skill-card p { margin: 0; color: var(--muted); font-size: 11px; }
.learning-dashboard { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(245,158,11,.10), var(--card) 42%); min-height: 100%; }
.dashboard__header { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.dashboard__header i { color: var(--accent); }
.dashboard__title { margin: 45px 0 30px; font-size: 27px; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.dashboard__title em { color: var(--accent); font-size: 14px; font-style: normal; }
.learning-list { border-top: 1px solid var(--border); }
.learning-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.learning-list b { color: var(--muted-2); font-size: 9px; }

.timeline { position: relative; width: min(820px, 100%); margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 1px; background: var(--border); }
.timeline-item { position: relative; display: grid; grid-template-columns: 45px 1fr; gap: 25px; margin-bottom: 28px; }
.timeline-marker { position: relative; z-index: 2; width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--bg); color: var(--accent); font-size: 14px; }
.timeline-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.timeline-card > span { color: var(--accent-light); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.timeline-card h3 { margin: 7px 0 5px; font-size: 20px; }
.timeline-card p { margin: 0; color: var(--muted); font-size: 13px; }
.timeline-card small { display: inline-block; margin-top: 10px; color: var(--muted-2); font-size: 10px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 25px; }
.filter-button { border: 1px solid var(--border); background: transparent; color: var(--muted); padding: 8px 13px; border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 800; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.filter-button:hover, .filter-button.active { color: #111; background: var(--accent); border-color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform .35s var(--ease), border-color .35s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(245,158,11,.34); }
.project-card.is-filtered { display: none; }
.project-visual { position: relative; height: 215px; overflow: hidden; background: #0d0d12; border-bottom: 1px solid var(--border); }
[data-theme="light"] .project-visual { background: #deded8; }
.project-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(245,158,11,.20), transparent 32%); pointer-events: none; }
.mock-browser { position: absolute; left: 11%; right: 11%; top: 15%; bottom: 12%; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.05); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.mock-bar { height: 18px; border-bottom: 1px solid rgba(255,255,255,.10); display: flex; align-items: center; gap: 4px; padding-left: 8px; }
.mock-bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }
.mock-content { padding: 16px; display: grid; gap: 9px; }
.mock-line { height: 7px; width: 55%; border-radius: 99px; background: rgba(255,255,255,.16); }
.mock-line.short { width: 32%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.mock-grid span { height: 50px; border-radius: 6px; background: rgba(245,158,11,.13); border: 1px solid rgba(245,158,11,.18); }
.mock-calculator { position: absolute; width: 130px; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.07); box-shadow: 0 25px 50px rgba(0,0,0,.3); }
.mock-display { height: 32px; margin-bottom: 8px; border-radius: 6px; background: rgba(255,255,255,.08); text-align: right; padding: 5px 7px; font-size: 10px; color: rgba(255,255,255,.65); }
.mock-buttons { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.mock-buttons span { height: 19px; display: grid; place-items: center; border-radius: 4px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); font-size: 7px; }
.mock-list { position: absolute; width: 55%; left: 22%; top: 16%; display: grid; gap: 7px; }
.mock-list span { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 9px; border: 1px solid rgba(255,255,255,.10); border-radius: 7px; background: rgba(255,255,255,.05); }
.mock-list span::before { content: ""; width: 42%; height: 5px; border-radius: 99px; background: rgba(255,255,255,.17); }
.mock-list span::after { content: ""; width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: 50%; }
.mock-chart { position: absolute; inset: 18% 12%; display: flex; align-items: end; justify-content: center; gap: 8px; border-left: 1px solid rgba(255,255,255,.10); border-bottom: 1px solid rgba(255,255,255,.10); padding: 10px; }
.mock-chart span { width: 14px; height: var(--h); background: linear-gradient(to top, rgba(245,158,11,.25), rgba(245,158,11,.8)); border-radius: 5px 5px 0 0; }
.mock-weather { position: absolute; inset: 13% 15%; padding: 18px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.055); }
.mock-weather strong { display: block; font-size: 28px; margin-top: 20px; }
.mock-weather span { color: rgba(255,255,255,.55); font-size: 8px; }
.mock-game { position: absolute; inset: 13% 15%; border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; }
.mock-game::before { content: ""; position: absolute; width: 12px; height: 12px; left: 42%; top: 38%; background: var(--accent); box-shadow: 20px 18px 0 rgba(253,186,74,.65), 44px 9px 0 rgba(245,158,11,.4); border-radius: 3px; }
.project-body { padding: 22px; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.project-badge { display: inline-flex; width: max-content; padding: 5px 7px; border-radius: 6px; background: rgba(245,158,11,.10); color: var(--accent-light); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.project-category { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.project-body h3 { margin: 14px 0 8px; font-size: 18px; }
.project-body p { min-height: 62px; margin: 0; color: var(--muted); font-size: 12px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tech-list span { padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 8px; font-weight: 700; }
.project-actions { display: flex; gap: 7px; }
.project-actions a, .project-actions button { flex: 1; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; cursor: pointer; }
.project-actions a:hover, .project-actions button:hover { border-color: var(--accent); color: var(--accent); }

.goals-section { overflow: hidden; }
.goals-section::before { content: ""; position: absolute; width: 550px; height: 550px; right: -250px; top: 5%; border-radius: 50%; background: rgba(245,158,11,.06); filter: blur(80px); }
.goals-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.goals-copy { position: sticky; top: 120px; }
.goals-copy .lead, .goals-copy > p:not(.eyebrow) { color: var(--muted); }
.goals-copy .button { margin-top: 20px; }
.goal-list { display: grid; gap: 10px; }
.goal-list article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); transition: transform .3s ease, border-color .3s ease; }
.goal-list article:hover { transform: translateX(6px); border-color: rgba(245,158,11,.3); }
.goal-list article > span { color: var(--accent); font-size: 10px; font-weight: 800; }
.goal-list h3 { margin: 0 0 4px; font-size: 15px; }
.goal-list p { margin: 0; color: var(--muted); font-size: 11px; }

.github-card { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 22px; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(110deg, var(--card), rgba(245,158,11,.055)); }
.github-card__icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; background: var(--card-strong); border: 1px solid var(--border); font-size: 30px; }
.github-card h2 { margin: 0 0 7px; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.github-card p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-pill i { color: var(--accent); font-size: 6px; }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.contact-info { display: grid; gap: 10px; }
.contact-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: var(--card); }
.contact-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(245,158,11,.08); color: var(--accent); }
.contact-card span { display: block; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-card a, .contact-card strong { display: block; margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--accent); }
.copy-email { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.copy-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-socials { display: flex; gap: 8px; margin: 13px 0 4px; }
.social-placeholder { color: var(--muted-2); opacity: .6; cursor: not-allowed; }
.cv-link { display: inline-flex; align-items: center; gap: 8px; width: max-content; color: var(--muted); font-size: 11px; font-weight: 800; }
.cv-link:hover { color: var(--accent); }
.micro-note { margin: 0; color: var(--muted-2); font-size: 9px; }
.micro-note code { color: var(--muted); }
.contact-form { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--border); border-radius: 11px; outline: none; background: color-mix(in srgb, var(--bg) 65%, transparent); color: var(--text); padding: 13px 14px; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.08); }
.form-field.invalid input, .form-field.invalid textarea { border-color: #ef4444; }
.field-error { display: block; min-height: 14px; margin-top: 5px; color: #ef7777; font-size: 9px; }
.form-status { min-height: 20px; margin: 12px 0 0; font-size: 11px; color: var(--accent-light); }

.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 55px 0; }
.footer__top p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 10px; font-weight: 700; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0 22px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 9px; }

.back-to-top { position: fixed; z-index: 900; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); color: var(--text); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, border-color .25s ease; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

.modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); }
.modal__dialog { position: relative; z-index: 2; width: min(820px, 100%); max-height: min(90vh, 850px); overflow: auto; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--bg-2); box-shadow: var(--shadow); transform: translateY(18px) scale(.98); transition: transform .3s var(--ease); }
.modal.open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close { position: sticky; float: right; top: 15px; z-index: 5; width: 38px; height: 38px; margin: 15px 15px -53px 0; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: color-mix(in srgb, var(--bg-2) 75%, transparent); color: var(--text); cursor: pointer; }
.modal__visual { height: 250px; border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.modal__visual .mock-browser, .modal__visual .mock-calculator, .modal__visual .mock-list, .modal__visual .mock-chart, .modal__visual .mock-weather, .modal__visual .mock-game { transform-origin: center; }
.modal__body { padding: 30px; }
.modal__body h2 { margin: 12px 0 10px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.05em; line-height: 1; }
.modal__body > p { margin: 0; color: var(--muted); font-size: 13px; }
.modal__features { margin: 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.modal__features div { padding: 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 10px; }
.modal__features i { color: var(--accent); margin-right: 6px; }
.modal__actions { display: flex; gap: 9px; margin-top: 24px; }
.modal__actions .button { flex: 1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.revealed { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .08s; }
.reveal--delay-1 { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .18s; }
.reveal--delay-3 { transition-delay: .24s; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1050px) {
  .nav-link { padding-inline: 7px; font-size: 11px; }
  .hero__layout { gap: 30px; }
  .hero__visual { min-height: 520px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-layout { grid-template-columns: 1fr; }
  .learning-dashboard { min-height: auto; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .goals-grid { gap: 50px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 90px 0; }
  .menu-toggle { display: block; }
  .nav-shell { position: fixed; z-index: -1; inset: var(--header-height) 0 auto 0; min-height: calc(100svh - var(--header-height)); padding: 24px 20px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px); border-top: 1px solid var(--border); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; display: flex; align-items: flex-start; flex-direction: column; }
  .nav-shell.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { width: 100%; display: grid; gap: 2px; }
  .nav-link { width: 100%; padding: 14px 4px; font-size: 18px; }
  .nav-link::after { left: 4px; right: auto; width: 25px; bottom: 7px; }
  .nav-actions { margin-top: auto; padding: 10px 0 25px; }
  .hero { padding-top: 120px; }
  .hero__layout { grid-template-columns: 1fr; }
  .hero__content { max-width: none; }
  .hero__visual { min-height: auto; padding: 40px 0 20px; }
  .hero-photo-frame { width: min(470px, 92%); }
  .floating-note--top { right: 2%; }
  .floating-note--bottom { right: 7%; }
  .about-grid, .goals-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .goals-copy { position: static; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .github-card { grid-template-columns: 58px 1fr; }
  .github-card__icon { width: 58px; height: 58px; }
  .status-pill { grid-column: 2; width: max-content; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 75px 0; }
  .hero { padding-top: 105px; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .hero__intro { font-size: 14px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .button { width: 100%; }
  .hero__visual { padding-top: 25px; }
  .photo-tag { left: 0; bottom: 20px; }
  .floating-note { font-size: 9px; }
  .floating-note--top { top: 5%; right: 0; }
  .floating-note--bottom { bottom: 3%; right: 0; }
  .scroll-cue { display: none; }
  .section-heading { margin-bottom: 35px; }
  .section-heading h2, .goals-copy h2 { font-size: clamp(2.35rem, 13vw, 3.6rem); }
  .info-grid, .skill-grid, .service-grid, .project-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 315px; }
  .service-icon { margin-bottom: 42px; }
  .timeline::before { left: 19px; }
  .timeline-item { grid-template-columns: 39px 1fr; gap: 14px; }
  .timeline-marker { width: 39px; height: 39px; }
  .timeline-card { padding: 20px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .project-visual { height: 205px; }
  .project-body p { min-height: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
  .github-card { grid-template-columns: 1fr; }
  .status-pill { grid-column: auto; }
  .footer__top, .footer__bottom { align-items: flex-start; flex-direction: column; }
  .footer__top { padding: 40px 0; }
  .footer__bottom { gap: 7px; }
  .modal { padding: 10px; }
  .modal__visual { height: 190px; }
  .modal__body { padding: 22px; }
  .modal__features { grid-template-columns: 1fr; }
  .modal__actions { flex-direction: column; }
}

@media (hover: none), (pointer: coarse) {
  .magnetic { transform: none !important; }
  .social-links a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Education institution detail */
.education-college { display: block; margin-top: 0.35rem; font-size: 0.88em; opacity: 0.78; line-height: 1.5; }


/* Premium additions: quick contact, honest local analytics and mobile-safe controls */
.social-placeholder-link { opacity: .78; }
.social-placeholder-link:hover { color: var(--accent); }
.visit-counter { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.visit-counter__icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(245,158,11,.09); color: var(--accent); }
.visit-counter strong, .visit-counter small { display: block; }
.visit-counter strong { font-size: 11px; }
.visit-counter small { margin-top: 3px; color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.floating-contact { position: fixed; z-index: 1800; right: max(16px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: grid; gap: 9px; }
.floating-contact__button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 48px; min-height: 48px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-2); color: var(--text); box-shadow: 0 12px 32px rgba(0,0,0,.22); font-size: 11px; font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.floating-contact__button i { font-size: 19px; }
.floating-contact__button:hover { transform: translateY(-3px); border-color: var(--accent); }
.floating-contact__button--whatsapp i { color: #25D366; }
.floating-contact__button--telegram i { color: #2AABEE; }
@media (max-width: 600px) { .floating-contact { right: max(10px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); gap: 7px; } .floating-contact__button { width: 46px; min-width: 46px; height: 46px; min-height: 46px; padding: 0; } .floating-contact__button span { display: none; } .visit-counter { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .floating-contact__button { transition: none; } }
