html {
  scroll-behavior: smooth;
}
/* Reset dan font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}
section {
  scroll-margin-top: 90px;
}
/* Dark Mode Button */
.dark-mode-btn {
  margin-left: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

.dark-mode-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(20deg);
}
/* Container */
.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Header */
header {
  background: rgba(255, 153, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: white;
  padding: 18px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: none;
  transition:
    background 0.35s ease,
    padding 0.35s ease,
    box-shadow 0.35s ease;
}

header.scrolled {
  background: #ff9900;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Alignment presisi */
}
header .logo {
  height: 50px;
  transition: transform 0.3s ease; /* Efek hover pada logo */
}
header .logo:hover {
  transform: scale(1.05);
}
header nav {
  display: flex;
  align-items: center;
}
header nav ul.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
}
header nav ul.nav-menu li {
  margin-left: 30px; /* Spacing presisi */
}
header nav ul.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 25px; /* Rounded corners */
  transition: all 0.3s ease; /* Transisi smooth */
  position: relative;
  overflow: hidden;
}
header nav ul.nav-menu li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #ffd700; /* Underline animasi */
  transition: width 0.3s ease;
}
header nav ul.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.2); /* Background hover */
  transform: scale(1.05); /* Scale effect */
}
header nav ul.nav-menu li a:hover::before {
  width: 100%;
}
.hamburger {
  display: none; /* Hidden di desktop */
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.hamburger:hover {
  transform: rotate(90deg); /* Efek rotasi pada hover */
}

/* Mobile Menu */
@media (max-width: 768px) {
  header nav ul.nav-menu {
    position: fixed;
    top: 80px; /* Di bawah header */
    left: -100%; /* Hidden awalnya */
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(254, 200, 39, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease; /* Slide-in animasi */
    z-index: 99;
  }
  header nav ul.nav-menu.active {
    left: 0; /* Tampilkan saat active */
  }
  header nav ul.nav-menu li {
    margin: 20px 0;
  }
  header nav ul.nav-menu li a {
    font-size: 1.2rem;
    padding: 15px 30px;
  }
  .hamburger {
    display: block; /* Tampilkan di mobile */
  }
}

/* Hero Section dengan Slider */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Animated gradient blobs (dekoratif, modern glassmorphism style) */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: floatBlob 14s ease-in-out infinite;
}

.blob1 {
  width: 380px;
  height: 380px;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #ff9900, transparent 70%);
  animation-delay: 0s;
}

.blob2 {
  width: 300px;
  height: 300px;
  bottom: -60px;
  right: -60px;
  background: radial-gradient(circle at 70% 70%, #ffd166, transparent 70%);
  animation-delay: 3s;
}

.blob3 {
  width: 260px;
  height: 260px;
  top: 40%;
  right: 15%;
  background: radial-gradient(circle at 50% 50%, #ff5722, transparent 70%);
  animation-delay: 6s;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-25px, 25px) scale(0.95);
  }
}

@media (max-width: 768px) {
  .blob {
    filter: blur(50px);
    opacity: 0.4;
  }

  .blob1 {
    width: 220px;
    height: 220px;
  }

  .blob2 {
    width: 180px;
    height: 180px;
  }

  .blob3 {
    width: 160px;
    height: 160px;
  }
}
.slider {
  position: relative;
  height: 100%;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 1s;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.slide.active {
  opacity: 1;
  animation: zoomHero 8s linear forwards;
}
@keyframes zoomHero {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
.slide h1 {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
  .slide h1 {
    font-size: 2.2rem;
  }
}
.slide p {
  font-size: 1.2rem;
}
.slide h1,
.slide p {
  position: relative;
  z-index: 2;
}
.slide-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s ease;
}
.slide-dots .dot.active {
  width: 28px;
  border-radius: 999px;
  background: #ff9900;
}
@media (max-width: 768px) {
  .slide-dots {
    bottom: 25px;
  }
}
/* COUNTDOWN */
.event-badge {
  display: inline-block;
  background: white;
  color: #ff9900;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}
.countdown {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #ff9900, #ffb347);
  color: white;
}

.countdown h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.countdown h3 {
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  margin-bottom: 10px;
}

.countdown p {
  margin-bottom: 40px;
  opacity: 0.9;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.time-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 20px;
  min-width: 120px;
  transition: 0.3s;
}

.time-box:hover {
  transform: translateY(-5px);
}

.time-box span {
  display: block;
  font-size: 3rem;
  font-weight: 800;
}

.time-box small {
  font-size: 1rem;
}
@media (max-width: 768px) {
  .countdown-timer {
    display: flex;
    flex-wrap: nowrap; /* jangan turun ke bawah */
    justify-content: center;
    gap: 8px;
  }

  .time-box {
    min-width: 70px;
    padding: 10px;
  }

  .time-box span {
    font-size: 1.8rem;
  }

  .time-box p {
    font-size: 0.75rem;
  }
}
/* About Section */
.about {
  padding: 100px 0;
  background: white;
  text-align: center;
}
.about h2 {
  margin-bottom: 20px;
  color: #ff9900;
}
.about > .container > p {
  margin-bottom: 50px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: #666;
}
.icons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* jangan turun */
  gap: 25px;
}
.icon {
  flex: 1;
  max-width: 220px;
  margin: 10px;
  background: #fafafa;
  border-radius: 20px;
  padding: 30px 15px;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}
.icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff9900;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.icon:hover {
  background: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}
.icon:hover::before {
  transform: scaleX(1);
}
.icon img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  border: 3px solid #fff3e0;
  transition: 0.3s ease;
}
.icon:hover img {
  border-color: #ff9900;
}
.icon h3 {
  font-size: 1rem;
  color: #333;
}
@media (max-width: 768px) {
  .icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: start;
  }

  .icon {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 15px 8px;
    border-radius: 14px;
  }

  .icon img {
    width: 55px;
    height: 55px;
    margin-bottom: 8px;
  }

  .icon h3 {
    font-size: 0.75rem;
    margin-top: 5px;
  }

  .icon p {
    font-size: 0.6rem;
  }
}
/*VISI MISI*/
.vision {
  padding: 100px 0;
  background: linear-gradient(135deg, #fff8ef, #ffffff);
  text-align: center;
}

.section-title h2 {
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  color: #ff9900;
  margin-bottom: 10px;
}

.section-title p {
  color: #666;
  margin-bottom: 50px;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.vision-card,
.mission-card {
  background: white;
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.vision-card:hover,
.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.icon-box {
  width: 80px;
  height: 80px;
  margin: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9900, #ffb84d);

  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  color: white;
  font-size: 2rem;
}

.vision-card h3,
.mission-card h3 {
  margin-bottom: 20px;
  color: #222;
}

.mission-card ul {
  list-style: none;
  text-align: left;
}

.mission-card li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.mission-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ff9900;
  font-weight: bold;
}

@media (max-width: 768px) {
  .vision-mission-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .vision-card,
  .mission-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .icon-box {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .icon-box i {
    font-size: 1.3rem;
  }

  .vision-card h3,
  .mission-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .vision-card p {
    font-size: 0.85rem;
  }

  .mission-card li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    padding-left: 20px;
  }
}
body.dark-mode .vision {
  background: #121212;
}

body.dark-mode .vision-card,
body.dark-mode .mission-card {
  background: #1f1f1f;
  color: white;
}

body.dark-mode .section-title p {
  color: #bbb;
}
/* Team Section */
.team {
  padding: 100px 0;
  background: #f8f9fa;
  text-align: center;
}
.team h2 {
  margin-bottom: 10px;
  color: #ff9900;
}
.team p {
  margin-bottom: 50px;
  color: #666;
}
.team-section {
  margin-bottom: 60px;
}
.team-section h3 {
  margin-bottom: 30px;
  color: #222;
  font-size: 1.5rem;
  display: inline-block;
  padding-left: 18px;
  border-left: 4px solid #ff9900;
  text-align: left;
}
.sub-section {
  margin-bottom: 40px;
}
.sub-section h4 {
  margin-bottom: 20px;
  color: #999;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.member-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  flex: 1 1 180px;
  max-width: 200px; /* Ukuran normal */
}
.leader-card {
  flex: 1 1 220px;
  max-width: 250px; /* Diperbesar untuk Ketua dan Waketos */
  padding: 25px; /* Padding lebih besar */
  border: 2px solid #ff9900; /* Border khusus untuk membedakan */
}
.member-card:hover,
.leader-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
.member-card img,
.leader-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #ff9900;
}
.leader-card img {
  width: 120px; /* Foto sedikit lebih besar untuk leader */
  height: 120px;
}
.member-card h4,
.leader-card h4 {
  margin-bottom: 5px;
  color: #333;
  font-size: 1.1rem;
}
.leader-card h4 {
  font-size: 1.2rem; /* Nama lebih besar untuk leader */
}
.member-card p,
.leader-card p {
  color: #666;
  font-size: 0.9rem;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 10px;
}
.badge.ketua {
  background: #ff9900;
  color: white;
}

/* Responsif untuk team */
@media (max-width: 768px) {
  .team-grid {
    gap: 12px;
  }

  .member-card {
    flex: 1 1 100px;
    max-width: 110px;
    padding: 10px 8px;
  }

  .leader-card {
    flex: 1 1 130px;
    max-width: 140px;
    padding: 14px 10px;
  }

  .member-card img,
  .leader-card img {
    width: 55px;
    height: 55px;
    margin-bottom: 8px;
    border-width: 2px;
  }

  .leader-card img {
    width: 65px;
    height: 65px;
  }

  .member-card h4,
  .leader-card h4 {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .leader-card h4 {
    font-size: 0.85rem;
  }

  .member-card p,
  .leader-card p {
    font-size: 0.7rem;
  }

  .badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    margin-top: 6px;
  }
}

/* Statistics Section */
.stats {
  padding: 100px 0;
  background: linear-gradient(135deg, #ff9900, #ffb84d);
  color: white;
  text-align: center;
}

.stats h2 {
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  margin-bottom: 10px;
}

.stats p {
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 35px 20px;
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.25);
}

.stat-card h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-card p {
  margin: 0;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .stat-card p {
    font-size: 0.8rem;
  }
}
/* =====================
   OSIS LEGACY
===================== */

.legacy {
  padding: 100px 0;
  background: #fafafa;

  text-align: center;
}

.legacy .section-title h2 {
  color: #ff9900;
  margin-bottom: 10px;
}

.legacy .section-title p {
  color: #666;
  margin-bottom: 50px;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  gap: 25px;
}

.legacy-card {
  background: white;
  padding: 30px 20px;
  border-radius: 24px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(40px);
  transition: 0.7s ease;
}
.legacy-card.show {
  opacity: 1;
  transform: translateY(0);
}
.legacy-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: 0.4s;
}

