* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Arial, sans-serif;
  background-color: #000;
  color: #fff;
}

/* ================= TOP BAR ================= */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(0,0,0,0.6);
  z-index: 10;
}

.logo {
  font-weight: 700;
}

.top-bar nav a {
  margin: 0 14px;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.top-bar nav a.active {
  color: #fff;
}

.cta {
  background: #e05252;
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Background video styling (local file) */
.hero .background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* fade video in once ready to avoid black flicker on navigation */
.hero .background-video {
  opacity: 0;
  transition: opacity 350ms ease;
}
.hero .background-video.ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2), rgba(0,0,0,0.9));
  z-index: 1;
}

.hero-center {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 900px;
  z-index: 3;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 4px;
  opacity: 0.7;
}

.hero-center h1 {
  font-size: 56px;
  margin: 16px 0;
}

.hero-center p {
  opacity: 0.85;
}

/* ================= VALUES ================= */

.values {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 40px;
  background: linear-gradient(transparent, #000);
  z-index: 4;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 18px;
}

/* TAB BUTTON */
.values-tab-btn {
  background: none;
  border: none;
  color: #aaa;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-bottom: 12px;
  overflow: hidden;
}

/* BASE LINE */
.values-tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.15);
}

/* PROGRESS BAR */
.values-tab-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: #e05252;
}

/* ACTIVE */
.values-tab-btn.active {
  color: #fff;
}

.values-tab-btn.active::before {
  animation: tabProgress 10s linear forwards;
}

/* PROGRESS ANIMATION */
@keyframes tabProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ================= GRID ================= */

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  font-size: 13px;
  line-height: 1.6;
}

.values-grid h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.values-grid p {
  opacity: 0.75;
}

/* ================= PAGE-SPECIFIC BACKGROUNDS ================= */
/* ================= PAGE-SPECIFIC BACKGROUNDS ================= */

/* Page-specific hero backgrounds removed */

/* ================= MUSIC CONTROL ================= */
.music-control {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}
.music-control .music-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.music-control .music-toggle.on {
  background: linear-gradient(135deg, #e05252, #ff8a5b);
  color: #000;
}
.music-control .music-toggle:focus { outline: 2px solid rgba(224,82,82,0.25); }

/* Popover with slider */
.music-control { font-family: Inter, Arial, sans-serif; }
.music-control .music-popover{
  position: absolute;
  right: 56px;
  bottom: -6px;
  transform: translateY(6px);
  background: rgba(6,8,12,0.88);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 10px;
  min-width:180px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6);
  display: none;
  align-items: center;
  gap:10px;
}
.music-control.expanded .music-popover{ display:flex; }
.music-range{ width:120px; appearance:none; height:6px; border-radius:6px; background:linear-gradient(90deg,#444,#222); outline:none; }
.music-range::-webkit-slider-thumb{ appearance:none; width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,#ffd29a,#cfae70);box-shadow:0 4px 12px rgba(0,0,0,0.4); cursor:pointer }
.music-control .vol-label{ color:#cfdcff;font-size:12px;min-width:36px;text-align:center }
.music-control .mute-btn{ background:transparent;border:1px solid rgba(255,255,255,0.04);padding:6px 8px;border-radius:8px;color:#fff;cursor:pointer }

/* When placed inside the top bar, align next to the CTA */
.top-bar .music-control {
  position: absolute;
  right: 140px; /* sits left of the CTA; adjust if needed */
  top: 10px;
  bottom: auto;
}
.top-bar .music-control .music-toggle {
  width: 40px;
  height: 40px;
}
