:root {
  --bg: #070915;
  --bg-deep: #04050d;
  --surface: rgba(28, 34, 72, 0.34);
  --surface-strong: rgba(25, 32, 76, 0.52);
  --text: #eaf0ff;
  --muted: #aab5de;
  --primary: #8d7dff;
  --accent: #3ea8ff;
  --border: rgba(170, 190, 255, 0.26);
  --shadow: 0 20px 60px rgba(6, 10, 35, 0.54);
  --radius: 1.2rem;
  --container: min(1100px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 85% 10%, rgba(88, 67, 255, 0.34), transparent 42%),
    radial-gradient(circle at 15% 25%, rgba(57, 152, 255, 0.22), transparent 38%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 72%);
  color: var(--text);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.68;
}

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

.ambient-background {
  position: fixed;
  inset: -10% -15%;
  pointer-events: none;
  z-index: -2;
  isolation: isolate;
}

.particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.aurora {
  position: absolute;
  display: block;
  width: 80vw;
  height: 52vh;
  border-radius: 999px;
  filter: blur(22px);
  mix-blend-mode: screen;
  z-index: 1;
  opacity: 0.44;
  transform: translate3d(0, 0, 0) rotate(-8deg);
}

.aurora-one {
  top: -10vh;
  left: -14vw;
  background: linear-gradient(
    115deg,
    rgba(97, 117, 255, 0.05) 5%,
    rgba(122, 95, 255, 0.42) 45%,
    rgba(67, 163, 255, 0.18) 78%,
    rgba(67, 163, 255, 0) 100%
  );
  animation: auroraFlowA 28s ease-in-out infinite alternate;
}

.aurora-two {
  right: -20vw;
  bottom: -15vh;
  background: linear-gradient(
    235deg,
    rgba(70, 162, 255, 0.03) 8%,
    rgba(83, 123, 255, 0.36) 40%,
    rgba(153, 98, 255, 0.26) 72%,
    rgba(153, 98, 255, 0) 100%
  );
  animation: auroraFlowB 32s ease-in-out infinite alternate;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

.orb-one {
  width: 48vw;
  height: 48vw;
  top: -12vh;
  left: -8vw;
  background: radial-gradient(circle, rgba(85, 74, 255, 0.62), transparent 70%);
  animation: driftA 18s ease-in-out infinite alternate;
}

.orb-two {
  width: 46vw;
  height: 46vw;
  right: -9vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(53, 159, 255, 0.4), transparent 67%);
  animation: driftB 20s ease-in-out infinite alternate;
}

.orb-three {
  width: 36vw;
  height: 36vw;
  left: 34vw;
  bottom: -8vh;
  background: radial-gradient(circle, rgba(135, 69, 255, 0.42), transparent 68%);
  animation: driftC 24s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(130, 150, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 150, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 92%);
  z-index: 3;
  opacity: 0.72;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
  opacity: 0.1;
  z-index: 4;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(103, 136, 255, 0.19) 0%, rgba(103, 136, 255, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.3s ease;
}

.section-shell {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(4, 5, 12, 0.75), rgba(4, 5, 12, 0));
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2.8rem;
  height: 2.8rem;
}

.nav-links {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.2rem;
}

.nav-links a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

main {
  padding-bottom: 4.5rem;
}

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

.eyebrow {
  color: #bac8ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.95rem;
}

.hero h1 {
  max-width: 75%;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.04;
  margin-bottom: 1.35rem;
  text-wrap: balance;
}

.hero-copy {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.7rem 1.28rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--primary), var(--accent));
  box-shadow: 0 8px 32px rgba(81, 115, 255, 0.35);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(35, 45, 95, 0.35);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 0.9rem;
  margin-top: 2.3rem;
}

.glass-chip,
.glass-panel,
.skill-card {
  background: linear-gradient(145deg, var(--surface), rgba(10, 15, 40, 0.54));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-chip {
  padding: 1rem 1.1rem;
}

.chip-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.glass-chip strong {
  font-size: 0.95rem;
}

.profile,
.skills,
.contact,
.site-footer {
  padding-top: 2rem;
}

.section-heading {
  max-width: 64ch;
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
}

.glass-panel {
  padding: 1.45rem 1.6rem;
  display: grid;
  gap: 1rem;
  color: #d5defa;
}

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

.skill-card {
  position: relative;
  overflow: hidden;
  min-height: 195px;
  padding: 1.25rem;
  transition: transform 0.28s ease, border-color 0.25s ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: -50% -50%;
  background: radial-gradient(circle, rgba(147, 152, 255, 0.24), transparent 52%);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  pointer-events: none;
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.skill-card p {
  color: #c6d1f6;
  font-size: 0.95rem;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 211, 255, 0.5);
}

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

.contact-card {
  background: linear-gradient(145deg, var(--surface-strong), rgba(10, 15, 40, 0.58));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.contact-card p {
  color: #c6d1f6;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list div {
  display: grid;
  gap: 0.2rem;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-list dd {
  margin: 0;
  font-weight: 600;
}

.contact-list a {
  color: var(--text);
}

.contact-cta {
  margin-top: 1rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 3rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftA {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(20px, 30px, 0) scale(1.08);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-34px, 18px, 0) scale(1.05);
  }
}

@keyframes driftC {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(15px, -26px, 0) scale(1.08);
  }
}

@keyframes auroraFlowA {
  from {
    transform: translate3d(-18px, 0, 0) rotate(-10deg) scale(1);
    opacity: 0.36;
  }
  to {
    transform: translate3d(40px, 24px, 0) rotate(-3deg) scale(1.08);
    opacity: 0.56;
  }
}

@keyframes auroraFlowB {
  from {
    transform: translate3d(0, 0, 0) rotate(10deg) scale(1);
    opacity: 0.3;
  }
  to {
    transform: translate3d(-56px, -24px, 0) rotate(2deg) scale(1.1);
    opacity: 0.52;
  }
}

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

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

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

@media (max-width: 700px) {
  .primary-nav {
    min-height: 4.4rem;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 6rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .particle-field {
    display: none;
  }
}
