/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  /* Subtle repeating pattern inspired by WhatsApp's chat background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='20' height='20' fill='%23f4f4f4'/%3E%3Cpath d='M0 0L20 20M20 0L0 20' stroke='%23e0e0e0' stroke-width='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  text-align: center;
  color: #000;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: linear-gradient(135deg, #6200ea, #000);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header h1 {
  font-size: 3.5em;
  margin: 0;
}
header h2 {
  font-size: 1.5em;
  margin: 10px 0;
  font-weight: lighter;
}

/* Main */
main {
  padding: 40px 20px;
  flex: 1;
}

/* Buttons */
.button {
  background-color: #6200ea;
  color: white;
  padding: 14px 24px;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #3700b3;
}

/* Layout Utilities */
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

/* 3D Slider - DO NOT MODIFY */
.banner {
  width: 100%;
  height: 100vh;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.banner .slider {
  position: absolute;
  width: 200px;
  height: 250px;
  top: 10%;
  left: calc(50% - 100px);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  animation: autoRun 20s linear infinite;
}
@keyframes autoRun {
  from {
    transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
  }
  to {
    transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
  }
}
.banner .slider .item {
  position: absolute;
  inset: 0;
  transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(550px);
}
.banner .slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel - DO NOT MODIFY */
.carousel {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.carousel .carousel-item {
  flex: 1 0 33.33%; /* Adjust to show multiple images */
  margin: 0 5px;
  padding: 0;
  max-width: 33.33%;
}
.carousel .carousel-item img {
  width: 100%;
  height: auto; /* Maintain aspect ratio without stretching */
  border-radius: 12px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #000, #6200ea);
  color: white;
  padding: 20px 10px;
  text-align: center;
  font-size: 1em;
  border-top: 2px solid #3700b3;
  margin-top: auto;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #3d3d3d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='20' height='20' fill='%23222222'/%3E%3Cpath d='M0 0L20 20M20 0L0 20' stroke='%23424242' stroke-width='0.5'/%3E%3C/svg%3E");
    color: #ffffff;
  }
  header {
    background: linear-gradient(135deg, #3700b3, #000);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  }
  .button {
    background-color: #bb86fc;
    color: #121212;
  }
  .button:hover {
    background-color: #9a67ea;
  }
  footer {
    background-color: #3700b3;
    border-top: 2px solid #bb86fc;
  }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 2.5em;
  }
  header h2 {
    font-size: 1.2em;
  }
  .button {
    padding: 12px 22px;
  }
  .carousel .carousel-item {
    flex: 1 0 50%; /* Show 2 images at a time on small screens */
  }
  .carousel .carousel-item img {
    height: auto;
  }
}

/* Firework Particle */
.firework-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
