@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  overflow-x: hidden;
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: #8a4e86;
  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;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #38bdf8;
}

/* 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/hiro.jpg");
  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: #8a4e86;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #0ea5e9;
}

.footer {
  background: #8a4e86;
  color: white;
  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: #cbd5f5;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  text-decoration: none;
  color: #cbd5f5;
  transition: 0.3s;
}

.footer ul li a:hover {
  color: #38bdf8;
}

/* 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: #8a4e86;
  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;
}

.asal {
  align-items: center;
  position: absolute;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.1rem;
}

.card h1 {
  align-items: center;
}

/* --- RESPONSIVE NAVBAR --- */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 10000;
}

.menu-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease-in-out;
  border-radius: 4px;
}

/* Tablet Responsif */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    right: -100%; /* Hidden by default */
    flex-direction: column;
    background: #8a4e86;
    width: 100%;
    text-align: center;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    padding: 20px 0;
    gap: 15px;
  }
  
  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 10px;
    font-size: 18px;
  }

  /* Hamburger Animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Dropdown static in responsive */
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background: #733c70;
    display: none;
  }

  .dropdown.active .dropdown-menu,
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile Responsif */
@media screen and (max-width: 450px) {
  .logo {
    font-size: 18px;
  }
  
  .menu-toggle .bar {
    width: 24px;
    height: 2px;
  }

  .nav-menu a {
    font-size: 16px;
  }
  
  .hero-content h1 {
    font-size: 40px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
}

/* --- MODERN AESTHETICS & RESPONSIVENESS UPGRADES --- */

/* Global Premium Tweaks */
.navbar {
  background: linear-gradient(135deg, #8a4e86 0%, #6b3768 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-3px);
}
.btn-secondary {
  background: transparent;
  backdrop-filter: blur(5px);
}
.btn-secondary:hover {
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Modernizing Cards */
.kegiatan-card, .event-card, .kajian-card, .misi-card, .pengurus-card, .jadwal .card, .contact-info, .contact-form, .timeline-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.kegiatan-card:hover, .event-card:hover, .kajian-card:hover, .misi-card:hover, .pengurus-card:hover, .jadwal .card:hover, .timeline-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.visi-box {
  background: linear-gradient(135deg, #8a4e86 0%, #6b3768 100%);
  border-radius: 20px;
}
.footer {
  background: linear-gradient(135deg, #2d1a2c 0%, #1a0f19 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* FULL RESPONSIVENESS (TABLET - 780px) */
@media screen and (max-width: 780px) {
  /* Reduce Global Padding */
  .kegiatan, .about, .contact, .sejarah, .visi-misi, .struktur, .jadwal, .kajian, .event {
    padding: 60px 5%;
  }
  
  /* Stack 2-column grids into 1 column */
  .about-container, .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image img {
    max-height: 400px;
    object-fit: cover;
  }
  
  /* Timeline */
  .timeline-card {
    flex-direction: column;
  }
  .timeline-card img {
    width: 100%;
    height: 250px;
  }
  
  /* Hero Text */
  .hero-content h1 {
    font-size: 48px;
  }
}

/* FULL RESPONSIVENESS (MOBILE - 450px) */
@media screen and (max-width: 450px) {
  /* Adjust Typography */
  .hero-content h1 { font-size: 32px; }
  .kegiatan-header h2, .about-content h2, .contact-header h2, .sejarah-header h2, .vm-header h2, .struktur-header h2, .jadwal h2, .kajian h2, .event h2 {
    font-size: 26px;
  }
  
  /* Adjust Grid Columns to full width */
  .kegiatan-container, .event-grid, .kajian-grid, .jadwal-grid, .misi-container, .pengurus-container, .footer-container {
    grid-template-columns: 1fr;
  }
  
  /* Fixed width fixes */
  .visi-box {
    width: 100%;
    padding: 20px;
  }
  .ketua-card {
    width: 100%;
    max-width: 300px;
  }
  
  /* Forms */
  .contact-form {
    padding: 20px 15px;
  }
}
