@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/orbitron-v35-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/orbitron-v35-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-v51-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a1a;
}
::-webkit-scrollbar-thumb {
  background: #00ffcc;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ffcc;
}
::selection {
  background-color: #00ffcc2c;
  color: #ffffff;
}

::-webkit-selection {
  background-color: #00ffcc2c;
  color: #ffffff;
}

::-moz-selection {
  background-color: #00ffcc2c;
  color: #ffffff;
}
body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background: #0a0a23;
  overflow-x: hidden;
}
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
.blur-edges-overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  z-index: 9998;
  pointer-events: none;

  -webkit-mask-image: linear-gradient(
    to bottom,
    black,
    transparent 1.5rem,
    transparent calc(100% - 1.5rem),
    black
  );
  -webkit-mask-composite: source-over;

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 1.5rem,
    transparent calc(100% - 1.5rem),
    black
  );
  mask-composite: add;
}

/* hide native cursor on desktop, custom one takes over */
@media (pointer: fine) {
  * {
    cursor: none !important;
  }
}

.cursor-dot,
.cursor-outline {
  pointer-events: none;
}
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a,
  button,
  .lang-card,
  .btn-hollow {
    cursor: none;
  }
}

.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  background: #d7f8fa14;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition:
    transform 0.15s ease-out,
    opacity 0.3s ease,
    border-radius 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #00ffcc;
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 255, 204, 0.5);
  /* gives the ring a lerp-y trailing feel */
  transition:
    transform 0.15s ease-out,
    opacity 0.3s ease;
}

.cursor-active .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}

.cursor-active .cursor-outline {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(0, 255, 204, 0.1);
  border-color: #00ffcc;
}
@media (max-width: 768px) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
  @media (pointer: fine) {
    * {
      cursor: default !important;
    }
  }
}
body.cursor-active .cursor-dot {
  transform: translate(-50%, -50%);
  background-color: #fff;
}

body.cursor-active .cursor-outline {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #00ffcc;
  border-radius: 25%;
}

.center {
  text-align: center;
}

/* nav */
nav {
  position: fixed;
  top: 20px;
  left: 50%;

  transform: translateX(-50%) translateY(-100px);
  width: 80%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 100;
  border-radius: 100px;
  border: #00ffcc 1px solid;
  transition: all 0.3s ease-out;
  animation: dropDown 0.8s ease-out forwards;
}

@keyframes dropDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
nav:hover {
  background: rgb(1 35 28 / 30%);
  box-shadow:
    0 0 15px rgba(0, 255, 204, 0.6),
    inset 0 0 15px rgba(0, 255, 204, 0.4);
  cursor: pointer;

  transition: all 0.3s ease-out;
}
nav:hover .nav-links.active {
  box-shadow:
    0 0 15px rgba(0, 255, 204, 0.6),
    inset 0 0 15px rgba(0, 255, 204, 0.4);

  cursor: pointer;
  transition: all 0.3s ease-out;
}
@media (max-width: 1050px) {
  nav:hover {
    box-shadow: none;
  }
  nav:hover .nav-links.active {
    box-shadow: none;
  }
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
nav .logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #00ffcc;
  text-decoration: none;
  text-shadow: 0 0 10px #00ffcc;
  color: #00ffcc;

  /* moving white highlight clipped to text = neon sweep */
  background: linear-gradient(
    to right,
    #00ffcc 0%,
    #00ffcc 45%,
    #fff 50%,
    #00ffcc 55%,
    #00ffcc 100%
  );

  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);

  animation: neonSweep 6s linear infinite;
}

@keyframes neonSweep {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #00ffcc;
  cursor: pointer;
}
nav ul li a:active {
  color: #00ffcc;
}
.progress-container {
  position: absolute;
  top: 0px;
  left: 25px;
  right: 25px;
  width: calc(100% - 50px);
  height: 2px;
  overflow: hidden;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

#scroll-line {
  height: 100%;
  width: 0%;
  background: #00ffcc;
  box-shadow:
    0 0 10px #00ffcc,
    0 0 20px #00ffcc;
  transition: width 0.1s ease-out;
  will-change: width;
  border-radius: 5px;
}
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #1e1e3f, #3a3a6b);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
/* iss globe */
#hero-globe {
  position: absolute;
  bottom: -50%;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;

  /* hidden until JS adds .globe-ready */
  opacity: 0;
  transform: translateY(500px) scale(0.95);
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
  contain: strict;
  will-change: transform;
}