.legacy-year {
  display: inline-block;
  padding: 6px 14px;
  background: #fff3e0;
  color: #ff9900;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.legacy-card h3 {
  font-size: 1rem;
  color: #333;
}

.legacy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.legacy-card:hover img {
  transform: scale(1.08);
}

.current {
  background: white;
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.18);
}

.current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #ff9900;
}

.current-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  margin-bottom: 14px;
  background: #ff9900;
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.current-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}
/* =====================
   DARK MODE - LEGACY
===================== */

body.dark-mode .legacy {
  background: #121212;
}

body.dark-mode .legacy .section-title h2 {
  color: #ff9900;
}

body.dark-mode .legacy .section-title p {
  color: #bdbdbd;
}

body.dark-mode .legacy-card {
  background: #1f2937;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

body.dark-mode .legacy-card h3 {
  color: white;
}

body.dark-mode .legacy-year {
  background: rgba(255, 153, 0, 0.15);

  color: #ffb84d;
}

body.dark-mode .legacy-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .current {
  background: #1f2937;

  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.25);
}
@media (max-width: 768px) {
  .legacy {
    padding: 70px 0;
  }

  .legacy-grid {
    display: flex;

    overflow-x: auto;

    gap: 15px;

    padding: 10px 20px 20px;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;
  }

  .legacy-grid::-webkit-scrollbar {
    display: none;
  }

  .legacy-card {
    min-width: 170px;

    flex-shrink: 0;

    scroll-snap-align: center;

    padding: 25px 15px;
  }

  .legacy-card img {
    width: 80px;
    height: 80px;
  }

  .legacy-year {
    font-size: 0.8rem;
  }

  .legacy-card h3 {
    font-size: 0.9rem;
  }
}
.swipe-text {
  display: none;
}

