@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

::-webkit-scrollbar { width: 0; height: 0; }
::selection { background: #ffb0c4; color: #36364e; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #fff;
}

section h1, article h1, aside h1, nav h1 {
  font-size: 2.5rem;
}

.banner, .gta6-logo, .people, .places, .about-gta6, .coming-soon {
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

.banner {
    position: sticky; top: 0; left: 0; height: 100vh;
    display: flex; align-items: center;
    background: transparent;
}

.logo-mask {
    width: 100%; height: 100vh; position: absolute;
    background: rgba(12,24,38,1);
    mix-blend-mode: multiply; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    animation: cinematicLogo 2s ease;
    overflow: hidden;
}
.logo-mask img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    will-change: transform, opacity;
    /* Remove heavy box-shadows or filters here */
}

@keyframes cinematicLogo {
    0% { opacity: 0; transform: scale(900);}
    80%,90%,100% { opacity: 1; transform: scale(1);}
    85% { transform: scale(1.2);}
    95% { transform: scale(1.1);}
}

.gta-bg {
    width: 100%; height: 100%; position: absolute;
    background: url(/images/GTA6-BG.webp) center/cover no-repeat;
}

.gta6-logo {
    height: 100vh;
    background: transparent url(/images/4k-Grand-Theft-Auto-VI-Logo-4K-Wallpaper.png) 95% 50%/40% no-repeat;
    mix-blend-mode: lighten;
}

.people {
    display: flex; align-items: center; justify-content: center;
    background: transparent;
}

.character-container {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
    position: absolute;
}

