:root {
  --bg: #030712;
  --bg-soft: #07111f;
  --card: rgba(15, 23, 42, 0.72);
  --card-strong: rgba(15, 23, 42, 0.92);
  --text: #e5f0ff;
  --muted: #8aa4c8;
  --accent: #38bdf8;
  --accent-2: #2563eb;
  --accent-3: #22d3ee;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 90px rgba(14, 165, 233, 0.18);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.28), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.20), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.18), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent, rgba(56, 189, 248, 0.04), transparent);
  z-index: -2;
}

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

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

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.68);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.navbar.scrolled {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(3, 7, 18, 0.88);
  transform: translateX(-50%) translateY(-4px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.83rem;
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.55);
  color: #020617;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f8fbff;
  background: rgba(56, 189, 248, 0.12);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 136px 20px 84px;
}

.hero-inner,
.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: rgba(8, 47, 73, 0.26);
  border-radius: 999px;
  color: #bae6fd;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

h1 {
  max-width: 830px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 900;
  margin-bottom: 28px;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 38%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(56, 189, 248, 0.16);
}

.hero-desc {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  margin-bottom: 28px;
}

.hero-desc strong,
.section-lead strong {
  color: #dff6ff;
  font-weight: 800;
}


.profile-mini {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 4px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(8, 47, 73, 0.48)),
    rgba(15, 23, 42, 0.62);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(14px);
}

.profile-mini img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  object-position: 50% 19%;
  border-radius: 999px;
  border: 2px solid rgba(125, 211, 252, 0.55);
  box-shadow:
    0 0 0 5px rgba(56, 189, 248, 0.08),
    0 0 36px rgba(56, 189, 248, 0.24);
}

.profile-mini strong {
  display: block;
  color: #f8fbff;
  font-size: 1rem;
  line-height: 1.15;
}

.profile-mini span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3px;
}


.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 34px;
}

.badge {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
  color: #cbdaf1;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
  box-shadow: 0 18px 54px rgba(37, 99, 235, 0.34);
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.66);
  color: #e5f0ff;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  perspective: 1100px;
}

.orbit {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(56, 189, 248, 0.20);
  border-radius: 999px;
  transform: rotateX(62deg) rotateZ(-20deg);
  animation: orbitGlow 5s ease-in-out infinite alternate;
}

.orbit:nth-child(2) {
  inset: 14%;
  transform: rotateX(62deg) rotateZ(28deg);
  border-color: rgba(37, 99, 235, 0.24);
  animation-delay: 0.7s;
}

@keyframes orbitGlow {
  from { opacity: 0.28; filter: blur(0); }
  to { opacity: 0.75; filter: blur(0.4px); }
}

.cloud-card {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 3;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-12deg);
  width: min(100%, 430px);
  border-radius: 36px;
  border: 1px solid rgba(125, 211, 252, 0.26);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.72)),
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.18), transparent 35%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 26px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotateX(8deg) rotateY(-12deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateX(8deg) rotateY(-12deg) translateY(-18px); }
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.terminal-title {
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 700;
}

.code-lines {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  color: #c4e4ff;
}

.code-lines p {
  margin: 12px 0;
}

.code-lines .muted {
  color: #64748b;
}

.code-lines .blue {
  color: #38bdf8;
}

.code-lines .green {
  color: #67e8f9;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.metric {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.36);
  border-radius: 20px;
}

.metric strong {
  display: block;
  color: #f8fbff;
  font-size: 1.05rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.75rem;
}


.profile-card-floating {
  position: absolute;
  top: -8%;
  left: 2%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(8, 47, 73, 0.62)),
    rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  box-shadow:
    0 22px 70px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  animation: chipFloat 5.5s ease-in-out infinite;
}

.profile-card-floating img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  object-position: 50% 19%;
  border-radius: 999px;
  border: 2px solid rgba(125, 211, 252, 0.6);
  box-shadow:
    0 0 0 5px rgba(56, 189, 248, 0.08),
    0 0 38px rgba(56, 189, 248, 0.28);
}

.profile-card-floating strong {
  display: block;
  color: #f8fbff;
  font-size: 1.02rem;
  line-height: 1.15;
  white-space: nowrap;
}

.profile-card-floating span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 4px;
  white-space: nowrap;
}

.floating-chip {
  position: absolute;
  z-index: 1;
  padding: 10px 13px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(3, 7, 18, 0.74);
  backdrop-filter: blur(14px);
  color: #dff6ff;
  box-shadow: 0 18px 60px rgba(0,0,0,0.2);
  animation: chipFloat 5s ease-in-out infinite;
}

.floating-chip.one {
  top: 13%;
  right: -2%;
  z-index: 4;
  font-size: 0.92rem;
}

