/* -------------------------
   Base / Reset
-------------------------- */
:root {
  --bg: #0b0d12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --accent: #8b5cf6; /* purple */
  --accent2: #22d3ee; /* cyan */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* -------------------------
   Background Layer
-------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Optional video background */
.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18; /* tweak this */
  filter: saturate(1.1) contrast(1.05) brightness(0.85);
  transform: scale(1.02);
}

/* Soft glows */
.bg__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
}
.bg__glow--a {
  background: radial-gradient(circle, var(--accent), transparent 60%);
  top: -260px;
  left: -260px;
}
.bg__glow--b {
  background: radial-gradient(circle, var(--accent2), transparent 60%);
  bottom: -300px;
  right: -220px;
}

/* Film grain */
.bg__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}

/* -------------------------
   Layout Helpers
-------------------------- */
.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------
   Nav
-------------------------- */
.nav {
  width: min(1100px, calc(100% - 40px));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav__links {
  display: flex;
  gap: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.nav__links a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* -------------------------
   Hero
-------------------------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: start;
  padding-bottom: 36px;
}

.hero__content {
  width: min(1100px, calc(100% - 40px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero__eyebrow {
  color: var(--muted2);
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Profile / stats */
.hero__media {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.profile {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.profile img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.stat__num {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Scroll hint */
.scrollhint {
  margin: auto auto 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 28px;
  color: var(--muted2);
}

.scrollhint__text {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scrollhint__mouse {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  opacity: 0.9;
}

.scrollhint__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  animation: wheel 1.4s infinite;
}

@keyframes wheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.75;
  }
  70% {
    transform: translate(-50%, 12px);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* -------------------------
   Buttons / Links
-------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  backdrop-filter: blur(12px);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--primary {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.22),
    rgba(34, 211, 238, 0.16)
  );
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

/* -------------------------
   Sections / Grid
-------------------------- */
.section {
  padding: 70px 0 34px;
}

.section__header {
  margin-bottom: 22px;
}

.section__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.section__block {
  margin-top: 30px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.section__blockHeader {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.section__blockHeader h3 {
  margin: 0;
  font-size: 18px;
}

.section__blockHeader p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Project card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

.card__top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.tag--muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.card__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card__footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.link:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* -------------------------
   Contact / Footer
-------------------------- */
.contact {
  display: grid;
  gap: 10px;
  padding: 14px 6px 6px;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

.contact__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.footer {
  margin-top: 22px;
  padding: 18px 0 26px;
  text-align: center;
  color: var(--muted2);
  font-size: 13px;
}

/* -------------------------
   Responsive
-------------------------- */
@media (max-width: 980px) {
  .hero__content {
    grid-template-columns: 1fr;
  }
  .profile img {
    height: 320px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .nav__links {
    gap: 8px;
    padding: 8px 10px;
  }
  .nav__links a {
    font-size: 13px;
    padding: 7px 8px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