.characters {
    position: absolute; top: 0; right: 0; width: 40%; height: 100%;
    padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-start;
    background: linear-gradient(to bottom left, #1c1829,#111117);
    overflow-y: auto; overflow-x: hidden;
}
.characters h1 {
    color: #fff; font-size: min(4vw, 256px); font-weight: 600;
    margin-bottom: -0.5rem; cursor: pointer; transition: color 0.2s;
}
.characters h1:hover { color: #fff9cb; }

.characters-image, .characters-image-bg {
    position: absolute; top: 0; left: 0; width: 60%; height: 100%;
    background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center;
}
.characters-image-bg {
    background-image: url(/images/4k-Grand-Theft-Auto-VI-Logo-4K-Wallpaper.png);
    background-repeat: no-repeat; mix-blend-mode: darken;
}

.character-modal {
  position: fixed;
  inset: 0;
  background: rgba(60, 40, 90, 0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.character-modal-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background: radial-gradient(circle at 50% 40vh, #ffd37bda 0, #df3a92da 60%, #5d1663d0 100%);
  padding: 2rem;
  width: 100vw;
  height:100%;
  box-shadow: 0 8px 40px #0008;
  gap: 4rem;
  position: relative;
}
.character-modal-back {
  position: absolute;
  top: 32px;
  left: 32px;
  background: #e6c6e6;
  color: #5a3d7d;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s;
}
.character-modal-back:hover {
  background: #fff;
}
.character-modal-left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 320px;
  max-width: 420px;
}
.char-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffd6e0;
  margin-bottom: 0.5em;
  letter-spacing: 2px;
}
.char-subtitle {
  font-size: 1.1rem;
  color: #ffe97b;
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.char-info {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.character-modal-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 260px;
  max-width: 340px;
}
.char-image-card {
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 24px #0004;
  background: transparent;
  margin-bottom: 0;
}
.char-image-card img {
  width: 100%;
  object-fit: cover;
  display: block;
  border: none;
    transition: transform 0.3s ease;
    cursor:pointer;
}
.char-image-card img:hover{
    transform: scale(1.05);
}

.video-section {
    height: 300vh; position: relative;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
}
.video-container {
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #000;
}
.video-wrapper {
    position: relative; width: 90%; max-width: 1200px; aspect-ratio: 16/9;
    overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); background: #000;
}
video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg,rgba(102,126,234,0.1) 0%,rgba(118,75,162,0.1) 100%);
    pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
@media (max-width: 768px) {
    .video-wrapper { width: 95%; border-radius: 15px; }
}
.video-overlay-text{
    position: absolute; top:24px;left:24px;
    text-align: left;line-height: 4rem;
    background-image: radial-gradient(225.46% 169.6% at 50% 90%, #ffd27b 0, #df3a93 33.33%, #5c1663 66.67%, rgba(32,31,66,0) 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.places {
    height: 120vh;
    background-image: radial-gradient(circle at 50% 40vh, #ffd37bda 0, #df3a92da 60%, #5d1663d0 100%);
    overflow: hidden;
}

#gallery {
    background: transparent;
    height: 140vmax; width: 140vmax; position: absolute;
}

.tile {
    border: none; position: absolute; transition: transform 800ms cubic-bezier(.4,2,.6,1);
    cursor: pointer; color: #fff;
}
.tile:hover { color: #fff9cb; }
.tile:hover > img { transform: scale(1.05); }
.tile > img {
    height: 100%; width: 100%; object-fit: cover; opacity: 1;
    transition: all 800ms cubic-bezier(.4,2,.6,1);
}
.tile:nth-child(1) { background: #ffee58; height: 14%; width: 20%; left: 5%; top: 5%; }
.tile:nth-child(2) { background: #42a5f5; height: 24%; width: 14%; left: 42%; top: 12%; }
.tile:nth-child(3) { background: #ef5350; height: 18%; width: 16%; left: 12%; top: 34%; }
.tile:nth-child(4) {
    background: #66bb6a; border:2px solid #ffd27b; border-radius: 50%; height: 14%; width: 14%; left: 45%; top: 48%;
    display: flex; align-items: center; justify-content: center;transition: border 0.3s ease;
}
.tile:nth-child(4):hover {border:8px solid #ffd27b;}
.tile:nth-child(4) svg {transition: transform 0.3s ease;}
.tile:nth-child(4):hover svg { transform: scale(1.5); }
.tile:nth-child(5) { background: #ab47bc; height: 16%; width: 30%; left: 8%; top: 65%; }
.tile:nth-child(6) { background: #ffa726; height: 24%; width: 24%; left: 68%; top: 8%; }
.tile:nth-child(7) { background: #8d6e63; height: 24%; width: 18%; left: 72%; top: 42%; }

/* Modal */
.image-modal {
    display: none; position: fixed; z-index: 1000; inset: 0;
    background: rgba(10,10,20,0.85); align-items: center; justify-content: center;
    animation: fadeIn 0.2s;
}
.image-modal.active { display: flex; }
.image-modal-content {
    position: relative; background: transparent; border: none;
    max-width: 95vw; max-height: 90vh; display: flex; align-items: center; justify-content: center;
}
.image-modal-content img {
    max-width: 90vw; max-height: 90vh; box-shadow: 0 2px 16px #000a; background: #222;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);border: 2px solid #ffd27b;
}
.image-modal-close {
    position: absolute; top: -12px; right: -12px; background: #fff; color: #222; border: none;
    border-radius: 50%; width: 38px; height: 38px; font-size: 2rem; font-weight: bold;
    cursor: pointer; box-shadow: 0 2px 8px #0005; transition: background 0.2s; z-index: 10;
}
.image-modal-close:hover { background: #ff5252; color: #fff; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.image-modal-info {
    position: absolute;
    width: 90vw; max-width: 800px;bottom:0;left:0;
    background: linear-gradient(to top, rgba(20,20,30), transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 1rem 1.5rem;
    border:2px solid #ffd27b;
    border-radius: 0 100px 0 0;
    font-size: 1rem;
    z-index: 5;
    pointer-events: auto;
}

.image-modal-info h4 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffd27b;
}

.image-modal-info p {
    margin: 0;
    font-size: 0.98em;
    color: #fff;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .image-modal-info {
        left: 4vw;
        bottom: 4vw;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        max-width: 90vw;
    }
}

.about-gta6 {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(to bottom left, transparent,#1c1829, #111117);
}
.about-content {
    width: 80%; max-width: 1200px; height: 80%; border-radius: 20px; padding: 2rem;
    overflow-y: auto; display: flex; flex-direction: column;
    background-image: radial-gradient(225.46% 169.6% at 50% 90%, #ffd27b 0, #df3a93 33.33%, #5c1663 66.67%, rgba(32,31,66,0) 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-content h1 { font-size: clamp(2.5rem, 6vw, 4rem);}
.about-content p {
    font-size: clamp(1.2rem,2.6vw,2.5rem); font-weight: 500; margin-top: 1rem; line-height: 1.2;
    text-wrap: pretty;text-align: justify;
}

.coming-soon {
    position: relative; width: 100%; height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.coming-soon::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url(/images/GTA6-BG.webp) center center/cover no-repeat;
    opacity: 0.13;
    pointer-events: none;
}

#canvas {
    position: absolute; top: 0; left: 0; background: transparent; touch-action: none;
}
.info {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    color: #666; font-size: 14px; text-align: center; z-index: 10;
}
.info a { color: #ff4444; text-decoration: none; transition: color 0.3s;}
.info a:hover { color: #ff6666;}
@media (max-width: 768px) {
    .info { font-size: 12px; bottom: 30px; padding: 0 20px;}
}

.sticky-text-section {
  height: 300vh;
  position: relative;
  background: linear-gradient(to bottom, #0a0a0ac4, #111117b1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.blobs-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #ff6ec4 0%, #7873f5 100%);
  opacity: 0.5;
  filter: blur(40px);
  mix-blend-mode: screen;
  animation: moveBlob 16s linear infinite;
  animation-delay: calc(var(--i) * 4s);
  transition: transform 0.5s, filter 0.5s;
}

.blob:nth-child(2) {
  background: radial-gradient(circle at 40% 60%, #42e695 0%, #3bb2b8 100%);
}
.blob:nth-child(3) {
  background: radial-gradient(circle at 70% 30%, #ffb86c 0%, #ff6e6e 100%);
}
.blob:nth-child(4) {
  background: radial-gradient(circle at 30% 70%, #a18cd1 0%, #fbc2eb 100%);
}

@keyframes moveBlob {
  0% {
    transform:  scale(1);
  }
  20% {
    transform: translate(-20%, -60%) scale(1.1);
  }
  40% {
    transform: translate(30%, -40%) scale(0.9);
  }
  60% {
    transform: translate(60%, 20%) scale(1.05);
  }
  80% {
    transform: translate(-40%, 40%) scale(0.95);
  }
  100% {
    transform:  scale(1);
  }
}

.text-container {
  position: sticky;
  top: 30%;
  text-align: center;
  padding: 5rem;
}

#narration-text {
    font-size: 3rem;
  max-width: 900px;
  margin: 0 auto;
  opacity: 1;font-weight: 600; line-height: 3.6rem;
    background-image: radial-gradient(225.46% 169.6% at 50% 90%, #ffd27b 0, #df3a93 33.33%, #5c1663 66.67%, rgba(32,31,66,0) 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.gta5-legends-section {
    position: relative;
  padding: 1rem;
  background: linear-gradient(to top right, #0a0a0a, #111);
  min-height: 300vh;
  text-align: center;
}

.section-title {
  font-size: 4rem;
  margin-bottom: 3rem;
  font-weight: bold;
    background-image: radial-gradient(225.46% 169.6% at 50% 90%, #ffd27b 0, #df3a93 33.33%, #5c1663 66.67%, rgba(32,31,66,0) 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.cards-container {
    width: 100%;
    height: 100%;
    justify-content: center;
  gap: 2rem;
}

.character-card {
  position: sticky;
  max-width: calc((100% / 3) - 1rem);
  max-height: 600px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: grayscale(0);
}

.character-card:hover {
  transform: scale(1.05);
}
.character-card:not(:hover) {
  filter: grayscale(1);
}

.character-card:nth-child(1) {
  top: 10%;
}
.character-card:nth-child(2) {
  top: 30%;
  left: 85%;
}
.character-card:nth-child(3) {
  top: 80%;
  left: 34.3%;
}

.character-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  padding: 1rem;
  transition: opacity 0.4s ease;
}

.character-card:hover .overlay {
  opacity: 1;
}

.overlay h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ff4081;
  text-shadow: 0 2px 24px #222;
}

.last-content{
    font-size: 3rem;
    padding: 2rem;
    background-image: radial-gradient(225.46% 169.6% at 50% 90%, #ffd27b 0, #df3a93 33.33%, #5c1663 66.67%, rgba(32,31,66,0) 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.platforms-footer {
    position: relative;
    width:100%;
    height:100vh;
  background: #111117;
  color: #f6f6f6;
  padding: 4rem;
  text-align: center;
}

.platforms-available {
  margin-bottom: 32px;
}
.platforms-available span {
  font-size: 1.2rem;
  font-weight: 500;
  margin-right: 12px;
}
.platform-icons {
  display: inline-flex;
  gap: 24px;
  vertical-align: middle;
}
.platform-icon {
  height: 32px;
  filter: brightness(1.5);
  vertical-align: middle;
}

.rockstar-propaganda {
  margin: 0 auto 40px auto;
  max-width: 900px;
  background: none;
  border: 1px solid #444;
  border-radius: 60q;
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 18px;
  font-size: 1rem;
}
.propaganda-icon{
    display: flex;
    align-items: center;
}
.propaganda-icon img {
  width: 32px;
  height: 32px;
  filter: brightness(2);
}
.propaganda-content {
  text-align: left;
}
.propaganda-title {
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 10px;
  color: #fff;
  display: block;
}
.propaganda-desc {
  font-size: 0.98rem;
  display: block;
  margin-top: 2px;
}

.footer-links {
  margin: 24px 0 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: 0.98rem;
}
.footer-links a {
  color: #bdbdbd;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-rating {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.95rem;
}
.esrb-icon {
  height: 48px;
}
.footer-rating span {
    text-align: left;
}
.footer-rating a {
  color: #bdbdbd;
  text-decoration: underline;
}

.background-music {
  position: fixed;
  left: 32px;
  bottom: 32px;
  z-index: 12000;
  width: 54px;
  height: 54px;
  background: rgba(40, 20, 60, 0.92);
  border-radius: 18px;
  box-shadow: 0 2px 12px #0005;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.background-music:hover {
  background: #a07be6;
  box-shadow: 0 4px 24px #a07be6aa;
}
.music-bar {
  width: 7px;
  height: 12px;
  background: linear-gradient(180deg, #ffd27b 0%, #df3a93 100%);
  border-radius: 4px;
  margin: 0 2px;
  transition: height 0.18s cubic-bezier(.4,2,.6,1);
  display: inline-block;
}
.background-music.playing .music-bar {
  background: linear-gradient(180deg, #ffe97b 0%, #ff6ec4 100%);
}
.background-music::after {
  content: attr(title);
  position: absolute;
  left: 60px;
  bottom: 50%;
  transform: translateY(50%);
  background: #222;
  color: #ffd6e0;
  font-size: 0.98rem;
  padding: 6px 16px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px #0003;
}
.background-music:hover::after {
  opacity: 1;
}
.background-music audio {
  display: none;
}
