@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --dark-bg-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Modal Style */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
}

#installBtn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#installBtn:hover {
  background-color: #0056b3;
}

@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 15px;
  }

  #installBtn {
    font-size: 14px;
  }
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

  .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo img {
      width: 35px;
      animation: gerakTeks 2s infinite ease-in-out; 
    }

    .logo span {
      font-size: 1.5em;
      font-weight: bold;
      color: #3498db;
    }

    @keyframes gerakTeks {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    flex-wrap: wrap; /* Biar elemen turun kalau ruang sempit */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px; /* Jarak antar item menu */
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0; /* Reset margin */
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap; /* Supaya teks tidak terpotong */
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none; /* Default sembunyikan burger */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Dropdown Responsif */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 20px;
}

.dropdown-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-btn:hover {
    background-color: #0056b3;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    text-decoration: none;
    color: #000;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
    }

    .dropdown-content a {
        padding: 10px;
    }
}

/* Media Queries untuk layar kecil */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%; 
        gap: 0;
        padding: 10px 0;
        background: #fff;
    }

    .nav-links.active {
        display: flex; 
    }

    .burger {
        display: block;
    }

    .nav-links li {
        text-align: center;
    }

    .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
    }
}
/* Hero Section */
.hero {
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSasObML5Qh-oGqDS6J2h-VztbWR4sVsHYt7AO0ciV9oMe7OxPxXve0SdDU&s=10');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/*About Sevtion */
.about {
    padding: 6rem 5%;
    background-color: #fff;
}

.about h3, li, ul, p, h2 {
  text-align: center;
}

.about p {
  margin: 20px 10px;
}

.about li {
  list-style-type: disc;
  margin: 10px 20px;
  padding: 0;
  line-height: 1.5;
}

/*Structure organigram */
 .team {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
  }
  .team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .team-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 240px; /* Lebar tetap */
    min-height: 300px; /* Tinggi minimum */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Menjaga jarak antar elemen */
  }
  .team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
  }
  .team-item h3 {
    font-size: 18px;
    margin: 10px 0 5px;
  }
  .team-item p {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px;
  }
  .social-link {
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
  }
  .social-link:hover {
    text-decoration: underline;
  }
  .fab.fa-instagram {
    margin-right: 5px;
  }

/* Gallery Section */
.gallery {
    padding: 2rem 0;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gallery-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-img.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Collection Section */
.collection {
    padding: 6rem 5%;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category {
    padding: 8px 16px;
    margin: 5px;
    background-color: var(--bg-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.category.active,
.category:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.book-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px; /* Batas lebar maksimal */
    margin: 0 auto; /* Ratakan tengah */
    padding: 1rem;
}

.book {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.book img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.book h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.book p {
    font-size: 1rem;
    color: #666;
}

.book-list {
    display: none;
}

.book-list.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background-color: var(--bg-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Facilities Section */
.facilities {
    padding: 6rem 5%;
    background-color: #fff;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.facility-item {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.facility-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Events Section */
.events {
    padding: 6rem 5%;
    background-color: var(--bg-color);
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
}

.event-date {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    padding: 1rem;
    flex-grow: 1;
}

.event-details h3 {
    margin-bottom: 0.5rem;
}

.event-details p {
    margin-bottom: 1rem;
}

/* Register Section */
.register {
    padding: 6rem 5%;
    background-color: #fff;
}

.register-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 5%;
    background-color: var(--bg-color);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-right: 2rem;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* CTA Section */
.cta {
    padding: 6rem 5%;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg-color);
    color: #fff;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .book-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .event-item {
        flex-direction: column;
    }

    .event-date {
        padding: 0.5rem;
    }
}

/* Animation for Register Form */
@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-form {
    animation: formAppear 0.5s ease-out;
}

/* Nav Animation */
.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
