/* ===== MAIN LAYOUT FIXES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

html, body {
  overflow-x: hidden;
  width: 100%;
}

}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#page-content {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-bottom: 2rem; /* Space before footer */
}

/* ===== CARD STACK FIXES ===== */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  box-sizing: border-box;
}


.card {
  display: flex;
  height: 280px;
  width: 200px;
  background-color: #17141d;
  border-radius: 10px;
  box-shadow: -1rem 0 3rem rgba(0,0,0,0.3);
  transition: transform 0.4s ease-out;
  position: relative;
  margin: 0 -30px 0 0; /* Overlap effect */
}

.card:not(:first-child) {
  margin-left: -50px;
}

.card:hover {
  transform: translateY(-20px);
}

.card:hover ~ .card {
  transform: translateX(50px);
}

/* ===== FOOTER PROTECTION ===== */
footer {
  position: relative;
  z-index: 10; /* Higher than content */
  margin-top: auto; /* Pushes footer to bottom */
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .container {
    padding: 30px 15px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
  }
  
  .card {
    scroll-snap-align: center;
    flex: 0 0 200px;
    margin: 0 10px;
  }
  
  .card:not(:first-child) {
    margin-left: -30px;
  }
}

  #app-container {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  }

  #app-container.visible {
  opacity: 1;
 }

    #loading-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      color: white;
      font-family: 'Montserrat', sans-serif;
    }
    .loader {
      border: 5px solid #f3f3f3;
      border-top: 5px solid #3498db;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 2s linear infinite;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .swiper-container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding-top: 50px;
      padding-bottom: 50px;
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    .swiper-container.swiper-initialized {
    opacity: 1;
    }

    .swiper-slide {
      background-position: center;
      background-size: cover;
      width: 320px;
      background-color: #fff;
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .picture {
      width: 320px;
      height: 320px;
      overflow: hidden;
    }

    .picture img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .swiper-slide:hover .picture img {
      transform: scale(1.05);
    }

    .detail {
      padding: 25px 20px;
      font-weight: 600;
      text-align: center;
    }

    .detail h3 {
      margin: 0;
      font-size: 20px;
      color: #333;
    }

    .detail span {
      display: block;
      font-size: 16px;
      color: #f44336;
      margin-top: 5px;
    }

    .swiper-pagination-bullet-active {
      background: none;
    }

    .swiper-button-next, .swiper-button-prev {
      width: 60px;
      height: 60px;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(10px);
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      cursor: pointer;
    }

    .swiper-button-next::after, .swiper-button-prev::after {
      font-family: 'Material Symbols Outlined';
      font-size: 28px;
      font-weight: 900;
      color: #fff;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .swiper-button-next::after {
      content: 'arrow_forward_ios';
      margin-left: 4px;
    }

    .swiper-button-prev::after {
      content: 'arrow_back_ios';
      margin-right: 4px;
    }

    .swiper-button-next:hover, .swiper-button-prev:hover {
      background: rgba(0, 0, 0, 0.9);
      transform: translateY(-50%) scale(1.05);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    .swiper-button-next:active, .swiper-button-prev:active {
      transform: translateY(-50%) scale(0.95);
    }

    /* Add subtle glow effect */
    .swiper-button-next::before, .swiper-button-prev::before {
      content: '';
      position: absolute;
      top: -5px;
      left: -5px;
      right: -5px;
      bottom: -5px;
      border-radius: 50%;
      background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
      z-index: -1;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .swiper-button-next:hover::before, .swiper-button-prev:hover::before {
      opacity: 1;
    }

    /* Add micro-interaction for premium feel */
    @keyframes buttonPulse {
      0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
      70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    }

    .swiper-button-next:focus, .swiper-button-prev:focus {
      animation: buttonPulse 1s;
      outline: none;
    }

    /* Position adjustments */
    .swiper-button-next {
      right: 30px;
    }

    .swiper-button-prev {
      left: 30px;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .swiper-button-next, .swiper-button-prev {
        width: 50px;
        height: 50px;
      }
      .swiper-button-next {
        right: 15px;
      }
      .swiper-button-prev {
        left: 15px;
      }
    }

    .swiper-scrollbar {
      background: rgba(0,0,0,0.1);
    }

    .swiper-scrollbar-drag {
      background: #f44336;
    }