
:root {
  --bg: #080a10;
  --panel: rgba(18, 23, 36, .76);
  --gold: #e9bd68;
  --blue: #5a8cff;
  --text: #f5f6fa;
  --muted: #9299aa;
  --border: rgba(255,255,255,.09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .2;
  pointer-events: none;
  z-index: -2;
}

.glow-one {
  background: #245cff;
  top: 10%;
  left: -180px;
}

.glow-two {
  background: #b77a25;
  right: -180px;
  top: 50%;
}

.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  padding: 19px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,10,16,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  transition: .3s;
}

.nav a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255,255,255,.04);
}

.lang {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 20px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.lang.active {
  background: var(--gold);
  color: #15110a;
}

.menu-button {
  display: none;
  color: white;
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.section {
  padding: 120px 9%;
}

.hero {
  min-height: 100vh;
  padding-top: 150px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c5d0dc;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 15px;
  font-size: 11px;
  margin-bottom: 30px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55e6a5;
  box-shadow: 0 0 12px #55e6a5;
}

.eyebrow,
.section-heading p {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.04;
  letter-spacing: -5px;
  font-weight: 900;
}

.hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 35px rgba(233,189,104,.17);
}

.hero h2 {
  color: #aab8d3;
  font-size: 21px;
  margin-top: 20px;
}

.hero-description {
  max-width: 510px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  margin-top: 20px;
}

.hero-buttons {
  display: flex;
  gap: 13px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.button {
  padding: 15px 22px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  transition: .3s;
}

.button-primary {
  background: var(--gold);
  color: #17130b;
  box-shadow: 0 8px 30px rgba(233,189,104,.16);
}

.button-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(233,189,104,.3);
}

.button-outline {
  border: 1px solid var(--border);
  color: white;
}

.button-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 23px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--muted);
  font-size: 12px;
  transition: .3s;
}

.social-links a:hover {
  color: var(--gold);
}

.hero-visual {
  min-height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.profile-card {
  width: min(330px, 85%);
  height: 405px;
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(233,189,104,.25);
  background: linear-gradient(145deg, rgba(34,41,60,.9), rgba(10,13,22,.95));
  box-shadow: 0 35px 90px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.12);
  transform: rotateY(-12deg) rotateX(6deg);
  transform-style: preserve-3d;
  animation: cardFloat 6s ease-in-out infinite;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 15px;
  pointer-events: none;
}

.card-top {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .8;
}

.card-label {
  margin-left: auto;
  color: #737d91;
  font-size: 8px;
  letter-spacing: 2px;
}

.avatar {
  width: 185px;
  height: 185px;
  margin: 35px auto 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 35% 30%, #354a78, #111827 65%);
  box-shadow: 0 0 55px rgba(90,140,255,.22), inset 0 0 30px rgba(255,255,255,.08);
}

.avatar-ring {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(233,189,104,.65);
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 12s linear infinite;
}

.avatar-letter {
  font-size: 100px;
  font-weight: 900;
  color: white;
  text-shadow: 0 10px 35px rgba(0,0,0,.5);
}

.avatar-letter span {
  color: var(--gold);
}

.profile-name {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 5px;
}

.profile-role {
  text-align: center;
  margin-top: 9px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 3px;
}

.card-bottom {
  position: absolute;
  bottom: 23px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  color: #78849a;
  font-size: 9px;
  letter-spacing: 2px;
}

.orbit {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(90,140,255,.16);
  border-radius: 50%;
  transform: rotateX(65deg) rotateZ(-25deg);
}

.orbit-two {
  width: 500px;
  height: 500px;
  border-color: rgba(233,189,104,.12);
  transform: rotateX(65deg) rotateZ(35deg);
}

.floating-tag {
  position: absolute;
  z-index: 3;
  padding: 12px 17px;
  background: rgba(20,27,42,.88);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  animation: tagFloat 4s ease-in-out infinite;
}

