@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap");
@import url("fontawesome-all.min.css");

:root {
  --bg: #060b16;
  --surface: rgba(10, 18, 33, 0.74);
  --surface-soft: rgba(17, 27, 46, 0.62);
  --line: rgba(170, 191, 222, 0.24);
  --text: #eef4ff;
  --muted: #b7c5df;
  --primary: #6ee7ff;
  --accent: #8b5cf6;
  --success: #2dd4bf;
  --radius: 18px;
  --shadow: 0 18px 46px rgba(3, 10, 25, 0.45);
  --max: 1140px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

p {
  margin: 0 0 1rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 12% 12%, rgba(110, 231, 255, 0.24), transparent 35%),
    radial-gradient(circle at 88% 15%, rgba(139, 92, 246, 0.2), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(45, 212, 191, 0.16), transparent 35%),
    linear-gradient(160deg, #050914 0%, #080f1f 45%, #0f1b33 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-bg, url("../../images/bg.jpg")) center/cover no-repeat;
  opacity: 0.16;
  filter: saturate(1.05);
}

body.page-home {
  --page-bg: url("../../images/bg.jpg");
}

body.page-about {
  --page-bg: url("../../images/pic08.jpg");
}

body.page-contact {
  --page-bg: url("../../images/pic09.jpg");
}

a {
  color: var(--primary);
  text-decoration: none;
  outline-offset: 2px;
}

a:hover {
  color: #b9f3ff;
}

a:focus-visible {
  outline: 2px solid var(--primary);
}

button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 0.9rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 22, 0.98);
  color: #fff;
}

.skip-link:focus-visible {
  top: 0.9rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(4, 10, 22, 0.95);
  border-bottom: 1px solid rgba(170, 191, 222, 0.18);
}

.sticky-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 80px;
  padding: 0 2rem;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.profile-pic {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(110, 231, 255, 0.3);
  background: rgba(8, 15, 30, 0.85);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-name {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.profile-handle {
  margin: 0;
  color: #6ee7ff;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  border-radius: 4px;
  padding: 2px 4px;
}

.profile-handle:hover {
  color: #b9f3ff;
  background: rgba(110, 231, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-family: "Syne", sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #fff;
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-color: rgba(110, 231, 255, 0.35);
  background: rgba(110, 231, 255, 0.1);
}

.nav-links a:active {
  transform: scale(0.98);
}

.menu-btn {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  min-width: 44px;
}

.menu-btn:hover {
  border-color: rgba(110, 231, 255, 0.5);
  background: rgba(110, 231, 255, 0.08);
}

.menu-btn:active {
  transform: scale(0.95);
}

.hero {
  padding: 96px 0 2.2rem;
}

.hero-card,
.panel,
.project-card,
.contact-card,
.stat {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(1.8rem, 3.8vw, 3.4rem);
  min-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 14%, rgba(110, 231, 255, 0.22), transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.24), transparent 38%),
    linear-gradient(130deg, rgba(7, 14, 30, 0.95), rgba(18, 34, 62, 0.92));
}

.hero-card--landing h1 {
  font-size: clamp(2.3rem, 7vw, 5rem);
  max-width: 18ch;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.hero-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d9f8ff;
}

.hero-card--landing .subtitle {
  max-width: 64ch;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
}

.hero-card--landing .actions {
  margin-top: 0.8rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.hero-metric {
  border: 1px solid rgba(170, 191, 222, 0.28);
  background: rgba(8, 18, 36, 0.7);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.hero-metric strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1;
  margin-bottom: 0.35rem;
  color: #fff;
}

.hero-metric span {
  display: block;
  color: #bfcee7;
  font-size: 0.82rem;
  line-height: 1.3;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

/* Ensure subsequent h2 headings inside a section have a consistent top gap
   to match section spacing while leaving the first heading flush. */
.section h2 {
  margin: 2.4rem 0 0.8rem;
}

.section h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 1.4rem 0 0.65rem;
}

h3:first-child {
  margin-top: 0;
}

.heading-safe {
  line-height: 1.35;
  padding-bottom: 0.6rem;
  display: inline-block;
  overflow: visible;
}

.heading-room {
  padding-bottom: 2rem;
  overflow: visible;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badges span {
  border: 1px solid rgba(139, 92, 246, 0.34);
  background: rgba(139, 92, 246, 0.14);
  color: #e7dbff;
  border-radius: 999px;
  padding: 0.26rem 0.68rem;
  font-size: 0.84rem;
}

.trust-strip {
  margin-bottom: 1.2rem;
}

.trust-strip p {
  color: var(--muted);
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.competency-item {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 30, 0.4);
  transition: all 0.3s ease;
}

.competency-item:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}

.competency-item h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

.competency-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a9b8cc;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.experience-box {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 30, 0.4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.experience-box:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}

.experience-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a9b8cc;
}

.avatar {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(170, 191, 222, 0.22);
  object-fit: contain;
  object-position: center;
  background: rgba(8, 15, 30, 0.85);
  padding: 12px;
  height: 100%;
  min-height: 280px;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  border: 1px solid rgba(170, 191, 222, 0.22);
  background: linear-gradient(140deg, rgba(10, 20, 40, 0.95), rgba(17, 28, 52, 0.9));
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(7, 12, 24, 0.6);
}

.hero-visual .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.hero-visual .orb-one {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.9), rgba(110, 231, 255, 0));
  top: -20px;
  left: -10px;
  animation: driftOne 8s ease-in-out infinite;
}

