@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #10182b;
  --surface: #121d33;
  --surface-raised: #17243d;
  --text: #f5f7ff;
  --muted: #a4aec4;
  --muted-soft: #7e8aa4;
  --accent: #579bff;
  --accent-bright: #79b3ff;
  --accent-soft: rgba(87, 155, 255, .14);
  --border: rgba(173, 194, 230, .09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --content: 1180px;
  font-family: 'DM Sans', sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* { box-sizing: border-box; }
html { min-width: 320px; font-size: 62.5%; overflow-x: hidden; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 1.6rem; line-height: 1.65; }
body, button, input, textarea { font-family: 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(87, 155, 255, .35); color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 3.2rem;
  min-height: 82px;
  padding: 1.4rem max(5vw, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(173, 194, 230, .1);
  background: rgba(11, 16, 32, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.logo { flex: 0 0 auto; font-family: 'Manrope', sans-serif; font-size: 2.8rem; font-weight: 800; letter-spacing: -.08em; }
.header .logo { display: inline-flex; align-items: center; justify-content: center; }
.header .logo img { display: block; width: 56px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(87,155,255,.16)); transition: transform .22s ease, filter .22s ease; }
.header .logo:hover img, .header .logo:focus-visible img { transform: translateY(-1px) scale(1.04); filter: drop-shadow(0 0 9px rgba(54,216,255,.38)) drop-shadow(0 0 18px rgba(134,85,255,.24)); }
.header .logo:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; border-radius: 5px; }
.logo span, .section-title span, .home-content h1 span { color: var(--accent-bright); }
.navbar { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 3.2rem; }
.nav-list a { color: var(--muted); font-size: 1.45rem; font-weight: 600; transition: color .2s ease; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--text); }
.language-link { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; }
.language-link span { color: var(--accent-bright); }
.menu-toggle, .menu-close { display: none; }
.menu-backdrop, .nav-panel-label, .nav-panel-footer { display: none; }

.home {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: center;
  gap: clamp(10rem, 10vw, 15rem);
  max-width: 1440px;
  min-height: min(780px, calc(100svh - 82px));
  margin: 0 auto;
  padding: 9rem max(7vw, calc((100vw - var(--content)) / 2)) 10rem;
  overflow: hidden;
}
.home::before {
  position: absolute;
  z-index: -2;
  top: -28rem;
  left: -18rem;
  width: 72rem;
  height: 72rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 94, 180, .2), transparent 68%);
  content: '';
}
.home-content { max-width: 650px; min-width: 0; }
.eyebrow, .section-label, .project-type, .project-year, .art-overline, .art-status, .price-art-label {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 1rem; margin: 0 0 2.2rem; color: var(--accent-bright); }
.eyebrow-dot, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #61dfa1; box-shadow: 0 0 16px rgba(97, 223, 161, .65); }
.home-content h1 { max-width: 720px; margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(4.8rem, 6.4vw, 8.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -.065em; }
.hero-description { max-width: 570px; margin: 2.5rem 0 3rem; color: var(--muted); font-size: 1.75rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.3rem; row-gap: 1.3rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 48px; padding: 1.25rem 2rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 1.45rem; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #061225; background: var(--accent-bright); box-shadow: 0 10px 28px rgba(65, 135, 235, .18); }
.btn-primary:hover { background: #a1cbff; box-shadow: 0 13px 34px rgba(65, 135, 235, .28); }
.btn-secondary { color: var(--text); border-color: transparent; background: rgba(255, 255, 255, .06); }
.btn-secondary:hover { border-color: transparent; background: var(--accent-soft); }
.btn-cv {
  color: var(--accent-bright);
  border-color: transparent;
  background: linear-gradient(135deg, rgba(87, 155, 255, .14), rgba(255, 255, 255, .045));
}
.btn-cv:hover {
  border-color: transparent;
  color: #fff;
  background: rgba(87, 155, 255, .16);
  box-shadow: 0 10px 28px rgba(65, 135, 235, .12);
}
.social-links { display: flex; align-items: center; gap: 1.4rem; margin-top: 3.5rem; }
.social-links a { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.045); font-size: 1.8rem; transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease, text-shadow .22s ease; }
.social-links a:hover, .social-links a:focus-visible { color: #fff; background: rgba(87,155,255,.2); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(121,179,255,.3), 0 0 16px rgba(87,155,255,.42), 0 0 30px rgba(87,155,255,.2); text-shadow: 0 0 12px rgba(121,179,255,.85); outline: none; }

.home-visual { position: relative; display: grid; min-width: 0; min-height: 440px; place-items: center; }
.home-visual > img { position: relative; z-index: 2; width: min(78%, 390px); aspect-ratio: 1; object-fit: cover; border: 0; border-radius: 50%; box-shadow: 0 25px 100px rgba(0,0,0,.35), 0 0 60px rgba(87,155,255,.16); }
.visual-glow { position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(70, 139, 237, .28), transparent 68%); filter: blur(8px); }
.visual-orbit { position: absolute; width: 92%; aspect-ratio: 1; border: 1px solid rgba(121,179,255,.16); border-radius: 50%; transform: rotate(-22deg) scaleY(.52); }
.visual-orbit-two { width: 105%; transform: rotate(58deg) scaleY(.58); border-color: rgba(121,179,255,.1); }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border: 0; border-radius: 14px; background: rgba(18, 29, 51, .88); box-shadow: 0 16px 44px rgba(0,0,0,.24); color: var(--muted); font-size: 1.2rem; font-weight: 600; backdrop-filter: blur(14px); }
.floating-card-top { top: 13%; right: -1rem; }
.floating-card-bottom { bottom: 12%; left: -1rem; }
.floating-card-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--accent-bright); background: var(--accent-soft); font-size: 1.5rem; }

