:root {
  --bg: #07111f;
  --surface: rgba(13, 27, 47, 0.72);
  --surface-strong: #0d1b2f;
  --surface-soft: #11243c;
  --text: #edf2f7;
  --muted: #9fb1c6;
  --line: rgba(159, 177, 198, 0.16);
  --primary: #12b5cb;
  --primary-deep: #0a8ca0;
  --accent: #ff8f3d;
  --shadow: 0 24px 80px rgba(4, 12, 24, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(18, 181, 203, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 143, 61, 0.14), transparent 28%),
    linear-gradient(180deg, #091220 0%, #07111f 100%);
  color: var(--text);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(113, 220, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 220, 235, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
  pointer-events: none;
  opacity: 0.24;
  animation: pulseGrid 8s ease-in-out infinite;
}

.page-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(18, 181, 203, 0.14), transparent 42%);
  pointer-events: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
  min-width: 0;
}

.hero-copy,
.hero-visual,
.about-copy,
.section-heading,
.contact-copy,
.contact-card,
.project-card,
.skill-card,
.cert-card,
.education-card,
.meta-card,
.stat-card {
  min-width: 0;
}

.section {
  padding: 56px 0;
  scroll-margin-top: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px);
  background: rgba(7, 17, 31, 0.74);
  border-bottom: 1px solid rgba(113, 220, 235, 0.12);
  box-shadow: 0 10px 40px rgba(4, 12, 24, 0.18);
}

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

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffffff, #8ee7f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link,
.mobile-link {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--text);
}

.nav-link.active,
.mobile-link.active {
  text-shadow: 0 0 18px rgba(113, 220, 235, 0.35);
}

.button {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #031017;
  background: linear-gradient(135deg, var(--primary), #71dceb);
  box-shadow: 0 14px 34px rgba(18, 181, 203, 0.24);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.button-full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 27, 47, 0.94);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  padding-top: 24px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(18, 181, 203, 0.12), transparent 24%),
    radial-gradient(circle at 76% 36%, rgba(113, 220, 235, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 32%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(113, 220, 235, 0.04), transparent);
  pointer-events: none;
  animation: scanLine 8s linear infinite;
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-grid {
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2,
.modal-panel h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  max-width: 12ch;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 9px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(113, 220, 235, 0.28);
  background: linear-gradient(135deg, rgba(18, 181, 203, 0.16), rgba(113, 220, 235, 0.05));
  color: #bfeef5;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 26px rgba(18, 181, 203, 0.1);
}

.hero-text,
.hero-subtext,
.about-copy p,
.contact-copy p,
.modal-panel p,
.cert-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtext {
  max-width: 58ch;
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.hero-actions > * {
  flex-shrink: 0;
}

.hero-console {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  margin-bottom: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 22, 38, 0.9), rgba(9, 20, 36, 0.76));
  border: 1px solid rgba(113, 220, 235, 0.14);
  box-shadow: 0 18px 44px rgba(4, 12, 24, 0.18);
}

.hero-console::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(113, 220, 235, 0.08), transparent);
  transform: translateX(-100%);
  animation: scanLine 7s linear infinite;
}

.console-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #8ee7f2;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.console-grid span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.education-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(13, 27, 47, 0.9), rgba(9, 20, 36, 0.82));
  border: 1px solid rgba(113, 220, 235, 0.12);
  box-shadow: 0 20px 52px rgba(4, 12, 24, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.education-card:hover {
  transform: translateY(-6px);
  border-color: rgba(113, 220, 235, 0.28);
  box-shadow: 0 24px 56px rgba(4, 12, 24, 0.3), 0 0 26px rgba(18, 181, 203, 0.08);
}

.education-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(113, 220, 235, 0.09), transparent 42%, rgba(255, 143, 61, 0.05));
  pointer-events: none;
}

.education-card h3 {
  margin: 10px 0 10px;
  font-size: 1.25rem;
}

.education-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.education-place {
  margin-bottom: 12px !important;
  color: #bfeef5 !important;
  font-weight: 600;
}

.education-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 181, 203, 0.12);
  border: 1px solid rgba(113, 220, 235, 0.14);
  color: #8ee7f2;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta,
.stats-grid,
.skill-grid,
.project-grid,
.cert-grid,
.contact-links {
  display: grid;
  gap: 18px;
}

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

