:root {
  --bg: #0d0f14;
  --bg-strong: #171b22;
  --bg-soft: #1c212b;
  --panel: rgba(18, 21, 30, 0.76);
  --panel-strong: rgba(24, 28, 38, 0.92);
  --panel-elevated: rgba(28, 33, 43, 0.95);
  --line: rgba(202, 196, 188, 0.14);
  --text: #f6f1ea;
  --muted: #c3b8af;
  --accent: #ff8a70;
  --accent-strong: #ff6b57;
  --accent-soft: rgba(255, 138, 112, 0.2);
  --blue: #67d7ff;
  --blue-deep: #5b9dff;
  --violet: #b991ff;
  --shadow: 0 24px 54px rgba(8, 10, 16, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1180px, calc(100vw - 2rem));
}

body.light-theme {
  --bg: #f5efe8;
  --bg-strong: #efe3d8;
  --bg-soft: #f9f4ee;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-elevated: rgba(255, 255, 255, 0.94);
  --line: rgba(70, 59, 53, 0.12);
  --text: #1b1a1a;
  --muted: #5d534d;
  --accent: #d96a4d;
  --accent-strong: #bc503a;
  --accent-soft: rgba(217, 106, 77, 0.12);
  --blue: #4c9ee8;
  --blue-deep: #2e7ddf;
  --violet: #8f72d9;
  --shadow: 0 24px 54px rgba(120, 108, 99, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 138, 112, 0.18), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(103, 215, 255, 0.14), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(185, 145, 255, 0.16), transparent 28%),
    var(--bg);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  pointer-events: none;
}

.ambient-one {
  width: 26rem;
  height: 26rem;
  background: rgba(255, 138, 112, 0.22);
  left: -8rem;
  top: 9rem;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  background: rgba(103, 215, 255, 0.18);
  right: -7rem;
  top: 18rem;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.ambient-three {
  width: 28rem;
  height: 28rem;
  background: rgba(185, 145, 255, 0.14);
  left: 40%;
  bottom: 6rem;
  animation: drift 16s ease-in-out infinite alternate;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 6rem 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-heading.left-align {
  margin: 0 0 1.2rem;
  text-align: left;
}

.section-tag,
.eyebrow,
.project-number,
.timeline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 23, 40, 0.28);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.brand,
.title-line {
  font-family: "Sora", sans-serif;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 10, 18, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

body.light-theme .site-header {
  background: rgba(237, 243, 255, 0.7);
}

body.light-theme .nav-panel,
body.light-theme .language-switch,
body.light-theme .status-pill,
body.light-theme .floating-card,
body.light-theme .skill-card,
body.light-theme .timeline-card,
body.light-theme .project-card,
body.light-theme .contact-form,
body.light-theme .mini-card,
body.light-theme .stat-box,
body.light-theme .site-footer {
  background: rgba(255, 255, 255, 0.72);
}

body.light-theme .project-media,
body.light-theme .project-placeholder,
body.light-theme .input-group input,
body.light-theme .input-group textarea,
body.light-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .btn-secondary {
  border-color: rgba(104, 60, 233, 0.2);
}

body.light-theme .project-media::before {
  background: rgba(255, 255, 255, 0.08);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.45);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
  text-shadow: 0 0 18px rgba(103, 215, 255, 0.22);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.lang-btn,
.theme-toggle,
.nav-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.lang-btn {
  min-width: 2.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-soft), rgba(110, 168, 254, 0.14));
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.45);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.2rem auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding: 5.5rem 0 3.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.title-line {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--muted);
}

