/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e8e8ee;
  background: #0b0b12;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: #b9b9c7; }

/* ---------- Layout helpers ---------- */
.site-header,
.hero,
.projects,
.about,
.contact,
.site-footer { padding-inline: clamp(1.25rem, 5vw, 4rem); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 18, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}
.logo { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a4cff, #ff4cb8);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.logo-text { font-size: 1.05rem; }
.logo-text .dot { color: #ff4cb8; }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #b9b9c7;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 11, 18, 0.55), rgba(11, 11, 18, 0.85)),
    radial-gradient(60% 50% at 20% 20%, rgba(106, 76, 255, 0.25), transparent 60%),
    radial-gradient(50% 40% at 85% 30%, rgba(255, 76, 184, 0.18), transparent 60%),
    radial-gradient(40% 40% at 50% 90%, rgba(44, 139, 255, 0.18), transparent 60%);
  pointer-events: none;
}

/* Self-hosted background video — fills the hero, object-fit: cover
   crops to any aspect ratio without letterboxing. */
.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-inner { z-index: 2; }
.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9b9c7;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #b9b9c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 1.15rem; max-width: 600px; margin: 1rem auto 2rem; }
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #6a4cff, #ff4cb8);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Section heads ---------- */
.section-head {
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p { color: #8a8a9a; }

/* ---------- Projects ---------- */
.projects {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.project-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}
.project-art {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}
.project-badge {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.project-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { color: #fff; }
.project-body p { flex: 1; }
.project-link {
  font-weight: 600;
  color: #b39bff;
  transition: color 0.15s ease;
}
.project-link:hover { color: #fff; }

/* ---------- About ---------- */
.about {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(106, 76, 255, 0.10), transparent 70%),
    #0b0b12;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.contact-links a {
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.contact-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #6b6b7a;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; color: inherit; }

/* ---------- Small screens ---------- */
@media (max-width: 540px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.9rem; }
}
