:root {
  --bg: #0b0b0f;
  --bg-soft: #10121a;
  --txt: #e9ecf1;
  --muted: #a3adbd;
  --accent: #918bea;
  --accent-2: #c084fc;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --speed: 650ms;
  --easing: cubic-bezier(0.2, 0.7, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  /* keep content inside viewport */
}

body {
  margin: 0;
  font:
    16px/1.6 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom,
      rgba(16, 18, 26, 0.7),
      rgba(16, 18, 26, 0.4));
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: all 0.35s var(--easing);
}

.nav.scrolled {
  background: rgba(16, 18, 26, 0.85);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.55);
}

.nav a {
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg,
      rgba(125, 211, 252, 0.15),
      rgba(192, 132, 252, 0.15));
  border-color: rgba(125, 211, 252, 0.25);
}

/* mobile toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--txt);
  padding: 6px 10px;
  border-radius: 12px;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
}

.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- HERO ---------- */
.section-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.45;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 40%,
      rgba(125, 211, 252, 0.15),
      transparent 60%),
    radial-gradient(55% 55% at 60% 60%,
      rgba(192, 132, 252, 0.12),
      transparent 60%),
    linear-gradient(to bottom, rgba(11, 11, 15, 0.2), var(--bg) 85%);
}

.hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.headline {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  max-inline-size: 30ch;
  word-wrap: break-word;
}

.sub {
  max-width: 70ch;
  color: var(--muted);
  margin: 18px 0 28px;
  font-size: clamp(15px, 1.7vw, 18px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badge {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.scroll-ind {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: rgba(125, 211, 252, 0.28);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(28px, 4.8vw, 44px);
  margin: 0 0 10px;
}

p.lead {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 72ch;
}

/* Feature icons */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,
      rgba(125, 211, 252, 0.08),
      rgba(192, 132, 252, 0.08));
}

/* Showcase images (fixed selector: same node has both classes) */
.showcase.shot {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.showcase.shot img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--easing);
}

.showcase.shot:hover img {
  transform: scale(1.12);
}

@media (max-width: 900px) {
  .showcase.shot img {
    height: 280px;
  }
}

@media (max-width: 520px) {
  .showcase.shot img {
    height: 220px;
  }
}

/* Marquee */
.marquee-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  border-top: 0px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-top: 20px;
  /* pushes it slightly down */
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.01));
}

.marquee {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 16s linear infinite;
}

.marquee b {
  opacity: 0.7;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(30%);
  }
}

/* Slider with scroll-snap for touch */
.slider {
  position: relative;
}

.slides {
  display: flex;
  gap: 18px;
  overflow: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding: 12px;
  padding-bottom: 6px;

  /* Hide scrollbar but keep scrolling working */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: min(100%, 1180px);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  scroll-snap-align: start;
}

.slider .controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.ctrl {
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(134, 102, 161, 0.6);
  backdrop-filter: blur(6px);
  width: 27px;
  height: 27px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-left: -1%;
}

/* Contact CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  background: linear-gradient(135deg,
      rgba(125, 211, 252, 0.08),
      rgba(192, 132, 252, 0.08));
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  opacity: 0.7;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(192, 132, 252, 0.55);
  outline-offset: 2px;
}

.btn-primary {
  align-self: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg,
      rgba(125, 211, 252, 0.25),
      rgba(192, 132, 252, 0.25));
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.08s ease,
    filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.3);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(3px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity var(--speed) var(--easing),
    transform var(--speed) var(--easing),
    filter var(--speed) var(--easing);
}

/* Helpers */
.tag {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------ RESPONSIVE NAV ------------ */
@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    right: 16px;
    top: 64px;
    width: min(92vw, 360px);
    display: grid;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(to bottom,
        rgba(16, 18, 26, 0.95),
        rgba(16, 18, 26, 0.85));
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .nav.open .menu {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav {
    padding-inline: 14px;
    justify-content: flex-start;
    gap: 12px;
  }

  /* compact pill + left layout */
  .brand {
    flex: 1;
  }

  .menu-toggle {
    order: -1;
    margin-right: auto;
  }

  .menu {
    right: auto;
    left: 16px;
    transform-origin: top left;
  }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .marquee {
    animation: none;
  }
}

/* GitHub "laser" */
.github-laser {
  display: inline-block;
  padding: 8px;
  border: 2px solid rgb(183, 153, 183);
  font-size: 24px;
  color: rgb(122, 106, 180);
  background: transparent;
  text-align: center;
  transition: 0.2s;
  box-shadow: 0 0 6px rgb(55, 44, 173);
  border-radius: 30px;
}

.github-laser:hover {
  background: #000;
  color: #fff;
}

/* linkedin */
.linkedin-laser {
  display: inline-block;
  padding: 8px;
  border: 2px solid rgb(62, 86, 165);
  font-size: 24px;
  color: rgb(255, 255, 255);
  background: transparent;
  text-align: center;
  transition: 0.2s;
  box-shadow: 0 0 6px rgb(55, 44, 173);
  border-radius: 30px;
}

.linkedin-laser:hover {
  background: #000000;
  color: rgb(62, 86, 165);
  border: 2px solid rgb(242, 242, 242);
}

/* instagram */
.instagram-laser {
  display: inline-block;
  padding: 8px;
  border: 2px solid rgb(150, 62, 167);
  font-size: 24px;
  color: rgb(255, 255, 255);
  background: transparent;
  text-align: center;
  transition: 0.2s;
  box-shadow: 0 0 6px rgb(55, 44, 173);
  border-radius: 30px;
}

.instagram-laser:hover {
  background: #000000;
  color: rgb(150, 62, 167);
  border: 2px solid rgb(242, 242, 242);
}

#about {
  text-align: center;
  padding: 60px 20px;
}

#about .card {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 28px 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

#about .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #eee;
}