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

:root {
  --bg: #080c14;
  --bg2: #0d1424;
  --card: #111827;
  --border: #1e2d4a;
  --accent: #2563eb;
  --accent2: #3b82f6;
  --accent-dim: #1d4ed8;
  --glow: rgba(37, 99, 235, 0.18);
  --text: #f0f4ff;
  --muted: #8496b0;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── CANVAS ── */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 68px;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--accent2);
  box-shadow: 0 0 20px var(--glow);
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 60px;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent2), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 28px var(--glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.15s;
}

.btn-outline:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-1px);
}

.hero-photo {
  flex-shrink: 0;
  width: 360px;
  height: 420px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.12);
  margin-right: 80px;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}

.hero-photo-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.hero-photo-placeholder p {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ── BIO ── */
#bio {
  padding: 100px 60px;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  color: var(--white);
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.bio-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.bio-card p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.85;
}

.bio-card p:first-child {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.bio-card p:last-of-type {
  margin-bottom: 36px;
}

.bio-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── TECH STACK ── */
#stack {
  padding: 80px 60px;
  overflow: hidden;
}

.stack-track-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.stack-track-wrap::before,
.stack-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}

.stack-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.stack-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.stack-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}

.stack-track:hover {
  animation-play-state: paused;
}

.stack-track2 {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollRight 48s linear infinite;
  margin-top: 14px;
}

.stack-track2:hover {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-25%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(0);
  }
}

.tech-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  cursor: default;
}

.tech-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 16px var(--glow);
  transform: translateY(-2px);
}

.tech-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── PROJECTS ── */
#projects {
  padding: 100px 60px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1650px;
  margin: 0 auto;
}

/* Cards stretch to equal height in each row */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.14);
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
}

.project-name {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

/* Description grows to fill available space so chips always sit at the bottom */
.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 68px;
  align-content: flex-start;
}

.chip {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent2);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
}

.project-actions {
  margin-top: 18px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.project-btn:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.85);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.25);
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── CV ── */
#cv {
  padding: 100px 60px;
}

.cv-header {
  max-width: 860px;
  margin: 0 auto 60px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.cv-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent2);
  flex-shrink: 0;
}

.cv-meta {
  flex: 1;
}

.cv-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 6px;
}

.cv-big-title {
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.cv-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.cv-section {
  max-width: 860px;
  margin: 0 auto 20px;
}

.cv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cv-section-header:hover {
  border-color: var(--accent);
}

.cv-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-section-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.cv-section-body {
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 32px;
  display: none;
}

.cv-section-body.open {
  display: block;
}

.cv-entry-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
}

.cv-entry-title {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.cv-entry-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.cv-entry-list {
  list-style: none;
  padding: 0;
}

.cv-entry-list li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.cv-entry-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent2);
}

/* ── CONTACT ── */
#contact {
  padding: 100px 60px;
}

.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 48px;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .field {
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field textarea {
  min-height: 140px;
}

.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.form-submit:hover {
  background: var(--accent2);
  box-shadow: 0 0 28px var(--glow);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer span {
  color: var(--accent2);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  transition:
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent2);
  box-shadow: 0 0 12px var(--glow);
}

.footer-socials svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  #home {
    flex-direction: column;
    padding: 100px 24px 60px;
  }

  .hero-photo {
    width: 100%;
    height: 300px;
  }

  #bio,
  #stack,
  #projects,
  #certifications,
  #cv,
  #contact {
    padding: 80px 24px;
  }

  .bio-card {
    padding: 32px 24px;
  }

  .form-row {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .stack-track,
  .stack-track2 {
    animation: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── CV COURSES GRID ── */
/* Small status badge on project cards */
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Green: In Progress */
.status-active {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(32, 218, 100, 0.767);
  color: #0ed858;
}

/* Blue: Completed */
.status-completed {
  background: rgba(11, 91, 104, 0.199);
  border: 1px solid rgba(11, 203, 233, 0.651);
  color: #0ece8ebb;
}

/* Yellow: Planned */
.status-planned {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #facc15;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cv-courses-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-top: 20px;
  margin-bottom: 14px;
}

.cv-courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

@media (max-width: 600px) {
  .cv-courses-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CERTIFICATIONS ── */
#certifications {
  padding: 100px 60px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

/* Each cert card - same style as project cards */
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.cert-provider {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
}

.cert-name {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.cert-code {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

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

  #certifications {
    padding: 80px 24px;
  }
}

/* ── CONTACT INFO CARDS (below form) ── */
.contact-info-row {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-info-card {
  flex: 1;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.contact-info-card:hover {
  border-color: var(--accent);
  color: var(--accent2);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-2px);
}

.contact-info-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent2);
}

.contact-info-card span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 2px;
}

/* Download CV button - same as btn-outline but with icon */
.btn-download {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.15s;
}

.btn-download:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-1px);
}

/* ── MOBILE HERO REDESIGN ── */
.mobile-title {
  display: none;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  nav {
    top: 14px;
    left: 18px;
    right: 18px;
    height: 74px;
    padding: 0 20px;
    border-radius: 34px;
    background: rgba(8, 12, 20, 0.9);
    border: 1px solid rgba(132, 150, 176, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 9px 16px;
    border-radius: 18px;
    font-size: 0.82rem;
  }

  #home {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 128px 22px 36px;
    gap: 28px;
  }

  .hero-text {
    width: 100%;
    flex: 0 0 auto;
  }

  .hero-eyebrow {
    display: none;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    text-align: center;
  }

  .hero-sub {
    max-width: 330px;
    margin: 0 auto;
    font-size: clamp(1rem, 4.4vw, 1.18rem);
    line-height: 1.75;
    color: rgba(240, 244, 255, 0.68);
    text-align: center;
  }

  .hero-btns {
    display: none;
  }

  .hero-photo {
    width: min(82vw, 380px);
    height: min(54vh, 520px);
    min-height: 360px;
    margin: 6px auto 0;
    border-radius: 34px;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.14);
  }

  .hero-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  #bio,
  #stack,
  #projects,
  #cv,
  #contact {
    padding: 76px 22px;
  }

  .section-title {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    margin-bottom: 36px;
  }

  .bio-card {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .bio-btns {
    width: 100%;
  }

  .bio-btns a {
    width: 100%;
    justify-content: center;
  }

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

  .project-card {
    padding: 26px;
  }

  .cv-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 36px;
  }

  .cv-big-title {
    font-size: 1.85rem;
  }

  .cv-section-header {
    padding: 16px 18px;
    gap: 14px;
  }

  .cv-section-body {
    padding: 26px 20px;
  }

  .cv-courses-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    padding: 28px 20px;
  }

  .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  #home {
    padding-top: 124px;
    gap: 24px;
  }

  .hero-sub {
    max-width: 310px;
    font-size: 1rem;
  }

  .hero-photo {
    width: min(84vw, 360px);
    height: 410px;
    min-height: 410px;
  }
}

.form-status {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 24px;
}