@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500&display=swap");

:root {
  --primary-color: #ecad29;
  --text-color: rgba(255, 255, 255, 0.9);
  --font-inter: "Inter", sans-serif;
  --font-oswald: "Oswald", sans-serif;
}

body {
  margin: 0;
  background-color: #0d0e12;
  color: var(--text-color);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-inter);
  min-height: 100vh;
  width: 100%;
}

.home-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}

/* Immersive background card */
.card {
  position: absolute;
  left: 0;
  top: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.card-media {
  position: absolute;
  inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: center;
  animation: image-drift 46s ease-in-out infinite;
  will-change: transform;
}

/* Legibility overlay for cards */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

/* Content inside the small cards */
.card-content {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-color);
  padding: 14px;
  pointer-events: none;
  z-index: 45;
  font-family: var(--font-inter);
  width: 200px;
  height: 100px;
  overflow: hidden;
}

.content-place {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
}

.content-source {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  margin-bottom: 5px;
  min-width: 0;
}

.content-source img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}

.content-title-1,
.content-title-2 {
  font-weight: 500;
  font-size: 14px;
  font-family: var(--font-oswald);
  text-transform: uppercase;
  line-height: 1.08;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.content-title-2 {
  -webkit-line-clamp: 1;
}

.content-start {
  width: 20px;
  height: 3px;
  border-radius: 99px;
  background-color: var(--primary-color);
}

/* Active slide details box */
.details {
  z-index: 70;
  position: absolute;
  top: clamp(120px, 25vh, 260px);
  left: clamp(20px, 6vw, 100px);
  pointer-events: none;
  width: min(620px, calc(100vw - 40px));
}

.details .place-box {
  height: 46px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.details .place-box .text {
  padding-top: 16px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  position: relative;
}

.details .place-box .text::before {
  top: 0;
  left: 0;
  position: absolute;
  content: "";
  width: 30px;
  height: 4px;
  border-radius: 99px;
  background-color: var(--primary-color);
}

.details .title-1,
.details .title-2 {
  font-weight: 600;
  font-size: clamp(28px, 6vw, 68px);
  font-family: var(--font-oswald);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.details .title-box-1,
.details .title-box-2 {
  margin-top: 2px;
  height: clamp(34px, 7vw, 80px);
  overflow: hidden;
}

.details > .desc {
  margin-top: 16px;
  width: min(550px, 85vw);
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.details > .cta {
  width: min(550px, 85vw);
  margin-top: 24px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.details > .cta > .bookmark {
  border: none;
  background-color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 99px;
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.details > .cta > .bookmark:hover {
  transform: scale(1.1);
  background-color: #d89617;
}

.details > .cta > .bookmark img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.92);
}

.details > .cta > .discover {
  border: 1px solid #ffffff;
  background-color: transparent;
  height: 40px;
  border-radius: 99px;
  color: #ffffff;
  padding: 4px 24px;
  font-size: 12px;
  margin-left: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.details > .cta > .discover:hover {
  background-color: #ffffff;
  color: #0d0e12;
  border-color: #ffffff;
}

/* Sleek transparent / glassmorphic navbar */
nav {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 100px);
  font-weight: 500;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

nav .brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-oswald);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  text-decoration: none;
}

nav .brand-logo {
  width: 28px;
  height: 28px;
}

nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
}

nav .nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}

nav .nav-links a:hover {
  color: #ffffff;
}

nav .nav-links a.active {
  color: var(--primary-color);
  position: relative;
}

nav .nav-links a.active::after {
  bottom: -8px;
  left: 0;
  right: 0;
  position: absolute;
  content: "";
  height: 2px;
  border-radius: 99px;
  background-color: var(--primary-color);
}

nav .play-badge {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

nav .play-badge:hover {
  transform: scale(1.05);
}

/* Autoplay indicator line */
.indicator {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 110;
  background-color: rgba(255, 255, 255, 0.75);
  transform-origin: left;
}

/* Pagination container */
.pagination {
  position: absolute;
  display: inline-flex;
  align-items: center;
}

.pagination > .arrow {
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
  color: inherit;
  padding: 0;
}

.pagination > .arrow:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.pagination > .arrow:active {
  transform: scale(0.95);
}

.pagination > .arrow:nth-child(2) {
  margin-left: 12px;
}

.pagination > .arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  color: #ffffff;
}

.pagination .progress-sub-container {
  margin-left: 24px;
  z-index: 60;
  width: clamp(150px, 20vw, 300px);
  height: 50px;
  display: flex;
  align-items: center;
}

.pagination .progress-sub-container .progress-sub-background {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.pagination .progress-sub-container .progress-sub-background .progress-sub-foreground {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
}

.pagination .slide-numbers {
  width: 50px;
  height: 50px;
  overflow: hidden;
  z-index: 60;
  position: relative;
  margin-left: 12px;
}

.pagination .slide-numbers .item {
  width: 50px;
  height: 50px;
  position: absolute;
  color: white;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-oswald);
}

/* Dark/white screen entrance cover */
.cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  background-color: #0d0e12;
  z-index: 1000;
}

