
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Space+Grotesk:wght@400;500;600;700&family=Fira+Code:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #040b14;
  --bg-secondary: #081520;
  --bg-card: #0a1929;
  --bg-card-hover: #0d2137;

  --matrix-green: #00e676;
  --matrix-glow: #00ff87;
  --matrix-dark: #003d1f;
  --matrix-dim: #0d4a2e;
  --neon-cyan: #00e5ff;
  --neon-gradient: linear-gradient(135deg, var(--matrix-green), var(--neon-cyan));

  --text-primary: #e0e8f0;
  --text-secondary: #7a8ea0;
  --text-muted: #3a5068;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--matrix-green) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--matrix-green);
  border-radius: 3px;
}

::selection {
  background: rgba(0, 230, 118, .3);
  color: #fff;
}

#matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: .12;
}

.ambient-glow--red {
  width: 500px;
  height: 500px;
  background: var(--matrix-green);
  top: -200px;
  left: -200px;
}

.ambient-glow--green {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  bottom: -150px;
  right: -150px;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 3px);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  backdrop-filter: blur(16px);
  background: rgba(4, 11, 20, .75);
  border-bottom: 1px solid rgba(0, 230, 118, .08);
  transition: transform var(--transition-fast);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--matrix-green);
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(0, 230, 118, .4);
}

.nav__logo::before {
  content: '>';
  margin-right: 4px;
  opacity: .5;
  animation: blink-cursor 1.2s step-end infinite;
}

@keyframes blink-cursor {

  0%,
  50% {
    opacity: .5;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.nav__links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .03em;
  text-transform: capitalize;
  padding: .45rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  position: relative;
  transition: all var(--transition-fast);
}

.nav__link:hover {
  color: var(--matrix-green);
  border-color: rgba(0, 230, 118, .2);
  background: rgba(0, 230, 118, .06);
}

.nav__link.active {
  color: var(--bg-primary);
  background: var(--matrix-green);
  border-color: var(--matrix-green);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 230, 118, .3);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
  z-index: 1;
}

.hero__main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  gap: 4rem;
  margin-top: 2rem;
  z-index: 2;
}

.hero__text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__terminal-tag {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--matrix-green);
  text-align: left;
  margin-bottom: 1rem;
  letter-spacing: .04em;
  text-shadow: 0 0 20px rgba(0, 230, 118, .4);
  position: relative;
}

.hero__terminal-tag::after {
  content: '█';
  animation: blink-block 1s step-end infinite;
  margin-left: 4px;
  font-size: 0.9em;
}

@keyframes blink-block {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.hero__greeting {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  text-align: left;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(.75rem, 1.3vw, .95rem);
  color: var(--text-secondary);
  text-align: left;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: .04em;
}

.hero__subtitle .sep {
  color: var(--matrix-green);
  margin: 0 0.6rem;
  opacity: .6;
}

.hero__description {
  max-width: 640px;
  text-align: left;
  font-size: clamp(.85rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 3rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 2px solid var(--matrix-green);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--matrix-green);
  color: var(--bg-primary);
}

.btn--primary:hover {
  color: var(--matrix-green);
  background: rgba(0, 230, 119, 0.163);
  box-shadow: 0 0 20px rgba(0, 230, 118, .2);
  transform: translateY(-7px);
}

.btn--outline {
  background: transparent;
  color: var(--matrix-green);
}

.btn--outline:hover {
  color: var(--bg-primary);
  background: var(--matrix-glow);
  box-shadow: 0 0 25px rgba(0, 230, 119, 0.656),
    0 0 60px rgba(0, 230, 118, .15);
  transform: translateY(-7px);
}

.btn__icon {
  font-size: 1.1em;
}

.img-box {
  position: relative;
  width: 420px;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 255, 156, 0.25);
}

.img-box img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero__image-wrap {
  position: relative;
  width: min(500px, 80vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--neon-gradient);
  z-index: -1;
  opacity: .5;
  filter: blur(6px);
  transition: opacity var(--transition-smooth);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .5;
  animation: float 2.4s ease-in-out infinite;
}

.hero__scroll-cue span {
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--matrix-green);
}

.hero__scroll-cue .arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--matrix-green);
  border-bottom: 2px solid var(--matrix-green);
  transform: rotate(45deg);
}

@keyframes float {

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

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

.image-grid {
  position: relative;
  width: min(500px, 80vw);
  aspect-ratio: 1 / 1;
  display: grid;
  gap: 0;
}

.image-grid .cell {
  overflow: hidden;
  border-radius: 2px;
  will-change: transform, opacity;
}

.image-grid .cell-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ============================================================
   ABOUT / TIMELINE SECTION
   ============================================================ */
.about-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 8rem 2rem 6rem;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Central vertical line */
.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(0, 230, 118, 0.15);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  margin-bottom: 3rem;
}
.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item--left {
  left: 0;
  padding-right: 3rem;
}
.timeline__item--right {
  left: 50%;
  padding-left: 3rem;
}