@media (max-width: 768px) {
  .swipe-text {
    display: block;

    margin-bottom: 20px;

    color: #888;

    font-size: 0.85rem;
  }

  body.dark-mode .swipe-text {
    color: #bdbdbd;
  }
}
/* Gallery Section */
.gallery {
  padding: 100px 0;
  background: white;
  text-align: center;
}

.gallery h2 {
  color: #ff9900;
  margin-bottom: 10px;
}

.gallery p {
  margin-bottom: 40px;
  color: #666;
}
/* Horizontal Gallery */
.gallery-grid {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 15px;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* Scrollbar Modern */
.gallery-grid::-webkit-scrollbar {
  height: 10px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 999px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff9900, #ffcf80);
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: #ff9900;
}

.gallery-item {
  flex: 0 0 320px;
  width: 320px;

  /* Dibuat lebih tinggi */
  height: 420px;

  object-fit: cover;
  border-radius: 18px;

  scroll-snap-align: start;

  transition: 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.gallery-grid {
  cursor: grab;
}

.gallery-grid:active {
  cursor: grabbing;
}
.gallery-action {
  margin-top: 35px;
  text-align: center;
}

.gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 14px 32px;

  background: linear-gradient(135deg, #ff9900, #ffb733);

  color: white;
  text-decoration: none;

  border-radius: 999px;

  font-weight: 600;
  font-size: 1rem;

  transition: all 0.3s ease;

  box-shadow: 0 10px 25px rgba(255, 153, 0, 0.25);
}

.gallery-btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(255, 153, 0, 0.4);
}

.gallery-btn i {
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 220px;
    width: 220px;
    height: 320px;
  }
  .gallery-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
/*Gallery html */
.gallery-hero {
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  position: relative;

  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("DSC01585.JPG");

  background-size: cover;
  background-position: center;
}
.gallery-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(255, 153, 0, 0.35) 100%
  );
}
.gallery-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: 20px;
  animation: fadeUp 1s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-hero-badge {
  display: inline-block;
  padding: 8px 20px;
  margin-bottom: 20px;
  background: rgba(255, 153, 0, 0.9);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.gallery-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.85;
}
.gallery-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 25px;

  padding: 80px 8%;
}

