:root {
  --ink: #0a1628;
  --ink-soft: #1c2d45;
  --mist: #eef3f7;
  --paper: #f7fafc;
  --line: rgba(10, 22, 40, 0.1);
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --teal-deep: #0f766e;
  --amber: #d97706;
  --amber-soft: #f59e0b;
  --muted: #5b6b7c;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(10, 22, 40, 0.08);
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(217, 119, 6, 0.12), transparent 50%),
    linear-gradient(180deg, #f4f8fb 0%, var(--mist) 40%, #e8eef4 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 40, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

em {
  font-style: normal;
  color: var(--teal-deep);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1000;
  background: linear-gradient(90deg, var(--teal), var(--amber-soft));
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.45);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(20, 184, 166, 0.2), transparent 45%),
    #0a1628;
  color: var(--white);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  width: min(360px, 80vw);
}

.preloader-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.preloader-accent {
  color: var(--teal-bright);
}

.preloader-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-bright), var(--amber-soft));
  transition: width 0.15s linear;
}

.preloader-tag {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 24px);
}

.nav-pill {
  display: flex;
  gap: 2px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(247, 250, 252, 0.72);
  border: 1px solid rgba(10, 22, 40, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(10, 22, 40, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-pill::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link i {
  font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(13, 148, 136, 0.12);
}

.nav-link.active {
  color: var(--teal-deep);
  font-weight: 600;
}

@media (max-width: 820px) {
  .nav-link span {
    display: none;
  }
  .nav-link {
    padding: 12px 14px;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(20, 184, 166, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 40% at 80% 70%, rgba(217, 119, 6, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 75%, rgba(13, 148, 136, 0.12), transparent 50%);
  animation: atmosphereDrift 18s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes atmosphereDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.04); }
}

.hero-content {
  width: min(960px, 100%);
  text-align: center;
}

.hero-kicker {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}

.brand-first {
  display: block;
  color: var(--ink);
}

.brand-last {
  display: block;
  background: linear-gradient(120deg, var(--teal-deep) 10%, var(--teal-bright) 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  min-height: 1.6em;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--teal);
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.18);
}

.btn-primary:hover {
  background: var(--teal-deep);
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.88rem;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 24px;
}

.section-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.section-shell.narrow {
  width: min(720px, 100%);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.section-heading.center {
  text-align: center;
}

/* About */
.about-panel {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 22, 40, 0.07);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.about-photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(13, 148, 136, 0.25);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
  background: linear-gradient(145deg, #0f766e, #1e3a5f);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy .section-heading {
  margin-bottom: 1rem;
}

.about-panel p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-photo-wrap {
    width: 180px;
    height: 180px;
  }

  .about-panel p {
    margin-left: auto;
    margin-right: auto;
  }
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-meta span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.about-meta strong {
  font-weight: 600;
}

.about-meta a:hover {
  color: var(--teal-deep);
}

@media (max-width: 720px) {
  .about-meta {
    grid-template-columns: 1fr;
  }
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.edu-item {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.edu-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 148, 136, 0.25);
}

.edu-year {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.edu-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.edu-school {
  color: var(--muted);
  margin-bottom: 16px;
}

.edu-stat {
  font-size: 1.05rem;
}

.edu-stat strong {
  color: var(--teal-deep);
  font-size: 1.25rem;
}

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

/* Projects */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 22, 40, 0.07);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.project-row.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.project-row.reverse .project-meta {
  order: 2;
}

.project-row.reverse .project-visual {
  order: 1;
}

.project-meta {
  padding: clamp(28px, 4vw, 40px);
}

.project-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-meta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.project-meta > p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 22px;
}

.tech-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.05);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(8px);
  animation: orbFloat 6s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-8%, -6%) scale(1); }
  50% { transform: translate(8%, 6%) scale(1.08); }
}

.visual-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.visual-job {
  background: linear-gradient(145deg, #0f766e 0%, #134e4a 45%, #1e3a5f 100%);
}
.visual-job .visual-orb {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.55), transparent 70%);
}

.visual-arena {
  background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 50%, #115e59 100%);
}
.visual-arena .visual-orb {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.6), transparent 70%);
}

.visual-truth {
  background: linear-gradient(145deg, #334155 0%, #0f172a 55%, #854d0e 100%);
}
.visual-truth .visual-orb {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45), transparent 70%);
}

@media (max-width: 860px) {
  .project-row,
  .project-row.reverse {
    grid-template-columns: 1fr;
  }
  .project-row.reverse .project-meta,
  .project-row.reverse .project-visual {
    order: initial;
  }
  .project-visual {
    min-height: 180px;
  }
}

/* Certifications */
.certs-year-block {
  margin-bottom: 2.25rem;
}

.certs-year-block:last-child {
  margin-bottom: 0;
}

.certs-year-label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.certs-year-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.35), transparent);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cert-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 148, 136, 0.28);
}

.cert-card.highlight {
  background:
    linear-gradient(160deg, rgba(13, 148, 136, 0.1), rgba(255, 255, 255, 0.75) 45%),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(13, 148, 136, 0.22);
}

.cert-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 16px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-deep);
  font-size: 1.25rem;
}

.cert-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cert-org {
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-card > p:not(.cert-org) {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.cert-link:hover {
  color: var(--teal-deep);
}

.cert-link i {
  transition: transform 0.25s ease;
}

.cert-link:hover i {
  transform: translateX(4px);
}

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

/* Profiles */
.profiles-handle {
  text-align: center;
  color: var(--teal-deep);
  font-weight: 600;
  margin: -0.5rem 0 1.75rem;
}

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

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 148, 136, 0.3);
}

.profile-card > i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 1.25rem;
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

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

.profiles-note {
  text-align: center;
  color: var(--muted);
  margin-top: 1.5rem;
}

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

/* Contact */
.contact-lead {
  text-align: center;
  color: var(--ink-soft);
  margin: -0.5rem auto 2rem;
  max-width: 48ch;
}

.contact-form {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 22, 40, 0.07);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
}

.contact-form label span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.btn-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  margin-top: 12px;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.92rem;
  color: var(--teal-deep);
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.contact-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.contact-quick a:hover {
  color: var(--teal-deep);
}

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

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 24px 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.6fr;
  gap: 24px;
  align-items: center;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.footer-brand span {
  color: var(--teal-deep);
}

.footer-brand p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--teal-deep);
}

.footer-socials {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.25s ease, background 0.25s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  background: var(--teal-deep);
}

.footer-bottom {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.back-top {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-deep);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.back-top:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
}

/* Reveal animations */
.reveal-up,
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.visible,
.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.16s; }
.reveal-up:nth-child(4) { transition-delay: 0.24s; }
.reveal-up:nth-child(5) { transition-delay: 0.32s; }

.certs-grid .reveal:nth-child(2),
.profiles-grid .reveal:nth-child(2),
.edu-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.certs-grid .reveal:nth-child(3),
.profiles-grid .reveal:nth-child(3) { transition-delay: 0.18s; }
.certs-grid .reveal:nth-child(4) { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-atmosphere,
  .visual-orb,
  .scroll-line,
  .cursor-blink { animation: none; }
  .reveal-up,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
