* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #060816;
  color: white;
  overflow-x: hidden;
}

:root {
  --surface-glass: rgba(15, 15, 15, 0.75);
  --border: rgba(92, 210, 246, 0.25);
  --accent-primary: #3b0bfb89;
}

/* BACKGROUND */

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, #4f46e5, transparent 30%),
    radial-gradient(circle at bottom right, #9333ea, transparent 30%),
    #060816;
  z-index: -3;
}

.mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  filter: blur(80px);
  z-index: -2;
  transform: translate(-50%, -50%);
}

/* NAVBAR */

.navbar {
  width: 95%;
  height: 80px;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to right, #fff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: .3s;
  position: relative;
}

.nav-links a:hover {
  color: #a855f7;
  text-shadow: 0 0 15px #a855f7;
}


/* SEARCH */
.search-boxcontainer {
  margin-top: -35px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box {
  width: 80%;
  height: 45px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-box input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: white;
}

.search-box input::placeholder {
  color: #cbd5e1;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 150px 8%;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 25px;
}

.hero span {
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero button {
  padding: 16px 35px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(to right, #7c3aed, #ec4899);
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: .4s;
}

.hero button:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

/* button*/
.button {
  width: 9em;
  height: 3em;
  border-radius: 30em;
  font-size: 15px;
  font-family: inherit;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 6px 6px 12px #2120202b,
    -6px -6px 12px #2b292960;
}

.button::before {
  content: '';
  width: 0;
  height: 3em;
  border-radius: 30em;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
  transition: .5s ease;
  display: block;
  z-index: -1;
}

.button:hover::before {
  width: 9em;
}

/* FLOATING POSTERS */

.floating-posters {
  position: relative;
  width: 450px;
  height: 500px;
  margin-top: -30px;
}

.poster {
  position: absolute;
  width: 220px;
  height: 320px;
  border-radius: 25px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.poster1 {
  top: 0;
  left: 0;
  background-image: url('https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?q=80&w=1200&auto=format&fit=crop');
}

.poster2 {
  top: 120px;
  right: 0;
  background-image: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?q=80&w=1200&auto=format&fit=crop');
  animation-delay: 2s;
}

.poster3 {
  bottom: 0;
  left: 90px;
  background-image: url('https://images.unsplash.com/photo-1440404653325-ab127d49abc1?q=80&w=1200&auto=format&fit=crop');
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* GENRES */
.genres-container {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.genres {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 40px;
}

.genres button {
  padding: 12px 22px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  transition: .3s;
  cursor: pointer;
}

.genres button:hover {
  background: #9333ea;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

/* CARDS */

/* =========================
   CINePORTAL PREMIUM CARDS
========================= */

.cards-section {
  padding: 20px;
}

.cards-container {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(220px, 220px));

  justify-content: center;
  gap: 22px;
}

/* CARD */

.movie-card {
  position: relative;
  height: 150px;
  border-radius: 22px;
  overflow: hidden;

  background:
    linear-gradient(145deg,
      rgba(18, 18, 25, 0.95),
      rgba(8, 8, 12, 0.98));

  border: 1px solid rgba(139, 92, 246, 0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    background .35s ease;

  cursor: pointer;
  isolation: isolate;

  text-decoration: none;
}

/* SOFT INNER GLOW */

.movie-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at top left,
      rgba(168, 85, 247, 0.15),
      transparent 45%);

  opacity: .7;

  z-index: 0;
}

/* HOVER LIGHT */

.movie-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0));

  opacity: 0;

  transition: .35s ease;
}

/* CARD HOVER */

.movie-card:hover {

  transform:
    translateY(-8px) scale(1.02);

  border-color:
    rgba(168, 85, 247, 0.9);

  box-shadow:
    0 0 18px rgba(168, 85, 247, .35),
    0 0 50px rgba(168, 85, 247, .12),
    inset 0 0 18px rgba(168, 85, 247, .12);

  background:
    linear-gradient(145deg,
      rgba(28, 20, 45, 1),
      rgba(10, 10, 15, 1));
}

.movie-card:hover::after {
  opacity: 1;
}

/* IMAGE */

.movie-card img {
  position: relative;
  z-index: 2;

  width: 72%;
  max-height: 72px;

  object-fit: contain;

  transition:
    transform .35s ease,
    filter .35s ease;

  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, .06));
}

.movie-card:hover img {
  transform: scale(1.06);

  filter:
    drop-shadow(0 0 12px rgba(168, 85, 247, .28));
}

/* OVERLAY */

.card-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 18px;

  background:
    linear-gradient(to top,
      rgba(0, 0, 0, .92),
      rgba(0, 0, 0, .55),
      transparent);

  opacity: 0;

  transition:
    opacity .35s ease,
    transform .35s ease;

  transform: translateY(12px);

  z-index: 3;
}

.movie-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* TITLE */

.card-overlay h3 {
  color: white;

  font-size: 16px;
  font-weight: 700;

  margin-bottom: 6px;

  letter-spacing: .3px;
}

/* CATEGORY */

.card-overlay p {
  color: #c4b5fd;

  font-size: 13px;

  margin-bottom: 10px;
}

/* TAGS */

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  padding: 5px 10px;

  border-radius: 999px;

  background:
    rgba(168, 85, 247, .16);

  border:
    1px solid rgba(168, 85, 247, .28);

  color: #e9d5ff;

  font-size: 11px;
  font-weight: 600;

  backdrop-filter: blur(10px);
}