.gallery-stat {
  text-align: center;

  padding: 30px;

  border-radius: 20px;

  background: white;
  position: relative;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.gallery-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff9900;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.gallery-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.gallery-stat:hover::before {
  transform: scaleX(1);
}

.gallery-stat h2 {
  color: #ff9900;
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
}

.gallery-stat p {
  color: #666;
  margin-top: 5px;
}
@media (max-width: 768px) {
  .gallery-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;

  padding: 0 8%;
  margin-bottom: 60px;
}

.gallery-filter button {
  border: 1.5px solid #eee;

  padding: 10px 20px;

  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  background: white;

  cursor: pointer;

  transition: 0.25s ease;
}

.gallery-filter button:hover {
  border-color: #ff9900;
  color: #ff9900;
}

.gallery-filter button.active {
  border-color: #ff9900;
  background: #ff9900;
  color: white;
}
.full-gallery {
  padding: 0 8% 100px;
}

.masonry-gallery {
  column-count: 4;
  column-gap: 18px;
}

.masonry-gallery img {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    opacity 0.4s ease;

  /* Reserve space + skeleton shimmer while the image is still loading,
     so the masonry layout doesn't jump and the page feels instant. */
  aspect-ratio: 3 / 4;
  background: linear-gradient(100deg, #ececec 20%, #f6f6f6 40%, #ececec 60%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.4s ease-in-out infinite;

  /* Skip layout/paint work for photos far off-screen = faster first paint. */
  content-visibility: auto;
  contain-intrinsic-size: 400px 500px;
}

.masonry-gallery img.loaded {
  aspect-ratio: auto;
  animation: none;
  background: none;
}

@keyframes gallery-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.masonry-gallery img:hover {
  transform: translateY(-6px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}
.fullscreen-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
}
.fullscreen-lightbox.show {
  opacity: 1;
}
.fullscreen-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
}

#closeGallery {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ff9900;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  transition: 0.3s;
}