.tag-html { top: 70px; left: 0; color: #ff9c63; }
.tag-css { top: 130px; right: 0; color: #69a9ff; animation-delay: .5s; }
.tag-js { bottom: 100px; left: 0; color: #f5d76e; animation-delay: 1s; }
.tag-react { bottom: 60px; right: 0; color: #65d9ff; animation-delay: 1.5s; }

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 9%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.scroll-line {
  width: 55px;
  height: 1px;
  background: var(--gold);
}

.section-heading {
  margin-bottom: 45px;
}

.section-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -2px;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.about-main {
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.gold-symbol {
  color: var(--gold);
  font-size: 30px;
}

.about-main h3 {
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0 10px;
}

.about-main h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}

.about-main h2 span {
  color: var(--gold);
}

.about-main p {
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 13px;
}

.about-details {
  display: grid;
  gap: 13px;
}

.detail-card {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.detail-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: rgba(233,189,104,.1);
  color: var(--gold);
  border-radius: 12px;
  font-size: 21px;
}

.detail-card small,
.detail-card strong {
  display: block;
}

.detail-card small {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 11px;
}

.detail-card strong {
  font-size: 13px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.skill-card {
  padding: 27px 20px;
  transition: .35s;
}

.skill-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(233,189,104,.4);
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

.skill-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 22px;
}

.html-icon { background: #ff6b3d20; color: #ff8056; }
.css-icon { background: #438cff20; color: #6eabff; }
.js-icon { background: #f2d44b20; color: #f2d44b; }
.react-icon { background: #5edcff20; color: #5edcff; }

.skill-card h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.skill-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.project-card {
  overflow: hidden;
  transition: .35s;
}

.project-preview {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-weight: 900;
  letter-spacing: 5px;
}

.clinic-preview {
  background: radial-gradient(circle at center, #3d315d, #121523 70%);
  color: #d9c5ff;
}

.mebel-preview {
  background: radial-gradient(circle at center, #594321, #17140e 70%);
  color: #edc779;
}

.portfolio-preview {
  background: radial-gradient(circle at center, #233d70, #101522 70%);
  color: #d4e3ff;
}

.preview-symbol {
  font-size: 42px;
  position: relative;
  z-index: 1;
}

.preview-cross {
  position: absolute;
  right: 30px;
  top: 20px;
  font-size: 80px;
  opacity: .12;
}

.preview-line {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(237,199,121,.25);
  transform: rotate(45deg);
}

.preview-circle {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(212,227,255,.3);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(90,140,255,.2);
}

.project-info {
  padding: 23px;
}

.project-type {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
}

.project-info h3 {
  font-size: 20px;
  margin-top: 10px;
}

.project-info p {
  min-height: 45px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
}

.tech-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 17px 0;
}

.tech-list span {
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  color: #bac3d4;
  font-size: 9px;
}

.project-link {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.contact-box {
  max-width: 850px;
  margin: auto;
  padding: 45px;
}

.contact-box .section-heading {
  margin-bottom: 20px;
}

.contact-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: .3s;
  min-width: 0;
}

.contact-item:hover {
  border-color: var(--gold);
  background: rgba(233,189,104,.05);
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(233,189,104,.1);
  color: var(--gold);
  font-size: 19px;
}

.contact-item span:nth-child(2) {
  min-width: 0;
}

.contact-item .phone-number {
  flex: 1;
  min-width: max-content;
}

.contact-item .phone-number strong {
  white-space: nowrap;
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.contact-item strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.contact-item b {
  margin-left: auto;
  color: var(--gold);
}

.footer {
  padding: 30px 9%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.footer p,
.footer > span {
  color: var(--muted);
  font-size: 10px;
}

@keyframes cardFloat {
  0%, 100% { transform: rotateY(-12deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-7deg) rotateX(3deg) translateY(-13px); }
}

@keyframes tagFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-13px) rotate(3deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1000px) {
  .header { padding-inline: 5%; }
  .nav { gap: 15px; }
  .section { padding-inline: 6%; }
  .hero { padding-inline: 6%; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-down { left: 6%; }
}

@media (max-width: 760px) {
  .header { padding: 15px 5%; }
  .logo { font-size: 19px; }
  .menu-button { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 22px;
    background: rgba(8,10,16,.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 125px;
    text-align: center;
    gap: 10px;
  }
  .hero-description { margin-inline: auto; }
  .hero-buttons, .social-links { justify-content: center; }
  .hero-visual { min-height: 430px; }
  .profile-card { transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 27px 18px; }
  .contact-list { grid-template-columns: 1fr; }
  .scroll-down { display: none; }
  .section { padding-top: 85px; padding-bottom: 85px; }
  .hero { padding-top: 120px; }
}

@media (max-width: 420px) {
  .header-actions { gap: 7px; }
  .lang { padding: 7px; font-size: 10px; }
  .hero h1 { letter-spacing: -3px; }
  .hero-visual { transform: scale(.88); margin: -15px 0; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skill-card { padding: 20px 14px; }
  .about-main { padding: 25px; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* ===== PREMIUM ANIMATION UPDATE ===== */

:root {
  --gold: #f4c76b;
  --blue: #548cff;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

body {
  background:
    radial-gradient(ellipse at 15% 15%, #15264b 0%, transparent 38%),
    radial-gradient(ellipse at 85% 55%, #382719 0%, transparent 30%),
    #070910;
}

/* Mouse spotlight */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    rgba(75, 125, 255, .10),
    transparent 65%
  );
}

/* Animated background */
.background-grid {
  background-size: 48px 48px;
  animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

/* Header */
.header {
  transition: background .35s, padding .35s, box-shadow .35s;
}

.header.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(5, 8, 17, .94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

/* Hero entrance */
.hero-content > * {
  animation: heroEnter .8s both;
}

.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .2s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .4s; }
.hero-content > *:nth-child(5) { animation-delay: .5s; }
.hero-content > *:nth-child(6) { animation-delay: .6s; }

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 3D profile card */
.profile-card {
  transition: transform .18s ease-out, box-shadow .3s;
  will-change: transform;
  box-shadow:
    0 40px 100px rgba(0,0,0,.6),
    0 0 45px rgba(70,120,255,.13),
    inset 0 1px 1px rgba(255,255,255,.2);
}

.profile-card:hover {
  box-shadow:
    0 45px 100px rgba(0,0,0,.65),
    0 0 65px rgba(233,189,104,.17);
}

/* Glowing avatar */
.avatar {
  animation: avatarGlow 4s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(90,140,255,.2);
  }
  50% {
    box-shadow: 0 0 65px rgba(90,140,255,.5);
  }
}

/* Floating tags */
.floating-tag {
  animation: tagFloat 4s ease-in-out infinite;
  transition: border-color .3s, box-shadow .3s;
}

.floating-tag:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(233,189,104,.2);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  filter: blur(5px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2,.8,.2,1),
    filter .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Section headings */
.section-heading h2 {
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  margin-top: 13px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width .5s;
}

.section-heading:hover h2::after {
  width: 130px;
}

/* Cards */
.skill-card,
.project-card,
.detail-card,
.contact-item {
  position: relative;
  overflow: hidden;
  transition:
    transform .4s cubic-bezier(.2,.8,.2,1),
    border-color .4s,
    box-shadow .4s;
}

.skill-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(233,189,104,.13),
    transparent 65%
  );
  transition: opacity .4s;
}

.skill-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.025);
}

.project-card:hover {
  transform: translateY(-10px);
}

.skill-icon {
  transition: transform .4s;
}

.skill-card:hover .skill-icon {
  transform: rotateY(180deg) scale(1.12);
}

/* Project preview animation */
.project-preview {
  transition: background .5s;
}

.project-card:hover .preview-symbol {
  animation: symbolPop .5s ease;
}

@keyframes symbolPop {
  0% { transform: scale(.8); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.preview-circle {
  animation: circleRotate 14s linear infinite;
}

@keyframes circleRotate {
  to { transform: rotate(360deg); }
}

/* Contact hover */
.contact-item:hover {
  transform: translateX(7px);
  box-shadow: 0 8px 25px rgba(233,189,104,.08);
}

.contact-icon {
  transition: transform .3s;
}

.contact-item:hover .contact-icon {
  transform: rotate(-10deg) scale(1.1);
}

/* Buttons */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -60%;
  width: 35%;
  height: 300%;
  transform: rotate(25deg);
  background: rgba(255,255,255,.25);
  transition: left .6s;
}

.button:hover::after {
  left: 130%;
}

/* Language buttons */
.lang {
  transition: .25s;
}

.lang:hover {
  color: white;
  transform: translateY(-2px);
}

/* Footer */
.footer .logo {
  transition: transform .3s;
}

.footer .logo:hover {
  transform: scale(1.04);
}

/* Mobile performance */
@media (max-width: 760px) {
  body::after {
    display: none;
  }

  .profile-card {
    transform: none !important;
    animation: cardFloat 6s ease-in-out infinite;
  }

  .reveal {
    filter: none;
    transform: translateY(20px);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Responsive layout refinements */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  }

  .hero h1 {
    font-size: clamp(50px, 7vw, 72px);
  }

  .profile-card {
    width: 300px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  }
}

@media (max-width: 760px) {
  body,
  .nav a,
  p,
  small,
  strong,
  span {
    font-size: inherit;
  }

  body {
    font-size: 16px;
  }

  .logo {
    font-size: 20px;
  }

  .nav a {
    font-size: 16px;
  }

  p {
    font-size: 16px;
  }

  .social-links a,
  .project-link,
  .button,
  .scroll-down {
    font-size: 14px;
  }

  .floating-tag {
    font-size: 13px;
  }

  .skill-card h3,
  .project-info h3,
  .detail-card strong {
    font-size: 18px;
  }

  .card-label,
  .profile-role,
  .card-bottom,
  .tech-list span {
    font-size: 11px;
  }

  .profile-name {
    font-size: 22px;
  }

  .footer p,
  .footer > span {
    font-size: 12px;
  }

  html {
    scroll-padding-top: 78px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header {
    min-height: 68px;
  }

  .header-actions {
    flex-shrink: 0;
  }

  .nav {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    gap: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  }

  .nav a {
    width: 100%;
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 112px 5% 70px;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
  }

  .status {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 66px);
    letter-spacing: -3px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.75;
  }

  .status,
  .eyebrow,
  .section-heading p {
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .about-main h3 {
    font-size: 15px;
  }

  .about-main h2 {
    font-size: 30px;
  }

  .about-main p,
  .detail-card strong,
  .contact-description {
    font-size: 15px;
  }

  .detail-card small,
  .project-type,
  .contact-item small {
    font-size: 12px;
  }

  .skill-card p,
  .project-info p {
    font-size: 14px;
  }

  .contact-item strong {
    font-size: 14px;
  }

  .language-switch {
    gap: 3px;
    padding: 4px;
  }

  .lang {
    min-width: 38px;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero-buttons {
    width: 100%;
  }

  .button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    min-height: 420px;
    overflow: hidden;
  }

  .orbit-one {
    width: 340px;
    height: 340px;
  }

  .orbit-two {
    width: 390px;
    height: 390px;
  }

  .profile-card {
    height: 380px;
  }

  .avatar {
    width: 165px;
    height: 165px;
    margin-top: 28px;
  }

  .avatar-letter {
    font-size: 88px;
  }

  .floating-tag {
    padding: 9px 12px;
  }

  .tag-html { left: 0; }
  .tag-css { right: 0; }
  .tag-js { left: 0; }
  .tag-react { right: 0; }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    letter-spacing: -1px;
  }

  .about-main h2 {
    line-height: 1.25;
  }

  .about-grid,
  .about-main,
  .about-details {
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-main {
    text-align: left;
  }

  .about-main h2,
  .about-main h3,
  .about-main p {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .detail-card,
  .contact-item {
    touch-action: manipulation;
  }

  .project-preview {
    min-height: 220px;
  }

  .footer {
    gap: 18px;
    padding-inline: 5%;
  }
}

@media (max-width: 420px) {
  .header {
    padding-inline: 4%;
  }

  .logo {
    font-size: 17px;
    letter-spacing: -.5px;
  }

  .language-switch {
    gap: 2px;
    padding: 3px;
  }

  .lang {
    min-width: 36px;
    min-height: 32px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .menu-button {
    font-size: 23px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 52px);
    letter-spacing: -2px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .social-links {
    gap: 14px;
  }

  .hero-visual {
    min-height: 390px;
    transform: scale(.92);
    margin-block: -10px;
  }

  .profile-card {
    width: min(285px, 86%);
    height: 360px;
  }

  .orbit-one {
    width: 300px;
    height: 300px;
  }

  .orbit-two {
    width: 340px;
    height: 340px;
  }

  .tag-html { top: 50px; }
  .tag-css { top: 100px; }
  .tag-js { bottom: 75px; }
  .tag-react { bottom: 45px; }

  .section {
    padding-inline: 18px;
  }

  .skills-grid {
    gap: 12px;
  }

  .skill-card {
    min-width: 0;
  }

  .skill-card h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .project-preview {
    min-height: 190px;
  }

  .contact-box {
    padding-inline: 14px;
  }

  .contact-item strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}
