:root {
  --bg: #01030a;
  --panel: rgba(6, 10, 20, 0.9);
  --border: rgba(255, 255, 255, 0.17);
  --accent-cyan: #59e5ff;
  --accent-purple: #b76bf0;
  --accent-orange: #ff9c5b;
  --accent-blue: #6eb7ff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-sheen: rgba(255, 255, 255, 0.95);
  --text-base: clamp(1rem, 1vw + 1rem, 1.2rem);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text-sheen);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.timeline article {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(6, 10, 20, 0.95));
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(60px);
  position: relative;
  overflow: hidden;
  animation: timeline-card 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(var(--order, 0) * 0.09s);
}

.timeline article.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline article::after {
  content: '';
  position: absolute;
  inset: -20% auto auto -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(89, 229, 255, 0.18), rgba(183, 107, 240, 0.01));
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.timeline article .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 30%, rgba(89, 229, 255, 0.35), rgba(6, 10, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 22px rgba(89, 229, 255, 0.6);
  animation: icon-pulse 3s ease-in-out infinite;
}

body {
  background: #000;
  min-height: 100vh;
  scroll-behavior: smooth;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-sheen);
}

body::before {
  position: fixed;
  inset: 0;
  content: '';
  background: #000;
  z-index: -1;
}

@keyframes gradient-cycle {
  0% {
    filter: hue-rotate(0deg) saturate(1);
  }
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
}

@keyframes text-palette-cycle {
  0% {
    --text-sheen: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-cyan: #75d3ff;
    --accent-purple: #92b8ff;
    --accent-orange: #7bd5ff;
    --accent-blue: #7fd1ff;
    --panel: rgba(6, 12, 30, 0.9);
  }
  100% {
    --text-sheen: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-cyan: #75d3ff;
    --accent-purple: #92b8ff;
    --accent-orange: #7bd5ff;
    --accent-blue: #7fd1ff;
    --panel: rgba(6, 12, 30, 0.9);
  }
}

header.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 4.5rem 4.5rem;
  min-height: 720px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 3rem;
}

.hero-divider {
  width: min(260px, 35vw);
  height: 2px;
  border-radius: 999px;
  margin: 1.25rem 0 0;
  background: linear-gradient(120deg, rgba(89, 229, 255, 0.8), rgba(183, 107, 240, 0.85));
  box-shadow: 0 0 18px rgba(89, 229, 255, 0.6), 0 0 28px rgba(183, 107, 240, 0.4);
  align-self: flex-start;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(89, 229, 255, 0.08), rgba(183, 107, 240, 0.08));
  pointer-events: none;
}

.nav-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: clamp(0.25em, 0.5vw + 0.2em, 0.45em);
  font-size: clamp(0.75rem, 0.8vw + 0.5rem, 0.88rem);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(120deg, rgba(89, 229, 255, 0.15), rgba(183, 107, 240, 0.18), rgba(255, 105, 180, 0.08));
  backdrop-filter: blur(30px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), inset 0 0 35px rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.nav-shell::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(89, 229, 255, 0.6), transparent 40%, rgba(255, 105, 180, 0.5));
  filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-shell:hover::after {
  opacity: 1;
}

.nav-shell nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-shell nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.32em;
  padding-top: 0.2rem;
  padding-bottom: 0.35rem;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
  transition: color 0.4s ease, transform 0.4s ease;
}

.nav-shell nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(120deg, rgba(89, 229, 255, 0.95), rgba(183, 107, 240, 0.95));
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.35s ease;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(89, 229, 255, 0.9), 0 0 25px rgba(183, 107, 240, 0.6);
}

.nav-shell nav a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.nav-shell nav a:hover::after,
.nav-shell nav a:focus-visible::after {
  transform: scaleX(1);
}

@keyframes border-glow {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(60deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

.nav-shell .logo {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.6em;
  color: var(--accent-purple);
  text-shadow: 0 0 20px rgba(183, 107, 240, 0.8);
  mix-blend-mode: screen;
}

@media (max-width: 960px) {
  .nav-shell {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: rgba(4, 6, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-shell nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.7rem);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.75rem 0;
    border-radius: 28px;
    background: rgba(4, 6, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 6;
  }
  .nav-shell nav::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
  }
  .nav-shell nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav-shell nav a {
    width: 100%;
    letter-spacing: 0.45em;
    padding: 0.95rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4f4f8;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  }
  .nav-shell nav a:last-of-type {
    border-bottom: none;
  }
  .nav-shell nav a::after {
    display: none;
  }
  .nav-shell .menu-toggle {
    order: 1;
    display: inline-flex;
  }
  .nav-shell .lightning-btn {
    order: 2;
    width: 100%;
  }
  body.nav-open {
    overflow: hidden;
  }
}

.nav-shell button {
  min-width: 140px;
  font-size: 0.75rem;
}
.nav-shell .menu-toggle {
  display: none;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%);
  box-shadow: 0 12px 28px rgba(89, 229, 255, 0.2);
  backdrop-filter: blur(20px);
  cursor: pointer;
  justify-content: center;
  gap: 8px;
  align-items: center;
  transition: transform 0.35s ease, background 0.35s ease;
}
.nav-shell .menu-toggle:hover {
  transform: scale(1.05);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 55%);
}
.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(57, 135, 255, 0.2), transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hero-content h1 {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-shadow: 0 0 30px rgba(89, 229, 255, 0.6);
}

