/* Legacy global styles and shared layout. Load before assets/css/home.css. */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Mochiy+Pop+One&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  list-style: none;
  outline: none;
  border: none;
  scroll-behavior: smooth;
}

:root {
  --accent: #fff;
  --accent2: #892d0c;
  --bg: #131319;
  --text: #fff;
  --pink: #f59cc2;
  --shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.2);
}

body {
  background: var(--bg);
  color: var(--text);
}

section {
  text-align: center;
}

img {
  width: 100%;
}

p {
  max-width: 500px;
  text-align: center;
  margin: 1rem 0;
  font-size: 1rem;
  font-family: impact;
  margin: 1rem auto;
}

.btn {
  font-family: impact;
  font-size: 1.5rem;
  width: 41%;
  display: inline-block;
  margin: 1rem 0;
  padding: 15px 14px;
  background-color: rgb(45, 45, 45);
  color: whitesmoke;
  transition: 0.2s ease-in-out;
  border-radius: 4px;
}
.btn:hover {
  background-color: var(--pink);
  color: whitesmoke;
  transform: translateY(2px);
}

.section-heading {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-heading span {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 3em;
  padding-left: 0.25em;
  padding-bottom: 10px;
}

/* Header */

header {
  position: fixed;
  z-index: 99;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  transition: 0.5s;
}

header.active {
  box-shadow: var(--shadow);
  background-color: #131319;
}

.logo img {
  width: 32px;
  border-radius: 6px;
  opacity: 0.7;
}

.navigation {
  position: relative;
  display: flex;
}

.navigation a {
  color: var(--text);
  padding: 10px clamp(0.65rem, 1.8vw, 1.75rem);
  margin-right: 0.25rem;
}
.navigation a:hover,
.navigation a.active {
  background-color: #e4e4e4a3;
  border-radius: 10px;
}

.navigation a:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
  border-radius: 10px;
}

#burger-menu {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.35rem;
  border-radius: 8px;
  line-height: 0;
}

#burger-menu:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

#burger-menu:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.burger-btn {
  position: relative;
  z-index: 102;
}

.burger-icon {
  display: block;
}

.burger-icon--close {
  display: none;
}

.burger-btn.is-open .burger-icon--open {
  display: none;
}

.burger-btn.is-open .burger-icon--close {
  display: block;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Home hero (.home) */

.home {
  padding: 60px;
  width: 100%;
  height: 100vh;
  background-image: url("../images/bg2026.png");
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  box-shadow:
    inset 0px 15px 81px -00px rgba(0, 0, 0, 0.5),
    inset 0px -11px 81px 0px rgba(0, 0, 0, 0.5);
  background-attachment: fixed;
  align-items: center;
}

.home-content h1 {
  margin-top: 1rem;
  font-size: clamp(20px, 5vw, 150px);
  position: relative;
  text-align: center;
}
.home-content h1 span {
  color: var(--accent);
  font-family: impact;
}
.home-content p {
  margin-top: 5px;
  font-size: 1rem;
  justify-content: center;
  text-align: center;
  font-family: Impact;
}

/* New Story (legacy) */

.box-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.box-img img {
  width: 80%;
  height: 90%;
  margin-top: 4rem;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.box:hover .box-img img {
  transform: scale(1.2);
}

.news-container {
  margin-top: 2rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Video (legacy) */

.videoContainer {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.videoMP4 {
  width: 100%;
  position: relative;
}

.videoControl {
  width: 100%;
  height: 100%;
}

/* Gameplay slider (legacy) */

.slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-container img {
  width: 50%;
  box-shadow: var(--shadow);
}

.swiper-pagination > .swiper-pagination-bullet {
  opacity: 1;
  border: rgb(111, 111, 111) solid 0.5px;
  background-color: transparent;
}
.swiper-pagination > .swiper-pagination-bullet-active {
  background-color: white;
}

/* Coming Soon (legacy) */

.ComingSoon-container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 1rem auto;
  border: solid 2px rgb(45, 45, 45);
  padding: 30px 30px;
}

.ComingSoon-img img {
  width: 500px;
  height: 50%;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  background: no-repeat top / cover;
}

.ComingSoon-content span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.ComingSoon-content h1 {
  font-size: 2rem;
  margin: 1rem 0;
  font-family: impact;
}

/* Footer (legacy) */

.footer-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-VI {
  margin-top: 2rem;
  width: 100px;
}

.logos-container {
  margin-top: 2rem;
  display: flex;
  justify-content: space-evenly;
}

.logos-container img {
  width: 30px;
  height: 30px;
}

footer {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem 5rem;
}

.footer-box {
  display: flex;
  flex-direction: column;
}

.footer-box h6 {
  font-size: 20px;
  margin-bottom: 1rem;
  font-family: impact;
}

.footer-box a {
  color: var(--accent);
  font-family: impact;
}
.footer-box a:hover {
  color: var(--pink);
  transform: translateY(1px);
}

.footer-social {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}
.footer-social .bx {
  padding: 10px;
  color: whitesmoke;
  border-radius: 50px;
  cursor: pointer;
}

.footer-social .bx:hover {
  color: var(--pink);
}

.copy {
  text-align: center;
  font-size: 13px;
  padding: 0.5rem 0;
}

/* Breakpoints */

@media screen and (max-width: 998px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open header {
    z-index: 100;
  }

  header {
    padding: 1rem 1rem;
  }
  .section {
    padding: 50px 4%;
  }
  #burger-menu {
    display: flex;
  }

  header nav {
    position: static;
  }

  .navigation {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(4.75rem + env(safe-area-inset-top, 0px)) 0
      calc(1.25rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    gap: 0;
    transform: translateX(100%);
    z-index: 101;
    border-radius: 1rem 0 0 1rem;
    border-left: 1px solid rgba(167, 139, 250, 0.28);
    background: rgba(15, 15, 20, 0.92);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navigation li {
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .navigation li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .navigation a {
    display: block;
    padding: 1rem 1.35rem;
    margin-right: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: rgba(243, 244, 246, 0.95);
    border-radius: 0;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      padding-left 0.2s ease;
  }

  .navigation a:hover,
  .navigation a:focus-visible {
    background-color: rgba(126, 58, 242, 0.12);
    color: #e9d5ff;
    padding-left: 1.5rem;
  }

  .navigation a:active {
    background-color: rgba(126, 58, 242, 0.2);
  }

  .navigation a.active {
    color: #c084fc;
    background-color: rgba(126, 58, 242, 0.08);
  }

  .navigation.active {
    transform: translateX(0);
  }

  .ComingSoon-img img {
    width: 280px;
    position: relative;
    height: 50%;
    border-radius: 7px;
    object-fit: contain;
    object-position: center;
    background: no-repeat top / cover;
  }
}

@media screen and (max-width: 481px) {
  .box,
  .box-img {
    height: 300px;
  }

  .home {
    background: url("../images/GTA6_background-mobile.jpg");
    background-position: top;
  }

  .home-content h1 {
    font-size: 20px;
    position: relative;
    text-align: center;
  }
  .home-content p {
    font-size: 0.7rem;
    justify-content: center;
    text-align: center;
  }

  .ComingSoon-content h1 {
    font-size: 1rem;
    margin: 1rem 0;
    font-family: impact;
  }
  .ComingSoon img {
    max-width: 150px;
  }
  p {
    font-size: 1rem;
    margin: 1rem auto;
    font-family: impact;
  }

  .btn {
    font-size: 1rem;
    width: 60%;
    padding: 10px 10px;
  }

  .copy {
    font-size: 7px;
  }

  .slider-container img {
    width: 90%;
  }
}
