@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Reset dasar */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Preloader - Dark with Logo in Center */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.spinner-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.spinner-circle {
    width: 100px;
    height: 100px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #00e676;
    border-radius: 50%;
    animation: spin 2.5s linear infinite;
    /* lebih lambat */
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo {
    height: 40px;
    width: auto;
    filter: brightness(1.3);
}

/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Container utama */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: none;
}

/* Logo */
.logo img {
    height: 50px;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c0392b;
}

/* Tombol Daftar & Login */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn.daftar {
    background-color: #27ae60;
}

.btn.daftar:hover {
    background-color: #1e8449;
}

.btn.login {
    background-color: #2980b9;
}

.btn.login:hover {
    background-color: #21618c;
}

/* RESPONSIVE */

/* Tablet dan bawah */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        width: 250px;
        padding: 1.5rem;
        display: none;
        flex-direction: column;
        box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile */
.logo {
  width: 50px;     /* atau lebih kecil jika perlu */
  height: auto;
  max-height: 50px; /* batasi tinggi maksimal */
}

@media (max-width: 768px) {
  .logo {
    width: 100px;
    max-height: 40px;
  }
}



/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade {
    opacity: 1 !important;
    transform: scale(1.05);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    background-color: none;
    padding: 15px;
    max-width: 80%;

}

.caption h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.caption p {
    font-size: 16px;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* sertifikasi */
.certification-section {
    position: relative;
    background: linear-gradient(to right, #fdfbfb, #ebedee);
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.cert-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.cert-subtitle {
    color: #6c7a89;
    font-size: 1.1rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.cert-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cert-item {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-img-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-item img {
    width: 50px;
    height: auto;
}

.cert-item h3 {
    font-size: 1.1rem;
    color: #34495e;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background overlay efek dekoratif */
.cert-overlay::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, #a6c1ee33, transparent 70%);
    z-index: 1;
}

.cert-overlay::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, #fbc2eb33, transparent 70%);
    z-index: 1;
}



/* Section Produk */
.produk-section {
    padding: 50px 20px;
    /* Menambahkan padding kiri dan kanan */
    background-color: #f9f9f9;
    text-align: center;
}

.produk-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    /* Menambahkan batas lebar maksimum */
    margin: 0 auto;
    /* Agar container produk berada di tengah */
}

.produk-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .produk-card {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .produk-card {
        width: 100%;
    }
}

.produk-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.produk-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.produk-title {
    font-size: 1.5rem;
    color: #333;
    margin: 20px 0 10px;
}

.produk-description {
    color: #777;
    font-size: 1rem;
    margin-bottom: 20px;
}

.produk-btn {
    background-color: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
    /* Menambahkan jarak bawah pada tombol */
}

.produk-btn:hover {
    background-color: #e25746;
}


/* Responsive */
/* Responsive untuk Tablet dan Handphone */

/* Tablet - Lebar layar antara 768px dan 1024px */
@media (max-width: 1024px) {
    .produk-container {
        justify-content: space-around;
        /* Menyebar produk secara merata */
    }

    .produk-card {
        width: 45%;
        /* 2 produk per baris */
    }
}

/* Handphone - Lebar layar di bawah 768px */
@media (max-width: 768px) {
    .produk-container {
        justify-content: center;
        /* Menempatkan produk di tengah */
    }

    .produk-card {
        width: 80%;
        /* 1 produk per baris */
        margin-bottom: 20px;
        /* Menambahkan jarak bawah antar produk */
    }
}

/* Handphone - Lebar layar di bawah 480px */
@media (max-width: 480px) {
    .produk-card {
        width: 100%;
        /* Produk mengisi lebar penuh */
    }
}

/* Modal (Popup) */
/* Modal (Popup) */
.modal {
    display: none;
    /* Defaultnya disembunyikan */
    position: fixed;
    z-index: 1;
    /* Di atas konten lainnya */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Latar belakang transparan */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.modal-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Tambahkan jarak pada deskripsi dan tombol */
#modal-description {
    margin-bottom: 30px;
    /* Jarak antara deskripsi dan tombol */
}

.produk-btn {
    margin-top: 20px;
    /* Jarak antara tombol dan konten di atasnya */
}

/* Section Promo */
.promo-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to right, #fbc2eb, #a6c1ee);
    color: #333;
}

.promo-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.promo-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #fff;
}

.promo-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.promo-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promo-item:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 40px;
    color: #ff7e5f;
    margin-bottom: 15px;
}

.promo-item h3 {
    margin: 10px 0 10px;
    color: #333;
}

.promo-item p {
    font-size: 0.95rem;
    color: #666;
}

.promo-cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 32px;
    background-color: #ff7e5f;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.promo-cta-button:hover {
    background-color: #e85a3f;
}

/* FAQ */
.faq-section {
    background: linear-gradient(to bottom right, #f8f9fc, #eef1f6);
    padding: 80px 20px;
    text-align: center;
}

.faq-title {
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: #2c3e50;
    background: #ffffff;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f0f4f8;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    color: #7f8c8d;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #3498db;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0 20px;
    font-size: 0.95rem;
    color: #555;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 300px;
}

/* Responsif */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }

    .faq-question span {
        font-size: 1rem;
    }
}

/* testimoni */
/* Testimonials */
.testimonials {
    padding: 60px 20px;
    background: linear-gradient(to right, #f9f9f9, #fff);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

/* Card Testimoni */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-card h4 {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Swiper pagination dots */
.swiper-pagination-bullet {
    background: #999;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
}

/* Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Text Size */
@media (max-width: 768px) {
    .testimonial-card p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    background: #1f2937;
    color: #f9f9f9;
    padding: 60px 20px;
    font-size: 15px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
}

.footer-section h3::after {
    content: '';
    width: 40px;
    height: 3px;
    background: #ff7e5f;
    display: block;
    margin-top: 8px;
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 12px;
    color: #d1d5db;
}

.footer-section p a {
    color: white;
    text-decoration: none;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.logo-grid img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.4rem;
    margin-top: 15px;
}

.social-icons a {
    color: #f3f4f6;
    background: #374151;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #ff7e5f;
}

.map-container iframe {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo-grid,
    .social-icons {
        justify-content: center;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #374151;
    font-size: 14px;
    color: #d1d5db;
}


/* ====== Tambahan Style Modern ====== */

/* Section Titles */
.section-title,
.promo-title,
.faq-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #222;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Animasi Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   STYLE MODERN UNTUK JUDUL SECTION
   =============================== */

.cert-title,
.promo-title,
.faq-title,
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #222;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out both;
}

.cert-title::after,
.promo-title::after,
.faq-title::after,
.section-title::after {
    content: "";
    width: 60%;
    height: 3px;
    background-color: #ff7e5f;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* Animasi fadeInUp */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* === Judul Section Modern & Beraksen === */
.cert-title,
.promo-title,
.faq-title,
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.7rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    line-height: 1.3;
}

.cert-title::after,
.promo-title::after,
.faq-title::after,
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    display: block;
    margin: 0.5rem auto 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cert-subtitle,
.promo-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-top: -10px;
    font-style: italic;
    opacity: 0.9;
}