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: #ff9900; /* Semi-transparan dengan blur effect */
  backdrop-filter: blur(10px); /* Efek blur modern */
  color: white;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow untuk kedalaman */
  transition: background 0.3s ease; /* Transisi smooth */
}
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;
}
.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;
}
/* 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: 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: #007bff;
}
.about p {
  margin-bottom: 40px;
}
.icons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* jangan turun */
  gap: 10px;
}
.icon {
  flex: 1;
  max-width: 200px;
  margin: 10px;
}
.icon img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    align-items: start;
  }

  .icon {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .icon img {
    width: 50px;
    height: 50px;
  }

  .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: 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: 1fr;
  }
}
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;
}
@media (max-width: 768px) {
  .vision-mission-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: stretch;
  }

  .vision-card,
  .mission-card {
    width: 50% !important;
    flex: 1 !important;
    padding: 15px !important;
  }

  .vision-card h3,
  .mission-card h3 {
    font-size: 1rem;
  }

  .vision-card p,
  .mission-card li {
    font-size: 0.75rem;
  }
}
/* Team Section */
.team {
  padding: 100px 0;
  background: #f8f9fa;
  text-align: center;
}
.team h2 {
  margin-bottom: 10px;
  color: #007bff;
}
.team p {
  margin-bottom: 50px;
  color: #666;
}
.team-section {
  margin-bottom: 60px;
}
.team-section h3 {
  margin-bottom: 30px;
  color: #dc3545;
  font-size: 1.5rem;
}
.sub-section {
  margin-bottom: 40px;
}
.sub-section h4 {
  margin-bottom: 20px;
  color: #007bff;
  font-size: 1.2rem;
  font-weight: bold;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}
.leader-grid {
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Grid khusus untuk leader, lebih lebar */
}
.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;
  width: 100%;
  max-width: 200px; /* Ukuran normal */
}
.leader-card {
  max-width: 250px; /* Diperbesar untuk Ketua dan Waketos */
  padding: 25px; /* Padding lebih besar */
  border: 2px solid #007bff; /* 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 #007bff;
}
.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: #dc3545;
  color: white;
}

/* Responsif untuk team */
@media (max-width: 768px) {
  .team-grid,
  .leader-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .member-card,
  .leader-card {
    padding: 15px;
    max-width: none;
  }
  .leader-card img {
    width: 100px;
    height: 100px;
  }
}

/* Statistics Section */
.stats {
  padding: 100px 0;
  background: linear-gradient(135deg, #ff9900, #ffb84d);
  color: white;
  text-align: center;
}

.stats h2 {
  font-size: 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: linear-gradient(180deg, #fff, #fffaf3);

  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(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.legacy-card:hover img {
  transform: scale(1.08);
}
.current {
  border: 2px solid #ff9900;
  background: linear-gradient(135deg, #fff, #fff4e0);
  position: relative;
}
.current::after {
  content: "✨";

  position: absolute;

  top: 15px;
  left: 15px;

  font-size: 1.2rem;

  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}
.current::before {
  content: "CURRENT";
  position: absolute;

  top: 15px;
  right: -30px;
  background: #ff9900;
  color: white;
  padding: 6px 35px;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
}
/* =====================
   DARK MODE - LEGACY
===================== */

body.dark-mode .legacy {
  background: linear-gradient(180deg, #121212, #1a1a1a);
}

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: linear-gradient(135deg, #1f2937, #2d3748);

  border: 2px solid #ff9900;
}
@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, #0d6efd, #6ea8fe, #ffd54f);

  box-shadow:
    0 0 8px rgba(255, 213, 79, 0.4),
    0 0 15px rgba(13, 110, 253, 0.3);
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #0056d2, #0099ff);
}

.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(
    135deg,
    rgba(255, 153, 0, 0.2),
    rgba(0, 123, 255, 0.15)
  );
}
.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-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  font-family: "Outfit", sans-serif;
}

.gallery-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  font-family: "Plus Jakarta Sans", sans-serif;
  opacity: 0.9;
}
.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;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-stat h2 {
  color: #ff9900;
  font-size: 2.5rem;
}

.gallery-stat p {
  color: #666;
}
@media (max-width: 768px) {
  .gallery-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-family: "Baloo 2", sans-serif;
  flex-wrap: wrap;

  margin-bottom: 50px;
}

.gallery-filter button {
  border: none;

  padding: 12px 22px;

  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  background: #f3f4f6;

  cursor: pointer;

  transition: 0.3s;
}

.gallery-filter button.active,
.gallery-filter button:hover {
  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: 0.3s;
}

.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;
  color: white;
}

body.dark-mode .gallery-filter button.active {
  background: #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: 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, #007bff, #4da3ff, #ff9900);
    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: 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, #007bff, #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, #007bff, #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;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-indicator span {
  display: block;
  width: 25px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 22px;
  }
}
/* =======================
   LOADING SCREEN
======================= */
#loader {
  position: fixed;
  inset: 0;

  display: grid;
  place-items: center;

  background: linear-gradient(135deg, #ff9900, #ffb347);

  z-index: 99999;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
}

.loader-logo {
  width: 140px;
  margin-bottom: 20px;

  animation: logoFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.loader-content h2 {
  letter-spacing: 4px;
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.loader-bar {
  width: 280px;
  max-width: 80vw;
  height: 8px;

  margin: 0 auto;

  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;

  background: white;

  animation: loadingBar 2.5s ease forwards;
}

@keyframes loadingBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoSpin {
  from {
    rotate: 0deg;
  }

  to {
    rotate: 360deg;
  }
}
/* ======================
   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;
}

/* 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;
}
/* ======================
   PARTNER & SPONSOR
====================== */

.partners {
  padding: 100px 0;
  background: white;
  text-align: center;
  overflow: hidden;
}

.partners h2 {
  color: #ff9900;
  margin-bottom: 10px;
}

.partners p {
  color: #666;
  margin-bottom: 40px;
}

.partner-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partner-track {
  display: flex;
  width: max-content;
  animation: scrollPartner 20s linear infinite;
}

.partner-track img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  margin: 0 30px;

  filter: grayscale(100%);
  opacity: 0.7;

  transition: 0.3s;
}

.partner-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scrollPartner {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
body.dark-mode .partners {
  background: #121212;
}

body.dark-mode .partners p {
  color: #bbb;
}

body.dark-mode .partner-track img {
  filter: grayscale(100%) brightness(0.9);
}
.partner-track-reverse {
  display: flex;
  width: max-content;
  margin-top: 30px;
  animation: scrollPartnerReverse 20s linear infinite;
}

.partner-track-reverse img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  margin: 0 30px;

  filter: grayscale(100%);
  opacity: 0.7;

  transition: 0.3s;
}

.partner-track-reverse img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}
@keyframes scrollPartnerReverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}
body.dark-mode .partner-track-reverse img {
  filter: grayscale(100%) brightness(0.9);
}
