/* Sudheesh Shetty — portfolio */
:root {
  --bg-deep: #06060a;
  --bg-elevated: #0e0e14;
  --bg-card: rgba(18, 18, 28, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-primary: #f4f4f8;
  --text-muted: #9898a8;
  --accent-a: #22d3ee;
  --accent-b: #a78bfa;
  --accent-c: #fb7185;
  --glow: rgba(34, 211, 238, 0.35);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-lg: 20px;
  --radius-md: 12px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Ambient canvas layer */
#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.12) 0%,
    rgba(167, 139, 250, 0.06) 35%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover #cursor-glow {
  opacity: 1;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(167, 139, 250, 0.15), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(251, 113, 133, 0.08), transparent 45%),
    var(--bg-deep);
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: 64px 64px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
}

a {
  color: var(--accent-a);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

a:focus-visible {
  outline: 2px solid var(--accent-a);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--accent-a);
  color: #000;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-nav.is-scrolled {
  background: rgba(6, 6, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-brand span {
  color: var(--accent-a);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.5vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-cta {
  margin-left: clamp(4px, 1vw, 12px);
  padding-left: clamp(8px, 1.2vw, 16px);
  border-left: 1px solid var(--border-subtle);
  list-style: none;
}

.nav-links .nav-cta {
  text-transform: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #050508 !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.35);
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-menu-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-menu-icon::before {
  top: -6px;
}

.nav-menu-icon::after {
  top: 6px;
}

.site-nav.is-menu-open .nav-menu-icon {
  background: transparent;
}

.site-nav.is-menu-open .nav-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-menu-open .nav-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  z-index: 999;
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px clamp(20px, 5vw, 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-inner > a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-mail {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  border: none !important;
  color: var(--accent-a) !important;
}

.mobile-drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b)) !important;
  color: #050508 !important;
  border: none !important;
  box-shadow: 0 0 24px var(--glow);
}

.mobile-drawer-cta:hover {
  color: #050508 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.35);
}

@media (max-width: 768px) {
  .nav-cluster > nav {
    display: none;
  }

  .nav-menu-btn {
    display: inline-flex;
  }
}

/* Layout */
.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

section {
  padding: clamp(72px, 12vh, 120px) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.section-lead {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 8px;
  line-height: 1.65;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero-grid.has-photo {
  grid-template-columns: minmax(0, 1fr) minmax(220px, min(32vw, 300px));
}

@media (max-width: 900px) {
  .hero-grid.has-photo {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid.has-photo .hero-copy {
    order: 1;
  }

  .hero-grid.has-photo .hero-photo-wrap {
    order: 0;
    max-width: 280px;
    margin-inline: auto;
  }

  .hero-grid.has-photo .hero-badge {
    margin-inline: auto;
  }

  .hero-grid.has-photo .hero-meta {
    justify-content: center;
  }

  .hero-grid.has-photo .hero-actions {
    justify-content: center;
  }

  .hero-grid.has-photo h1 .line {
    display: block;
  }

  .hero-grid.has-photo .hero-line-inner {
    transform-origin: center center;
  }
}

.hero-photo-wrap {
  display: none;
  position: relative;
}

.hero-photo-wrap.is-loaded {
  display: block;
}

/* Atmospheric glow behind photo */
.photo-glow-blob {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(34, 211, 238, 0.18) 0%,
    rgba(167, 139, 250, 0.12) 45%,
    transparent 70%
  );
  filter: blur(24px);
  z-index: -1;
  animation: blob-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blob-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.hero-photo-frame {
  margin: 0;
  position: relative;
  border-radius: 24px;
  padding: 3px;
  background: conic-gradient(
    from var(--border-angle),
    rgba(34, 211, 238, 0.7),
    rgba(167, 139, 250, 0.6),
    rgba(251, 113, 133, 0.5),
    rgba(34, 211, 238, 0.2),
    rgba(34, 211, 238, 0.7)
  );
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(34, 211, 238, 0.1);
  animation:
    hero-photo-float 7s ease-in-out infinite,
    border-rotate 6s linear infinite;
}

@keyframes border-rotate {
  to { --border-angle: 360deg; }
}

.hero-photo-clip {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 21px;
  aspect-ratio: 4 / 5;
}

@keyframes hero-photo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pan + zoom: focal point biased down to cut empty sky above you */
.hero-photo {
  --photo-focus-x: 59%;
  --photo-focus-y: 48%;
  --photo-zoom: 2.30;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus-x) var(--photo-focus-y);
  transform: scale(var(--photo-zoom));
  transform-origin: var(--photo-focus-x) var(--photo-focus-y);
  border-radius: 0;
  background: var(--bg-elevated);
}

.hero-grid.has-photo .hero h1 {
  max-width: 16ch;
}

@media (max-width: 900px) {
  .hero-grid.has-photo .hero h1 {
    max-width: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  width: fit-content;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.22;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero h1 .line:first-child {
  margin-bottom: 0.14em;
}

.hero-line-inner {
  display: inline-block;
  transform-origin: left center;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b), var(--accent-c));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent-a), #06b6d4);
  color: #020617 !important;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta a {
  color: inherit;
}

.hero-meta a:hover {
  color: var(--accent-a);
}

/* Floating photo cards */
.photo-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  white-space: nowrap;
  z-index: 10;
}

.photo-float--exp {
  bottom: 28px;
  left: -28px;
  animation: float-card 5.5s ease-in-out infinite;
}

.photo-float--aws {
  top: 32px;
  right: -24px;
  animation: float-card 5.5s ease-in-out infinite 1.4s;
}

.photo-float--hack {
  bottom: 100px;
  right: -28px;
  animation: float-card 5.5s ease-in-out infinite 2.6s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.pf-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.pf-plus {
  font-size: 0.85rem;
  color: var(--accent-a);
}

.pf-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.pf-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* colour accents per card */
.photo-float--exp   { border-color: rgba(34, 211, 238, 0.2); }
.photo-float--exp   .pf-num { color: var(--accent-a); }
.photo-float--aws   { border-color: rgba(167, 139, 250, 0.2); }
.photo-float--aws   .pf-icon { color: var(--accent-b); }
.photo-float--hack  { border-color: rgba(251, 113, 133, 0.2); }
.photo-float--hack  .pf-num { color: var(--accent-c); }

@media (max-width: 900px) {
  .photo-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-float { animation: none; }
  .photo-glow-blob { animation: none; }
  .hero-photo-frame { animation: hero-photo-float 0s; }
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  padding: 18px 0;
}

.marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee span strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  position: relative;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.stat-card .num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card .lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  perspective: 1200px;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.skill-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.skill-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.skill-card h3 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-a);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}

.skill-tag:hover {
  color: var(--text-primary);
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.06);
}

