
@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Momo+Trust+Display&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* CSS BERANDA */
#hero-title {
  white-space: nowrap;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.1;
}

#hero-subtitle {
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  opacity: 0.9;
}

@media (max-width: 640px) {
  #hero-title {
    font-size: 1.6rem;
  }
  #hero-subtitle {
    font-size: 0.75rem;
  }
}


/* CSS Button Daftar */
@keyframes borderPulse {

  0%,
  100% {
    border-color: rgba(255, 223, 0, 0.5);
    transform: scale(1);
  }

  50% {
    border-color: rgba(255, 223, 0, 1);

    transform: scale(1.05);
  }
}

.animate-glow {
  animation: borderPulse 2.5s ease-in-out infinite;
}

/* Tombol floating mode */
#btn-daftar.floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  transform: scale(0.9);
  border-radius: 9999px;
  padding: 0.9rem 1.6rem;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.9);
  color: #111;
  border: 2px solid rgba(255, 223, 0, 0.5);
  transition: all 0.4s ease;
}

#btn-daftar.floating:hover {
  transform: scale(1);
  border-color: rgba(255, 223, 0, 1);
}


/* CSS Sambutan Kepsek */
.perspective-1000 {
  perspective: 1000px;
}

#fotoKepsek1,
#fotoKepsek2 {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* CSS EKSTRAKULIKULER */
    .rotate-270 {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
    }

/* CSS PRESTASI */
  @media (max-width: 768px) {
    #prestasi .grid > .prestasi:last-child:nth-child(odd) {
      grid-column: span 2 / span 2;
    }
  }
  
  /* CSS PONDOK PESANTREN */
  .fade-slide {
    transition: opacity 1.5s ease-in-out;
  }
  
/* CSS Galeri */
@keyframes custom-reveal-img {
  50% {
    translate: -150% 0;
    --angle: 0deg;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Corben:wght@700&display=swap");

.galeri-marquee *,
.galeri-group * {
  box-sizing: border-box;
}

.galeri-marquee {
  --duration: 60s;
  --gap: 2rem;

  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  transform: skewY(-3deg);
}

.galeri-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: galeri-scroll var(--duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .galeri-group {
    animation-play-state: paused;
  }
}

.galeri-group img {
  max-width: clamp(10rem, 1rem + 28vmin, 20rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
}

.galeri-group p {
  background-image: linear-gradient(75deg,
      #00FFFF 0%,   /* cyan terang */
      #7FFFD4 25%,  /* aquamarine */
      #ADFF2F 50%,  /* greenyellow */
      #FFFF00 75%,  /* kuning cerah */
      #FFD700 100%  /* emas terang */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.galeri-marquee--borders {
  border-block: 3px solid #fdfdfd;
  padding-block: 0.75rem;
}

.galeri-marquee--reverse .galeri-group {
  animation-direction: reverse;
  animation-delay: calc(var(--duration) / -2);
}

@keyframes galeri-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

/* === Background Animasi === */
.area {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  /* di belakang semua konten */
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(0, 132, 255, 0.76);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}