.back-home:hover {
  transform: translateY(-3px);
  background: #ffad33;
}
.dark-mode-btns {
  margin-top: 20px;

  border: none;

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px);

  color: white;

  width: 55px;
  height: 55px;

  border-radius: 50%;

  cursor: pointer;

  font-size: 1.1rem;

  transition: 0.3s;
}

.dark-mode-btns:hover {
  transform: scale(1.08);
}
body.dark-mode {
  background: #0f172a;
  color: white;
}

body.dark-mode .gallery-stat {
  background: #1e293b;
  color: white;
}

body.dark-mode .gallery-stat p {
  color: #cbd5e1;
}

body.dark-mode .gallery-filter button {
  background: #334155;
  border-color: #334155;
  color: white;
}

body.dark-mode .gallery-filter button:hover {
  border-color: #ff9900;
}

body.dark-mode .gallery-filter button.active {
  background: #ff9900;
  border-color: #ff9900;
}

body.dark-mode .gallery-footer {
  background: #020617;
}

body.dark-mode .gallery-photo {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
  .gallery-hero-content h1 {
    font-size: 2.5rem;
  }

  .gallery-hero-content p {
    font-size: 0.95rem;
  }
}
.load-more-wrapper {
  text-align: center;
  margin: 50px 0;
}
.gallery-photo {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.gallery-photo.show {
  opacity: 1;
  transform: translateY(0);
}
.gallery-photo.hidden {
  display: none;
}
.gallery-footer {
  background: #1f2937;
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.gallery-footer img {
  width: 80px;
  margin-bottom: 15px;
}

.gallery-footer h3 {
  color: #ff9900;
}

.gallery-footer a {
  display: inline-block;
  margin-top: 20px;
  color: #ff9900;
  text-decoration: none;
}
@media (max-width: 768px) {
  .gallery-filter {
    justify-content: flex-start;

    flex-wrap: nowrap;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 20px 15px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-filter::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter button {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 15px;
  animation: zoomIn 0.3s ease;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* News Section */
.news-card {
  position: relative;
}

.news-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4d4d;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 20px;
}
.news {
  padding: 100px 0;
  background: #f8f9fa;
  text-align: center;
}

.news h2 {
  color: #ff9900;
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
}

.news p {
  color: #666;
  margin-bottom: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-content {
  padding: 25px;
  text-align: left;
}

.news-date {
  color: #ff9900;
  font-size: 0.9rem;
  font-weight: 600;
}

.news-content h3 {
  margin: 15px 0;
  color: #222;
}

.news-content p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.news-btn {
  display: inline-block;
  background: #ff9900;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  transition: 0.3s;
}

.news-btn:hover {
  background: #e68a00;
}
@media (max-width: 768px) {
  .news-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .news-grid::-webkit-scrollbar {
    height: 8px;
  }

  .news-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
  }

  .news-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff9900, #ffc266);
    border-radius: 999px;
  }

  .news-card {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: start;
  }

  .news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .news-content {
    padding: 15px;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }

  .news-content p {
    font-size: 0.85rem;
  }
}
/* TIMELINE */

.timeline {
  padding: 100px 0;
  background: white;
  text-align: center;
}

.timeline h2 {
  color: #ff9900;
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  margin-bottom: 10px;
}

.timeline p {
  color: #666;
  margin-bottom: 60px;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #ff9900;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #ff9900;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px #ff9900;
}

.timeline-item:nth-child(odd)::before {
  right: -12px;
}

.timeline-item:nth-child(even)::before {
  left: -12px;
}

.timeline-date {
  font-weight: 700;
  color: #ff9900;
  margin-bottom: 10px;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: #222;
}
@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-item::before {
    left: 10px !important;
  }
}
@media (max-width: 768px) {
  .timeline-container {
    position: relative;
    padding-left: 40px;
  }

  /* Garis timeline */
  .timeline-container::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #ffb84d, #ff9900);
    border-radius: 999px;
  }

  .timeline-item {
    position: relative;
    margin-bottom: 25px;
  }

  /* Titik timeline */
  .timeline-item::before {
    content: "";
    position: absolute;
    left: -31px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #ff9900;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.4);
  }

  .timeline-date {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;

    font-size: 0.8rem;
    font-weight: 600;

    background: linear-gradient(135deg, #ffb84d, #ff9900);

    color: white;
    border-radius: 999px;
  }

  .timeline-content {
    padding: 15px;
    border-radius: 15px;

    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  .timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .timeline-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}
/* Events Section */
/* .events {
  padding: 100px 0;
  background: #e9ecef;
  text-align: center;
}
.events h2 {
  margin-bottom: 40px;
  color: #dc3545;
}
.event-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 10px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  width: 300px;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  padding: 15px;
  color: #007bff;
}
.card p {
  padding: 0 15px 15px;
}

/* Footer */
.footer {
  border-top: 4px solid #ff9900;
  background: #1f2937;
  color: white;
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  width: 70px;
  margin-bottom: 15px;
}

.footer-brand h3 {
  color: #ff9900;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #d1d5db;
  line-height: 1.7;
}

.footer-links,
.footer-social,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
  margin-bottom: 15px;
  color: #ff9900;
}

.footer-links a,
.footer-social a {
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #ff9900;
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 12px;
  color: #d1d5db;
}

.footer-contact i,
.footer-social i {
  margin-right: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}
@media (max-width: 768px) {
  .footer-content {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
  }

  /* Brand jadi baris penuh */
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 15px;
  }

  .footer-brand img {
    width: 70px;
    margin-bottom: 10px;
  }

  .footer-brand h3 {
    font-size: 1.2rem;
  }

  .footer-brand p {
    max-width: 350px;
    margin: auto;
    font-size: 0.85rem;
  }

  .footer-links,
  .footer-social,
  .footer-contact {
    align-items: center;
  }

  .footer-links h4,
  .footer-social h4,
  .footer-contact h4 {
    font-size: 0.9rem;
  }

  .footer-links a,
  .footer-social a,
  .footer-contact p {
    font-size: 0.75rem;
  }
}

/* Responsif */
@media (max-width: 768px) {
  .slide h1 {
    font-size: 2rem;
  }
  .icons,
  .event-cards {
    flex-direction: column;
    align-items: center;
  }
}
/* ======================
   DARK MODE
====================== */

body.dark-mode {
  background: #121212;
  color: #f1f1f1;
}

/* Section umum */
body.dark-mode .about,
body.dark-mode .timeline,
body.dark-mode .gallery,
body.dark-mode .news,
body.dark-mode .team,
body.dark-mode .stats,
body.dark-mode .events {
  background: #1a1a1a;
}

/* Card */
body.dark-mode .card,
body.dark-mode .member-card,
body.dark-mode .leader-card,
body.dark-mode .news-card,
body.dark-mode .timeline-content,
body.dark-mode .stat-card {
  background: #222;
  color: white;
}

/* Text */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p {
  color: white;
}
body.dark-mode .icon h3 {
  color: #f39911d4;
}
/* Footer */
body.dark-mode footer {
  background: #0d0d0d;
}

/* Header */
body.dark-mode header {
  background: rgba(20, 20, 20, 0.95);
}

/* Countdown */
body.dark-mode .countdown {
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
}

/* Timeline line */
body.dark-mode .timeline-container::before {
  background: #ff9900;
}
body,
section,
.card,
.member-card,
.news-card,
.timeline-content,
footer,
header {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}