/* Experience timeline */
.timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 64px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-a),
    var(--accent-b) 55%,
    rgba(255, 255, 255, 0.06)
  );
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
}

.timeline.is-visible::before {
  animation: line-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes line-grow {
  to { transform: scaleY(1); }
}

.tl-item {
  position: relative;
  padding-bottom: 44px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

/* Company-initial dot */
.tl-dot {
  position: absolute;
  left: -64px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.05), 0 0 18px rgba(34, 211, 238, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-a);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.tl-dot::after {
  content: attr(data-co);
}

.tl-item:hover .tl-dot {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.08), 0 0 28px rgba(34, 211, 238, 0.2);
}

/* Current-role dot — green */
.tl-item:first-child .tl-dot {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.07), 0 0 20px rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

.tl-item:first-child:hover .tl-dot {
  border-color: rgba(74, 222, 128, 0.7);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1), 0 0 32px rgba(74, 222, 128, 0.22);
}

/* Card */
.tl-card {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tl-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.tl-card--current {
  border-color: rgba(34, 211, 238, 0.14);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.04) 0%, var(--bg-card) 55%);
}

.tl-card--current:hover {
  border-color: rgba(34, 211, 238, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 48px rgba(34, 211, 238, 0.06);
}

.tl-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tl-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.tl-card .company {
  color: var(--accent-b);
  font-weight: 600;
  margin-top: 5px;
  font-size: 0.9rem;
}

/* Right side of card header */
.tl-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.tl-card .dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
}

.tl-duration {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.tl-badge-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  white-space: nowrap;
}