.floating-chip.two {
  bottom: -1%;
  left: 10%;
  opacity: 0.78;
  transform: scale(0.92);
  animation-delay: 0.8s;
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(203, 218, 241, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mouse {
  width: 25px;
  height: 42px;
  border: 1px solid rgba(203, 218, 241, 0.46);
  border-radius: 999px;
  position: relative;
}

.mouse::before {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: wheel 1.5s infinite;
}

@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.section {
  position: relative;
  padding: 104px 20px;
}

.section-header {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 36px;
}

.section-kicker {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 11px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.about-card {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.12), transparent 36%),
    rgba(15, 23, 42, 0.58);
}

.about-card p {
  color: var(--muted);
  font-size: 1.03rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 265px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 70px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(56, 189, 248, 0.18), transparent 34%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.38);
  background: var(--card-strong);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 20px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.18);
  font-size: 1.35rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  font-size: 0.78rem;
  color: #bfdbfe;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.20);
}

.timeline {
  display: grid;
  gap: 16px;
  border-left: 1px solid rgba(56, 189, 248, 0.24);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.6);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 29px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.12);
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.timeline-item p {
  color: var(--muted);
}

.stack-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stack-item {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.56);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stack-item:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.34);
}

.stack-item strong {
  color: #f8fbff;
}

.stack-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 34px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 36%),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.contact-card p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 680px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer {
  padding: 34px 20px 44px;
  color: rgba(138, 164, 200, 0.75);
  text-align: center;
  font-size: 0.9rem;
}

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

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

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

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

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

  .stack-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .navbar {
    top: 12px;
    border-radius: 24px;
    align-items: flex-start;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(3, 7, 18, 0.96);
  }

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

  .nav-link {
    justify-content: center;
    padding: 12px;
  }

  .hero {
    padding-top: 120px;
  }


  .profile-mini {
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
  }

  .profile-mini img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .cards-grid,
  .stack-wrap,
  .metrics {
    grid-template-columns: 1fr;
  }


  .profile-card-floating {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 18px;
    border-radius: 24px;
  }

  .profile-card-floating img {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .profile-card-floating strong,
  .profile-card-floating span {
    white-space: normal;
  }

  .cloud-card {
    width: min(100%, 360px);
    padding: 20px;
  }

  .floating-chip {
    display: none;
  }

  .section {
    padding: 78px 20px;
  }
}


/* Mobile-first refinement for large iPhones and smaller screens */
@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 35% 0%, rgba(37, 99, 235, 0.30), transparent 36%),
      radial-gradient(circle at 80% 18%, rgba(56, 189, 248, 0.16), transparent 34%),
      var(--bg);
  }

  .navbar {
    width: calc(100% - 22px);
    top: 10px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .logo {
    gap: 8px;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 11px;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    top: 58px;
  }

  .hero {
    min-height: auto;
    padding: 104px 16px 58px;
    align-items: flex-start;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    max-width: 100%;
    margin-bottom: 18px;
    padding: 7px 10px;
    font-size: 0.70rem;
    letter-spacing: 0.045em;
    white-space: normal;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.35rem, 15.4vw, 4.7rem);
    line-height: 0.91;
    letter-spacing: -0.065em;
    margin-bottom: 22px;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.62;
    margin-bottom: 22px;
  }

  .badge-row {
    gap: 8px;
    margin: 22px 0 0;
  }

  .badge {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-visual {
    width: 100%;
    min-height: auto;
    display: grid;
    gap: 18px;
    justify-items: center;
    perspective: none;
  }

  .orbit {
    display: none;
  }

  .profile-card-floating {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 390px;
    margin: 0;
    padding: 12px 14px 12px 12px;
    border-radius: 26px;
    animation: mobileSoftFloat 5.5s ease-in-out infinite;
  }

  .profile-card-floating img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .profile-card-floating strong,
  .profile-card-floating span {
    white-space: normal;
  }

  .cloud-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 390px;
    padding: 20px;
    border-radius: 28px;
    transform: none !important;
    animation: mobileSoftFloat 6.5s ease-in-out infinite;
  }

  .terminal-top {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .terminal-title {
    font-size: 0.78rem;
  }

  .code-lines {
    font-size: 0.82rem;
  }

  .code-lines p {
    margin: 10px 0;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
  }

  .metric {
    padding: 11px 10px;
    border-radius: 16px;
  }

  .metric strong {
    font-size: 0.95rem;
  }

  .metric span {
    font-size: 0.68rem;
  }

  .floating-chip {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .section {
    padding: 68px 16px;
  }

  .section-header {
    gap: 18px;
    margin-bottom: 28px;
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
    letter-spacing: -0.05em;
  }

  .section-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .about-card {
    padding: 20px;
    border-radius: 22px;
  }

  .about-card p {
    font-size: 0.96rem;
  }

  .timeline {
    padding-left: 18px;
  }

  .timeline-item {
    padding: 18px;
    border-radius: 20px;
  }

  .timeline-item::before {
    left: -25px;
  }

  .card {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .stack-item {
    min-height: 82px;
    padding: 16px;
    border-radius: 18px;
  }

  .contact-card {
    padding: 22px;
    border-radius: 24px;
  }

  .contact-links {
    width: 100%;
  }
}

@keyframes mobileSoftFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Extra tuning for very narrow phones */
@media (max-width: 390px) {
  h1 {
    font-size: clamp(3rem, 15vw, 4.1rem);
  }

  .eyebrow {
    font-size: 0.64rem;
  }

  .code-lines {
    font-size: 0.76rem;
  }

  .profile-card-floating {
    gap: 11px;
  }

  .profile-card-floating img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
}
