/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #D2D2D2;
  font-family: 'Poppins', sans-serif;
  position: relative;
   
}

/* Remove background grid pattern */
body::before {
  content: '';
  position: absolute;
  width: min(1400px, 90vw);
  height: 90%;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-image: url("img/fun/full-shot-silhouettes-people-jumping-sunset.jpg");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: top center;
  pointer-events: none;
  z-index: 0;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.logo img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-right a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: all 0.3s ease;
}

.nav-right a:hover {
  color: #d9534f;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  min-width: 160px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 50;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #333;
  font-weight: 500;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: #f5f5f5;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons button {
  padding: 10px 18px;
  background-color: #d9534f;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-buttons button:hover {
  background-color: #c9302c;
}

/* Banner and Slider */
.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;
  z-index: 2;
}

@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;
}

.banner .content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 100vw);
  padding-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.banner .content h1 {
  font-family: 'ICA Rubrik Black', sans-serif;
  font-size: 16em;
  line-height: 1em;
  color: #25283B;
  position: relative;
}

.banner .content h1::after {
  content: attr(data-content);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 2px #d2d2d2;
  color: transparent;
  z-index: 2;
}

.banner .content .author {
  font-family: 'Poppins', sans-serif;
  text-align: right;
  max-width: 200px;
}

.banner .content h2 {
  font-size: 3em;
}

.banner .content .model {
  background-image: url("img/fun/enjoy.png");
  width: 100%;
  height: 75vh;
  position: absolute;
  bottom: 0;
  left: 0;
  background-size: auto 200%;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 1;
}

/* Responsive */
@media screen and (max-width: 1023px) {
  .banner .slider {
    width: 160px;
    height: 200px;
    left: calc(50% - 80px);
  }
  .banner .slider .item {
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
  }
  .banner .content h1 {
    text-align: center;
    width: 100%;
    font-size: 7em;
    text-shadow: 0 10px 20px #000;
  }
  .banner .content .author {
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 0 30px;
    text-shadow: 0 10px 20px #000;
  }
}

@media screen and (max-width: 767px) {
  .banner .slider {
    width: 100px;
    height: 150px;
    left: calc(50% - 50px);
  }
  .banner .slider .item {
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(180px);
  }
  .banner .content h1 {
    font-size: 5em;
  }
}
