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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #2b2b2b;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}


#preloader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #ddd;
  border-top: 5px solid #c682e0;;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(90, 62, 54, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  padding: 12px 40px;
}

.logo {
  height: 10vh;
 
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links li a {
  text-decoration: none;
  color: #c682e0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
  padding-bottom: 4px;
  display: inline-block;
}

.nav-links li a:hover {
  border-bottom-color: #c682e0;;
  transform: translateY(-2px);
}


.hero {
  min-height: 100vh;
  padding: 120px 20px 80px;
  background: url("assets/background.jpeg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  padding: 40px 28px;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  animation: floatBox 4s ease-in-out infinite;
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
  min-height: 3.5rem;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

@keyframes floatBox {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}


.parallax {
  min-height: 60vh;
  background: url("assets/background2.jpeg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

.parallax .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.parallax h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.section {
  padding: 100px 40px;
  text-align: center;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #c682e0;;
  margin-bottom: 10px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg) scale(1.03);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}


.gallery-section {
  padding-top: 40px;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: 26px;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 22px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: calc((100% - 44px) / 3);
  flex: 0 0 calc((100% - 44px) / 3);
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0.6;
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
  filter: saturate(0.85);
}

.carousel-slide.active {
  transform: scale(1);
  opacity: 1;
  filter: saturate(1.05);
}

.carousel-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  user-select: none;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #c682e0;;
  font-size: 2rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: #fff;
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}


@media (max-width: 1100px) {
  .carousel-slide {
    min-width: calc((100% - 22px) / 2);
    flex: 0 0 calc((100% - 22px) / 2);
  }

  .carousel-slide img {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .carousel {
    max-width: 100%;
  }

  .carousel-track {
    gap: 14px;
  }

  .carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    transform: scale(0.96);
    opacity: 0.95;
  }

  .carousel-slide img {
    height: 420px;
    border-radius: 20px;
  }

  .carousel-btn {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

  .carousel-btn.prev {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .carousel-slide img {
    height: 340px;
  }
}


.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #c682e0;;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.97;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::after {
  left: 130%;
}


.reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.98);
 
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


section {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .navbar.scrolled {
    padding: 12px 20px;
  }

  .nav-links {
    justify-content: center;
    gap: 18px;
  }

  .section {
    padding: 80px 20px;
  }

  .hero-content {
    padding: 30px 20px;
  }

  .gallery img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links li a {
    font-size: 0.95rem;
  }

  .card {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    min-height: auto;
  }
}