.meta-card,
.stat-card,
.skill-card,
.project-card,
.cert-card,
.contact-card {
  background: linear-gradient(180deg, rgba(13, 27, 47, 0.88), rgba(9, 20, 36, 0.82));
  border: 1px solid rgba(113, 220, 235, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.meta-card,
.stat-card,
.skill-card,
.project-card,
.cert-card,
.contact-card,
.modal-panel {
  border-radius: var(--radius-lg);
}

.meta-card {
  padding: 20px;
}

.meta-card strong,
.stat-card strong {
  letter-spacing: -0.03em;
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 12px 0;
}

.photo-halo {
  position: absolute;
  inset: 0 10px 40px;
  border-radius: 52px;
  background: radial-gradient(circle, rgba(18, 181, 203, 0.26), rgba(255, 143, 61, 0.13), transparent 72%);
  filter: blur(30px);
  z-index: 0;
}

.photo-frame {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  margin: 0 auto;
  transform: translateY(-18px);
  padding: 18px;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(18, 181, 203, 0.28), rgba(255, 143, 61, 0.14));
  box-shadow: 0 22px 70px rgba(6, 15, 31, 0.34);
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.floating-card {
  position: absolute;
  z-index: 2;
  max-width: 200px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(13, 27, 47, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(4, 12, 24, 0.28);
  animation: neonFloat 4.8s ease-in-out infinite;
}

.floating-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-one {
  left: 12px;
  bottom: 16px;
}

.card-two {
  right: 0;
  top: 8px;
  animation-delay: -2s;
}

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

.stat-card {
  padding: 24px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(4, 12, 24, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--primary);
  text-shadow: 0 0 24px rgba(18, 181, 203, 0.25);
}

.section-heading {
  max-width: 560px;
  margin-bottom: 34px;
}

.section-heading-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.about-copy {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(14, 28, 49, 0.92), rgba(9, 20, 36, 0.84));
  border: 1px solid rgba(113, 220, 235, 0.1);
  box-shadow: 0 18px 44px rgba(4, 12, 24, 0.22);
}

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

.skill-card {
  padding: 24px;
}

.skill-top,
.project-top,
.cert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.skill-card h3,
.project-card h3,
.cert-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.skill-card p,
.cert-card p,
.project-card p {
  margin: 10px 0 0;
}

.skill-meter {
  margin-top: 20px;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-meter span {
  display: block;
  height: 100%;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.project-card,
.cert-card {
  padding: 28px;
}

.project-tags,
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.tag,
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.tag {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.project-status {
  color: #062b31;
  background: rgba(113, 220, 235, 0.86);
  font-weight: 700;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.project-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.cert-issuer {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

.contact-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.contact-card label {
  display: grid;
  gap: 10px;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  outline: none;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: rgba(113, 220, 235, 0.8);
  box-shadow: 0 0 0 4px rgba(18, 181, 203, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 34px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 40;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 18, 0.75);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 28px));
  padding: 30px;
  background: #0d1b2f;
  border: 1px solid var(--line);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 27, 47, 0.92);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

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

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

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

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


@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .project-grid,
  .cert-grid,
  .skill-grid,
  .education-grid,
  .console-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .hero-meta,
  .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-wrap {
    min-height: 72px;
    gap: 16px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-grid {
    gap: 26px;
  }

  .hero-copy {
    order: 2;
    text-align: center;
    padding: 24px 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(10, 21, 38, 0.92), rgba(10, 21, 38, 0.68));
    border: 1px solid rgba(113, 220, 235, 0.12);
    box-shadow: 0 18px 40px rgba(4, 12, 24, 0.2);
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero-badge {
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .hero-text,
  .hero-subtext {
    max-width: none;
    font-size: 0.98rem;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .section-heading,
  .contact-copy {
    text-align: center;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(1.9rem, 6vw, 3rem);
    line-height: 1.08;
  }

  .hero-visual {
    order: 1;
    min-height: auto;
    padding: 8px 0 0;
  }

  .photo-halo {
    inset: 16px 44px 56px;
  }

  .photo-frame {
    width: min(380px, 100%);
    transform: none;
  }

  .card-one {
    display: none;
  }

  .card-two {
    position: static;
    max-width: 260px;
    margin: 16px auto 0;
    text-align: center;
  }

  .floating-card {
    box-shadow: 0 16px 34px rgba(4, 12, 24, 0.24);
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (max-width: 640px) {
  :root {
    --container: min(100%, calc(100vw - 20px));
  }

  .section {
    padding: 52px 0;
    scroll-margin-top: 70px;
  }

  .site-header {
    backdrop-filter: blur(16px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-actions .button-ghost {
    display: none;
  }

  .mobile-nav {
    width: calc(100vw - 20px);
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 11vw, 3rem);
    letter-spacing: -0.04em;
  }

  .hero-badge {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .hero-console,
  .education-card,
  .project-card,
  .cert-card,
  .skill-card,
  .contact-card,
  .stat-card,
  .meta-card,
  .modal-panel {
    border-radius: 22px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .cert-top,
  .project-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cert-top .project-link,
  .project-top .project-status {
    align-self: flex-start;
  }

  .console-grid span,
  .tag,
  .project-link,
  .contact-links a {
    word-break: break-word;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .photo-frame {
    width: min(100%, 330px);
    padding: 14px;
    border-radius: 30px;
  }

  .photo-frame img {
    border-radius: 24px;
  }

  .card-two,
  .card-one {
    font-size: 0.95rem;
  }

  .project-card,
  .cert-card,
  .skill-card,
  .contact-card,
  .modal-panel,
  .stat-card,
  .meta-card {
    border-radius: 22px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.98rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 12vw, 2.6rem);
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .photo-frame {
    width: min(100%, 290px);
  }

  .education-card,
  .project-card,
  .cert-card,
  .skill-card,
  .contact-card,
  .stat-card,
  .meta-card {
    padding: 18px 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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


.project-card-clickable {
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-card-clickable:hover,
.project-card-clickable:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(113, 220, 235, 0.45);
  background: rgba(17, 36, 60, 0.92);
  outline: none;
}


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

.cert-card {
  height: 100%;
}

@media (max-width: 1120px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.cert-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 26px;
}

.cert-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cert-tab:hover,
.cert-tab.is-active {
  background: linear-gradient(135deg, rgba(18, 181, 203, 0.18), rgba(113, 220, 235, 0.08));
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(18, 181, 203, 0.12);
}

.hidden-grid {
  display: none;
}


@keyframes pulseGrid {
  0%, 100% {
    opacity: 0.18;
    transform: scale(1);
  }

  50% {
    opacity: 0.32;
    transform: scale(1.03);
  }
}

@keyframes scanLine {
  0% {
    transform: translateY(-10%);
    opacity: 0;
  }

  20% {
    opacity: 0.22;
  }

  100% {
    transform: translateY(110%);
    opacity: 0;
  }
}

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

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

