@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f8fafc;
  color: #334155;
}

html {
  scroll-behavior: smooth;
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: #000000;
  position: fixed;
  width: 100%;
  z-index: 9999;
}

.logo {
  color: white;
  font-size: 22px;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #1e293b;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #38bdf8;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #1e293b;
}

/* DROPDOWN */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  width: 180px;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  display: none;
  overflow: hidden;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 15px;
  color: #333;
}

.dropdown-menu li a:hover {
  background: #f1f5f9;
}

/* HOVER */

.dropdown:hover .dropdown-menu {
  display: block;
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
    url("../img/masjid2.jpg") !important;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

/* hero content */

.hero-content {
  max-width: 700px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 35px;
  color: #e2e8f0;
}

/* tombol */

.hero-btn {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary {
  padding: 12px 28px;
  background: #38bdf8;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 12px 28px;
  border: 2px solid #38bdf8;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #38bdf8;
}

/* scroll indicator */

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
}

.scroll-down::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

.kegiatan {
  padding: 100px 8%;
  background: #f8fafc;
  margin-top: -2rem;
}

.kegiatan-header {
  text-align: center;
  margin-bottom: 50px;
}

.kegiatan-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.kegiatan-header p {
  color: #64748b;
  font-size: 16px;
}

.kegiatan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* card */

.kegiatan-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.kegiatan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.kegiatan-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card-content p {
  color: #64748b;
  font-size: 14px;
}

.about {
  padding: 100px 8%;
  background: white;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* gambar */

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* teks */

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-content p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* tombol */

.about-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: #38bdf8;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.about-btn:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.contact {
  padding: 100px 8%;
  background: #f8fafc;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.contact-header p {
  color: #64748b;
}

/* layout */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* info */

.contact-info {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #475569;
}

/* sosial */

.contact-social {
  margin-top: 20px;
}

.contact-social a {
  margin-right: 15px;
  text-decoration: none;
  color: #38bdf8;
  font-weight: 600;
}

/* form */

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #6dc4e0;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #0ea5e9;
}

.footer {
  background: #9dd8ec;
  color: rgb(255, 255, 255);
  padding: 70px 8% 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  margin-bottom: 15px;
}

.footer h4 {
  margin-bottom: 15px;
}

.footer p {
  color: #ffffff;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s;
}

.footer ul li a:hover {
  color: #ffffff;
}

/* bottom */

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 14px;
  color: #94a3b8;
}

.sejarah {
  padding: 100px 8%;
  background: #f8fafc;
}

.sejarah-header {
  text-align: center;
  margin-bottom: 60px;
}

.sejarah-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.sejarah-header p {
  color: #64748b;
}

/* container */