.hero-visual .orb-two {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.85), rgba(139, 92, 246, 0));
  bottom: -30px;
  right: -20px;
  animation: driftTwo 10s ease-in-out infinite;
}

.hero-visual .orb-three {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.8), rgba(45, 212, 191, 0));
  bottom: 25px;
  left: 20%;
  animation: driftThree 9s ease-in-out infinite;
}

.hero-visual .pulse-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(110, 231, 255, 0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2.6s ease-out infinite;
}

.hero-visual .data-grid {
  position: absolute;
  inset: 16px;
  border-radius: 12px;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: gridShift 6s linear infinite;
}

@keyframes driftOne {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 10px); }
}

@keyframes driftTwo {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, -15px); }
}

@keyframes driftThree {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

@keyframes pulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.85); }
  70% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes gridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 28px 28px, 28px 28px; }
}

.section {
  padding: 2.4rem 0;
}

.section--compact {
  padding: 1.2rem 0;
}

.academic-portfolio-box {
  text-align: center;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}

.academic-portfolio-box h2 {
  margin: 0;
}

.view-all-cta {
  text-align: center;
  margin-top: 2rem;
}

.tech-stack-section {
  padding: 2.6rem 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.tech-item:hover {
  border-color: rgba(110, 231, 255, 0.5);
  background: rgba(110, 231, 255, 0.08);
  transform: translateY(-4px);
}

.tech-item i {
  font-size: 2.4rem;
  color: var(--primary);
}

.tech-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  max-width: 75px;
  word-break: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-about .section,
.page-contact .section {
  padding-top: 100px;
}

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

.about-stack {
  gap: 1rem;
}

.ventures-grid {
  display: grid;
  gap: 1rem;
}

.venture-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 30, 0.4);
  padding: 1rem;
}

.venture-section h2 {
  margin: 0 0 0.65rem;
}

.business-list {
  margin: 0;
  padding-left: 1.2rem;
}

.business-list--blurred {
  filter: blur(3px);
  -webkit-user-select: none;
  user-select: none;
}

.business-list li {
  margin-bottom: 0.35rem;
}

.business-link {
  font-size: 1.05rem;
  font-weight: 700;
}

.business-redirect-message {
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: #b9f3ff;
  min-height: 1.5em;
}

.businesses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.business-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.business-card:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110, 231, 255, 0.15);
}

.business-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.3rem;
}

.business-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.business-card .btn {
  align-self: flex-start;
}

.about-header {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.8rem;
  align-items: center;
}

.about-content h1 {
  margin-top: 0;
}

.about-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 30, 0.85);
  padding: 8px;
  overflow: hidden;
}

.about-badge img,
.about-badge video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.about-badge video {
  pointer-events: none;
}

.about-badge video::-webkit-media-controls {
  display: none !important;
}

.about-badge video::-webkit-media-controls-panel {
  display: none !important;
}

.about-badge video::cue {
  display: none;
}

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

