:root {
  --bg: #050810;
  --bg-alt: #0c1326;
  --surface: rgba(18, 28, 56, 0.8);
  --surface-strong: #182852;
  --text: #e8eeff;
  --muted: #9fb1db;
  --accent: #68e0cf;
  --accent-strong: #42c7b4;
  --accent-blue: #72a8ff;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

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

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(18px);
  z-index: -2;
  opacity: 0.32;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  background: #38f7dc;
  top: -110px;
  left: -110px;
}

.orb-2 {
  background: #4d83ff;
  bottom: -120px;
  right: -90px;
  animation-delay: -5s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 75%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(5, 8, 16, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.3rem;
  align-items: center;
}

.tag {
  display: inline-block;
  background: rgba(104, 224, 207, 0.14);
  color: #a0fff3;
  border: 1px solid rgba(104, 224, 207, 0.35);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #061127;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(104, 224, 207, 0.3);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-card {
  background: linear-gradient(160deg, rgba(23, 36, 74, 0.92), rgba(16, 25, 49, 0.9));
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: cardPulse 7s ease-in-out infinite;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-meta h2 {
  margin: 0.9rem 0 0.2rem;
}

.profile-meta p {
  margin: 0;
  color: #c4d7ff;
}

.profile-meta span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(18, 28, 56, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.8rem;
  color: #dbe7ff;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.chip:hover {
  transform: translateY(-3px);
  border-color: rgba(104, 224, 207, 0.45);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.skill-pill {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(20, 32, 63, 0.9), rgba(16, 24, 46, 0.88));
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  color: #d8e6ff;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 10%,
    rgba(104, 224, 207, 0.2) 45%,
    transparent 80%
  );
  transform: translateX(-130%);
  animation: shimmer 4.8s linear infinite;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0.9rem;
  padding: 1rem;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.step:hover {
  transform: translateX(5px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(170deg, rgba(28, 43, 85, 0.88), rgba(17, 26, 50, 0.86));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.card p,
section p {
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-item {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in-view,
.reveal-item.in-view {
  animation: reveal 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(14px, -12px) scale(1.06);
  }
}

@keyframes cardPulse {
  0%,
  100% {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 26px 50px rgba(66, 199, 180, 0.25);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 420px;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-nav {
    gap: 0.65rem;
    font-size: 0.92rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

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

  .hero {
    padding-top: 4rem;
  }

  .bg-orb {
    width: 280px;
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