.nh-footer {
  position: relative;
  z-index: 2;
}

.nh-footer .container {
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 10vw, 180px);
}

.nh-footer .left-footer,
.nh-footer .div-footer {
  flex: 0 0 auto;
  min-width: 0;
}

.nh-footer .badge-link {
  display: inline-flex;
  align-items: center;
  width: 203px;
  height: 60px;
}

.nh-footer .play-store-badge {
  display: block;
  width: 203px;
  height: 60px;
  max-width: none;
  object-fit: contain;
}

@keyframes image-drift {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1.04);
  }
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
  body {
    width: 100%;
  }
  .home-stage {
    min-height: 700px;
    padding-bottom: 96px;
    box-sizing: border-box;
  }
  nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 18px 14px;
    gap: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.24) 100%);
  }
  nav .brand-container {
    gap: 10px;
    font-size: 21px;
    line-height: 1;
  }
  nav .brand-logo {
    width: 25px;
    height: 25px;
  }
  nav .nav-links {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
    font-size: 10px;
    letter-spacing: 1.7px;
    line-height: 1.2;
    white-space: nowrap;
    scrollbar-width: none;
  }
  nav .nav-links::-webkit-scrollbar {
    display: none;
  }
  nav .nav-links a.active::after {
    bottom: -8px;
    height: 2px;
  }
  .details > .desc {
    margin-top: 12px;
    max-height: none;
    overflow: visible;
  }
  .details > .cta {
    margin-top: 16px;
  }
  .pagination .progress-sub-container {
    width: clamp(96px, 32vw, 160px);
    margin-left: 14px;
  }
  .nh-footer .container {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .home-stage {
    min-height: 735px;
    padding-bottom: 112px;
  }
  .details {
    top: 132px;
    left: 18px;
    width: calc(100vw - 36px);
  }
  .details .title-1,
  .details .title-2 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.04;
  }
  .details .title-box-1,
  .details .title-box-2 {
    height: auto;
    min-height: clamp(30px, 8vw, 40px);
    overflow: visible;
  }
  .card-content {
    width: 124px;
    height: 82px;
    padding: 10px;
  }
  .content-title-1,
  .content-title-2 {
    font-size: 11px;
    line-height: 1.05;
  }
  .content-place {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .content-source {
    gap: 5px;
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .content-source img {
    width: 13px;
    height: 13px;
  }
  .pagination {
    transform: scale(0.86);
    transform-origin: left center;
  }
  .pagination .progress-sub-container {
    display: none;
  }
  nav .brand-container {
    font-size: 19px;
  }
  nav .nav-links {
    gap: 17px;
    font-size: 9px;
    letter-spacing: 1.4px;
  }
}

@media (max-width: 380px) {
  nav {
    padding-left: 14px;
    padding-right: 14px;
  }
  nav .nav-links {
    gap: 15px;
  }
  .details {
    top: 136px;
  }
}