.project-card {
  overflow: hidden;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: transparent;
  padding: 0;
  display: block;
  animation: projectFloat 7s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, filter;
}

.project-card video {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  animation: none !important;
  transform: none !important;
  filter: none !important;
  will-change: auto;
}

.project-card video {
  pointer-events: none;
}

.project-card video::-webkit-media-controls {
  display: none !important;
}

.project-card video::-webkit-media-controls-panel {
  display: none !important;
}

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.projects .project-card:nth-child(2) img {
  animation-name: projectDrift;
  animation-duration: 8s;
}

.projects .project-card:nth-child(3) img {
  animation-duration: 6.5s;
  animation-delay: 0.4s;
}

.projects .project-card:nth-child(4) img {
  animation-name: projectDrift;
  animation-duration: 7.5s;
  animation-delay: 0.2s;
}

@keyframes projectFloat {
  0%,
  100% {
    transform: scale(1) translateY(0);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.03) translateY(-4px);
    filter: saturate(1.08);
  }
}

@keyframes projectDrift {
  0%,
  100% {
    transform: scale(1) translateX(0);
    filter: contrast(1);
  }
  50% {
    transform: scale(1.025) translateX(4px);
    filter: contrast(1.06);
  }
}

.project-content {
  padding: 1rem 1rem 1.2rem;
}

.meta {
  color: #95a8cc;
  font-size: 0.83rem;
}

.project-points {
  margin: 0.8rem 0 1rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-points li {
  margin-bottom: 0.32rem;
}

.project-points strong {
  color: #d9e7ff;
}

.panel {
  padding: 1.4rem;
}

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

.stat {
  padding: 1rem;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.45rem;
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(20, 31, 53, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px;
  min-width: 44px;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  background: rgba(30, 45, 73, 0.95);
  border-color: rgba(110, 231, 255, 0.4);
}

.btn:focus-visible,
.social a:focus-visible,
.menu-btn:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.2);
}