.timeline {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* card */

.timeline-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* gambar */

.timeline-card img {
  width: 250px;
  height: 200px;
  object-fit: cover;
}

/* teks */

.timeline-text {
  padding: 20px;
}

.timeline-text .tahun {
  display: inline-block;
  background: #38bdf8;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

.timeline-text h3 {
  margin-bottom: 8px;
}

.timeline-text p {
  color: #64748b;
  line-height: 1.6;
}

.visi-misi {
  padding: 100px 8%;
  background: white;
}

.vm-header {
  text-align: center;
  margin-bottom: 50px;
}

.vm-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.vm-header p {
  color: #64748b;
}

/* visi */

.visi-box {
  max-width: 800px;
  margin: 0 auto 60px;
  background: #38bdf8;
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.visi-box h3 {
  margin-bottom: 10px;
}

/* misi */

.misi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.misi-card {
  background: #f8fafc;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.misi-card:hover {
  transform: translateY(-5px);
}

.misi-card h4 {
  font-size: 30px;
  margin-bottom: 10px;
}

.misi-card p {
  color: #475569;
  font-size: 14px;
}
.struktur {
  padding: 100px 8%;
  background: #f1f5f9;
  text-align: center;
}

.struktur-header {
  margin-bottom: 60px;
}

.struktur-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.struktur-header p {
  color: #64748b;
}

/* ketua */

.ketua-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 250px;
  margin: 0 auto 60px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ketua-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.ketua-card span {
  color: #38bdf8;
  font-weight: 600;
}

/* pengurus */

.pengurus-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.pengurus-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transition: 0.3s;
}

.pengurus-card:hover {
  transform: translateY(-6px);
}

.pengurus-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.pengurus-card h4 {
  margin-bottom: 5px;
}

.pengurus-card p {
  color: #64748b;
  font-size: 14px;
}
.jadwal {
  padding: 80px 10%;
  background: #f4f9ff;
  text-align: center;
}

.jadwal h2 {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.jadwal .tanggal {
  color: #555;
  margin-bottom: 40px;
}

.jadwal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.jadwal .card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.jadwal .card:hover {
  transform: translateY(-8px);
}

.jadwal .card h3 {
  margin-bottom: 10px;
  color: #2563eb;
}

.jadwal .card p {
  font-size: 1.4rem;
  font-weight: bold;
}
.kajian {
  padding: 80px 10%;
  background: #ffffff;
  text-align: center;
}

.kajian h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.kajian .sub {
  color: #666;
  margin-bottom: 50px;
}

.kajian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.kajian-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.kajian-card:hover {
  transform: translateY(-10px);
}

.kajian-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.kajian-content {
  padding: 20px;
}

.kajian-content h3 {
  margin-bottom: 10px;
  color: #1e293b;
}

.kajian-content .ustadz {
  color: #2563eb;
  font-weight: 500;
}

.kajian-content .waktu {
  color: #666;
  margin: 10px 0 15px;
}

.btn-kajian {
  display: inline-block;
  padding: 8px 20px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-kajian:hover {
  background: #1d4ed8;
}
.event {
  padding: 80px 10%;
  background: #f4f9ff;
  text-align: center;
}

.event h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.event .sub {
  color: #666;
  margin-bottom: 50px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: 0.3s;
}

.event-card:hover {
  transform: translateY(-10px);
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #2563eb;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.event-date .day {
  font-size: 20px;
  font-weight: bold;
  display: block;
}

.event-date .month {
  font-size: 12px;
}

.event-content {
  padding: 20px;
}

.event-content h3 {
  margin-bottom: 10px;
  color: #1e293b;
}

.event-content p {
  color: #666;
  margin-bottom: 15px;
}

.btn-event {
  display: inline-block;
  padding: 8px 20px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-event:hover {
  background: #1d4ed8;
}

/* ================= MODERN UPGRADE (TIDAK MENGUBAH CSS LAMA) ================= */

/* smooth global animation */

* {
  transition: all 0.3s ease;
}

/* navbar modern */

.navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* menu hover modern */

.nav-menu a {
  position: relative;
  font-weight: 500;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #2563eb;
  transition: 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* dropdown upgrade TANPA menghapus css lama */

.dropdown-menu {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu {
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dropdown-menu li a:hover {
  padding-left: 20px;
  color: #2563eb;
}

/* hero gradient upgrade */

.hero {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.85), rgba(37, 99, 235, 0.6)),
    url("../img/masjid2.jpg") center / cover no-repeat !important;
}

/* modern card effect */

.kegiatan-card,
.kajian-card,
.event-card,
.jadwal .card,
.timeline-card,
.pengurus-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.kegiatan-card:hover,
.kajian-card:hover,
.event-card:hover,
.jadwal .card:hover,
.timeline-card:hover,
.pengurus-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* modern button */

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 50px;
}

.btn-primary:hover {
  transform: translateY(-4px);
}

.btn-secondary {
  border-radius: 50px;
}

/* image effect */

.kegiatan-card img,
.kajian-card img,
.event-card img {
  filter: brightness(0.95);
}

.kegiatan-card:hover img,
.kajian-card:hover img,
.event-card:hover img {
  filter: brightness(1.05);
}

/* footer modern */

.footer {
  background: linear-gradient(120deg, #0f172a, #1e293b);
}

.footer-bottom {
  color: #cbd5f5;
}
/* ================= RESPONSIVE ================= */

/* Tablet (780px) */
@media (max-width: 780px) {
  .menu-toggle {
    display: block;
  }
  
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    display: none;
    box-shadow: none;
    width: 100%;
    text-align: center;
    background: transparent;
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: 0.4s ease-in-out;
    z-index: -1;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar .btn-primary {
    display: none; /* Hide login button in navbar on mobile, or move it to menu */
  }
  .nav-menu .btn-primary {
    display: inline-block;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    flex-direction: column;
  }

  .timeline-card img {
    width: 100%;
    height: 250px;
  }

  .kegiatan-container,
  .kajian-grid,
  .event-grid,
  .pengurus-container,
  .misi-container,
  .jadwal-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile (450px) */
@media (max-width: 450px) {
  .hero-content h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 14px;
  }

  .logo {
    font-size: 18px;
  }

  .btn-primary,
  .btn-secondary,
  .about-btn,
  .btn-kajian,
  .btn-event {
    padding: 10px 18px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  .hero-btn {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .card-content h3,
  .kajian-content h3,
  .event-content h3 {
    font-size: 18px;
  }

  .contact-header h2,
  .kegiatan-header h2,
  .about-content h2,
  .sejarah-header h2,
  .vm-header h2,
  .struktur-header h2,
  .jadwal h2,
  .kajian h2,
  .event h2 {
    font-size: 24px;
  }

  .timeline-text {
    padding: 15px;
  }

  .kegiatan-container,
  .kajian-grid,
  .event-grid,
  .pengurus-container,
  .misi-container,
  .jadwal-grid {
    grid-template-columns: 1fr;
  }
}
