/* css/styles.css */

/* ===== Variables & Reset ===== */
:root {
  --font-sans:    "Poppins", sans-serif;
  --font-serif:   "Playfair Display", serif;
  --color-bg:     #111;
  --color-text:   #fff;
  --gradient-1:   #8e2de2;
  --gradient-2:   #4a00e0;
  --card-bg:      rgba(255,255,255,0.05);
  --card-bg-hov:  rgba(255,255,255,0.12);
  --card-width:   350px;
  --card-height:  420px;
}

/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  padding-top: 70px; /* header height */
}

/* utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  padding: 0;
}

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-bg);
  z-index: 10;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.header__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gradient-1);
  text-decoration: none;
}
.header__nav .nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav__item a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav__item a:hover {
  color: var(--gradient-2);
}

/* ===== Hero ===== */
.hero {
  position: relative;           /* positioning context */
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  overflow: hidden;
}
.hero__inner {
  position: relative;           /* enable z-index */
  z-index: 1;                   /* above the blob */
}
.hero__title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.1;
}
.hero__subtitle {
  margin: 1rem 0 2rem;
  font-weight: 300;
  font-size: 1.2rem;
  opacity: 0.85;
}
.hero__btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--gradient-2), var(--gradient-1));
  cursor: pointer;
  transition: transform 0.3s;
}
.hero__btn:hover {
  transform: scale(1.05);
}

/* blob background sits behind text */
.blob-bg {
  position: absolute;
  top: 0; left: 0;
  width: 120%;
  height: 120%;
  transform: translate(-10%, -10%);
  z-index: 0;                   /* behind .hero__inner */
}
.blob-bg__svg {
  width: 100%;
  height: 100%;
}

/* ===== Platforms ===== */
.platforms {
  padding: 2rem 0 4rem;
}
.platforms__list {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -ms-overflow-style: none;     /* hide scrollbar IE/Edge */
  scrollbar-width: none;        /* hide scrollbar Firefox */
}
.platforms__list::-webkit-scrollbar {
  display: none;                /* hide scrollbar Chrome/Safari */
}

.platform-card {
  flex: 0 0 var(--card-width);
  height: var(--card-height);
  background: var(--card-bg);
  border-radius: 16px;
  scroll-snap-align: start;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-card:hover {
  background: var(--card-bg-hov);
}
.platform-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 2rem 1rem;
  height: 100%;
  box-sizing: border-box;
}
.platform-card__logo {
  width: 85%;
  height: 70%;
  margin-bottom: 1rem;
}
.platform-card__info {
  margin-top: auto;             /* push info to bottom */
  text-align: center;
}
.platform-card__name {
  display: block;
  font-weight: 600;
  font-size: 1.2rem;
}
.platform-card__channel {
  display: block;
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ===== Carousel Dots ===== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: #fff;
}

/* ===== Footer ===== */
.footer {
  background: #0d0d0d;
  padding: 1.5rem 0;
  text-align: center;
}
.footer__inner p {
  font-size: 0.9rem;
  color: #aaa;
}
