:root {
  --bg: #060816;
  --panel: rgba(14, 19, 43, 0.55);
  --panel-strong: rgba(19, 27, 60, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #b9c4ea;
  --cyan: #5df4ff;
  --blue: #6b8cff;
  --pink: #ff70d2;
  --lime: #8bffb0;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(93, 244, 255, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(255, 112, 210, 0.16), transparent 20%),
    radial-gradient(circle at 50% 88%, rgba(107, 140, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #050816 0%, #0d1331 52%, #080b1c 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  pointer-events: none;
}

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

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

.mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(93, 244, 255, 0.18), rgba(93, 244, 255, 0.04) 42%, transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(10px);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.glass-panel,
.glass-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 22px;
  margin-bottom: 22px;
}

.brand,
h1,
h2,
h3 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 24px rgba(93, 244, 255, 0.15);
}

.portfolio-card {
  border-radius: 34px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.section {
  position: relative;
  padding: 30px 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 36px;
  min-height: 560px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb,
.grid-line {
  position: absolute;
  border-radius: 50%;
}

.orb-one {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(93, 244, 255, 0.35), transparent 62%);
  top: -30px;
  left: 18%;
  animation: floaty 10s ease-in-out infinite;
}

.orb-two {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 112, 210, 0.28), transparent 65%);
  bottom: -90px;
  right: 2%;
  animation: floaty 12s ease-in-out infinite reverse;
}

.grid-line {
  inset: 12% auto auto 8%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: spin 18s linear infinite;
}

.grid-b {
  inset: auto 8% 8% auto;
  width: 280px;
  height: 280px;
  animation-duration: 14s;
}

.hero-image-wrap,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-image-wrap {
  display: grid;
  place-items: center;
  min-height: 100%;
}

.hero-image {
  width: min(78vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 45px rgba(93, 244, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.02;
}

.hero-about {
  max-width: 62ch;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-pills span,
.hero-cta {
  border-radius: 999px;
}

.hero-pills span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: #08111f;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(93, 244, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 45px rgba(255, 112, 210, 0.28);
}

.section-heading {
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
}

.skills-marquee {
  display: flex;
  gap: 18px;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px 0;
}

.skills-track {
  flex: none;
  display: flex;
  gap: 18px;
  min-width: max-content;
  padding-left: 22px;
  animation: marquee 24s linear infinite;
}

.skills-track.clone {
  padding-right: 22px;
}

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

.skill-bubble {
  width: 168px;
  min-height: 168px;
  padding: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(8, 14, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-bubble:hover {
  transform: translateY(-8px);
  border-color: rgba(93, 244, 255, 0.48);
  box-shadow: 0 18px 40px rgba(93, 244, 255, 0.16);
}

.skill-bubble span {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(93, 244, 255, 0.2), rgba(255, 112, 210, 0.24));
  margin-bottom: 8px;
}

.skill-bubble h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.learning-bubble span {
  display: none;
}

.mini-loader {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--lime);
  animation: spin 1.1s linear infinite;
  margin-bottom: 10px;
}

.certificate-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 244, 255, 0.65) transparent;
}

.certificate-row::-webkit-scrollbar {
  height: 8px;
}

.certificate-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 999px;
}

.certificate-card {
  padding: 16px;
  border-radius: 24px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.certificate-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 42px rgba(107, 140, 255, 0.2);
}

.certificate-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}

.certificate-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.certificate-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.learning-card {
  position: relative;
}

.learning-card::after {
  content: "Still Learning";
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 14, 36, 0.8);
  border: 1px solid rgba(139, 255, 176, 0.32);
  color: var(--lime);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.contact-card {
  min-height: 120px;
  padding: 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(255, 112, 210, 0.18);
}

.contact-label {
  color: var(--cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.contact-card strong {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.5;
  word-break: break-word;
}

.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 0 4px;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: footerFloat 4.8s ease-in-out infinite;
}

.footer-nav a:nth-child(2) {
  animation-delay: 0.15s;
}

.footer-nav a:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-nav a:nth-child(4) {
  animation-delay: 0.45s;
}

.footer-nav a:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 244, 255, 0.35);
  box-shadow: 0 12px 28px rgba(93, 244, 255, 0.14);
}

.footer-section p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  animation: footerPulse 3.6s ease-in-out infinite;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 10;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 16, 0.78);
}

.modal-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 760px);
  border-radius: 28px;
  padding: 22px;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
}

.modal-card img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.modal-content {
  padding-top: 18px;
}

.modal-content h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

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

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -24px, 0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 18px)); }
}

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

@keyframes footerPulse {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 0 rgba(93, 244, 255, 0);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(93, 244, 255, 0.2);
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(calc(100% - 20px), 1240px);
  }

  .portfolio-card {
    padding: 24px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 10px;
  }

  .hero-about {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-pills {
    justify-content: center;
  }

}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
  }

  .nav-links {
    justify-content: center;
  }

  .skill-bubble {
    width: 148px;
    min-height: 148px;
  }

  .certificate-row {
    grid-auto-columns: minmax(230px, 86vw);
  }

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

  .modal-card {
    padding: 18px;
  }
}

.hero-cta:focus-visible,
.nav-links a:focus-visible,
.certificate-card:focus-visible,
.contact-card:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