#hero-globe.globe-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#hero-globe.is-fixed {
  position: fixed;
  z-index: -1;
}
@media (max-height: 1000px) {
  #hero-globe {
    height: 100vh;
  }
}
@media (max-height: 850px) {
  #hero-globe {
    height: 100vh;
  }
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}
.hero .container {
  z-index: 2;
  top: -5rem;
  position: relative;
  pointer-events: none; /* let clicks pass through to the globe */
}
.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  color: #00ffcc;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
  animation: fadeInDown 1s ease-out;
}
.hero p {
  font-size: 1.5rem;
  margin: 1rem 0 2rem;
  color: #ccc;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
}
/* buttons */
.btn,
.btn-hollow {
  display: inline-block;
  padding: 1rem 2.5rem;
  margin: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  opacity: 0;
  pointer-events: all;
  animation: fadeInUp 1s ease-out 1s forwards;

  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* primary */
.btn {
  background: #fd7a33;
  color: #ffff;
  border: 2px solid #fd7a33;

  box-shadow:
    0 0 15px rgba(253, 122, 51, 0.6),
    0 0 30px rgba(253, 122, 51, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.4);
}

.btn:hover {
  box-shadow:
    0 0 20px #fd7a33,
    0 0 40px #fd7a33;
  transform: translateY(-3px) scale(1.02);
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 0 10px #fd7a33;
}

/* hollow */
.btn-hollow {
  backdrop-filter: blur(3px);
  background: transparent;
  color: #fd7a33;
  border: 2px solid #fd7a33;

  box-shadow:
    0 0 10px rgba(253, 122, 51, 0.2),
    inset 0 0 10px rgba(253, 122, 51, 0.1);
  text-shadow: 0 0 5px rgba(253, 122, 51, 0.5);
}

.btn-hollow:hover {
  background: rgba(253, 122, 51, 0.15);
  color: #fff;
  box-shadow:
    0 0 15px rgba(253, 122, 51, 0.6),
    inset 0 0 15px rgba(253, 122, 51, 0.4);
  transform: translateY(-3px) scale(1.02);
  text-shadow: 0 0 8px #fd7a33;
  cursor: pointer;
}

.btn-hollow:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 0 5px rgba(253, 122, 51, 0.4);
}
/* button stagger */
.stagger-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* hides the incoming bottom letter */
}

.btn-letter-wrap {
  position: relative;
  display: inline-block;
  transition:
    transform 0.4s cubic-bezier(0.6, 0, 0.4, 1),
    opacity 0.4s cubic-bezier(0.6, 0, 0.4, 1);
  transition-delay: calc(var(--index) * 0.02s);
}

.btn-letter-top {
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
  transition-delay: calc(var(--index) * 0.02s + 0.12s);
}

.btn-letter-bottom {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  transition: none;
}

.btn:hover .btn-letter-wrap,
.btn-hollow:hover .btn-letter-wrap {
  transform: translateY(-100%);
}

.btn:hover .btn-letter-top,
.btn-hollow:hover .btn-letter-top {
  opacity: 0;
}

.btn:hover .btn-letter-bottom,
.btn-hollow:hover .btn-letter-bottom {
  opacity: 1;
  transition: opacity 0.2s ease;
  transition-delay: calc(var(--index) * 0.02s + 0.12s);
}

/* sections */
section {
  padding: 6rem 0;
  position: relative;
  margin: -5px 0rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: #00ffcc;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 0 10px #00ffcc;
}
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.sh-index {
  display: block;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 1rem;
  color: rgba(0, 255, 204, 0.45);
  letter-spacing: 0.45em;
  margin-bottom: 0.6rem;
  animation-delay: 0s;
}
.sh-index strong {
  color: rgba(0, 255, 204, 0.8);
}

.section-heading h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  margin-bottom: 0;
  animation-delay: 0.15s;
}

.sh-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  margin: 1rem auto;
  opacity: 0;
  gap: 5px;
  --extra-delay: 0s;
}

.sh-line.slower {
  --extra-delay: 3s;
}
.sh-line.slower2 {
  --extra-delay: 1.5s;
}

.sh-seg {
  height: 2px;
  width: 0;
}
.sh-seg-l {
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.5));
}
.sh-seg-r {
  background: linear-gradient(90deg, rgba(0, 255, 204, 0.5), transparent);
}

.sh-diamond {
  width: 10px;
  height: 10px;
  background: #00ffcc;
  box-shadow: 0 0 8px #00ffcc;
  transform: rotate(45deg) scale(0);
  flex-shrink: 0;
  opacity: 0;
}

.sh-line.animate {
  opacity: 1;
  transition: opacity 0.1s calc(0.5s + var(--extra-delay));
}

.sh-line.animate .sh-seg-l,
.sh-line.animate .sh-seg-r {
  animation: sh-seg-expand 0.7s cubic-bezier(0.25, 1, 0.5, 1) calc(0.9s + var(--extra-delay)) both;
}

.sh-line.animate .sh-diamond {
  animation: sh-diamond-pop 0.3s ease calc(0.3s + var(--extra-delay)) both;
}

@keyframes sh-seg-expand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 160px;
    opacity: 1;
  }
}

@keyframes sh-diamond-pop {
  from {
    transform: rotate(45deg) scale(0);
    opacity: 0;
  }
  to {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }
}

.sh-sub {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: rgba(0, 255, 204, 0.4);
  text-transform: uppercase;
  margin: 0;
  animation-delay: 0.45s;
}

.mobile-only-text-space-10 {
  min-height: auto;
}
.mobile-only-text-space-6 {
  min-height: auto;
}