.typing {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.typing-caret {
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.4));
  animation: blink-caret 700ms steps(1) infinite;
}

@keyframes blink-caret {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.subtitle,
.tagline {
  color: var(--text-muted);
}

.tagline {
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.lightning-btn {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  background: linear-gradient(145deg, rgba(89, 229, 255, 0.05), rgba(183, 107, 240, 0.8));
  color: #fff;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(89, 229, 255, 0.25), 0 0 35px rgba(183, 107, 240, 0.25);
  animation: neon-glow 4s ease-in-out infinite;
}

.lightning-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightning-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.outline-link {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(120deg, rgba(89, 229, 255, 0.35), rgba(255, 96, 196, 0.9) 55%, rgba(183, 107, 240, 0.95));
  color: #fff;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(110deg, rgba(255, 96, 196, 0.12), rgba(55, 132, 255, 0.15));
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
  animation: outline-glow 3.6s ease-in-out infinite;
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding: 0 4rem 4rem;
  margin-top: -4rem;
}

.panel {
  background: radial-gradient(circle at 10% -10%, rgba(95, 219, 255, 0.08), transparent 55%),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 60px rgba(2, 4, 12, 0.8);
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.panel.about {
  margin-top: 2rem;
}

.panel.education {
  background: linear-gradient(160deg, rgba(5, 9, 18, 0.95), rgba(11, 18, 31, 0.9));
  border-color: rgba(255, 255, 255, 0.18);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(89, 229, 255, 0.4), rgba(183, 107, 240, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.panel.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.panel.visible::before {
  opacity: 1;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.section-heading p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.section-heading::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 999px;
  animation: pulse-line 2.8s ease-in-out infinite;
}

.panel.skills {
  background: radial-gradient(circle at 10% -10%, rgba(89, 229, 255, 0.15), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(183, 107, 240, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(7, 10, 25, 0.95), rgba(4, 6, 18, 0.98));
  border-color: rgba(255, 255, 255, 0.2);
}

.panel.skills::after {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0.25;
  background: linear-gradient(130deg, rgba(89, 229, 255, 0.15), rgba(183, 107, 240, 0.1));
}

.about {
  min-height: 360px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.about canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about .card {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
  align-items: flex-start;
}

.about img {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 290px;
  height: auto;
  object-fit: cover;
  margin-top: 1rem;
}

.about ul {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about li::before {
  content: '▹';
  color: var(--accent-cyan);
  margin-right: 0.5rem;
}

.skills-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.skills-detail::before {
  content: '';
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(circle, rgba(89, 229, 255, 0.12), transparent 60%);
  filter: blur(25px);
  z-index: -1;
}

.skills-category {
  position: relative;
  padding: 2rem 1.6rem 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.skills-category::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(89, 229, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.skills-category h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent-blue);
}

.skills-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skills-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-rise 0.6s ease forwards;
  animation-delay: calc(var(--index, 0) * 0.08s);
  animation-play-state: paused;
}

.panel.visible .skills-list li {
  animation-play-state: running;
}

.panel.visible .skills-category {
  opacity: 1;
  transform: translateY(0);
}

.skills-category:hover::after {
  opacity: 1;
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.skills-badges span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  background: rgba(89, 229, 255, 0.12);
  border: 1px solid rgba(89, 229, 255, 0.3);
}

.skills-highlights {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.skills-highlights span {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent-purple);
  background: rgba(183, 107, 240, 0.12);
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timeline-card {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    transform: scale(0.9) translate(-45%, -40%);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.05) translate(-50%, -45%);
    opacity: 0.45;
  }
  100% {
    transform: scale(0.9) translate(-55%, -40%);
    opacity: 0.25;
  }
}

@keyframes icon-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(89, 229, 255, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(89, 229, 255, 0.65);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(89, 229, 255, 0.35);
  }
}

@keyframes pulse-line {
  0% {
    transform: scaleX(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.8);
    opacity: 0.5;
  }
}

@keyframes neon-glow {
  0% {
    box-shadow: 0 8px 20px rgba(89, 229, 255, 0.25), 0 0 30px rgba(183, 107, 240, 0.25);
    transform: translateY(0px) scale(1);
  }
  50% {
    box-shadow: 0 15px 35px rgba(89, 229, 255, 0.45), 0 0 45px rgba(183, 107, 240, 0.5);
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    box-shadow: 0 8px 20px rgba(89, 229, 255, 0.25), 0 0 30px rgba(183, 107, 240, 0.25);
    transform: translateY(0px) scale(1);
  }
}

@keyframes outline-glow {
  0% {
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
  }
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.flip-card {
  perspective: 1200px;
  min-height: 220px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.flip-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.flip-card > div {
  position: relative;
  border-radius: 24px;
  padding: 1.5rem;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s ease;
  backface-visibility: hidden;
}

.flip-card .front {
  transform: rotateY(0deg);
}

.flip-card .back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: rgba(89, 229, 255, 0.05);
}

.flip-card:hover .front {
  transform: rotateY(-180deg);
}

.flip-card:hover .back {
  transform: rotateY(0deg);
}

.project-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.project-carousel::-webkit-scrollbar {
  height: 6px;
}

.project-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.project-carousel article {
  min-width: 260px;
  flex: 0 0 260px;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(35px);
}

.project-carousel article:hover {
  transform: translateY(-8px);
}

.project-carousel article.visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cert-grid article {
  padding: 1.3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  opacity: 0;
  transform: translateY(35px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.cert-grid article.visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.cert-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cert-list article {
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 6, 18, 0.45);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.04), 0 20px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.cert-list article a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cert-list article.visible,
.panel.visible .cert-list article {
  opacity: 1;
  transform: translateY(0);
}

.cert-list h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-sheen);
}

.cert-list p {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.panel.tools {
  background: linear-gradient(160deg, rgba(6, 10, 20, 0.96), rgba(10, 16, 30, 0.94)),
    radial-gradient(circle at 20% 10%, rgba(89, 229, 255, 0.25), transparent 45%);
  border-color: rgba(255, 255, 255, 0.25);
}

.tools-display {
  border-radius: 26px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tools-marquee {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
  position: relative;
}

.tools-track {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.01);
  min-width: 100%;
  align-items: center;
  animation: marquee-scroll 22s linear infinite;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(89, 229, 255, 0.15);
}

.tools-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-sheen);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.tools-chip i {
  font-size: 1rem;
  display: inline-flex;
  width: 1.1rem;
  justify-content: center;
  color: var(--accent-cyan);
}

.tools-chip span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}

.tools-track.track-alt {
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: 0.9;
}

.tools-note {
  color: var(--text-muted);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.tools-play {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.tools-play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(89, 229, 255, 0.16), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.tools-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  position: relative;
  z-index: 1;
  animation: orb-dance 3.2s ease-in-out infinite;
  box-shadow: 0 10px 25px rgba(89, 229, 255, 0.3);
}

.tools-orb.orb-one {
  background: linear-gradient(180deg, rgba(89, 229, 255, 0.8), rgba(14, 18, 43, 0.6));
}

.tools-orb.orb-two {
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.8), rgba(255, 98, 196, 0.5));
  animation-delay: 0.6s;
}

.tools-orb.orb-three {
  background: linear-gradient(180deg, rgba(199, 121, 255, 0.8), rgba(70, 135, 255, 0.6));
  animation-delay: 1.2s;
}

.tools-playtext {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.tools-playtext strong {
  font-size: 0.85rem;
}

.tools-playtext span {
  color: var(--text-muted);
  font-size: 0.7rem;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes orb-dance {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .tools-display {
    padding: 1.25rem;
  }

  .tools-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
  }

  .tools-track.track-alt {
    display: none;
  }

  .tools-chip {
    letter-spacing: 0.15em;
    font-size: 0.65rem;
  }
}

@media (min-width: 1200px) {
  .tools-display {
    max-width: 960px;
    margin: 0 auto;
  }
}

.tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tags span {
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(89, 229, 255, 0.15);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.achievements-grid article {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  opacity: 0;
  transform: translateY(35px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.achievements-grid article.visible {
  opacity: 1;
  transform: translateY(0);
}

.counter {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.highlight {
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
  gap: 1.5rem;
}

.contact-card {
  padding: 1.75rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(35px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.contact-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.contact-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-stats {
  margin: 1.5rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-stats div {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 0.8rem;
  text-align: center;
}

.contact-stats strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.contact-stats span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.contact-meta {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-meta a {
  color: #ffffff;
  text-decoration: none;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(35px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.contact-form .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(183, 107, 240, 0.4);
}

.contact-form textarea {
  resize: vertical;
}

.form-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-success {
  margin-top: 1rem;
  min-height: 1.2rem;
  color: var(--accent-cyan);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-success.visible {
  opacity: 1;
}

.panel.visible .contact-card,
.panel.visible .contact-form {
  opacity: 1;
  transform: translateY(0);
}

.contact-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
}

.social-link:hover {
  border-color: var(--accent-purple);
}

.social-buttons {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.social-btn i {
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

.social-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--accent-cyan);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(183, 107, 240, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

footer {
  margin: 0 4rem 2rem;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-top {
  border-radius: 999px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(89, 229, 255, 0.5);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.founder-portrait {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.founder-portrait img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.founder-portrait p {
  margin-bottom: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.founder-portrait small {
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

@media (max-width: 900px) {
  header.hero,
  main,
  footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nav-shell {
    flex-direction: column;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .about .card {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .contact-form .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    letter-spacing: 0.15em;
  }

  .nav-shell nav {
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-shell button.lightning-btn {
    width: 100%;
  }

  .hero-content {
    max-width: 100%;
    gap: 1.25rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions button,
  .outline-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .hero-content .tagline,
  .hero-content .subtitle {
    font-size: 1rem;
  }

  .hero-content .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
  }
}
