/* =========================================================
   FONT
========================================================= */
@font-face {
  font-family: 'Dudu';
  src: url('../assets/Dudu_Calligraphy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* =========================================================
   BASE
========================================================= */
body {
  font-family: 'Dudu', sans-serif;
  background-color: black;
  color: white;
  margin: 0;
  scroll-padding-top: 80px;
}


/* =========================================================
   SECTIONS
========================================================= */
.murky-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Overlay layer */
.murky-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
  pointer-events: none;
}

/* Ensure inner content appears above overlay */
.murky-section > * {
  position: relative;
  z-index: 1;
}

/* Backgrounds */
.head-section {
  background-image: url('../img/top_bg.png');
}

.video-section {
  background-image: url('../img/well_bg.png');
}

.features-section {
  background-image: url('../img/ice_cave_bg.png');
}

.community-section {
  background-image: url('../img/top_bg.png');
}


/* =========================================================
   HEADER ELEMENTS
========================================================= */
.murky-wrapper {
  position: relative;
  display: inline-block;
}

.murky-head {
  position: relative;
  top: -80px;
  margin: auto;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.7));
}

.murky-logo {
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.7));
}


/* =========================================================
   TEXT STYLES
========================================================= */
.demo-text {
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 1);
  margin-bottom: 1rem;
}

.title-text {
  font-size: 2.5rem;
  color: #43215B;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.regular-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Highlights */
.highlight-orange { color: #B55037; font-weight: bold; }
.highlight-rust { color: #CC6C4B; font-weight: bold; }
.highlight-purple { color: #8562D1; font-weight: bold; }
.highlight-dark { color: #43215B; font-weight: bold; }

.highlight-dark a {
  cursor: pointer;
  text-decoration: none;
}

.highlight-dark a:hover {
  text-shadow: 0 0 8px #B55037;
}


/* =========================================================
   BUTTONS
========================================================= */
.button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.murky-btn {
  background-color: #B55037;
  color: #fdf0d5;
  border: 2px solid #CC6C4B;
  padding: 10px 25px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.murky-btn:hover {
  background-color: #8562D1;
  border-color: #43215B;
  color: #fdf0d5;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(133, 98, 209, 0.6);
}

.murky-btn:active {
  transform: scale(0.98);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Platform buttons */
.platform-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.7));
}

.platform-btn {
  height: 60px;
  cursor: pointer;
  transition: transform 0.2s;
}

.platform-btn:hover {
  transform: scale(1.1);
}


/* =========================================================
   CREAMY PAPER CARD
========================================================= */
.creamy-paper {
  background-color: #fdf0d5;
  border-radius: 12px;
  border: 6px solid #d4b483;
  color: #3b2f2f;
  padding: 30px;
  width: 70vw;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.4);
  background-image:
    url('../img/paper_texture.png'),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.25), transparent 70%);
  background-size: cover;
  background-blend-mode: multiply, overlay;
}


/* =========================================================
   IMAGES
========================================================= */
.murky-wrapper img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.pumpkin-deco {
  position: absolute;
  bottom: 100px;
  right: -50px;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 10;
  pointer-events: none;
}


/* =========================================================
   SECTION DIVIDER
========================================================= */
.section-divider {
  width: 100%;
  height: 15px;
  border: none;
  margin: 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #B55037, #8562D1);
  background-size: 200% 200%;
  animation: colorShift 2s ease-in-out infinite;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 1);
}

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* =========================================================
   NAVBAR
========================================================= */
.murky-navbar {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid #B55037;
  padding: 10px 0;
  z-index: 10000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

.murky-navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

.murky-navbar .navbar-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.murky-navbar .nav-link {
  color: #fdf0d5;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
}

.murky-navbar .nav-link:hover {
  color: #8562D1;
  text-shadow: 0 0 10px rgba(133, 98, 209, 0.8);
}

.murky-navbar .nav-link.active {
  color: #B55037;
  border-bottom: 2px solid #B55037;
}


/* =========================================================
   MODAL
========================================================= */
.modal-backdrop.show {
  background-color: rgba(10, 5, 20, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  border: 3px solid #B55037;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(133, 98, 209, 0.7);
}


/* =========================================================
   REVIEWS
========================================================= */
.review {
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  border-left: 6px solid #B55037;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  break-inside: avoid;
}

.review-author {
  font-style: italic;
  color: #43215B;
  font-weight: 600;
  margin-top: 10px;
}

.reviews-grid {
  column-count: 2;
  column-gap: 1.5rem;
}

/* =========================================================
   MOBILE OPTIMIZATION
========================================================= */

@media (max-width: 768px) {

  /* Ocultar navbar completamente en móviles */
  .murky-navbar {
    display: none !important;
  }

  /* Reducir márgenes y paddings */
  .creamy-paper {
    width: 90vw;
    padding: 20px;
    margin: 20px auto;
  }

  /* Texto más pequeño y más legible */
  .title-text {
    font-size: 1.8rem;
  }

  .regular-text {
    font-size: 1.1rem;
    text-align: center;
  }

  .demo-text {
    font-size: 1.8rem;
  }

  /* Botones más grandes y más espaciados */
  .button-row {
    flex-direction: column;
    gap: 12px;
  }

  .murky-btn {
    width: 80%;
    font-size: 1rem;
    padding: 12px 20px;
  }

  /* Logotipo y cabecera */
  .murky-wrapper img {
    width: 90%;
  }

  .murky-head {
    top: -40px;
  }

  /* GIFs y grillas de imágenes */
  .gif-grid {
    width: 100%;
    margin-bottom: 10px;
  }

  .reviews-grid {
    column-count: 1;
  }

  .review {
    font-size: 1rem;
    padding: 15px;
  }

  /* Evitar que las secciones se vean demasiado apretadas */
  .murky-section {
    padding: 20px 0;
  }

  .platform-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .platform-btn {
    height: 50px;
  }

  /* Evitar márgenes o sombras muy fuertes */
  .section-divider {
    height: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  }

  /* Centrar correctamente texto e imágenes */
  .text-start {
    text-align: center !important;
  }

  /* Centrar botones en móvil */
  .button-row {
    display: flex;
    flex-direction: column;
    align-items: center; /* ← centra horizontalmente los botones */
    justify-content: center;
    gap: 12px;
  }

  /* Asegurar que los botones estén centrados y no ocupen todo el ancho */
  .murky-btn {
    width: auto;
    min-width: 160px;
    text-align: center;
  }

  .regular-text {
    text-align: left !important;
  }
}

/* Aplica solo cuando NO es móvil (mayor a 768px) */
@media (min-width: 769px) {
  .pumpkin-happy {
    margin-bottom: -30px;
  }
  .onion-nervous {
    transform: scaleX(-1);
    margin-bottom: -30px;
  }
}