/* about */
.about {
  background: #1e1e3f;
  z-index: 5; /* covers the bottom of the globe */
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ffcc;
  padding: 5px;
  background: rgba(0, 255, 204, 0.05);
  border-radius: 50%;
  border: 3px solid #00ffcc !important;
  box-shadow: 0 0 20px #00ffcc;
  object-fit: cover;
  animation: fadeIn 1s ease-out;
}
.avatar {
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.avatar.animate {
  opacity: 1;
  transform: scale(1);
}

.avatar-card {
  text-align: center;
  max-width: 350px;
  margin: 0 auto;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.avatar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 255, 204, 0.15);
  border-color: #00ffcc;
}

.avatar-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}

/* The "Online/Available" Dot */
.status-dot {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  background: #fd7a33;
  border: 3px solid #1e1e3f;
  border-radius: 50%;
  box-shadow: 0 0 10px #fd7a33;
}

/* Text Content */
.profile-name {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
}

.last-name {
  color: #00ffcc;
}

.profile-title {
  color: #ccc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  font-family: monospace;
}

.profile-stats {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 255, 204, 0.05);
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(0, 255, 204, 0.3);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.1rem;
  color: #fff;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(0, 255, 204, 0.2);
}
.bio p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.skills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  background: rgba(0, 255, 204, 0.1);
  padding: 0.5rem 0.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #00ffcc;
  transition:
    opacity 0.5s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;

  /* magnetic JS animates transform, hint the compositor */
  will-change: transform, opacity;
}

.skills span i {
  font-size: 1.1rem;
}

.skills span.animate {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease var(--stagger-delay, 0s),
    transform 0.6s ease var(--stagger-delay, 0s);
}
.skills .PPCard span.animate {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.skills span:hover {
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
  transform: scale(1.05);
  background: rgba(0, 255, 204, 0.2);
  cursor: pointer;
}
.skills div {
  margin: 0;
  padding: 0;
}
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 2rem;
  margin-bottom: 2rem;
}
.skills-container .project-cards {
  min-height: 260px;
}
@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
  .skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  /* pills become full-width app-style buttons on mobile */
  .skills span {
    display: flex;
    width: 100%;
    box-sizing: border-box;

    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.8rem 0.4rem;
    font-size: 0.75rem;
    gap: 6px;
  }
  .skills span.animate {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }

  .skills span i {
    font-size: 1.4rem;
  }
}
.languages {
  margin-top: 1rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}
.languages.animate {
  opacity: 1;
  transform: translateX(0);
}
.languages h3 {
  font-size: 1.2rem;
  color: #00ffcc;
  margin-bottom: 0.5rem;
}
.languages ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  padding: 0;
}

.languages li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.flag-wrapper {
  width: 50px;
  height: 33px;
  display: flex;
  align-items: center;
}

