/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif; /* Font modern dan elegan */
  line-height: 1.8;
  color: #333;
  background: #f5f7fa; /* Latar belakang lembut */
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}
.logo-img {
  width: 50px; /* Sesuaikan ukuran */
  height: auto;
  vertical-align: middle;
}
/* Navigation */
nav {
  background: linear-gradient(135deg, #003366, #004080);
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1300px; /* Membatasi lebar maksimum untuk kerapian */
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 50px; /* Ukuran logo */
  height: auto;
  margin-right: 15px; /* Jarak antara logo dan teks */
}

.logo-text {
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover .logo-text {
  color: #ffd700; /* Warna emas saat hover */
}

/* Hamburger Button */
.hamburger {
  display: block; /* Selalu tampil, termasuk di desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Animasi Hamburger menjadi X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav Menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Sembunyikan di sisi kanan secara default */
  width: 70%;
  max-width: 300px; /* Lebar maksimum menu */
  height: 100vh;
  background: #003366;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.nav-menu.active {
  right: 0; /* Tampilkan saat aktif */
}

.nav-menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.2em;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  background: #ffd700;
  color: #003366;
  transform: scale(1.05);
}

/* Responsivitas */
@media (max-width: 768px) {
  .logo-img {
    width: 40px; /* Logo lebih kecil di mobile */
  }

  .logo-text {
    font-size: 1.5em; /* Teks lebih kecil di mobile */
  }

  .nav-menu {
    width: 80%; /* Lebar lebih besar di mobile */
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.2em;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
    margin: 4px 0;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Menghindari video meluber */
  background: #000; /* Background hitam sebagai fallback */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Memastikan video mengisi area tanpa distorsi */
  transform: translate(-50%, -50%);
  opacity: 0.3; /* Opacity rendah untuk video */
  z-index: 1;
}

.hero-section .overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); /* Overlay hitam dengan transparansi */
  color: #fff;
  text-align: center;
  padding: 40px;
  border-radius: 15px;
  animation: fadeInUp 1.5s ease-out;
  max-width: 80%;
}

.hero-section .overlay h1 {
  font-size: 3.5em;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Bayangan lebih gelap untuk kontras */
  margin-bottom: 20px;
}

.hero-section .overlay p {
  font-size: 1.4em;
  line-height: 1.5;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Bayangan untuk teks kecil */
}

/* Animasi Fade-in Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivitas */
@media (max-width: 768px) {
  .hero-section .overlay h1 {
    font-size: 2.5em;
  }

  .hero-section .overlay p {
    font-size: 1.2em;
  }

  .hero-section .overlay {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-section .overlay h1 {
    font-size: 1.8em;
  }

  .hero-section .overlay p {
    font-size: 1em;
  }
}

/* Section Styles */
section {
  padding: 100px 0;
  margin-top: 60px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  width: 95%;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #003366;
  font-size: 2.5em;
  position: relative;
}

section h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #ffd700;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Cards & Interactive Elements */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border: none;
  padding: 30px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: #003366;
  color: #fff;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5em;
}

.card img {
  width: 100%;
  max-width: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.1);
}

/* Achievements */
.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.achievement {
  background: #fff;
  padding: 25px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.achievement:hover {
  transform: rotate(2deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Grid Layouts untuk Fasilitas dan Galeri */
.facilities-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.facility, .gallery-item {
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
}

.facility img,
.gallery-item img {
  max-width: 100%;
  transition: transform 0.5s ease;
}

.facility:hover img,
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Footer */

.footer-social {
  display: flex;
  gap: 20px; /* Jarak antar ikon */
  justify-content: center;
  align-items: center;
}

.footer-social a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.footer-social a img {
  width: 40px; /* Ukuran logo GitHub */
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Membuat logo GitHub putih */
}

.footer-social a:hover img {
  transform: rotate(360deg);
  filter: brightness(1) invert(0) sepia(1) hue-rotate(40deg); /* Efek emas saat hover */
}

/* Styling untuk Bootstrap Icons */
.footer-social a i {
  font-size: 40px; /* Ukuran ikon */
  color: #fff; /* Warna default putih */
}

.footer-social a:hover i {
  transform: rotate(360deg);
  color: #ffd700; /* Warna emas saat hover */
}
footer {
  background: linear-gradient(135deg, #003366, #004080);
  color: #fff;
  padding: 60px 0;
  position: relative;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: start;
}

footer .footer-links ul li a {
  color: #fff;
  transition: all 0.3s ease;
}

footer .footer-links ul li a:hover {
  color: #ffd700;
  padding-left: 10px;
}

.footer-social a img {
  width: 40px;
  transition: transform 0.3s ease;
}

.footer-social a:hover img {
  transform: rotate(360deg);
}

.copyright {
  margin-top: 20px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Modal Popup untuk Galeri */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.5s ease;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  border-radius: 10px;
  animation: zoomIn 0.6s ease;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #ffd700;
  font-size: 50px;
  transition: transform 0.3s ease;
}

.close:hover {
  transform: scale(1.2);
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-nav span {
  color: #ffd700;
  font-size: 60px;
  transition: transform 0.3s ease;
}

.modal-nav span:hover {
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Galeri Foto */
#galeri {
  padding: 100px 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  width: 95%;
}

#galeri h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #003366;
  font-size: 2.5em;
  position: relative;
}

#galeri h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #ffd700;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Lebar minimum lebih besar untuk ruang */
  gap: 30px; /* Jarak antar item lebih luas */
  padding: 20px;
  justify-items: center; /* Memusatkan item dalam grid */
}

.gallery-item {
  position: relative;
  width: 100%;
  max-width: 300px; /* Batas maksimum lebar gambar */
  height: 200px; /* Tinggi tetap untuk konsistensi */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar menyesuaikan tanpa distorsi */
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.1); /* Zoom gambar saat hover */
}

/* Responsivitas */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Menyesuaikan untuk tablet */
    gap: 20px;
  }

  .gallery-item {
    max-width: 250px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* Satu kolom untuk layar kecil */
    gap: 15px;
  }

  .gallery-item {
    max-width: 100%;
    height: 200px;
  }
}
/* Responsive Styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
  }

  .parallax .overlay h1 {
    font-size: 2.5em;
  }

  .card, .achievement {
    width: 100%;
  }
}

@media (max-width: 480px) {
  section h2 {
    font-size: 1.8em;
  }

  .parallax .overlay {
    padding: 20px;
  }
}