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

html, body {
  height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0d0d0d;
  color: #e5e5e5;
  text-align: center;
  overflow: hidden; /* we’ll handle scrolling manually */
  position: relative;
}

/* --- SNOW CANVAS --- */
#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 6;
  pointer-events: none;
}

/* --- INTRO ANIMATION --- */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 1s ease 2.5s forwards;
}

.intro-logo {
  width: 400px;
  animation: flyInSpin 2s ease forwards;
}

@keyframes flyInSpin {
  0% { transform: translateY(-200%) scale(3) rotate(0deg); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(0%) scale(1.2) rotate(720deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* --- FIXED HEADER --- */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5;
  background: #0d0d0d;
  padding-top: 40px;
}

.logo img {
  max-width: 280px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 6px #6200ff88);
}

.logo-subtext {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #bbbbbb;
  text-shadow: 0 0 6px #6200ff;
}

/* --- SCROLLABLE SECTION BELOW HEADER --- */
.scroll-frame {
  position: absolute;
  top: 320px; /* leave space for header */
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  z-index: 8;
  padding-bottom: 100px;
}

/* Hide scrollbars */
.scroll-frame::-webkit-scrollbar {
  display: none;
}
.scroll-frame {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* --- CARD CONTAINER --- */
.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 20px;
  position: relative;
  z-index: 7;
}

/* --- CARD WRAPPER --- */
.card-wrapper {
  position: relative;
  width: 220px;
  z-index: 4;
}

/* --- CLOWN WIG --- */
.clown-wig {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 140px;
  background: url('/assets/landingpage/clown.png') no-repeat center/contain;
  z-index: 3;
  pointer-events: none;
}

/* --- CARD DESIGN --- */
.card {
  position: relative;
  width: 220px;
  height: 300px;
  background: #151515;
  border: 2px solid #292929;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  z-index: 4;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #6200ff;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid #292929;
}

.caption {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 0 4px;
  color: red;
}

.desc {
  font-size: 0.85rem;
  color: #bbbbbb;
  padding: 0 12px 16px;
  line-height: 1.35;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 600px) {
  .card-wrapper {
    width: 90%;
  }

  .clown-wig {
    width: 100%;
    height: 100px;
  }
}