/* Central glowing dots */
.timeline__dot {
  position: absolute;
  top: 1.5rem;
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 2px solid var(--matrix-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}
.timeline__item--left .timeline__dot {
  right: 0;
  transform: translate(50%, -50%);
}
.timeline__item--right .timeline__dot {
  left: 0;
  transform: translate(-50%, -50%);
}

.timeline__icon {
  font-size: 0.8rem;
}

/* Timeline Cards */
.timeline__card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.timeline__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.timeline__item:hover .timeline__card {
  transform: translateY(-5px);
  border-color: rgba(0, 230, 118, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 230, 118, 0.1);
}
.timeline__item:hover .timeline__card::before {
  opacity: 1;
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--matrix-green);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-section {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-scatter-area {
  position: relative;
  width: 100%;
  height: 65vh; /* Provides area for scattering */
  min-height: 500px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(0, 230, 118, 0.2);
  margin-top: 2rem;
}

.skill-bubble {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  /* Glowing box shadow to mimic floating */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 230, 118, 0.05);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  z-index: 2;
}

.skill-bubble:active {
  cursor: grabbing;
  transform: scale(0.95);
  z-index: 10;
}

.skill-bubble__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  z-index: 3;
}

.skill-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.skill-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.skill-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--matrix-green);
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.4);
}

.circular-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start at 12 o'clock */
  pointer-events: none;
}

.circular-progress circle {
  fill: none;
  stroke-width: 4px;
}

.progress-bg {
  stroke: rgba(0, 230, 118, 0.08);
}

.progress-bar {
  stroke: var(--matrix-green);
  stroke-linecap: round;
  /* Circle circumference = 2 * pi * r (r=46, c~289.026) */
  stroke-dasharray: 289.026;
  stroke-dashoffset: 289.026; /* Hidden initially, JS will animate it */
  filter: drop-shadow(0 0 6px var(--matrix-green));
}

.cards-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 8rem 2rem 6rem;
}

.cards-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .75rem;
  color: var(--text-primary);
}

.cards-section__title span {
  color: var(--matrix-green);
  text-shadow: 0 0 20px rgba(0, 230, 118, .3);
}

.cards-section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 4rem;
  font-family: var(--font-mono);
  font-size: .85rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, .08);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  cursor: default;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%,
      rgba(0, 230, 118, .06) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 230, 118, .25);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .5),
    0 0 40px rgba(0, 230, 118, .06);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  background: rgba(0, 230, 118, .08);
  border: 1px solid rgba(0, 230, 118, .15);
  position: relative;
  z-index: 1;
  color: var(--matrix-green);
  box-shadow: 0 0 20px rgba(0, 230, 118, .08);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .6rem;
  position: relative;
  z-index: 1;
  color: var(--text-primary);
}

.card__desc {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.card__tag {
  display: inline-block;
  margin-top: 1rem;
  padding: .3rem .85rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
  background: rgba(0, 230, 118, .1);
  color: var(--matrix-green);
  border: 1px solid rgba(0, 230, 118, .2);
  position: relative;
  z-index: 1;
}

.card__proj {
  display: inline-block;
  margin-top: 1rem;
  padding: .3rem .85rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
  background: rgba(4, 0, 230, 0.1);
  color: var(--matrix-green);
  border: 1px solid rgba(0, 230, 118, .2);
  position: relative;
  z-index: 1;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(0, 230, 118, .08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .75rem;
}

.footer span {
  color: var(--matrix-green);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 230, 118, .3);
}

.scroll-spacer {
  height: 150vh;
  position: relative;
  z-index: 1;
}

.hero-pin-wrapper {
  position: relative;
  z-index: 1;
}

.split-flash {
  background: radial-gradient(circle,
      rgba(0, 230, 118, .3),
      rgba(0, 229, 255, .12),
      transparent 70%) !important;
}

/* ============================================================
   SOCIAL SECTION
   ============================================================ */
.social-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.social-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6rem;
}

/* Orbital Layout */
.social-orbital-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-orbital-center {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  z-index: 2;
  line-height: 1.2;
}

.social-orbital-center span {
  color: var(--matrix-green);
  font-size: 1.2rem;
}

.social-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spinOrbit 20s linear infinite;
  border-radius: 50%;
  border: 1px dashed rgba(0, 230, 118, 0.2);
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px; /* Center it */
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
  transform: rotate(calc(var(--i) * 72deg)) translate(150px) rotate(calc(var(--i) * -72deg));
}

