/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Syne', sans-serif;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #fff;
  background-color: #00353a;
  text-align: center;
  overflow-x: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.left-column,
.right-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    display: flex;
    width: 100%;
    height: 100%;
}

header {
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo-title {
  display: flex;
  align-items: center;
}

header a {
  color: #fff;
  text-decoration: none;
}

header img {
  width: 50px;
  height: 50px;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.subtitle {
  display: flex;
  position: sticky;
  top: 70px;
  background-color: #1bdeef;
  color: #000;
  padding: 0.25rem 1rem;
  z-index: 99;
}

.title {
  background-color: #1bdeef;
  color: #000;
  width: 100%;
  padding: 0.5rem 0;
  margin: 0;
}

nav {
  display: flex;
}

nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

nav a:hover {
  background-color: #fff;
  color: #1bdeef;
  transform: translateY(1px) scale(1.05);
}

@media (max-width: 1200px) {
  header h1 {
    display: none;
  }
}

/* Sections */
.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background-color: #f5f5f5;
  color: #1bdeef;
}

/* Game Grid */
.game-carousel-section {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3rem;
}

.game-carousel-section h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(27, 222, 239, 0.3);
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 300%;
  height: 100%;
  animation: slideShow 30s linear infinite;
  z-index: 0;
}

.slideshow img {
  width: auto;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

@keyframes slideShow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-66.666%); }
}

.game-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 500px;
  perspective: 800px;
  height: fit-content;
  z-index: 1;
}

.game-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 4px 4px 0px rgba(255, 255, 255, 0.25),
    inset -4px -4px 0px rgba(0, 0, 0, 0.25);
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05) 50%,
    rgba(0, 0, 0, 0.05) 80%
  );
  z-index: 3;
  transition: opacity 0.3s ease;
}

.game-grid:hover .game-card:not(:hover) {
  filter: brightness(0.5);
}

.game-card:hover {
  transform: scale(1.05);
  z-index: 2;
  filter: brightness(1);
}

/* About Section */
#about-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#about-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

section p {
  color: #fff;
}

/* Accordion Panels */
.accordion .panel {
  background-color: #035961;
  color: #fff;
  position: relative;
  width: 80%;
  margin-bottom: 2rem;
  text-align: left;
  font-size: 1.2rem;
  cursor: pointer;
  overflow: visible;
}

.accordion .panel h3 {
  position: relative;
  top: 0;
  left: -2.5%;
  width: 105%;
  background-color: #1bdeef;
  color: #000;
  padding: 0.6rem 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 2;
  transition: background-color 0.3s, transform 0.2s;
}

.accordion .panel h3:hover {
  color: #fff;
  transform: scale(1.02);
}

.accordion .panel .panel-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem;
  transition: all 0.2s ease;
}

.accordion .panel.active .panel-content {
  max-height: 500px;
  opacity: 1;
  padding: 1rem 1.5rem;
  border-radius: 0 0 10px 10px;
  transition: all 0.3s ease;
}

.copy-email-btn {
    background-color: #1bdeef;
    color: #000;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.copy-email-btn:hover {
    color: #fff;
    outline: none;
}

.copy-message {
    margin-left: 0.75rem;
    font-size: 0.9rem;
    color: #1bdeef;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-message.visible {
    opacity: 1;
}

/* --- Game Page Carousel --- */
.game-media-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background-color: #001e20;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 40rem;
  margin: 0 auto;
  overflow: visible;
  aspect-ratio: 16 / 9;
  display: block;
}

.carousel img,
.carousel .video-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* fit content inside without cropping */
  transform: translate(-50%, -50%);
  border-radius: 12px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.carousel .active {
  opacity: 1;
  z-index: 2;
  transform: translate(-50%, -50%) scale(1);
}

.carousel .prev-slide {
  transform: translate(-100%, -50%) scale(0.8);
  opacity: 0.2;
}

.carousel .next-slide {
  transform: translate(0%, -50%) scale(0.8);
  opacity: 0.2;
}

.carousel .video-thumb {
  cursor: pointer;
}

.carousel .video-thumb iframe {
  border: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1bdeef;
  color: #000;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
  transition: background 0.3s ease;
  transform: scale(1);
  transition: transform 0.2s;
}

.carousel-btn:hover {
  color: #fff;
  transform: scale(1.1);
  transition: transform 0.2s;
}

.carousel-btn.prev {
  left: -5rem;
}

.carousel-btn.next {
  right: -5rem;
}

@media (max-width: 900px) {
  .carousel {
    min-height: 300px;
  }
}

/* game info */
.game-info-section {
  background-color: #035961;
  padding: 0 0rem 2rem 0rem;
  text-align: center;
  width: 100%;
  height: 100%;
}

.game-info-section h2 {
  margin: 0;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.game-info-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0rem 1rem;
}

.game-platforms-section {
  background-color: #000;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.platform-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.platform-links img {
  width: 64px;
  height: 64px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.platform-links img:hover {
  filter: brightness(0) saturate(100%) invert(67%) sepia(98%) saturate(1087%) hue-rotate(151deg) brightness(102%) contrast(101%);
  transform: translateY(-4px) scale(1.2);
}

/* Footer */
footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.social-links a {
  margin: 0 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.social-links a:hover img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(98%) saturate(1087%) hue-rotate(151deg) brightness(102%) contrast(101%);
  transform: translateY(-4px) scale(1.2);
}

@media (min-width: 1200px) {
    .left-column {
      padding: 0 0 0 5rem;
    }
    
    .right-column {
      padding: 0 5rem 0 0;
    }
}

@media (max-width: 1200px) {
  header {
    align-items: center;
  }

  .subtitle {
    display: none;
  }

  .overlay-content {
    padding-bottom: 6rem;
      flex-direction: column;
      align-items: stretch;
      height: auto;
  }

  .left-column,
  .right-column {
      flex: 0 1 auto;
      max-width: 100%;
      padding: 0;
      justify-content: center;
      align-items: center;
  }

  .game-carousel-section {
      height: auto;
      padding: 1rem;
  }

  .panel-container {
      display: flex;
      flex-direction: column;
      position: static;
      padding: 2rem;
      perspective: none;
      min-height: auto;
      width: 100%;
      align-items: center;
  }

  .accordion .panel .panel-content {
    max-height: none !important;
    opacity: 1 !important;
    padding: 1rem 1.5rem !important;
    overflow: visible !important;
  }

  .carousel-btn.prev {
    left: 0.5rem;
  }

  .carousel-btn.next {
    right: 0.5rem;
  }

  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}