.lead {
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.8rem;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(110, 168, 254, 0.12);
  border: 1px solid rgba(110, 168, 254, 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.lang-btn:hover,
.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-color: transparent;
  color: white;
  box-shadow: 0 18px 38px rgba(255, 138, 112, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(103, 215, 255, 0.2);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.2);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(110, 168, 254, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  color: var(--muted);
}

.status-dot {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #58d68d;
  box-shadow: 0 0 18px rgba(88, 214, 141, 0.8);
}

.hero-visual {
  position: relative;
  min-height: 38rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(100%, 31rem);
  aspect-ratio: 0.8;
  border-radius: 2.2rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 138, 112, 0.18), rgba(103, 215, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  animation: pulseGlow 5s ease-in-out infinite;
}

.portrait-glow {
  position: absolute;
  inset: 1rem;
  border-radius: 1.8rem;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 35%), rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.portrait-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100% - 0.4rem);
  border-radius: 1.8rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(125, 81, 255, 0.2), rgba(75, 130, 255, 0.12)),
    rgba(9, 14, 24, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.portrait-content {
  display: grid;
  place-items: center;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.portrait-label {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.portrait-name {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  min-width: 12rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 17, 28, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.code-card {
  left: -1rem;
  bottom: 3rem;
  animation: floatY 7s ease-in-out infinite;
}

.metric-card {
  right: 0;
  top: 4rem;
  animation: floatY 8s ease-in-out infinite alternate;
}

.card-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.code-card code {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text);
}

.metric-card strong {
  font-size: 0.94rem;
  font-family: "Sora", sans-serif;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 0.9rem;
}

.about-copy p,
.timeline-card p,
.contact-copy p,
.project-details p {
  color: var(--muted);
  margin: 0;
}

.about-copy blockquote {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(139, 92, 246, 0.06);
  color: var(--text);
  font-size: 1.08rem;
}

.about-panel {
  display: grid;
  gap: 1.25rem;
}

.mini-card,
.stat-box,
.skill-card,
.timeline-card,
.project-card,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mini-card {
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), rgba(15, 23, 42, 0.35));
}

.mini-card {
  padding: 1.5rem;
}

.mini-title {
  display: inline-block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-box {
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-family: "Sora", sans-serif;
  color: var(--text);
}

.stat-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover,
.project-card:hover,
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
}

.skill-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.skill-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.skill-card li {
  position: relative;
  padding-left: 1.1rem;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  padding: 1.2rem;
  margin-bottom: 1.6rem;
  border-radius: 1.8rem;
}

.project-media {
  min-height: 290px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(110, 168, 254, 0.08)),
    rgba(15, 23, 42, 0.27);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.project-media.alt {
  background:
    linear-gradient(160deg, rgba(110, 168, 254, 0.16), rgba(139, 92, 246, 0.08)),
    rgba(15, 23, 42, 0.27);
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.project-placeholder {
  position: relative;
  z-index: 1;
  width: 75%;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(9, 14, 24, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.project-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 1.5rem;
}

.meta-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), rgba(110, 168, 254, 0.05));
}

.timeline-item {
  position: relative;
  padding-left: 2.2rem;
}

.timeline-dot {
  position: absolute;
  left: 0.2rem;
  top: 1.4rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12);
}

.timeline-card {
  padding: 1.5rem 1.4rem;
}

.timeline-card h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
}

.timeline-company {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-weight: 600;
}

.timeline-card.upcoming {
  border-color: rgba(110, 168, 254, 0.32);
}

.award-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.award-header strong {
  color: var(--text);
}

.achievement-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.achievement-card li + li {
  margin-top: 0.5rem;
}

.philosophy {
  padding-top: 4rem;
}

.philosophy-inner {
  position: relative;
  padding: 4.5rem 2rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(110, 168, 254, 0.16), transparent 24%),
    rgba(15, 23, 42, 0.48);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quote-label {
  margin: 0 0 1rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.philosophy-inner h2 {
  max-width: 900px;
  margin: 0 auto 1.2rem;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.philosophy-inner p {
  max-width: 780px;
  margin: 0 auto 0.8rem;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-list a,
.contact-list span {
  color: var(--muted);
}

.contact-form {
  padding: 1.5rem;
}

.input-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input-group label {
  color: var(--text);
  font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.2);
  color: var(--text);
  padding: 0.9rem 1rem;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 3rem 0 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 14, 21, 0.35);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  letter-spacing: 0.12em;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatY {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -18px, 0) scale(1.08); }
  100% { transform: translate3d(-16px, 18px, 0) scale(0.96); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 138, 112, 0.0); }
  50% { box-shadow: 0 0 24px rgba(255, 138, 112, 0.32); }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .project-card,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    order: -1;
    min-height: 27rem;
  }

  .section {
    padding: 5.8rem 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(9, 14, 24, 0.96);
    box-shadow: var(--shadow);
    z-index: 1100;
  }

  .nav-open .nav-panel {
    display: flex;
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.4rem 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.8rem;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-copy,
  .hero-visual,
  .project-details,
  .contact-copy {
    width: 100%;
  }

  .hero-copy {
    text-align: left;
  }

  .project-meta,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    transform: scale(0.9);
  }

  .page-shell {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