.orbit-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spinOrbitReverse 20s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.5));
}

@keyframes spinOrbit {
  100% { transform: rotate(360deg); }
}

@keyframes spinOrbitReverse {
  100% { transform: rotate(-360deg); }
}

/* Marquee Layout */
.social-marquee-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  overflow: hidden;
  width: 100%;
}

.social-marquee-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.social-marquee-heading span {
  color: var(--matrix-green);
}

.social-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 15s linear infinite;
}

.marquee-item {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.05);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.marquee-item:hover {
  transform: translateY(-5px);
  border-color: var(--matrix-green);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  /* We have 8 unique items, gap is 2.5rem. We duplicate so track has 16 items.
     Translate exactly by half the track width minus half a gap.
     Actually, translating -50% shifts by exactly half of the total width of .marquee-track.
     Since .marquee-track is max-content and contains 2 identical sets separated by the normal gap,
     translateX(-50%) works perfectly if gap is strictly adhered to evenly. */
  100% { transform: translateX(calc(-50% - 1.25rem)); }
}

/* ============================================================
   RESUME SECTION
   ============================================================ */
.resume-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.resume-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.resume-iframe-wrapper {
  width: 100%;
  max-width: 800px;
  height: 60vh;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.05);
  background: var(--bg-card);
}

.resume-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn--download {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   CONTACT SECTION (Terminal Style)
   ============================================================ */
.contact-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.terminal-form-wrapper {
  background: #0d1117;
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  margin-top: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.terminal-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--matrix-green);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 0 10px var(--matrix-green);
}

.terminal-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.terminal-label {
  font-family: var(--font-mono);
  color: var(--matrix-green);
  font-size: 0.9rem;
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

.terminal-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.terminal-input:focus {
  outline: none;
  border-bottom-color: var(--matrix-green);
  box-shadow: 0 1px 0 var(--matrix-green);
}

.terminal-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.terminal-textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.terminal-textarea:focus {
  border-color: var(--matrix-green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}

.btn--terminal {
  background: var(--matrix-green);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  margin-top: 1rem;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
  transition: all var(--transition-fast);
}

.btn--terminal:hover {
  background: #00ff88;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.6);
  transform: translateY(-2px);
  color: #000;
}

.btn--terminal.sending {
  background: transparent;
  color: var(--matrix-green);
  border: 1px dashed var(--matrix-green);
  pointer-events: none;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
  animation: pulse-terminal 1.5s infinite;
}

@keyframes pulse-terminal {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav__links {
    gap: .35rem;
  }

  .nav__link {
    font-size: .7rem;
    padding: .35rem .7rem;
  }

  .hero {
    padding: 5rem 1rem 1rem;
  }

  .hero__main-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero__text-content {
    align-items: center;
  }

  .hero__terminal-tag {
    text-align: center;
  }

  .hero__image-wrap {
    width: min(350px, 85vw);
  }

  .image-grid {
    width: min(350px, 85vw);
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .timeline__line {
    left: 20px;
  }
  .timeline__item {
    width: 100%;
    padding-left: 60px !important;
    padding-right: 0 !important;
    left: 0 !important;
  }
  .timeline__dot {
    left: 20px !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Social Section Mobile Tweaks */
  .social-container {
    gap: 3rem;
  }
  .social-orbital-wrapper {
    width: 250px;
    height: 250px;
  }
  .orbit-item {
    transform: rotate(calc(var(--i) * 72deg)) translate(125px) rotate(calc(var(--i) * -72deg));
  }

  /* Resume & Contact Sections Mobile Tweaks */
  .resume-section, .contact-section, .skills-section, .social-section {
    padding: 4rem 1.5rem;
  }
  .resume-iframe-wrapper {
    height: 50vh;
    min-height: 300px;
  }
  .terminal-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav__links {
    display: none;
  }

  .hero__image-wrap {
    width: 90vw;
  }

  .image-grid {
    width: 90vw;
  }

  .cards-section {
    padding: 4rem 1rem 3rem;
  }

  /* Skills Bubbles scaled for very small screens */
  .skill-bubble {
    width: 85px;
    height: 85px;
  }
  .skill-icon {
    font-size: 1.3rem;
  }
  .skill-percent {
    font-size: 0.6rem;
  }

  /* Orbit layout scaled for very small screens */
  .social-orbital-wrapper {
    width: 220px;
    height: 220px;
  }
  .orbit-item {
    width: 40px;
    height: 40px;
    margin: -20px;
    transform: rotate(calc(var(--i) * 72deg)) translate(110px) rotate(calc(var(--i) * -72deg));
  }
}