.flag-svg {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.languages li:hover .flag-svg {
  filter: grayscale(0) opacity(1) brightness(1);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.languages b {
  color: #00ffcc;
  display: block;
  margin-bottom: 2px;
}
@media (max-width: 768px) {
  .btn {
    padding: 1rem 5rem;
  }
  .btn-hollow {
    padding: 1rem 2rem;
  }
  .mobile-only-text-space-10 {
    min-height: 10rem !important;
  }
  .mobile-only-text-space-6 {
    min-height: 6.4rem !important;
  }
  .languages li {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .languages ul {
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
  }
  .languages h3 {
    text-align: center;
    margin-bottom: 2rem;
  }
}

/* projects / edu */
.edu {
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0a23 0%, #0a0a23 100%);
  position: relative;
  padding: 0;
  margin: 0;
}
.projects {
  padding: 100px 0;
  overflow: hidden;
}
.edu-bg-grid {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;

  /* stroke 0.4 — anything lower disappears under the mask */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(0, 255, 204, 0.4)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  z-index: 0;

  animation: drift 20s linear infinite;

  /* mask fades to 15% not 0 so grid stays visible outside the spotlight */
  -webkit-mask-image: radial-gradient(
    circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    black 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  mask-image: radial-gradient(
    circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    black 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );

  transition: opacity 0.5s ease;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(56px, 100px);
  }
}

.edu-bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  animation: pulse2 4s ease-in-out infinite alternate;
}

@keyframes pulse2 {
  from {
    opacity: 0.1;
  }
  to {
    opacity: 0.5;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.contact-info-grid {
  gap: 5rem;
  margin-bottom: 0rem;
}

.project-card {
  background: radial-gradient(
    circle at top left,
    rgb(255 255 255 / 10%) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.05) 100%
  );
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.projects .project-card {
  background: radial-gradient(
    circle at top left,
    rgb(0 0 0 / 10%) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
}
.project-card.animate:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
  border: 1px solid #00ffcc;
  /* 0s delay so hover overrides the staggered entrance delay */
  transition:
    transform 0.3s ease 0s,
    box-shadow 0.3s ease 0s;
}
.project-card img {
  border: 1px solid #00ffcc;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.project-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.project-card h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: none;
}
.project-card p {
  color: #ccc;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.project-card a {
  color: #00ffcc;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}
.project-card a:hover {
  color: #fd7a33;
  transition: all 0.3s ease;
}
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding: 0rem 10px;
  justify-content: space-between;
}
.contacnt-card {
  padding: 2rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}
.contact-info {
}
.contact-info p {
  margin: 0;
  color: #00ffcc;
}
/* experience */
.experience {
  background: #1e1e3f;
  z-index: 2;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 90px; /* room for sideways year labels */
}
.experience-year {
  position: absolute;
  left: -85px;
  top: 3rem;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  color: #00ffcc;
  font-weight: bold;
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 2px;
  white-space: nowrap;
  opacity: 0.7;
}
.experience-item:hover .experience-year {
  opacity: 1;
  text-shadow: 0 0 8px #00ffcc;
}
.current {
  opacity: 1;
}

/* timeline line */
.experience-item::after {
  content: '';
  position: absolute;
  left: -35px;
  top: 3rem;
  width: 2px;
  height: calc(100% + 2rem);
  background: #00ffcc;
  transform: translateX(-50%);
  z-index: 0;
}

.experience-item:last-child::after {
  display: none;
}

/* timeline dots */
.experience-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 3rem;
  width: 16px;
  height: 16px;
  background: #1e1e3f;
  border: 2px solid #00ffcc;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.current::before {
  background: #00ffcc;
  box-shadow: 0 0 12px #00ffcc;
}

/* card */
.experience-card {
  background: radial-gradient(
    circle at top left,
    rgb(255 255 255 / 10%) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.05) 100%
  );
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  position: relative;
  opacity: 0;
  overflow: hidden;
  backdrop-filter: blur(2px);
  transform: translateX(-20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background 0.3s ease,
    border 0.3s ease,
    box-shadow 0.3s ease;
}
.projects .experience-card {
  background: radial-gradient(
    circle at top left,
    rgb(0 0 0 / 10%) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
}
.experience-card.animate {
  opacity: 1;
  transform: translateX(0);
}
.current .experience-card {
  border: 1px solid rgba(0, 255, 204, 1);
}

/* card slides, dot stays put */
.experience-card:hover {
  transform: translateX(15px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #00ffcc;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.experience-item:hover::before {
  background: #00ffcc;
  box-shadow: 0 0 12px #00ffcc;
}

.experience-item {
  position: relative;
}

.experience-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  padding-right: 80px;
}

.experience-card p {
  color: #ccc;
}
.colored-date {
  color: #4dffdb !important;
}

.shootingstars-container {
  overflow: hidden;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .experience-list {
    padding-left: 20px;
  }
  .experience-year {
    left: -15px;
    font-size: 0.75rem;
  }

  .project-card.skill-list h3 {
    text-align: center;
  }
}
/* company */
.company {
  background: #0a0a23;
  text-align: center;
}

.company-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* terminal */
.terminal-window {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
  opacity: 0;
  z-index: 2;
  transform: translateX(-60px);
  transition: all 0.6s ease;
}
.terminal-window:hover {
  box-shadow: 0 30px 60px rgb(0 255 204 / 5%);
  border-color: #00ffcc;
}
.terminal-window.animate {
  opacity: 1;
  transform: translateX(0);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-radius: 15px 15px 0px 0px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}
.terminal-title {
  color: #888;
  font-family: monospace;
  font-size: 0.8rem;
  margin-left: 10px;
}

.terminal-body {
  padding: 2rem;
}
.code-key {
  color: #00ffcc;
  font-family: monospace;
}

.logo-cluster-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
  transition: all 0.6s ease;
  transform: translateY(80px);
  opacity: 0;
}
.logo-cluster-container.animate {
  transform: translateY(0);
  opacity: 1;
}

.main-logo {
  width: auto;
  filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.3));
  animation: breathing 4s ease-in-out infinite;
}

.tech-stack-float {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.floating-icon {
  width: 70px;
  height: 70px;
  background: rgb(0, 0, 0);
  padding: 0px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  animation: breathing 4s ease-in-out infinite;
}

.floating-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.company p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto 3rem;
}
/* desync delays so icons don't bob in lockstep */
.icon-1 {
  animation-delay: 0.5s;
  animation-duration: 4.2s;
}
.icon-2 {
  animation-delay: 1.2s;
  animation-duration: 3.8s;
}
.icon-3 {
  animation-delay: 0.8s;
  animation-duration: 4.5s;
}
.icon-4 {
  animation-delay: 1.5s;
  animation-duration: 4s;
}
.icon-5 {
  animation-delay: 0.3s;
  animation-duration: 4.3s;
}
.icon-6 {
  animation-delay: 1s;
  animation-duration: 4.1s;
}
@keyframes breathing {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 992px) {
  .company-container {
    grid-template-columns: 1fr;
  }

  .terminal-window {
    order: 1;
  }

  .logo-cluster-container {
    order: 2;
    margin-top: 2rem;
  }
  .contact-info-grid {
    gap: 1rem;
  }

  .terminal-header {
    justify-content: center;
  }
  .contacnt-card {
    flex-direction: column;
    text-align: center;
  }
}

/* contact */
.contact {
  background: #1e1e3f;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 0;
}
.contact input,
.contact textarea {
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}
.contact .btn {
  background: #fd7a33;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.3s;
}
.contact .btn:hover {
  transform: scale(1.05);
  cursor: pointer;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.social-links a {
  color: #00ffcc;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}
.social-links a:hover {
  color: #fd7a33;
  cursor: pointer;
}

.contact-section {
  padding: 80px 10%;
  background: #0a0a23;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-window {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 15px;
  overflow: hidden;
  max-width: 700px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact_grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.person-details {
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.input-group label {
  color: #00ffcc;
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 15px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00ffcc;
  background: rgba(0, 255, 204, 0.05);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.submit-btn {
  align-self: flex-start;
}

.social-links-container_avatar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}
.social-links-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 204, 0.2);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.social-icon svg {
  width: 28px;
  height: 28px;
  fill: #ccc;
  transition: fill 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-8px);
  border-color: #00ffcc;
  background: rgba(0, 255, 204, 0.08);
  box-shadow: 0 10px 20px rgba(0, 255, 204, 0.2);
}

.social-icon:hover svg {
  fill: #00ffcc;
}

.experience-company-logo {
  width: 50px;
  filter: grayscale(100%) brightness(200%);
  opacity: 0.8;
  transition: all 0.3s ease;
}
.experience-card:hover .experience-company-logo {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}
.own-company-logo {
  filter: grayscale(0%) brightness(100%);
}
.experience-company-logo_container {
  position: absolute;
  right: 20px;
  top: 20px;
}

@media (max-width: 768px) {
  .person-details {
    display: grid;
    grid-auto-flow: row;
    gap: 1rem;
  }
  .submit-btn {
    width: 100%;
    text-align: center;
  }
  .contact_grid {
    grid-template-columns: 1fr;
  }
  .form-footer {
    flex-direction: column;
    gap: 1rem;
  }
}
footer {
  background: rgba(10, 10, 35, 0.8);
  backdrop-filter: blur(15px);
  padding: 4rem 0 2rem 0;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-text {
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-text .highlight {
  color: #00ffcc;
  font-weight: bold;
}

.footer-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: #d4d4d4;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.Footer_status-dot {
  width: 6px;
  height: 6px;
  background: #00ffcc;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ffcc;
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem;
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

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

.project-card {
  opacity: 0;
  backdrop-filter: blur(2px);
  transform: translateY(20px);
  pointer-events: none; /* unclickable while hidden */
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 0.6s ease var(--stagger-delay, 0s),
    transform 0.6s ease var(--stagger-delay, 0s);

  animation: enableInteraction 0s linear calc(0.6s + var(--stagger-delay, 0s)) forwards;
}

@keyframes enableInteraction {
  to {
    pointer-events: auto;
  }
}

.company-logo {
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.company-logo.animate {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.bio-typed-container {
  min-height: 250px;
  width: 100%;
  max-width: 800px;
}

.bio {
  justify-content: space-around;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scroll-word {
  opacity: 0.1;
  filter: blur(10px);
  display: inline-block;
  transition:
    opacity 0.1s ease-out,
    filter 0.1s ease-out;
  will-change: opacity, filter;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .bio-typed-container {
    min-height: 550px;
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .experience-list {
    padding-left: 20px;
  }
  .experience-item::after {
    left: -20px;
  }
  .experience-item::before {
    left: -20px;
  }
  .experience-year {
    left: -60px;
  }
}

/* hamburger */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #00ffcb;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* overshoot for bounce */
  position: relative;
}

.hamburger span:nth-child(2) {
  margin: 5px 0;
}

/* hamburger -> X */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}
.nav-links svg {
  width: auto;
}
.nav-links li a {
  perspective: 1000px;
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 1rem;
  display: flex;
  overflow: hidden;
  line-height: 1;
  border-radius: 25px;
  gap: 10px;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0);
}
.nav-links li a:hover {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.nav-links li a:active {
  background: linear-gradient(135deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 6%));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(0 255 204 / 20%),
    0 4px 12px rgba(0, 0, 0, 0.1);
}
.nav-links li a.active-link {
  background: linear-gradient(135deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 6%));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(0 255 204 / 20%),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

/* nav letter stagger */
.letter-wrap {
  position: relative;
  display: inline-block;
  transition:
    transform 0.4s cubic-bezier(0.6, 0, 0.4, 1),
    opacity 0.4s cubic-bezier(0.6, 0, 0.4, 1);
  transition-delay: calc(var(--index) * 0.02s);
}

.letter-top {
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
  transition-delay: calc(var(--index) * 0.02s + 0.12s);
}

.letter-bottom {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  transition: none;
}

.nav-links li a:hover .letter-wrap,
.nav-links li a.active-link .letter-wrap {
  transform: translateY(-100%);
}

.nav-links li a:hover .letter-top,
.nav-links li a.active-link .letter-top {
  opacity: 0;
}

.nav-links li a:hover .letter-bottom,
.nav-links li a.active-link .letter-bottom {
  opacity: 1;
  transition: opacity 0.2s ease;
  transition-delay: calc(var(--index) * 0.02s + 0.12s);
}

.nav-links li a.active-link .letter-bottom {
  font-weight: 600;
}
.active-link {
  color: #00ffcc !important;
  font-weight: 600;
}

.active-link::before {
  color: #fff;
}
.toplink {
  margin-top: 0;
}
@media (max-width: 1050px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 36px;
    width: calc(100% + 2px);
    left: -1px;
    z-index: -1;
    background: rgb(7 7 14);
    padding: 1rem 0;
    border-radius: 0 0 50px 50px;
    border: none;
    overflow: hidden;

    max-height: 0;
    opacity: 0;

    /* opacity + border snap after max-height finishes, so the menu fully collapses before they vanish */
    transition:
      max-height 0.5s ease,
      opacity 0s ease 0.4s,
      border 0s ease 0.4s;
  }
  .nav-links li a {
    padding: 1.5rem 1rem;
    display: flex;
    width: 80%;
    margin: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .toplink {
    margin-top: 2rem !important;
  }
  .nav-links li a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  .nav-links li a:active {
    background: linear-gradient(135deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 6%));
    transform: translateX(5px);
    box-shadow:
      inset 0 1px 0 rgb(0 255 204 / 20%),
      0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .nav-links li a.active-link {
    background: linear-gradient(135deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 6%));
    transform: translateX(5px);
    box-shadow:
      inset 0 1px 0 rgb(0 255 204 / 20%),
      0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links li a:hover .letter-wrap {
    transform: translateY(0);
  }

  /* disable letter swap on mobile, click target is the whole row */
  .nav-links li a:hover .letter-top {
    opacity: 1;
  }

  .nav-links li a:hover .letter-bottom {
    opacity: 0;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    border: 1px #00ffcc solid;
    border-top: none;

    transition:
      max-height 0.5s ease,
      opacity 0s ease 0s,
      border 0s ease 0s;
  }
  .nav-links li {
    text-align: center;
  }
  nav {
    background: rgb(7 7 14) !important;
  }
  .hero {
    flex-direction: column !important;
  }

  .btn,
  .btn-hollow {
    width: 100%;
    display: block;
    max-width: 320px;
    margin: 0.8rem 0;
    text-align: center;
  }
}

/* iss telemetry hud */
.iss-hud {
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #00ffcc;
  padding: 10px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  backdrop-filter: blur(5px);
  min-width: 180px;
  max-width: 400px;
  margin: auto;
  top: -10rem;
}
.hud-title {
  color: #fd7a33;
  margin-bottom: 5px;
  border-bottom: 1px solid #fd7a33;
  padding-bottom: 3px;
}
.hud-row {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}
.hud-val {
  color: #00ffcc;
}
.live-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background-color: #ff3e3e;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3e3e;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.spacer {
  width: 100%;
  position: relative;
  margin-top: -5rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

svg {
  display: block;
  width: 100%;
}
.skills svg {
  width: auto;
}

.cloud-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
}
.cloud-divider.reverse {
  transform: rotate(180deg);
}
.cloud-divider.footer {
  background-color: #1e1e3f;
}
.cloud-divider.top {
  background: linear-gradient(to top, rgba(255, 0, 0, 0) 0, rgba(255, 0, 0, 0) 5rem, #1e1e3f 5rem);
}
@media (max-width: 768px) {
  .cloud-divider {
    height: 50px;
  }
}

/* clouds */
.cloud-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 0;
}
.star {
  fill: #00ffcc;
  animation: twinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.08;
  }
  50% {
    opacity: 0.65;
  }
}

.cloud-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%; /* double-wide so drift never shows an edge */
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
}
.cloud-layer svg {
  width: 100%;
  height: 100%;
}

@keyframes drift-back {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3%);
  }
}
@keyframes drift-mid {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3.5%);
  }
}
@keyframes drift-front {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2%);
  }
}