/* FEATURED CARD */

.movie-card.featured {
  grid-column: span 2;
  height: 170px;

  border-color:
    rgba(168, 85, 247, .7);

  background:
    linear-gradient(145deg,
      rgba(55, 35, 95, 1),
      rgba(14, 14, 20, 1));

  box-shadow:
    0 0 30px rgba(168, 85, 247, .2);
}

.movie-card.featured img {
  width: 45%;
}

/* ACTIVE STATE */

.movie-card.active {
  border-color:
    #a855f7;

  box-shadow:
    0 0 25px rgba(168, 85, 247, .3);
}

/* REVEAL ANIMATION */

.movie-card {
  opacity: 0;
  transform:
    translateY(35px) scale(.96);

  animation:
    cardReveal .7s ease forwards;
}

.movie-card:nth-child(1) {
  animation-delay: .05s;
}

.movie-card:nth-child(2) {
  animation-delay: .1s;
}

.movie-card:nth-child(3) {
  animation-delay: .15s;
}

.movie-card:nth-child(4) {
  animation-delay: .2s;
}

.movie-card:nth-child(5) {
  animation-delay: .25s;
}

.movie-card:nth-child(6) {
  animation-delay: .3s;
}

.movie-card:nth-child(7) {
  animation-delay: .35s;
}

.movie-card:nth-child(8) {
  animation-delay: .4s;
}

.movie-card:nth-child(9) {
  animation-delay: .45s;
}

.movie-card:nth-child(10) {
  animation-delay: .5s;
}

@keyframes cardReveal {

  to {
    opacity: 1;
    transform:
      translateY(0) scale(1);
  }

}

/* MOBILE */

@media(max-width:768px) {

  .cards-container {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 16px;
  }

  .movie-card {
    height: 120px;
    border-radius: 18px;
  }

  .movie-card img {
    width: 75%;
    max-height: 52px;
  }

  .movie-card.featured {
    grid-column: span 2;
    height: 135px;
  }

  .card-overlay {
    padding: 14px;
  }

  .card-overlay h3 {
    font-size: 14px;
  }

  .card-overlay p {
    font-size: 11px;
  }

  .card-tags span {
    font-size: 10px;
    padding: 4px 8px;
  }

}

/* SMALL MOBILE */

@media(max-width:480px) {

  .cards-container {
    gap: 14px;
  }

  .movie-card {
    height: 105px;
  }

  .movie-card img {
    max-height: 42px;
  }

}

.warning-card {
  margin-top: -120px;
  margin-left: 15px;
  margin-right: 15px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  padding: 20px;
  background: rgba(19, 18, 18, 0.071);
  color: white;
  backdrop-filter: blur(20px);
  transition: .3s;
  cursor: pointer;
}

.community-section-compact {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 35px;
}

.community-links {
  display: flex;
  gap: 30px;
}

.standard-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.inline-icon {
  height: 22px;
  width: auto;
  margin: 0 6px;
  vertical-align: middle;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */

/* =========================
   SLIDE-IN SIDEBAR MENU
========================= */

.mobile-menu {
  position: fixed;

  top: 0;
  right: 0;

  width: 180px;
  max-width: 85%;

  height: 100vh;

  background:
    linear-gradient(180deg,
      rgba(16, 16, 25, 0.98),
      rgba(8, 8, 14, 0.98));

  backdrop-filter: blur(24px);

  border-left:
    1px solid rgba(168, 85, 247, .25);

  box-shadow:
    -10px 0 40px rgba(0, 0, 0, .45);

  display: flex;
  flex-direction: column;

  padding: 90px 28px 30px;

  gap: 14px;

  z-index: 3000;

  transform: translateX(100%);

  transition:
    transform .45s cubic-bezier(.77, 0, .18, 1);

  overflow-y: auto;
}

/* ACTIVE */

.mobile-menu.active {
  transform: translateX(0);
}

/* MENU LINKS */

.mobile-menu a {
  position: relative;

  color: white;
  text-decoration: none;

  font-size: 18px;
  font-weight: 600;

  padding: 16px 18px;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.04);

  border:
    1px solid rgba(255, 255, 255, 0.06);

  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

/* HOVER */

.mobile-menu a:hover {

  transform: translateX(6px);

  background:
    rgba(168, 85, 247, .16);

  border-color:
    rgba(168, 85, 247, .35);

  box-shadow:
    0 0 18px rgba(168, 85, 247, .18);
}

/* CLOSE BUTTON */

.close-btn {
  position: absolute;

  top: 22px;
  right: 22px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    rgba(255, 255, 255, 0.06);

  border:
    1px solid rgba(255, 255, 255, 0.08);

  font-size: 20px;

  cursor: pointer;

  transition:
    transform .25s ease,
    background .25s ease;
}

.close-btn:hover {
  transform: rotate(90deg);

  background:
    rgba(168, 85, 247, .18);
}

/* REAL OVERLAY */

.menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;

  transition: .35s ease;

  z-index: 2500;
}

/* ACTIVE */

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-btn {
  display: none;
}

/* MOBILE ONLY */

@media(min-width:761px) {

  .mobile-menu {
    display: none;
  }

}

@media(max-width:760px) {

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 80px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .floating-posters {
    width: 100%;
    height: 400px;
  }

  .poster {
    width: 160px;
    height: 240px;
  }
}
