*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #fff;
  --section-h: 100vh;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #ff6b6b;
  color: var(--text);
  transition: background 0.05s linear;
  overflow-x: hidden;
}

/* ── Fixed HUD ── */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 1.2rem 2.5rem; */
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hud-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.hud-color {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hud-swatch {
  /* width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.6);
      transition: background 0.15s; */
}

/* ── Progress bar ── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ── Sections ── */
section {
  min-height: var(--section-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 7rem 2rem 4rem; */
  position: relative;
}

.section-index {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  user-select: none;
  pointer-events: none;
}

.card {
  max-width: 640px;
  text-align: center;
  /* padding: 3rem 3.5rem; */
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  /* padding: 0.3rem 0.85rem; */
  border-radius: 100px;
}

.card h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Divider ── */
.palette-strip {
  display: flex;
  width: 100%;
  height: 6px;
}

.palette-strip span {
  flex: 1;
  background: var(--c, #fff);
  opacity: 0.01;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 100;
  transition: opacity 0.4s;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: bounce 1.4s ease-in-out infinite;
}
header .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5),
    rgba(0, 0, 0, 0)
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}
@keyframes bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(5px);
  }
}
        /* ───────── RESET ───────── */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            overflow-x: hidden;
        }

        /* ───────── NAVBAR FIX ───────── */
        .header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 2000;
        }

        .navbar {
            background: rgba(0, 0, 0, 0.5);
            /* semi transparent */
            backdrop-filter: blur(10px);
            z-index: 2000;
        }

        /* Ensure toggle icon is visible */
        .navbar-toggler {
            border: none;
        }

        .navbar-toggler-icon {
            filter: invert(1);
            /* makes icon white */
        }

        /* ───────── SECTION + VIDEO FIX ───────── */
        section {
            position: relative;
            /* height: 100vh; */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        /* VIDEO AS BACKGROUND */
        section video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            /* KEY FIX */
        }

        /* ───────── CONTENT CARD ───────── */
        .card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(15px);
            padding: 30px;
            border-radius: 20px;
            color: white;
            max-width: 500px;
            z-index: 2;
        }

        .card h2 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .card p {
            font-size: 1rem;
            opacity: 0.8;
        }

        /* ───────── SECTION INDEX ───────── */
        .section-index {
            position: absolute;
            bottom: 20px;
            right: 30px;
            font-size: 2rem;
            color: white;
            opacity: 0.6;
        }

        /* ───────── PALETTE STRIP ───────── */
        .palette-strip {
            position: fixed;
            top: 0;
            left: 0;
            height: 5px;
            width: 100%;
            z-index: 3000;
        }

        /* ───────── PROGRESS BAR ───────── */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 4px;
            width: 0%;
            background: white;
            z-index: 4000;
        }

        /* ───────── HUD COLOR ───────── */
        .hud-color {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 3000;
        }

        .hud-swatch {
            /* width: 40px;
            height: 40px;
            border-radius: 50%; */
            /* background: red; */
        }

        /* ───────── SCROLL HINT ───────── */
        .scroll-hint {
            position: fixed;
            bottom: 20px;
            right: 20px;
            color: white;
            font-size: 14px;
            z-index: 3000;
            text-transform: uppercase;
        }

        .scroll-arrow {
            width: 10px;
            height: 10px;
            border-right: 2px solid white;
            border-bottom: 2px solid white;
            transform: rotate(45deg);
            margin: auto;
            margin-bottom: 5px;
        }

        /* ───────── VIDEO WRAP FIX ───────── */
        .video-wrap {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }

        .custom-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
