:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #101828;
  --muted: #667085;
  --line: #dfe5ec;
  --brand: #2155f5;
  --brand-2: #7a5cff;
  --dark: #0b1220;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}
[data-theme="dark"] {
  --bg: #090e18;
  --surface: #111827;
  --surface-2: #172033;
  --text: #f7f9fc;
  --muted: #a7b0c0;
  --line: #263246;
  --brand: #7aa2ff;
  --brand-2: #a48aff;
  --dark: #030712;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; transition: background .25s ease, color .25s ease; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section-block { padding: 108px 0; }
.site-header { position: sticky; top: 0; z-index: 50; height: 76px; padding: 0 max(20px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 11px; font-family: Manrope, sans-serif; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; font-size: 13px; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 28%, transparent); }
.desktop-nav { display: flex; gap: 30px; color: var(--muted); font-weight: 600; font-size: 14px; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--text); cursor: pointer; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; font-family: Manrope, sans-serif; font-weight: 700; border: 1px solid transparent; box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 24%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 32%, transparent); }
.button-small { min-height: 42px; padding-inline: 16px; border-radius: 12px; font-size: 14px; }
.button-secondary { color: var(--text); background: var(--surface); border-color: var(--line); box-shadow: none; }
.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding-block: 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-weight: 600; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 5px rgba(18,183,106,.12); }
h1, h2, h3 { font-family: Manrope, sans-serif; margin-top: 0; }
h1 { max-width: 760px; margin: 24px 0 22px; font-size: clamp(52px, 6vw, 82px); line-height: .99; letter-spacing: -.06em; }
h1 span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { max-width: 650px; font-size: 19px; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong { font: 800 21px Manrope, sans-serif; }
.hero-meta span { color: var(--muted); font-size: 13px; }
.hero-visual { display: flex; justify-content: center; }
.portrait-card { width: min(460px, 100%); aspect-ratio: 4/5; position: relative; border-radius: 34px; padding: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 28%, var(--surface)), var(--surface)); box-shadow: var(--shadow); overflow: hidden; }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 25px; position: relative; z-index: 1; }
.portrait-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--brand); opacity: .2; filter: blur(80px); right: -120px; top: -100px; }
.floating-card { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.28); background: rgba(10, 18, 32, .78); color: white; backdrop-filter: blur(14px); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.floating-card span { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .12em; }
.floating-card strong { font: 700 14px Manrope, sans-serif; }
.floating-card-top { top: 38px; left: -26px; }
.floating-card-bottom { right: -28px; bottom: 45px; }
.section-heading { max-width: 820px; margin-bottom: 52px; }
.section-kicker { display: block; margin-bottom: 14px; color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: 12px; }
.section-heading h2, .contact-card h2 { margin-bottom: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.section-heading-row > div { max-width: 700px; }
.section-heading-row > p { width: 360px; color: var(--muted); line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: start; }
.about-copy p { margin-top: 0; color: var(--muted); font-size: 20px; line-height: 1.8; }
.skills-panel { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.skills-panel > span { display: block; margin-bottom: 22px; font: 800 15px Manrope, sans-serif; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-cloud span, .project-tags span { padding: 9px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.projects-section { background: var(--surface-2); border-block: 1px solid var(--line); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card { position: relative; min-height: 430px; padding: 30px; overflow: hidden; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 40px rgba(16,24,40,.06); display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-featured { grid-column: span 2; min-height: 480px; display: grid; grid-template-columns: 1fr .75fr; gap: 24px; align-items: end; }
.project-number { position: absolute; top: 24px; right: 28px; font: 800 12px Manrope, sans-serif; color: var(--muted); letter-spacing: .12em; }
.project-content { position: relative; z-index: 2; max-width: 640px; align-self: end; }
.project-topline { display: flex; gap: 10px; color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.project-topline span + span::before { content: "•"; margin-right: 10px; color: var(--muted); }
.project-card h3 { margin: 16px 0 10px; font-size: 36px; letter-spacing: -.04em; }
.project-card p { color: var(--muted); line-height: 1.7; font-size: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.text-link span { color: var(--brand); }
.project-art { position: absolute; right: -34px; top: 46px; width: 220px; height: 220px; border-radius: 52px; transform: rotate(9deg); display: grid; place-items: center; overflow: hidden; opacity: .95; }
.project-art > span { font: 800 46px Manrope, sans-serif; }
.project-featured .project-art { position: relative; inset: auto; width: 100%; height: 330px; transform: none; border-radius: 28px; }
.art-hazi { background: linear-gradient(145deg, #14b8a6, #0f766e); color: white; }
.art-hazi > span { font-size: 64px; letter-spacing: -.08em; z-index: 2; }
.art-hazi i { position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.32); border-radius: 28px; transform: rotate(20deg); }
.art-hazi i:nth-of-type(2) { width: 230px; height: 230px; transform: rotate(42deg); }
.art-hazi i:nth-of-type(3) { width: 310px; height: 310px; transform: rotate(64deg); }
.art-chow { background: linear-gradient(145deg, #ff8a00, #ff4d4d); color: white; }
.art-cat { background: linear-gradient(145deg, #5b4bdb, #8c6cff); color: white; }
.art-korex { background: linear-gradient(145deg, #12b76a, #047857); color: white; }
.art-nadbooks { background: linear-gradient(145deg, #f97352, #a83a32); color: white; }
.art-gramapp { background: linear-gradient(145deg, #d9ff43, #80b918); color: #101828; }
.art-mahadum { background: linear-gradient(145deg, #ff8b3d, #7c3aed); color: white; }
.art-arcane { background: linear-gradient(145deg, #ef233c, #7f1d1d); color: white; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 220px 1fr; gap: 42px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--muted); font-weight: 700; }
.timeline-item h3 { margin-bottom: 9px; font-size: 23px; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.75; max-width: 780px; }
.contact-section { padding-top: 50px; }
.contact-card { padding: 64px; border-radius: 32px; color: white; background: radial-gradient(circle at top right, rgba(122,92,255,.82), transparent 35%), linear-gradient(135deg, #0a1730, #122c59); display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; box-shadow: var(--shadow); }
.contact-card .section-kicker { color: #b9c9ff; }
.contact-card p { color: rgba(255,255,255,.72); line-height: 1.75; font-size: 17px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.button-light { background: white; color: #101828; box-shadow: none; }
.contact-detail { color: rgba(255,255,255,.82); font-weight: 600; }
.site-footer { display: flex; justify-content: space-between; padding-block: 34px; color: var(--muted); font-size: 14px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 16px; }
  .about-grid, .contact-card { grid-template-columns: 1fr; }
  .section-heading-row { display: block; }
  .section-heading-row > p { width: auto; }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured .project-art { order: -1; height: 260px; }
}
@media (max-width: 680px) {
  .section-shell { width: min(100% - 28px, 1180px); }
  .site-header { height: 68px; padding-inline: 14px; }
  .brand > span:last-child { display: none; }
  .button-small { display: none; }
  .hero { min-height: auto; padding-block: 58px 76px; gap: 48px; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-text { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-meta { grid-template-columns: 1fr; text-align: left; }
  .portrait-card { width: calc(100% - 18px); }
  .floating-card-top { left: -8px; }
  .floating-card-bottom { right: -8px; }
  .section-block { padding: 78px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; min-height: 0; }
  .project-card { min-height: 460px; padding: 24px; }
  .project-featured .project-art { height: 220px; }
  .project-art { width: 190px; height: 190px; top: 38px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .contact-card { width: calc(100% - 28px); padding: 36px 26px; border-radius: 24px; }
  .site-footer { flex-direction: column; gap: 8px; }
}
