@font-face {
  font-family: "Serambhi Ramadhan";
  src: url("fonts/SerambiRamadhan.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Serambi Ramadhan";
  src: url("fonts/SerambiRamadhan.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Slopes";
  src: url("fonts/Slopes.ttf") format("truetype");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Neutralize browser Scroll-to-Text fragment highlight (e.g. Google Search "Read more") */
::target-text {
  background-color: transparent !important;
  color: inherit !important;
  text-shadow: inherit !important;
}

::selection {
  background-color: rgba(255, 59, 30, 0.4);
  color: #ffffff;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #0c1014;
  -webkit-font-smoothing: antialiased;
}

/* Background Video: fullscreen, center crop, looped, no controls */
.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Subtle dark tint over video for high contrast text readability */
.video-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
  z-index: 1;
  pointer-events: none;
}

/* Center main hero container horizontally and vertically */
.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  user-select: none;
  width: 80vw;
  max-width: 80vw;
}

/* Brand group wraps the title, tagline, and coming-soon as a unified vertically centered block */
.brand-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Title is centered horizontally */
.title {
  font-family: "Serambhi Ramadhan", "Serambi Ramadhan", serif;
  font-size: clamp(3.2rem, 15vw, 15rem);
  font-weight: normal;
  line-height: 0.95;
  color: #ffffff;
  text-shadow:
    0 4px 28px rgba(0, 0, 0, 0.85),
    0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}

/* Tagline: In normal document flow right below the title, shifted slightly to left after K */
.tagline {
  font-family: "Slopes", cursive, sans-serif;
  font-size: clamp(1.2rem, 4.8vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #ff3b1e;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.95),
    0 4px 16px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(255, 59, 30, 0.45);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  margin-top: clamp(-6px, -1vw, 2px);
  margin-bottom: clamp(14px, 2.5vw, 28px);
  transform: translateX(-15%);
}

/* Coming soon sitting clearly below the tagline */
.coming-soon {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  font-size: clamp(0.95rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  margin: 0 0 clamp(16px, 2.6vw, 30px) 0;
}

/* Countdown Container */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 18px);
  margin-top: 0;
  user-select: none;
}

/* Individual Unit Card */
.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(58px, 8.5vw, 92px);
  padding: clamp(7px, 1.1vw, 13px) clamp(10px, 1.6vw, 20px);
  background: rgba(12, 16, 20, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-radius: clamp(8px, 1.1vw, 12px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(255, 59, 30, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.countdown-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 59, 30, 0.45);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(255, 59, 30, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Digits */
.countdown-value {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  font-size: clamp(1.4rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(255, 59, 30, 0.35);
  letter-spacing: 0.02em;
}

/* Unit Label */
.countdown-label {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  font-size: clamp(0.55rem, 0.9vw, 0.72rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: clamp(0.12em, 0.2em, 0.26em);
  color: #ff5733;
  margin-top: clamp(4px, 0.6vw, 7px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  opacity: 0.95;
}

/* Colons between cards */
.countdown-sep {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: rgba(255, 59, 30, 0.7);
  text-shadow: 0 0 12px rgba(255, 59, 30, 0.45);
  margin-bottom: clamp(10px, 1.6vw, 18px);
  line-height: 1;
}

/* Mobile & smaller screens: takes 90% of max width */
@media (max-width: 768px) {
  .hero {
    width: 90vw;
    max-width: 90vw;
  }

  .title {
    font-size: clamp(2.8rem, 16.5vw, 6rem);
  }

  .tagline {
    font-size: clamp(1.1rem, 5.8vw, 2.4rem);
    margin-top: -2px;
    margin-bottom: 16px;
    transform: translateX(-12%);
  }

  .coming-soon {
    font-size: clamp(0.85rem, 4.2vw, 1.8rem);
    letter-spacing: 0.32em;
    margin-bottom: clamp(14px, 3.2vw, 22px);
  }

  .countdown {
    gap: clamp(6px, 1.4vw, 12px);
  }

  .countdown-card {
    min-width: clamp(52px, 12vw, 72px);
    padding: clamp(6px, 1.3vw, 10px) clamp(8px, 1.6vw, 14px);
    border-radius: 8px;
  }

  .countdown-value {
    font-size: clamp(1.25rem, 4.2vw, 1.9rem);
  }

  .countdown-label {
    font-size: clamp(0.5rem, 1.6vw, 0.65rem);
    letter-spacing: 0.16em;
  }

  .countdown-sep {
    font-size: clamp(1rem, 3.2vw, 1.5rem);
    margin-bottom: clamp(8px, 1.8vw, 12px);
  }
}

/* Extra small screens (e.g. phones <= 480px): hide colons for a sleek, compact fit */
@media (max-width: 480px) {
  .countdown-sep {
    display: none;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-card {
    min-width: 58px;
    padding: 7px 8px;
  }

  .countdown-value {
    font-size: 1.35rem;
  }

  .countdown-label {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
  }
}

/* Landscape / short viewports: keep hero vertically centered without clipping */
@media (max-height: 520px) {
  .title {
    font-size: clamp(2rem, 9vh, 3.6rem);
  }

  .tagline {
    font-size: clamp(0.85rem, 3.8vh, 1.5rem);
    margin-top: 0;
    margin-bottom: 6px;
  }

  .coming-soon {
    font-size: clamp(0.7rem, 2.8vh, 1.1rem);
    margin-bottom: 8px;
    letter-spacing: 0.28em;
  }

  .countdown-card {
    min-width: 46px;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .countdown-value {
    font-size: clamp(1rem, 4.2vh, 1.35rem);
  }

  .countdown-label {
    font-size: 0.48rem;
    margin-top: 2px;
  }

  .countdown-sep {
    font-size: 1rem;
    margin-bottom: 8px;
  }
}