.btn.primary {
  background: linear-gradient(90deg, #0ea5e9, #14b8a6);
  border: none;
  color: #fff;
}

.btn.primary:hover {
  background: linear-gradient(90deg, #0284c7, #0d9488);
}

a.btn {
  color: #fff;
}

.explore-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
}

.footer {
  margin: 4rem 0 2rem;
}

.footer-box {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.footer-box .copyright {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(170, 191, 222, 0.18);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  margin-bottom: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(170, 191, 222, 0.35);
  background: rgba(7, 14, 30, 0.7);
  color: #fff;
  padding: 0.72rem 0.85rem;
  font: inherit;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus {
  background: rgba(7, 14, 30, 0.9);
  border-color: rgba(110, 231, 255, 0.5);
}

.form-hint {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-status {
  margin: 0.2rem 0 0.9rem;
  color: #b9f3ff;
  font-size: 0.88rem;
  min-height: 1.35rem;
}

.form-status.error {
  color: #ffd3d3;
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social a {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4e5ff;
  background: rgba(17, 29, 52, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.social a:hover {
  border-color: rgba(110, 231, 255, 0.5);
  background: rgba(110, 231, 255, 0.12);
  color: #fff;
}

.social a:active {
  transform: scale(0.94);
}

.quote-box {
  border: 1px solid rgba(110, 231, 255, 0.3);
  background: rgba(110, 231, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1rem;
}

.quote-box #quote-text {
  font-style: italic;
  color: #b9f3ff;
  margin: 0 0 0.8rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.quote-box #quote-author {
  color: #95a8cc;
  font-size: 0.85rem;
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .container {
    width: min(var(--max), calc(100% - 1.6rem));
  }

  .hero-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sticky-header {
    height: auto;
    padding: 0.8rem 1rem;
    gap: 1rem;
    justify-content: space-between;
  }

  .profile-header {
    flex-shrink: 0;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 10, 23, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.3rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
  }

  .about-header {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .about-badge {
    width: 100%;
    height: 300px;
    max-height: 300px;
  }

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

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

  .hero {
    padding: 90px 0 2rem;
  }

  .hero-card {
    min-height: 68vh;
  }

  .hero-card--landing h1 {
    font-size: clamp(2rem, 6.2vw, 3.5rem);
  }

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

  .page-about .section,
  .page-contact .section {
    padding-top: 90px;
  }

  .hero-card {
    padding: 1.2rem;
  }

  h1 {
    font-size: clamp(1.6rem, 4vw, 3rem);
  }

  h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }

  .actions {
    gap: 0.6rem;
  }

  .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }

  .hero-visual {
    min-height: 240px;
  }

  input,
  textarea {
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  textarea {
    min-height: 100px;
  }

  .social a {
    width: 44px;
    height: 44px;
  }

  .contact-grid {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.2rem;
  }

  .tech-item {
    padding: 1.2rem;
  }

  .tech-item i {
    font-size: 2rem;
  }

  .tech-item span {
    font-size: 0.7rem;
  }

  .container {
    width: min(var(--max), calc(100% - 1.2rem));
  }

  .sticky-header {
    padding: 0.7rem 0.8rem;
    gap: 0.6rem;
  }

  .profile-pic {
    width: 48px;
    height: 48px;
  }

  .profile-name {
    font-size: 0.85rem;
  }

  .profile-handle {
    font-size: 0.75rem;
  }

  .menu-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .nav-links a {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    margin-bottom: 0.6rem;
  }

  h2 {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  }

  h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .badge {
    gap: 0.6rem;
  }

  .badges span {
    padding: 0.22rem 0.6rem;
    font-size: 0.78rem;
  }

  .competencies-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .competency-item {
    padding: 1.2rem;
  }

  .competency-item h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .competency-item p {
    font-size: 0.85rem;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .experience-box {
    padding: 1.2rem;
  }

  .experience-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .experience-box p {
    font-size: 0.85rem;
  }

  .businesses-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
  }

  .business-card {
    padding: 1.2rem;
  }

  .business-card h3 {
    font-size: 1.15rem;
  }

  .business-card p {
    font-size: 0.9rem;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero {
    padding: 80px 0 1.8rem;
  }

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

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .page-about .section,
  .page-contact .section {
    padding-top: 80px;
  }

  .panel {
    padding: 1.2rem;
  }

  .hero-card {
    padding: 1.1rem;
    gap: 1.2rem;
  }

  .sections {
    padding: 2rem 0;
  }

  .project-card img {
    height: 200px;
  }

  .meta {
    font-size: 0.78rem;
  }

  .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .actions {
    gap: 0.5rem;
    margin-top: 0.8rem;
  }

  input,
  textarea {
    padding: 0.75rem 0.8rem;
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }

  label {
    font-size: 0.9rem;
  }

  .social a {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .stat {
    padding: 0.9rem;
  }

  .stat b {
    font-size: 1.25rem;
  }

  .quote-box {
    padding: 1rem;
  }

  .quote-box #quote-text {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .quote-box #quote-author {
    font-size: 0.8rem;
  }

  .hero-visual .orb-one {
    width: 100px;
    height: 100px;
  }

  .hero-visual .orb-two {
    width: 130px;
    height: 130px;
  }

  .hero-visual .orb-three {
    width: 90px;
    height: 90px;
  }

  .hero-visual .pulse-ring {
    width: 140px;
    height: 140px;
  }

  .hero-visual .data-grid {
    background-size: 20px 20px;
  }

  @keyframes driftOne {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, 8px); }
  }

  @keyframes driftTwo {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, -10px); }
  }

  @keyframes driftThree {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -12px); }
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1rem);
  }

  .sticky-header {
    padding: 0.6rem 0.7rem;
    gap: 0.5rem;
    height: 64px;
  }

  .profile-pic {
    width: 44px;
    height: 44px;
  }

  .profile-name {
    font-size: 0.8rem;
  }

  .profile-handle {
    font-size: 0.7rem;
  }

  .menu-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .nav-links {
    top: 64px;
    padding: 0.4rem;
  }

  .nav-links a {
    padding: 0.55rem 0.6rem;
    font-size: 0.85rem;
  }

  h1 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: clamp(1rem, 2vw, 1.4rem);
  }

  h3 {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    margin: 1.2rem 0 0.5rem;
  }

  .badges span {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .competencies-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .competency-item {
    padding: 1rem;
  }

  .competency-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .competency-item p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .experience-box {
    padding: 1rem;
  }

  .experience-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .experience-box p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .businesses-list {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .business-card {
    padding: 1rem;
  }

  .business-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .business-card p {
    font-size: 0.85rem;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
  }

  .hero {
    padding: 70px 0 1.5rem;
  }

  .hero-card--landing h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .page-about .section,
  .page-contact .section {
    padding-top: 70px;
  }

  .hero-card {
    padding: 1rem;
    gap: 1rem;
  }

  .panel {
    padding: 1rem;
  }

  .section {
    padding: 1.8rem 0;
  }

  .project-card img {
    height: 180px;
  }

  .project-content {
    padding: 0.9rem;
  }

  .btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    flex: 1;
  }

  .actions {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.7rem;
  }

  .actions .btn {
    width: 100%;
  }

  input,
  textarea {
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
  }

  label {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.3rem;
  }

  textarea {
    min-height: 90px;
  }

  .social a {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .social {
    gap: 0.5rem;
  }

  .stat {
    padding: 0.8rem;
  }

  .stat b {
    font-size: 1.1rem;
  }

  .contact-grid {
    gap: 1rem;
  }

  .quote-box {
    padding: 0.9rem;
    margin-top: 0.8rem;
  }

  .quote-box #quote-text {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .quote-box #quote-author {
    font-size: 0.75rem;
  }

  .footer-box {
    padding: 1rem;
  }

  .footer-box .copyright {
    font-size: 0.8rem;
  }

  .hero-visual {
    min-height: 200px;
  }

  .hero-visual .orb-one {
    width: 80px;
    height: 80px;
  }

  .hero-visual .orb-two {
    width: 100px;
    height: 100px;
  }

  .hero-visual .orb-three {
    width: 70px;
    height: 70px;
  }

  .hero-visual .pulse-ring {
    width: 120px;
    height: 120px;
  }

  .hero-visual .data-grid {
    background-size: 16px 16px;
  }

  .about-badge {
    width: 100%;
    height: 240px;
    max-height: 240px;
  }

  @keyframes driftOne {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, 5px); }
  }

  @keyframes driftTwo {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -8px); }
  }

  @keyframes driftThree {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -8px); }
  }
}