.layer-back {
  z-index: 1;
  animation: drift-back 18s ease-in-out infinite;
}
.layer-mid {
  z-index: 2;
  animation: drift-mid 13s ease-in-out infinite;
}
.layer-front {
  z-index: 3;
  animation: drift-front 9s ease-in-out infinite;
}

.auto-type {
  /* reserves line height so page doesn't jump as typewriter fills in */
  min-height: 1.2em;
}

.shotingstarspan {
  position: absolute;
  top: 50%;
  filter: blur(3px) !important;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #fff;

  border-radius: 50%;
  box-shadow: 0 0 5px #fff;
  will-change: transform;
  animation: animate 10s linear infinite;
  z-index: 0;
  contain: layout;
  filter: blur(0px);
  transition: filter 0.3s ease;
}
.shotingstarspan::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}
.shotingstarspan.absolute {
  position: absolute;
}
@keyframes animate {
  0% {
    transform: rotate(315deg) translateX(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(315deg) translateX(-1000px);
    opacity: 0;
  }
}
.shotingstarspan:nth-child(1) {
  top: 250px;
  right: 0px;
  left: initial;
  animation-delay: 0s;
  animation-duration: 5s;
}
.shotingstarspan:nth-child(2) {
  top: -100px;
  right: 80px;
  left: initial;
  animation-delay: 0.2s;
  animation-duration: 3s;
}
.shotingstarspan:nth-child(3) {
  top: -100px;
  right: -10px;
  left: initial;
  animation-delay: 0.4s;
  animation-duration: 2s;
}
.shotingstarspan:nth-child(4) {
  top: -100px;
  right: 180px;

  animation-delay: 0.6s;
  animation-duration: 3.5s;
}
.shotingstarspan:nth-child(5) {
  top: -100px;
  right: 400px;
  left: initial;
  animation-delay: 0.8s;
  animation-duration: 2.5s;
}
.shotingstarspan:nth-child(6) {
  top: -10px;
  right: 600px;
  left: initial;
  animation-delay: 1s;
  animation-duration: 3s;
}
.shotingstarspan:nth-child(7) {
  top: 300px;
  right: -10px;
  left: initial;
  animation-delay: 1.2s;
  animation-duration: 1.75s;
}

/* modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 35, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: 0.3s;
}

.modal-overlay.active {
  display: flex;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  max-width: 400px;
  width: 90%;
  text-align: center;

  animation: slideUp 0.4s ease-out forwards;
}

.dust-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(1px);
  z-index: 0;
  pointer-events: none; /* canvas must not eat clicks */
}
.Background {
  background-color: #0a0a23;
  width: 100vw;
  height: 100vh;
  position: fixed;
}

