@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {  
  background:
    radial-gradient(circle at top, #1d1d1d 0%, #0f0f0f 45%, #080808 100%);

  color: white;

  font-family: 'Inter', sans-serif;

  overflow-x: hidden;
}

/* CINEMATIC OVERLAY */

body::before {

  content: '';

  position: fixed;

  inset: 0;

  background:
    linear-gradient(
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.25)
    );

  pointer-events: none;

  z-index: -1;
}

/* NAVBAR */

/*
nav {

  position: fixed;

  top: 0;

  width: 100%;

  z-index: 9999;

  display: flex;

  align-items: center;

  padding:
    22px
    60px;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.88),
      rgba(0,0,0,0.15)
    );

  backdrop-filter: blur(10px);

  border-bottom:
    1px solid rgba(255,255,255,0.03);
}

.logo {

  position: absolute;

  left: 60px;

  font-family: 'Bebas Neue', sans-serif;

  font-size: 2.2rem;

  letter-spacing: 1px;

  color: #e50914;

  text-decoration: none;

  transition: 0.25s ease;
}

.logo:hover {

  opacity: 0.8;
}

.nav-links {

  width: 100%;

  display: flex;

  justify-content: center;

  gap: 55px;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 22px 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.15));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-links a {

  position: relative;

  color: #f1f1f1;

  text-decoration: none;

  font-size: 0.92rem;

  font-weight: 600;

  letter-spacing: 0.5px;

  transition: 0.25s ease;
}

.nav-links a::after {

  content: '';

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0%;

  height: 2px;

  background: #e50914;

  transition: 0.25s ease;
}

.nav-links a:hover {

  color: white;
}

.nav-links a:hover::after {

  width: 100%;
}
*/

/* FILTROS */

.portfolio-filters {

  max-height: 0;

  overflow: hidden;

  opacity: 0;

  padding: 0 54px;

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;

}

.portfolio-filters.open {

  max-height: 700px;

  opacity: 1;

  padding-top: 20px;

  padding-bottom: 20px;
  
}

.filter-group {

  margin-bottom: 40px;

}

.filter-group h3 {

  color: #8f8f8f;

  text-transform: uppercase;

  letter-spacing: 2px;

  font-size: 0.75rem;

  font-weight: 700;

  margin-bottom: 12px;

  text-align: center;

}

.filter-chips {
  
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

}

.filter-chip {

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

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

  color: #d8d8d8;

  padding: 10px 16px;

  border-radius: 999px;

  font-size: 0.9rem;

  font-family: inherit;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;

}

.filter-chip:hover {

  border-color: #e50914;

  color: white;

  transform: translateY(-1px);

}

.filter-chip.active {

  background: #e50914;

  border-color: #e50914;

  color: white;

  font-weight: 600;

  box-shadow:
    0 0 18px rgba(229,9,20,0.35);

}

.filters-toggle {
  
    display: flex;

    justify-content: center;

    margin-bottom: 40px;

}

.filters-inner {

    max-width: 1300px;

    margin: 0 auto;

}

#filters-button {

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

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

  color: white;

  padding: 12px 22px;

  border-radius: 999px;

  font-family: inherit;

  font-size: 0.95rem;

  cursor: pointer;

  transition: all 0.25s ease;

}

#filters-button:hover {

  border-color: #e50914;

  box-shadow:
    0 0 15px rgba(229,9,20,0.25);

}

/* HERO */

.hero {

  height: 72vh;

  position: relative;

  display: flex;

  align-items: center;

  padding:
    120px
    70px
    80px;

  overflow: hidden;
}

/* HERO BACKGROUND */

.hero::before {

  content: '';

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.92) 10%,
      rgba(0,0,0,0.45) 45%,
      rgba(0,0,0,0.65) 100%
    ),
    linear-gradient(
      to top,
      rgba(10,10,10,1) 0%,
      rgba(10,10,10,0.2) 35%
    ),
    url('../images/hero-bg.jpg');

  background-size: cover;

  background-position: center;

  filter:
    saturate(0.9)
    brightness(0.85);

  transform: scale(1.02);
}

/* HERO CONTENT */

.hero-content {

  position: relative;

  z-index: 2;

  max-width: 760px;
}

.hero-subtitle {

  color: #e50914;

  font-size: 0.95rem;

  font-weight: 700;

  letter-spacing: 3px;

  margin-bottom: 18px;

  text-transform: uppercase;
}

.hero h1 {

  font-family: 'Bebas Neue', sans-serif;

  font-size: 7rem;

  line-height: 0.92;

  letter-spacing: 2px;

  margin-bottom: 24px;

  text-shadow:
    0 5px 25px rgba(0,0,0,0.6);
}

.hero-description {

  color: #d0d0d0;

  font-size: 1.08rem;

  line-height: 1.8;

  max-width: 650px;

  margin-bottom: 32px;
}

/* PLATFORM TAGS */

.platforms {

  display: flex;

  flex-wrap: wrap;

  gap: 14px;
}

.platform {

  color: #bdbdbd;

  font-size: 0.92rem;

  font-weight: 500;

  letter-spacing: 0.3px;

  transition: 0.25s ease;
}

.platform:hover {

  color: white;
}

/* MAIN */

main {

  position: relative;

  z-index: 5;

  margin-top: -70px;

  padding:
    0
    0
    120px;
}

/* YEAR SECTION */

.year-section {

  margin-bottom: 10px;
}

.year-section h2 {

  font-size: 2rem;

  font-weight: 800;

  margin-bottom: 8px;

  padding-left: 70px;
}

