﻿:root {
  --bg: #090909;
  --bg-soft: #121212;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --line: #2e2e2e;
  --text: #f7f3ef;
  --muted: #a8a39e;
  --accent: #f46c38;
  --accent-2: #c5ff41;
  --card-orange: #ff7a00;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 30px 90px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% -10%, #1f1f1f 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, #281408 0%, transparent 35%),
    var(--bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  position: relative;
}

.floating-orb {
  position: fixed;
  width: 290px;
  height: 290px;
  border-radius: 42% 58% 55% 45%;
  filter: blur(3px);
  pointer-events: none;
  z-index: -1;
}

.floating-orb.orb-a {
  right: -85px;
  top: 120px;
  background: linear-gradient(130deg, #ff8f2f 0%, #f46c38 70%);
  transform: rotate(-22deg);
  opacity: 0.75;
}

.floating-orb.orb-b {
  left: -140px;
  bottom: 80px;
  background: linear-gradient(130deg, #d5ff58 0%, #a7e800 70%);
  transform: rotate(18deg);
  opacity: 0.16;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(9, 9, 9, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  padding: 1rem 0;
  position: relative;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(197, 255, 65, 0.8);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 220ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.control-toggle {
  min-width: 68px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 220ms ease;
}

.control-toggle:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.control-toggle[aria-pressed="true"] {
  border-color: rgba(197, 255, 65, 0.9);
  box-shadow: 0 0 0 2px rgba(197, 255, 65, 0.2);
}

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

.control-toggle[data-lang-toggle] {
  min-width: 104px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
}

.lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 3px;
  object-fit: cover;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.control-toggle[data-theme-toggle] {
  min-width: 130px;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  justify-content: flex-start;
  font-weight: 700;
}

.theme-switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  position: relative;
  flex: 0 0 34px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.theme-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe59a, #ffba52);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  transition: transform 220ms ease, background 220ms ease;
}

.control-toggle[data-theme-toggle].is-dark .theme-switch {
  background: rgba(255, 255, 255, 0.14);
}

.control-toggle[data-theme-toggle].is-dark .theme-knob {
  transform: translateX(14px);
  background: linear-gradient(180deg, #d8dff2, #9aa8d0);
}

.theme-toggle-label {
  line-height: 1;
}

.hero {
  padding: 5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.hero-copy {
  background: linear-gradient(165deg, #111 0%, #0f0f0f 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  right: -45px;
  top: -45px;
  width: 165px;
  height: 165px;
  border-radius: 40px;
  background: linear-gradient(140deg, #ff9947 0%, #f46c38 80%);
  transform: rotate(16deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 4.1rem);
  margin-top: 0.8rem;
}

.hero h1 span {
  color: #464646;
  display: block;
}

.hero p {
  max-width: 57ch;
  color: var(--muted);
  margin: 1rem 0 1.8rem;
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.hero-stat strong {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-photo {
  border-radius: 42px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #191919 0%, #111 100%);
  overflow: hidden;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-photo::after {
  content: "XR";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #121212;
  background: var(--accent-2);
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
}

.section {
  padding: 2.2rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
}

.section-head h2 span {
  color: #474747;
  display: block;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(140deg, #141414, #101010);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090909;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

.project-content {
  padding: 1.1rem 1.15rem 1.2rem;
}

.project-index {
  color: #111;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.project-index.orange {
  background: var(--accent);
}

.project-index.lime {
  background: var(--accent-2);
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}

.project-content p {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.project-link {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ece5dc;
}

.project-link::after {
  content: "↗";
  color: var(--accent-2);
}

.highlight-band {
  margin: 1.6rem 0 0.9rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(130deg, #ff8b3a 0%, #f46c38 40%, #d05626 100%);
  color: #161616;
  padding: clamp(1.2rem, 2.3vw, 1.8rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.highlight-band h3 {
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
}

.highlight-band p {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  font-weight: 500;
}

.chip {
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.45rem 0.72rem;
  background: rgba(17, 17, 17, 0.9);
  color: var(--text);
}

.content-card {
  background: linear-gradient(160deg, #141414 0%, #101010 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.1vw, 1.5rem);
}

.content-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.content-card p {
  color: var(--muted);
}

.list-tight {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.55rem;
  color: #dfdbd6;
}

.project-hero {
  padding: 4.6rem 0 1.7rem;
}

.project-hero .title {
  font-size: clamp(2rem, 6vw, 4.6rem);
}

.project-hero .title span {
  display: block;
}

.project-hero .title span:last-child {
  color: #3f3f3f;
}

.project-meta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem;
}

.about-profile-grid {
  align-items: start;
}

.about-profile-media {
  aspect-ratio: 4 / 3;
}

.about-profile-media .about-slider-track,
.about-profile-media .about-slide {
  height: 100%;
}

.about-profile-media .about-slide img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.about-profile-content {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f0f0f;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.media-contain img {
  object-fit: contain;
  background: #0f0f0f;
}

.video-embed {
  margin-top: 0.85rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f0f0f;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.about-slider {
  position: relative;
  overflow: hidden;
}

.about-slider-track {
  display: flex;
  width: 100%;
  transition: transform 320ms ease;
}

.about-slide {
  min-width: 100%;
  margin: 0;
}

.about-slide img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.about-slider-controls {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.about-slider-btn {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 9, 9, 0.72);
  color: #f7f3ef;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 180ms ease;
}

.about-slider-btn:hover {
  background: rgba(9, 9, 9, 0.92);
  border-color: rgba(197, 255, 65, 0.72);
  color: var(--accent-2);
}

.about-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
  z-index: 2;
}

.about-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
  pointer-events: auto;
}

.about-dot.is-active {
  background: var(--accent-2);
  transform: scale(1.22);
}

.span-8 {
  grid-column: span 8;
}

.span-7 {
  grid-column: span 7;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #141414 0%, #101010 90%);
  padding: 1rem 1.1rem 1.2rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 20px rgba(197, 255, 65, 0.65);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.timeline-header h3 {
  font-size: 1.35rem;
}

.timeline-header .period {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.timeline-role {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.72rem;
}

.timeline-subtitle {
  margin: 1rem 0 0.65rem;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: #f4eee7;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.25rem;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #ddd6cf;
  font-size: 0.78rem;
  line-height: 1.2;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.78rem;
}

.tech-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  min-height: 0;
  padding: 0.82rem 0.9rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.78rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: tech-float 5.4s ease-in-out infinite;
}

.tech-card:nth-child(even) {
  animation-delay: 1.2s;
}

.tech-card:nth-child(3n) {
  animation-delay: 2.4s;
}

.tech-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(197, 255, 65, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.42);
}

.tech-card i,
.tech-fallback {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #f7f3ef;
}

.tech-fallback {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-width: 42px;
  width: auto;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.tech-card h4 {
  font-size: 1rem;
  margin: 0;
}

@keyframes tech-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.2rem 0 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="light"] {
  color-scheme: light;
  --accent-2: #4d972a;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at 16% -12%, #e8f1ff 0%, transparent 48%),
    radial-gradient(circle at 100% 0%, #ffe7d8 0%, transparent 34%), #eef2f6;
  color: #101725;
}

html[data-theme="light"] .floating-orb.orb-a {
  opacity: 0.2;
}

html[data-theme="light"] .floating-orb.orb-b {
  opacity: 0.1;
}

html[data-theme="light"] .site-header {
  background: rgba(244, 248, 252, 0.88);
  border-bottom-color: rgba(22, 33, 47, 0.12);
}

html[data-theme="light"] .nav-link {
  color: #4f5a66;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  color: #101725;
  border-color: rgba(16, 23, 37, 0.18);
  background: rgba(36, 62, 92, 0.07);
}

html[data-theme="light"] .menu-toggle,
html[data-theme="light"] .control-toggle {
  border-color: rgba(22, 33, 47, 0.2);
  background: rgba(22, 33, 47, 0.06);
  color: #0f1724;
}

html[data-theme="light"] .control-toggle[data-theme-toggle] .theme-switch {
  border-color: rgba(22, 33, 47, 0.22);
  background: rgba(22, 33, 47, 0.11);
}

html[data-theme="light"] .control-toggle[data-theme-toggle] .theme-knob {
  box-shadow: 0 1px 4px rgba(35, 52, 84, 0.24);
}

html[data-theme="light"] .hero-copy,
html[data-theme="light"] .project-card,
html[data-theme="light"] .content-card,
html[data-theme="light"] .timeline-item {
  background: linear-gradient(165deg, #ffffff 0%, #f2f7fc 100%);
  border-color: rgba(22, 33, 47, 0.14);
}

html[data-theme="light"] .hero-photo,
html[data-theme="light"] .gallery-item,
html[data-theme="light"] .video-embed {
  background: linear-gradient(165deg, #f3f7fc 0%, #e9f0f8 100%);
  border-color: rgba(22, 33, 47, 0.14);
}

html[data-theme="light"] .hero h1 span,
html[data-theme="light"] .project-hero .title span:last-child,
html[data-theme="light"] .section-head h2 span {
  color: #7a8798;
}

html[data-theme="light"] .eyebrow {
  color: #3d7f22;
}

html[data-theme="light"] .eyebrow::before {
  background: #3d7f22;
}

html[data-theme="light"] .hero p,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .content-card p,
html[data-theme="light"] .tag,
html[data-theme="light"] .footer-inner,
html[data-theme="light"] .hero-stat span,
html[data-theme="light"] .project-content p {
  color: #556172;
}

html[data-theme="light"] .hero-stat {
  border-color: rgba(22, 33, 47, 0.14);
  background: rgba(22, 33, 47, 0.05);
}

html[data-theme="light"] .project-link {
  color: #101725;
}

html[data-theme="light"] .chip {
  background: #142033;
  color: #f3f6ff;
}

html[data-theme="light"] .list-tight,
html[data-theme="light"] .timeline-subtitle,
html[data-theme="light"] .stack-pill {
  color: #1f2a38;
}

html[data-theme="light"] .timeline-role {
  color: #101725 !important;
}

html[data-theme="light"] .stack-pill {
  border-color: rgba(22, 33, 47, 0.16);
  background: rgba(22, 33, 47, 0.05);
}

html[data-theme="light"] .tech-card {
  border-color: rgba(22, 33, 47, 0.14);
  background: linear-gradient(160deg, #ffffff, #f4f8fc);
}

html[data-theme="light"] .tech-card i,
html[data-theme="light"] .tech-fallback {
  border-color: rgba(22, 33, 47, 0.16);
  background: rgba(22, 33, 47, 0.05);
  color: #172231;
}

html[data-theme="light"] .tech-card h4 {
  color: #172231;
}

html[data-theme="light"] .about-slider-btn {
  border-color: rgba(22, 33, 47, 0.26);
  background: rgba(244, 248, 252, 0.9);
  color: #182233;
}

html[data-theme="light"] .about-dot {
  background: rgba(22, 33, 47, 0.36);
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(22, 33, 47, 0.12);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .highlight-band {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-12 {
    grid-column: span 12;
  }

  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions {
    gap: 0.42rem;
  }

  .control-toggle {
    min-width: 56px;
    height: 36px;
    font-size: 0.72rem;
  }

  .control-toggle[data-lang-toggle] {
    min-width: 90px;
  }

  .control-toggle[data-theme-toggle] {
    min-width: 114px;
    padding: 0 0.55rem;
  }

  .control-toggle[data-theme-toggle] .theme-switch {
    width: 30px;
    height: 18px;
    flex-basis: 30px;
  }

  .control-toggle[data-theme-toggle] .theme-knob {
    width: 12px;
    height: 12px;
    top: 2px;
    left: 2px;
  }

  .control-toggle[data-theme-toggle].is-dark .theme-knob {
    transform: translateX(12px);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.2rem;
    width: min(240px, calc(100vw - 2.4rem));
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 220ms ease;
  }

  html[data-theme="light"] .nav-menu {
    background: rgba(246, 249, 253, 0.97);
    border-color: rgba(22, 33, 47, 0.16);
  }

  .site-header.open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-card {
    min-height: 0;
  }

  .about-slide img {
    min-height: 360px;
  }
}