.audio-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00ffcc;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  cursor: none;
  z-index: 1000;
  backdrop-filter: blur(2px);
  background: rgba(0, 255, 204, 0.05);
  padding: 8px 12px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 4px;
  transition:
    opacity 0.5s ease,
    max-width 0.5s ease,
    margin 0.5s ease;
  animation: dropUP 0.8s ease-out forwards;
}

@keyframes dropUP {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audio-control:hover {
  background: rgba(0, 255, 204, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

/* sound wave */
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  position: relative;
  left: 5px;
  --wave-scale: 1; /* JS scales this with volume */
}

.bar {
  width: 2px;
  background: #00ffcc;
  height: 12px;
  transform-origin: bottom;
  transform: scaleY(0.33); /* rests at ~4px */
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.playing .bar {
  animation: wave 1s infinite ease-in-out;
}

.playing .bar:nth-child(2) {
  animation-delay: 0.2s;
}
.playing .bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.33);
  }
  50% {
    transform: scaleY(var(--wave-scale));
  }
}
#audio-status {
  display: inline-block;
  transition:
    opacity 0.5s ease,
    max-width 0.5s ease,
    margin 0.5s ease;
  max-width: 200px;
  opacity: 1;
}

@media (max-width: 768px) {
  .audio-control {
    cursor: pointer;
    position: fixed;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    overflow: hidden;
  }

  #audio-status {
    position: relative;
    left: 45px;
    opacity: 0;
    transform: translateX(-10px);
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.5s ease;
    max-width: 0;
    overflow: hidden;
  }

  /* shown briefly via JS on tap, since hover doesn't exist on mobile */
  #audio-status.mobile-visible {
    opacity: 1;
    transform: translateX(0);
    max-width: 200px;
    position: relative;
    left: 0;
    margin-left: 10px;
    transition: all 0.5s ease;
  }
}
.magnetic {
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

/* space divider scene */
.space-divider {
  position: relative;
  width: 100%;
  height: 620px;
  background: linear-gradient(180deg, #0a0a2300 0%, #1e1e3f 100%);
  overflow: hidden;
}

/* main planet */
.layer-planet {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: 45%;
  left: 60%;
  z-index: 8;
  background: radial-gradient(
    circle at 38% 38%,
    #5ef6cf 0%,
    #1a7aaa 30%,
    #0a2e6e 65%,
    #030b1c 100%
  );
  box-shadow:
    0 0 60px 10px rgba(60, 200, 255, 0.18),
    0 0 120px 30px rgba(20, 80, 200, 0.1),
    inset -30px -20px 40px rgba(0, 0, 0, 0.7);
  animation: planetDrift 22s linear infinite;
}
.layer-planet::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      12deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 18px
    ),
    radial-gradient(circle at 60% 70%, rgba(0, 60, 120, 0.5) 20%, transparent 60%),
    radial-gradient(circle at 25% 55%, rgba(0, 180, 120, 0.2) 15%, transparent 40%);
}
.layer-planet::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(180, 255, 230, 0.18) 10%, transparent 55%);
  pointer-events: none;
}