/* CAROUSEL */

.carousel-wrapper {

  position: relative;
}

.carousel {

  display: flex;

  gap: 18px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;

  scrollbar-width: none;

  padding:
    35px
    70px
    20px;
}

.carousel::-webkit-scrollbar {

  display: none;
}

/* CARD */

.card {

  min-width: 325px;
  max-width: 325px;

  position: relative;
  overflow: visible;

  flex-shrink: 0;

  transition:
    transform 0.28s ease,
    z-index 0.28s ease;

  z-index: 1;
}

.card:hover,
.card.video-playing {

  transform: scale(1.18);

  z-index: 500;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.8);
}

.card:hover .overlay,
.card.video-playing .overlay {

  opacity: 1;

  transform: translateY(0);

  pointer-events: auto;
}

/* IMAGE */

.card-image {

  position: relative;

  overflow: hidden;

  border-radius: 12px 12px 0 0;

  background: black;
}

.card-image::after {

  content: '';

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.6),
      rgba(0,0,0,0)
    );

  opacity: 0;

  transition: 0.25s ease;

  pointer-events: none;
}

.card:hover .card-image::after {

  opacity: 1;
}

.card img,
.card iframe {

  width: 100%;

  height: 220px;

  object-fit: cover;

  object-position: top;

  display: block;

  border: none;

  transition: transform 0.35s ease;
}

.card:hover img {

  transform: scale(1.03);
}

/* OVERLAY */

.overlay {

position: relative;

top: auto;
left: auto;
right: auto;

  background:
    linear-gradient(
      to bottom,
      #1f1f1f,
      #121212
    );

  height: 260px;

  padding: 18px;

  border-radius: 0 0 12px 12px;

  opacity: 0;

  transform: translateY(-8px);

  transition: 0.22s ease;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.85);

  border-top:
    1px solid rgba(255,255,255,0.04);

  z-index: 10;
}

/* VIDEO ACTIVE */

.overlay.video-active {

  pointer-events: none;
}

.overlay.video-active .play-btn {

  pointer-events: auto;
}

/* TOP ROW */

.top-row {

  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 14px;
}

/* PLAY */

.play-btn {

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background: white;
  color: black;

  display: flex;

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

  font-size: 1rem;

  font-weight: bold;

  cursor: pointer;

  flex-shrink: 0;

  transition: 0.22s ease;

  user-select: none;
}

.play-btn:hover {

  transform: scale(1.08);

  background: #ececec;
}

/* META */

.meta {

  display: flex;

  align-items: center;

  gap: 18px;
}

.age {

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

  padding:
    4px
    8px;

  border-radius: 4px;

  color: #d0d0d0;

  font-size: 0.82rem;
}

.type {

  color: #d0d0d0;

  font-size: 0.92rem;
}

/* GENRES */

.genres {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-bottom: 18px;
}

.genre {

  color: #d0d0d0;

  font-size: 0.85rem;
}

.genre::after {

  content: '•';

  margin-left: 6px;
}

.genre:last-child::after {

  display: none;
}

/* BADGE */

.badge {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-size: 0.84rem;

  color: #f1f1f1;
}

.badge-icon {

  color: #46d369;
}

/* PROJECT ROLE */

.project-role {

    display: inline-block;

    padding: 6px 12px;

    border: 1px solid #e50914;

    color: #e50914;

    font-size: 0.72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

}

.project-platform {

    display: block;

    margin-top: 18px;

    margin-bottom: 14px;

    color: #ffffff;

    font-size: 0.85rem;

    font-weight: 600;

}

.project-title {

    margin-top: 14px;

    margin-bottom: 12px;

    font-size: 1rem;

    font-weight: 700;

    color: white;

    letter-spacing: 0.3px;
}

/* ARROWS */

.arrow {

  position: absolute;

  top: 37%;

  transform: translateY(-50%);

  width: 42px;

  height: 42px;

  border-radius: 50%;

  border: none;

  background:
    rgba(20,20,20,0.75);

  color: white;

  cursor: pointer;

  z-index: 999;

  font-size: 1.7rem;

  transition: 0.25s ease;

  backdrop-filter: blur(5px);

  display: flex;

  align-items: center;

  justify-content: center;
}

.arrow:hover {

  background:
    rgba(15,15,15,0.96);
}

.arrow-left {

  left: 12px;
}

.arrow-right {

  right: 12px;
}

/* MOBILE */

@media (max-width: 768px) {

  nav {

    padding:
      18px
      24px;
  }

  .logo {

    font-size: 1.7rem;
  }

  .nav-links {

    gap: 20px;
  }

  .hero {

    height: auto;

    padding:
      150px
      30px
      90px;
  }

  .hero h1 {

    font-size: 4rem;
  }

  .hero-description {

    font-size: 1rem;
  }

  main {

    padding:
      0
      20px
      100px;
  }

  .card {

    min-width: 240px;
    max-width: 240px;
    overflow: visible;
  }

}

.search-container {

    max-width: 900px;

    margin: 0 auto 40px auto;

}

#title-search {

    width: 100%;

    padding: 14px 18px;

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

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

    border-radius: 12px;

    color: white;

    font-size: 0.95rem;

    font-family: inherit;

    transition: all 0.25s ease;

}

#title-search::placeholder {

    color: rgba(255,255,255,0.45);

}

#title-search:focus {

    outline: none;

    border-color: #e50914;

    box-shadow:
        0 0 15px rgba(229,9,20,0.2);

}