.tl-badge-current .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Bullet list */
.tl-card ul {
  margin: 0 0 20px;
  padding-left: 1.15em;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tl-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.tl-card li:last-child {
  margin-bottom: 0;
}

/* Tech tags row */
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.tl-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.14);
  color: var(--accent-b);
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tl-tags span:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.28);
}

@media (max-width: 640px) {
  .timeline {
    padding-left: 48px;
  }

  .timeline::before {
    left: 14px;
  }

  .tl-dot {
    left: -48px;
    width: 30px;
    height: 30px;
    font-size: 7px;
    top: 16px;
  }

  .tl-card {
    padding: 20px;
  }

  .tl-header-right {
    align-items: flex-start;
  }
}

/* Achievements */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .achieve-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.achieve-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.06), rgba(167, 139, 250, 0.04));
  font-size: 0.95rem;
  color: var(--text-muted);
}

.achieve-card strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 1rem;
}

/* Education + CTA row */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

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

.edu-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.edu-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.edu-card p {
  margin: 0;
  color: var(--text-muted);
}

.cta-panel {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.cta-panel h3 {
  margin: 0;
  font-size: 1.35rem;
}

.cta-panel p {
  margin: 0;
  color: var(--text-muted);
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.cta-links a:hover {
  border-color: var(--accent-a);
  color: var(--accent-a) !important;
}

/* Footer */
footer {
  padding: 48px clamp(20px, 4vw, 48px) 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

footer a {
  color: var(--accent-a);
}

/* GSAP / reduced motion hooks */
.reveal {
  opacity: 0;
  transform: translateY(36px);
}

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

  .marquee {
    animation: none;
  }

  .gradient-text {
    animation: none;
  }

  .hero-badge .pulse {
    animation: none;
  }

  .hero-photo-frame {
    animation: none;
  }

  #cursor-glow {
    display: none;
  }

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

  .timeline::before {
    transform: scaleY(1);
  }
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
  z-index: 10000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Resume button */
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  color: var(--accent-c) !important;
  border: 1px solid rgba(251, 113, 133, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-resume:hover {
  background: rgba(251, 113, 133, 0.08);
  border-color: var(--accent-c);
  box-shadow: 0 8px 32px rgba(251, 113, 133, 0.2);
  transform: translateY(-3px);
}

/* Typewriter */
.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: var(--accent-a);
  margin: 0 0 20px;
  min-height: 1.6em;
  letter-spacing: 0.02em;
}

.tw-cursor {
  display: inline-block;
  color: var(--accent-a);
  animation: tw-blink 0.9s step-end infinite;
  margin-left: 1px;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scroll-down hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  animation: hint-bounce 1.8s ease-in-out infinite;
  display: block;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Active nav link */
.nav-links a.active {
  color: var(--accent-a) !important;
}

/* Back-to-top button */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent-a);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-top:hover {
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}

/* Footer social links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-copy {
  margin: 0;
}

/* Skill card polish — top gradient line + accent hover glow per category */
.skill-card {
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.skill-card:nth-child(1)::before,
.skill-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--accent-a), transparent);
}

.skill-card:nth-child(2)::before,
.skill-card:nth-child(5)::before {
  background: linear-gradient(90deg, var(--accent-b), transparent);
}

.skill-card:nth-child(3)::before,
.skill-card:nth-child(6)::before {
  background: linear-gradient(90deg, var(--accent-c), transparent);
}

.skill-card:nth-child(1):hover,
.skill-card:nth-child(4):hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.08) inset;
}

.skill-card:nth-child(2):hover,
.skill-card:nth-child(5):hover {
  border-color: rgba(167, 139, 250, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(167, 139, 250, 0.08) inset;
}

.skill-card:nth-child(3):hover,
.skill-card:nth-child(6):hover {
  border-color: rgba(251, 113, 133, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(251, 113, 133, 0.08) inset;
}

/* CTA panel glow animation */
.cta-panel {
  animation: cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 24px 48px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2), 0 24px 64px rgba(167, 139, 250, 0.12); }
}

.cta-response-time {
  margin: -8px 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-a);
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-arrow { animation: none; }
  .tw-cursor { animation: none; }
  .cta-panel { animation: none; }
  #back-top { transition: none; }
}