.planet-atmo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 48%,
    rgba(60, 200, 255, 0.13) 60%,
    rgba(40, 120, 255, 0.07) 72%,
    transparent 80%
  );
}
.planet-craters {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}
.crater {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.12) 60%,
    transparent 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* small planet */
.layer-planet-small-1 {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  top: 44%;
  left: 14%;
  z-index: 6;
  background: radial-gradient(
    circle at 40% 35%,
    #6ffff9 0%,
    #1ba0a8 40%,
    #0a4a50 75%,
    #001f22 100%
  );
  box-shadow:
    0 0 30px 6px rgba(50, 200, 220, 0.16),
    inset -14px -12px 20px rgba(0, 0, 0, 0.7);
  animation: planetDrift 30s linear infinite reverse;
}
.layer-planet-small-1::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    168deg,
    rgba(100, 255, 240, 0.06) 0px,
    rgba(100, 255, 240, 0.06) 3px,
    transparent 3px,
    transparent 14px
  );
}
.sm-atmo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    transparent 46%,
    rgba(50, 200, 220, 0.11) 62%,
    transparent 78%
  );
}
.sm-craters {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

/* distant planet */
.layer-planet-small-2 {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 18%;
  left: 22%;
  z-index: 4;
  opacity: 0.85;
  background: radial-gradient(circle at 42% 36%, #00ffff 0%, #008b8b 50%, #000080 100%);
  box-shadow:
    0 0 14px 3px rgba(0, 255, 255, 0.18),
    inset -8px -6px 12px rgba(0, 0, 0, 0.7);
}

/* nebula */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}
.neb-1 {
  width: 360px;
  height: 230px;
  top: 5%;
  left: 28%;
  background: radial-gradient(ellipse, rgba(80, 40, 180, 0.14) 0%, transparent 70%);
  z-index: 2;
}
.neb-2 {
  width: 280px;
  height: 180px;
  top: 55%;
  left: 4%;
  background: radial-gradient(ellipse, rgba(0, 150, 120, 0.11) 0%, transparent 70%);
  z-index: 2;
}
.neb-3 {
  width: 200px;
  height: 150px;
  top: 8%;
  left: 72%;
  background: radial-gradient(ellipse, rgba(0, 80, 200, 0.1) 0%, transparent 70%);
  z-index: 2;
}

/* starfield */
.layer-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* dust canvas, behind planets */
#sd-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* skill orbit system */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(100, 200, 255, 0.07);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* rotating arm holds the badge at a radius */
.orb-arm {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  animation: orbitSpin var(--dur) var(--start, 0s) linear infinite;
  pointer-events: none;
}

/* counter-rotates so the label stays upright */
.orb-badge {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--r));
  transform: translateX(-50%);
  animation: orbitCounter var(--dur) var(--start, 0s) linear infinite;
  background: rgba(4, 10, 28, 0.85);
  border: 1px solid rgba(80, 195, 255, 0.3);
  color: rgba(160, 230, 255, 0.92);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.orb-badge::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(80, 220, 255, 0.85);
}

