@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css');
@import url('https://fonts.googleapis.com/css2?family=Gudea:ital,wght@0,400;0,700;1,400&display=swap');

/* Root */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow-x: hidden;
  cursor: none;
  scroll-behavior: smooth;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease, height 0.2s ease;
  z-index: 9999;
}

.custom-cursor.click {
  background: white;
  transform: translate(-50%, -50%) scale(0.8);
}

.custom-cursor.hover {
  width: 45px;
  height: 45px;
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Text Fonts */
.gudea-regular {
  font-family: "Gudea", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.gudea-bold {
  font-family: "Gudea", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.gudea-regular-italic {
  font-family: "Gudea", sans-serif;
  font-weight: 400;
  font-style: italic;
}

/* Navbar */
.minimal-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  z-index: 9999;

  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.minimal-navbar.show {
  transform: translateY(0);
  opacity: 1;
}

.minimal-navbar-title {
  font-family: 'Gudea', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
}

/* Background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  background: #000;
  z-index: 0;
}

/* Main */
.hero-content {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
  color: white;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  margin: 0;
  font-weight: bold;
}

.hero-description {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.scroll-arrow-container {
  margin-top: 30px;
  cursor: none;
  z-index: 10;
  pointer-events: auto;
}


.scroll-arrow {
  width: 40px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Games */
.games-section {
  width: 100%;
  padding: 70px 0;
  text-align: center;
  z-index: 1;
  position: relative;
  color: white;
}

.games-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.carousel-wrapper {
  position: relative;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  animation: scrollCarousel 40s linear infinite;
}

@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-2304px); }
}


.carousel-card {
  flex: 0 0 auto;
  min-width: 240px;
  max-width: 240px;
  padding: 1rem;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
}


.carousel-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: .5rem;
}

.fade-left, .fade-right {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.fade-left {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}

.fade-right {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

/* Popup */
.games-section {
  width: 100%;
  padding: 100px 0;
  text-align: center;
  z-index: 1;
  position: relative;
  color: white;
  margin-top: 100px;
}

.games-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.carousel-wrapper {
  position: relative;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}



.carousel-card {
  background: #333;
  color: #fff;
  min-width: 240px;
  max-width: 240px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 8px;
}

.carousel-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: .5rem;
}

.fade-left, .fade-right {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.fade-left {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}

.fade-right {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

/* Popup */
.games-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.games-popup.show {
  display: flex;
  animation: popupFadeIn .4s ease forwards;
}

@keyframes popupFadeIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.popup-content {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  max-width: 1200px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  color: white;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.popup-title {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.popup-card {
  background: #444;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.popup-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: .5rem;
}

.popup-link {
  display: block;
  margin: .5rem 0;
  color: #fff;
  text-decoration: underline;
}

.popup-btn {
  display: inline-block;
  padding: .5rem 1rem;
  background: #666;
  color: #fff;
  text-decoration: none;
  margin-top: .5rem;
  transition: background .3s;
  border-radius: 4px;
}

.popup-btn:hover {
  background: #888;
}

/* About */
.about-section {
  position: relative;
  z-index: 1;
  margin-top: 200px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}


.about-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}

.about-content {
  max-width: 600px;
  color: white;
}

.about-name {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-social-btn {
  display: flex;
  align-items: center;
  background: #222;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.about-social-btn:hover {
  background: #444;
}

.about-icon {
  display: flex;
  align-items: center;
  margin-right: 0.6rem;
  width: 24px;
  height: 24px;
}

.about-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-text {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .about-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .about-photo img {
    width: 200px;
    height: 200px;
  }

  .about-name {
    font-size: 1.8rem;
  }

  .about-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: 1.5rem;
  }

  .about-photo img {
    width: 150px;
    height: 150px;
  }

  .about-name {
    font-size: 1.5rem;
  }

  .about-description {
    font-size: 0.95rem;
  }

  .about-content {
    max-width: 100%;
    text-align: center;
  }

  .about-socials {
    justify-content: center;
  }
}

/* Legal */
.legal-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: rgba(51, 51, 51, 0.842);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: 8px;
  text-align: left;
  position: relative;
  z-index: 10;
}

.legal-container a {
  color: #1e90ff;
  text-decoration: underline;
}

.legal-container a:hover {
  color: #63b3ed;
}


/* Footer */
.custom-footer {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 260px;
}

.footer-container {
  background: #111;
  color: #fff;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border-radius: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #aaa;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

* {
  cursor: none !important;
}