.section-shell { padding: 10rem max(7vw, calc((100vw - var(--content)) / 2)); }
.section-label { margin-bottom: 2.5rem; color: var(--accent-bright); }
.section-title { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(3.3rem, 4.4vw, 5.4rem); line-height: 1.12; letter-spacing: -.055em; }
.about { background: #0e1629; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: 9rem; }
.about-copy p, .section-heading > p, .section-heading div > p { color: var(--muted); font-size: 1.65rem; line-height: 1.85; }
.about-copy p { max-width: 720px; margin: 2.2rem 0 0; }
.text-link { display: inline-flex; align-items: center; gap: .9rem; margin-top: 2.7rem; color: var(--accent-bright); font-size: 1.45rem; font-weight: 700; }
.text-link:hover { color: #fff; }
.about-note { position: relative; padding: 3.2rem; border: 0; border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(87,155,255,.13), rgba(255,255,255,.035)); box-shadow: 0 18px 46px rgba(0,0,0,.12); }
.note-mark { color: var(--accent-bright); font-family: Georgia, serif; font-size: 6.5rem; line-height: .8; }
.about-note p { margin: 1rem 0 2rem; font-family: 'Manrope', sans-serif; font-size: 2.3rem; line-height: 1.45; font-weight: 700; letter-spacing: -.03em; }
.note-caption { color: var(--muted-soft); font-size: 1.25rem; }

.skills { background: var(--bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 4rem; }
.section-heading > p, .section-heading div > p { max-width: 580px; margin: 1.7rem 0 0; }
.skills-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.skill-item { display: flex; min-width: 0; align-items: center; gap: 1.3rem; min-height: 75px; padding: 1.6rem 1.8rem; border: 0; border-radius: 14px; background: rgba(255,255,255,.045); color: #d7deed; font-size: 1.45rem; font-weight: 600; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }
.skill-item:hover { transform: translateY(-4px); color: #fff; background: rgba(87,155,255,.17); box-shadow: 0 0 0 1px rgba(121,179,255,.16), 0 10px 30px rgba(56,132,235,.2), inset 0 0 24px rgba(87,155,255,.07); }
.skill-item iconify-icon { color: var(--accent-bright); font-size: 2.6rem; transition: filter .2s ease, transform .2s ease; }
.skill-item:hover iconify-icon { filter: drop-shadow(0 0 9px rgba(121,179,255,.7)); transform: scale(1.08); }
.skill-item span { min-width: 0; overflow-wrap: anywhere; }

.portfolio { background: #0e1629; }
.projects-heading { align-items: end; }
.project-count { flex: 0 0 auto; padding: .7rem 1.2rem; border: 0; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 1.2rem; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.project-card { min-width: 0; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: #111b30; box-shadow: 0 12px 34px rgba(0,0,0,.12); transition: transform .28s ease, box-shadow .28s ease; }
.project-card:hover, .project-card:focus-within { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(0,0,0,.28), 0 0 0 1px rgba(121,179,255,.22), 0 0 24px rgba(87,155,255,.22), 0 0 52px rgba(87,155,255,.12); }
.project-media { display: block; width: 100%; height: 220px; object-fit: cover; background: #17233a; }
.project-card-featured .project-media { height: 270px; }
.project-content { padding: 2.4rem; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.project-type { color: var(--accent-bright); font-size: 1rem; letter-spacing: .12em; }
.project-year { color: var(--muted-soft); font-size: 1rem; letter-spacing: .08em; }
.project-content h3 { margin: 0 0 1rem; font-family: 'Manrope', sans-serif; font-size: 2.5rem; line-height: 1.2; letter-spacing: -.04em; }
.project-content p { min-height: 8.4rem; margin: 0; color: var(--muted); font-size: 1.42rem; line-height: 1.75; }
.project-tags { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 2.2rem; }
.project-tags li { padding: .55rem .9rem; border: 0; border-radius: 999px; color: #b9c6dc; background: rgba(255,255,255,.065); font-size: 1.08rem; font-weight: 600; }

/* Technology tags use their own recognizable color accents. */
.project-tags li[data-tech="html"] { color: #ffb18e; background: rgba(240, 101, 41, .15); }
.project-tags li[data-tech="css"] { color: #8fc5ff; background: rgba(38, 114, 200, .18); }
.project-tags li[data-tech="javascript"] { color: #f7df70; background: rgba(247, 223, 30, .13); }
.project-tags li[data-tech="typescript"] { color: #8dbdff; background: rgba(49, 120, 198, .2); }
.project-tags li[data-tech="react"] { color: #8ce8ff; background: rgba(97, 218, 251, .14); }
.project-tags li[data-tech="next"] { color: #d8b4ff; background: rgba(162, 92, 255, .18); }
.project-tags li[data-tech="tailwind"] { color: #7ee5fb; background: rgba(56, 189, 248, .14); }
.project-tags li[data-tech="supabase"] { color: #8ce9b8; background: rgba(62, 207, 142, .14); }
.project-tags li[data-tech="supabase-auth"] { color: #8ce9b8; background: rgba(62, 207, 142, .14); }
.project-tags li[data-tech="audius"] { color: #ff9bc9; background: rgba(204, 12, 122, .15); }
.project-tags li[data-tech="oauth"] { color: #c4b5fd; background: rgba(139, 92, 246, .16); }
.project-tags li[data-tech="redis"] { color: #ff9c97; background: rgba(255, 68, 56, .14); }
.project-tags li[data-tech="localstorage"] { color: #f5d28a; background: rgba(214, 168, 75, .14); }
.project-tags li[data-tech="postgresql"] { color: #a9c6ff; background: rgba(51, 103, 145, .2); }
.project-tags li[data-tech="zustand"] { color: #ffbb83; background: rgba(230, 126, 34, .15); }
.project-tags li[data-tech="baseui"] { color: #b7dcff; background: rgba(72, 143, 210, .16); }
.project-tags li[data-tech="shadcn"] { color: #e5d9ff; background: rgba(151, 119, 220, .16); }
.project-tags li[data-tech="lucide"] { color: #9fe8f5; background: rgba(56, 189, 208, .14); }
.project-tags li[data-tech="sonner"] { color: #ffd0a0; background: rgba(238, 145, 61, .14); }
.project-tags li[data-tech="playwright"] { color: #9be3b1; background: rgba(45, 165, 96, .15); }
.project-tags li[data-tech="mercadolibre"] { color: #ffe083; background: rgba(245, 196, 42, .15); }
.project-tags li[data-tech="amazon"] { color: #ffc27d; background: rgba(255, 153, 0, .14); }
.project-tags li[data-tech="aliexpress"] { color: #ff9e92; background: rgba(255, 71, 56, .14); }
.project-tags li[data-tech="reefapi"] { color: #8be2ff; background: rgba(32, 165, 205, .14); }
.project-tags li[data-tech="pkce"] { color: #c8b6ff; background: rgba(139, 92, 246, .14); }
.project-tags li[data-tech="aes"] { color: #becce4; background: rgba(132, 154, 190, .16); }
.project-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1.6rem; }
.project-link { display: inline-flex; align-items: center; gap: .8rem; color: var(--muted); font-size: 1.25rem; font-weight: 700; transition: color .2s ease; }
.project-link:hover { color: var(--accent-bright); }
.project-link-primary { color: var(--accent-bright); }
.project-art { position: relative; display: block; overflow: hidden; }
.project-art-music { padding: 2.4rem 3rem; isolation: isolate; background: radial-gradient(ellipse at 78% 30%, rgba(117,86,255,.5), transparent 32%), radial-gradient(ellipse at 12% 90%, rgba(39,160,226,.4), transparent 35%), linear-gradient(125deg, #081326 0%, #102c59 48%, #1e2460 100%); }
.project-art-music::after { position: absolute; z-index: -1; right: -8rem; bottom: -15rem; width: 38rem; height: 38rem; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02); content: ''; }
.art-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.art-brand { display: flex; align-items: center; gap: .9rem; color: #fff; font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: .1em; }
.wave-mark { display: inline-flex; align-items: center; gap: 2px; height: 20px; }
.wave-mark i { display: block; width: 3px; border-radius: 4px; background: #8fc8ff; }
.wave-mark i:nth-child(1) { height: 9px; } .wave-mark i:nth-child(2) { height: 17px; } .wave-mark i:nth-child(3) { height: 12px; } .wave-mark i:nth-child(4) { height: 6px; }
.art-status { padding: .55rem .8rem; border: 0; border-radius: 999px; color: rgba(255,255,255,.76); font-size: .85rem; letter-spacing: .12em; }
.music-art-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; margin: 4rem 0 0 8%; }
.art-overline { color: #9bc7ff; font-size: .95rem; }
.music-art-content strong { display: block; margin-top: 1rem; color: #fff; font-family: 'Manrope', sans-serif; font-size: clamp(3.2rem, 4vw, 5.6rem); line-height: .98; letter-spacing: -.06em; }
.music-art-content strong em { color: #83c4ff; font-style: normal; }
.music-bars { display: flex; align-items: center; gap: 4px; height: 40px; margin-top: 2.1rem; }
.music-bars i { width: 4px; border-radius: 6px; background: linear-gradient(#a7d7ff, #6b8eff); }
.music-bars i:nth-child(3n) { height: 32px; } .music-bars i:nth-child(3n + 1) { height: 15px; } .music-bars i:nth-child(3n + 2) { height: 24px; }
.art-orb { position: absolute; display: block; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.art-orb-one { right: 12%; top: 25%; width: 145px; height: 145px; box-shadow: inset 0 0 45px rgba(119,183,255,.25), 0 0 60px rgba(90,157,255,.18); }
.art-orb-two { right: 6%; top: 12%; width: 210px; height: 210px; border-color: rgba(255,255,255,.08); }
.project-art-price { display: grid; place-items: center; padding: 2.2rem; background: radial-gradient(ellipse at 50% 0%, rgba(51, 140, 235, .3), transparent 60%), linear-gradient(135deg, #13243a, #0a1425); }
.price-art-window { width: min(100%, 520px); padding: 1.8rem; border: 0; border-radius: 17px; background: rgba(9, 17, 31, .9); box-shadow: 0 22px 60px rgba(0,0,0,.32); transform: rotate(-1deg); }
.price-art-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.price-art-logo { color: #f4f8ff; font-family: 'Manrope', sans-serif; font-size: 1.65rem; font-weight: 800; letter-spacing: -.07em; }
.price-art-logo span { color: #66a8ff; }
.price-art-user { color: #8795af; font-size: 1.5rem; }
.price-art-search { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border: 0; border-radius: 9px; color: #8291aa; background: #111f35; font-size: 1.05rem; }
.price-art-search i { color: #75b5ff; }
.price-art-search kbd { margin-left: auto; padding: .1rem .45rem; border: 0; border-radius: 4px; color: #b0bdd0; background: rgba(255,255,255,.07); }
.price-art-label { display: flex; justify-content: space-between; margin: 1.5rem 0 .8rem; color: #dce7f7; font-size: .8rem; letter-spacing: .1em; }
.price-art-label span { color: #75b5ff; }
.marketplace-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1.7rem; }
.marketplace-badges span { display: flex; min-height: 63px; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: .7rem .4rem; border: 0; border-radius: 9px; color: #dce7f7; background: rgba(255,255,255,.035); font-size: .85rem; font-weight: 600; text-align: center; }
.marketplace-badges i { color: #8fc2ff; font-size: 1.45rem; }
.price-art-footnote { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; color: #8797b1; font-size: .88rem; }
.price-art-footnote i { color: #8fc2ff; }

.contact { background: var(--bg); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 8rem; align-items: start; }
.contact-copy > p { max-width: 420px; margin: 2.2rem 0; color: var(--muted); font-size: 1.65rem; line-height: 1.8; }
.contact-email { display: inline-flex; align-items: center; gap: .8rem; color: var(--accent-bright); font-size: 1.4rem; font-weight: 700; }
.contact-email:hover { color: #fff; }
.contact-form { display: grid; gap: 1.8rem; padding: 2.8rem; border: 0; border-radius: var(--radius-lg); background: #111b30; box-shadow: 0 18px 48px rgba(0,0,0,.14); }
.form-row { display: grid; gap: .8rem; }
.form-row label { color: #dce5f4; font-size: 1.3rem; font-weight: 700; }
.form-row input, .form-row textarea { width: 100%; min-width: 0; padding: 1.35rem 1.5rem; border: 1px solid rgba(173,194,230,.09); border-radius: 11px; outline: none; color: var(--text); background: #0c1528; font-size: 1.4rem; transition: border-color .2s ease, box-shadow .2s ease; }
.form-row textarea { min-height: 135px; resize: vertical; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #71809b; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(87,155,255,.13); }
.form-submit { justify-self: start; min-width: 175px; border: 0; }
.form-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.form-status { min-height: 2.2rem; margin: -.6rem 0 0; color: var(--muted); font-size: 1.25rem; }
.form-status.is-success { color: #6de0a7; }
.form-status.is-error { color: #ff9e9e; }
.botcheck { display: none !important; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem max(7vw, calc((100vw - var(--content)) / 2)); border-top: 1px solid rgba(173,194,230,.08); background: #080d1a; }
.footer .logo { font-size: 2.4rem; }
.footer p, .footer-copy { margin: 0; color: var(--muted-soft); font-size: 1.2rem; }

/* Give wide desktop and 2K displays enough room for both hero columns. */
@media (min-width: 1401px) {
  .home {
    max-width: 1840px;
    grid-template-columns: minmax(0, 1.18fr) minmax(440px, .82fr);
    gap: clamp(9rem, 8vw, 15rem);
    padding-inline: clamp(7rem, 7vw, 12rem);
  }

  .home-content {
    max-width: 720px;
  }

  .home-content h1 {
    max-width: 760px;
  }

  .home-visual {
    min-height: 520px;
  }

  .home-visual > img {
    width: min(78%, 440px);
  }

  .floating-card-top {
    right: 0;
  }

  .floating-card-bottom {
    left: 0;
  }
}

@media (max-width: 1050px) {
  .home { grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); gap: clamp(4.5rem, 6vw, 7rem); padding-inline: 6vw; }
  .section-shell { padding-inline: 6vw; }
  .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-layout, .contact-layout { gap: 4rem; }
  .project-card-featured .project-media { height: 240px; }
  .project-content { padding: 2rem; }
}

/* Compact header and off-canvas navigation */
@media (max-width: 900px) {
  .header {
    min-height: 76px;
    gap: 1rem;
    padding-inline: 5vw;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .language-link {
    order: 2;
    margin-left: auto;
  }

  .menu-toggle {
    order: 3;
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    margin-left: 1rem;
    place-items: center;
    border: 0;
    border-radius: 15px;
    color: var(--text);
    background: linear-gradient(145deg, rgba(87, 155, 255, .18), rgba(255, 255, 255, .035));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18), inset 0 1px rgba(255,255,255,.08);
    font-size: 1.9rem;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    border-color: var(--accent-bright);
    background: rgba(87, 155, 255, .23);
    outline: none;
  }

  .menu-toggle:active { transform: scale(.96); }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 8, 18, .68);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition: opacity .28s ease, visibility .28s ease;
  }

  .menu-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;
    display: flex;
    width: min(88vw, 390px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    padding: 8.8rem 2.8rem 2.8rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 0;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(87, 155, 255, .2), transparent 42%),
      linear-gradient(160deg, #14233d 0%, #0d172a 48%, #080f1e 100%);
    box-shadow: -24px 0 70px rgba(0, 0, 0, .42);
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    /* Do not animate the desktop-to-mobile layout switch. */
    transition: none;
  }

  .navbar.menu-ready {
    transition: transform .34s cubic-bezier(.22, .75, .25, 1), visibility 0s linear .34s;
  }

  .navbar.menu-ready.visible {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .34s cubic-bezier(.22, .75, .25, 1), visibility 0s;
  }

  .menu-close {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 15px;
    color: var(--text);
    background: rgba(255, 255, 255, .055);
    font-size: 1.9rem;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
  }

  .menu-close:hover,
  .menu-close:focus-visible {
    border-color: var(--accent-bright);
    background: var(--accent-soft);
    outline: none;
  }

  .menu-close:active { transform: scale(.96); }

  .nav-panel-label {
    display: block;
    margin: 0 0 1.7rem;
    color: var(--accent-bright);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .2em;
  }

  .nav-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: nav-item;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 0;
    counter-increment: nav-item;
  }

  .nav-list a {
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 1.3rem;
    padding: 1.4rem .6rem;
    border-radius: 11px;
    color: #edf3ff;
    font-family: 'Manrope', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.025em;
    transition: color .2s ease, background .2s ease, padding .2s ease;
  }

  .nav-list a::before {
    color: #8294b2;
    content: "0" counter(nav-item);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
  }

  .nav-list a::after {
    margin-left: auto;
    color: #7893bb;
    content: "↗";
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    transition: color .2s ease, transform .2s ease;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    padding-inline: 1.1rem;
    color: #fff;
    background: rgba(87, 155, 255, .1);
    outline: none;
  }

  .nav-list a:hover::after,
  .nav-list a:focus-visible::after {
    color: var(--accent-bright);
    transform: translate(2px, -2px);
  }

  .nav-panel-footer {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: auto;
    padding-top: 2.4rem;
    color: #a1b0c9;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.5;
  }

  .nav-panel-status {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #61dfa1;
    box-shadow: 0 0 16px rgba(97, 223, 161, .55);
  }

  body.menu-open { overflow: hidden; }
}

/* Keep the regular page layout independent from the menu breakpoint. */
@media (max-width: 760px) {
  .header { min-height: 70px; gap: 1.6rem; padding-inline: 5vw; }
  .logo { font-size: 2.5rem; }
  .header .logo img { width: 49px; height: 39px; }
  .menu-toggle { display: inline-grid; }

  .home { grid-template-columns: minmax(0, 1fr); gap: 3.8rem; min-height: auto; padding: 6.5rem 6vw 6rem; }
  .home-content { order: 1; width: 100%; max-width: 680px; }
  .home-visual { order: 2; min-height: clamp(250px, 70vw, 340px); margin-top: .5rem; }
  .home-visual > img { width: clamp(210px, 58%, 280px); }
  .floating-card-top { top: 8%; right: 0; }
  .floating-card-bottom { bottom: 6%; left: 0; }
  .home-content h1 { font-size: clamp(3.8rem, 9.2vw, 5.8rem); }
  .hero-description { font-size: 1.6rem; }
  .section-shell { padding: 7.5rem 6vw; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-note { max-width: 520px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured .project-media { height: 235px; }
  .project-media { height: 220px; }
  .project-content p { min-height: 0; }
  .contact-form { padding: 2rem; }
  .footer { padding: 2.5rem 6vw; }
}
@media (max-width: 430px) {
  .header { gap: .8rem; }
  .language-link { font-size: 1.2rem; }
  .menu-toggle { width: 43px; height: 43px; flex-basis: 43px; margin-left: .5rem; }
  .home-visual { min-height: 250px; }
  .floating-card { max-width: calc(100% - 1.2rem); padding: .8rem 1rem; font-size: 1rem; }
  .floating-card-icon { width: 26px; height: 26px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .skills-grid { gap: .8rem; }
  .skill-item { min-height: 66px; padding: 1.1rem; font-size: 1.25rem; }
  .skill-item iconify-icon { font-size: 2.2rem; }
  .project-art-music { padding: 1.8rem; }
  .music-art-content { margin: 3.4rem 0 0 2%; }
  .music-art-content strong { font-size: 3.7rem; }
  .art-orb-one { right: -4%; width: 105px; height: 105px; }
  .art-orb-two { right: -12%; width: 160px; height: 160px; }
  .project-art-price { padding: 1.4rem; }
  .price-art-window { padding: 1.2rem; }
  .price-art-product { gap: .6rem; }
  .product-lines b { max-width: 125px; font-size: .85rem; }
  .price-art-product strong { font-size: .8rem; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
