:root {
  --primary: #1dd1a1;
  --neon-blue: #00f0ff;
  --neon-purple: #b967ff;
  --bg-dark: #050505;
  --font: 'Orbitron', sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: white;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

header {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

h1.glitch {
  font-size: 4rem;
  color: var(--primary);
  animation: glitch 1s infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -1px); }
}

p.typewriter {
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--primary);
  animation: typing 3.5s steps(40, end), blink 0.8s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--primary); }
}

.btn {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  font-weight: bold;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 0 10px var(--neon-blue);
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 20px var(--neon-blue);
}

main {
  max-width: 1080px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #2e2e2e;
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
}

h2 {
  color: var(--neon-purple);
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: 2px solid var(--neon-purple);
  display: inline-block;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.trailer-box {
  border: 2px solid var(--primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(29, 209, 161, 0.3);
  max-width: 100%;
}

.trailer-box video {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 2rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel img {
  width: 360px;
  height: auto;
  border-radius: 12px;
  border: 2px solid #00f0ff44;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.carousel img:active {
  transform: scale(0.96);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.arrow,
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--neon-blue);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow.left,
.modal-arrow.left {
  left: 10px;
}

.arrow.right,
.modal-arrow.right {
  right: 10px;
}

.arrow span,
.modal-arrow span {
  display: inline-block;
  position: relative;
  transition: transform 0.2s ease, margin 0.2s ease;
  overflow: hidden; /* <-- This is key */
}

.arrow span::after,
.modal-arrow span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.arrow:hover span::after,
.modal-arrow:hover span::after {
  animation: shine 1s forwards;
}

@keyframes shine {
  0% {
    left: -75%;
    opacity: 1;
  }
  90% {
    left: 125%;
    opacity: 1;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 30px var(--neon-blue);
}

footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

.modal-arrow.left {
  left: 30px; 
}

.modal-arrow.right {
  right: 30px;
}

.modal img {
  max-width: 85vw;
  max-height: 85vh;
  margin: 0 30px;
  border-radius: 10px;
  box-shadow: 0 0 30px var(--neon-blue);
}

section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
  h1.glitch {
    font-size: 2.5rem;
  } 
  
  p.typewriter {
    animation: none !important;
    border-right: none !important;
    white-space: normal !important;
    opacity: 1 !important;
    transform: translateY(0);
  }  

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .carousel {
    gap: 1rem;
    padding: 1rem;
  }

  .carousel img {
    width: 80vw;
  }

  .arrow,
  .modal-arrow {
    font-size: 2rem;
  }

  .arrow.left,
  .modal-arrow.left {
    left: 5px;
  }

  .arrow.right,
  .modal-arrow.right {
    right: 5px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .trailer-box {
    border-width: 1px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(29, 209, 161, 0.2);
  }

  .trailer-box video {
    max-width: 100%;
  }

  .modal img {
    max-width: 90vw;
    max-height: 70vh;
  }

  footer {
    padding: 1rem;
    font-size: 0.8rem;
  }
}