.orb-badge-sm {
  font-size: 9px;
  padding: 2px 7px 2px 6px;
}
.orb-badge-sm::before {
  width: 4px;
  height: 4px;
  background: rgba(60, 240, 210, 0.85);
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes orbitCounter {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(-360deg);
  }
}

@keyframes planetDrift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .space-divider {
    height: 800px;
  }
  .layer-planet {
    top: 80%;
  }
}
#sdStars,
#sdNeb1,
#sdNeb2,
#sdNeb3,
#sdPxs,
#sdPsm,
#sdPmain {
  will-change: transform;
}

/* card grid background */
.card-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at 65% 0%, black 0%, black 20%, transparent 65%);
  mask-image: radial-gradient(circle at 65% 0%, black 0%, black 20%, transparent 65%);
  overflow: hidden;
}
.experience-card .card-grid-bg {
  -webkit-mask-image: radial-gradient(circle at 65% 0%, black 0%, black 20%, transparent 50%);
  mask-image: radial-gradient(circle at 65% 0%, black 0%, black 20%, transparent 50%);
}

.card-grid-bg .shine {
  position: absolute;
  inset: 0;
}
.card-grid-bg .shine::before {
  content: '';
  position: absolute;
  width: 150%;
  padding-bottom: 150%;
  border-radius: 50%;
  left: 50%;
  bottom: 55%;
  transform: translateX(-50%);
  filter: blur(35px);
  opacity: 0.1;
  background-image: conic-gradient(
    from 205deg at 50% 50%,
    rgba(59, 130, 246, 0) 0deg,
    #00755e31 25deg,
    rgba(96, 165, 250, 0.18) 295deg,
    rgba(59, 130, 246, 0) 360deg
  );
}

.card-grid-bg .tiles {
  position: absolute;
  inset: 0;
}

.tile {
  position: absolute;
  background-color: rgba(59, 130, 246, 0.07);
  animation: tilePulse 8s infinite;
  opacity: 0;
}

@keyframes tilePulse {
  0%,
  12.5%,
  100% {
    opacity: 1;
  }
  25%,
  82.5% {
    opacity: 0;
  }
}

/* grid lines — injected as divs */
.grid-line-v,
.grid-line-h {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}
.grid-line-v {
  top: 0;
  bottom: 0;
  width: 1px;
}
.grid-line-h {
  left: 0;
  right: 0;
  height: 1px;
}