@media (max-width: 360px) {
  .sticky-header {
    height: 60px;
    padding: 0.5rem;
  }

  .profile-pic {
    width: 40px;
    height: 40px;
  }

  .profile-name {
    font-size: 0.75rem;
  }

  .profile-handle {
    font-size: 0.65rem;
  }

  h1 {
    font-size: clamp(1.15rem, 2.8vw, 1.8rem);
    margin-bottom: 0.4rem;
  }

  .hero {
    padding: 65px 0 1.2rem;
  }

  .page-about .section,
  .page-contact .section {
    padding-top: 65px;
  }

  .hero-card {
    padding: 0.9rem;
  }

  .panel {
    padding: 0.9rem;
  }

  .btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  .businesses-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.2rem 0;
  }

  .business-card {
    padding: 0.9rem;
  }

  .business-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .business-card p {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-links a,
  .social a {
    min-height: 44px;
    min-width: 44px;
  }

  input,
  textarea {
    font-size: 16px;
  }

  a:hover {
    color: var(--primary);
  }

  .nav-links a:hover {
    border-color: transparent;
    background: transparent;
  }

  .nav-links a:active {
    background: rgba(110, 231, 255, 0.1);
    border-color: rgba(110, 231, 255, 0.35);
  }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 70px 0 1rem;
  }

  .page-about .section,
  .page-contact .section {
    padding-top: 70px;
  }

  .hero-card {
    padding: 1rem;
    gap: 1rem;
  }

  .hero-visual {
    min-height: 180px;
  }

  .hero-visual .pulse-ring {
    width: 100px;
    height: 100px;
  }

  header.topbar {
    height: 60px;
  }

  .sticky-header {
    height: 60px;
    padding: 0.5rem 0.8rem;
    gap: 0.5rem;
  }

  .profile-pic {
    width: 40px;
    height: 40px;
  }

  .profile-name {
    font-size: 0.75rem;
  }

  .profile-handle {
    font-size: 0.65rem;
  }

  h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .badge {
    gap: 0.4rem;
  }

  .badges span {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .section {
    padding: 1.2rem 0;
  }
}
