/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa; 

}

/* Header Styles */
header {
    display: flex;
    justify-content: center; /* Menempatkan semua elemen header di tengah secara horizontal */
    align-items: center;     /* Menempatkan semua elemen header di tengah secara vertikal */
    padding: 20px 30px;
    background: #333;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease-in-out;
}

header:hover {
    background: #444; /* Ubah latar belakang saat hover untuk efek interaktif */
}

header .logo {
    display: flex;
    align-items: center; /* Pastikan logo terpusat secara vertikal */
    justify-content: center; /* Memastikan logo terpusat secara horizontal */
    flex-grow: 0;
    transition: transform 0.5s ease; /* Efek transisi untuk logo */
}

header .logo img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease; /* Efek zoom dan filter saat hover */
}

header .logo img:hover {
    transform: scale(1.1); /* Efek zoom pada logo */
    filter: brightness(1.2); /* Menambahkan efek kecerahan saat hover */
}

/* Testimonials Section */
#testimonials {
    padding: 50px 20px;
    text-align: center;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    padding: 20px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards;
}

.testimonial:nth-child(1) {
    animation-delay: 0.2s;
}

.testimonial:nth-child(2) {
    animation-delay: 0.4s;
}

.testimonial:nth-child(3) {
    animation-delay: 0.6s;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #ddd;
}

.stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Maps Section */
.circle-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.circle:hover {
    transform: scale(1.1);
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsiveness for Testimonials and Maps Section */
@media screen and (max-width: 768px) {
    #testimonials .testimonial-container {
        flex-direction: column; /* Menumpuk testimonial secara vertikal di layar kecil */
        align-items: center;
    }

    .testimonial {
        max-width: 90%; /* Lebar testimonial lebih kecil di layar kecil */
        margin-bottom: 20px; /* Memberikan jarak antar testimonial */
    }

    .testimonial img {
        width: 60px; /* Mengurangi ukuran gambar pada testimonial */
        height: 60px; /* Mengurangi ukuran gambar pada testimonial */
    }

    .stars {
        font-size: 1.2rem; /* Mengurangi ukuran font stars di layar kecil */
    }

    .testimonial p {
        font-size: 0.85rem; /* Mengurangi ukuran font pada testimonial */
    }

    /* Maps Section Responsivity */
    .circle-container {
        flex-direction: column; /* Menumpuk gambar map secara vertikal di layar kecil */
    }

    .circle {
        width: 120px; /* Mengurangi ukuran lingkaran pada layar kecil */
        height: 120px; /* Mengurangi ukuran lingkaran pada layar kecil */
        margin-bottom: 20px; /* Memberikan jarak antar lingkaran */
    }
}

@media screen and (max-width: 480px) {
    .testimonial img {
        width: 50px; /* Ukuran gambar lebih kecil di layar lebih kecil */
        height: 50px; /* Ukuran gambar lebih kecil di layar lebih kecil */
    }

    .stars {
        font-size: 1rem; /* Ukuran font stars lebih kecil */
    }

    .testimonial p {
        font-size: 0.8rem; /* Ukuran font lebih kecil di perangkat lebih kecil */
    }

    .circle {
        width: 100px; /* Ukuran lingkaran lebih kecil di layar lebih kecil */
        height: 100px; /* Ukuran lingkaran lebih kecil di layar lebih kecil */
    }
}

/* Footer Styles */
footer {
    background: #c2c0c0;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Menjaga konten footer tetap berada di tengah */
    justify-content: center;
}

.social-media {
    margin-top: 20px;
    display: flex;
    justify-content: center; /* Mengatur ikon media sosial agar sejajar di tengah */
    gap: 10px;
}

.social-media a {
    margin: 0 15px;
    text-decoration: none;
}

.social-media img {
    width: 40px;
    height: 40px;
}

.map-container {
    margin-top: 30px;
    text-align: center;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    margin: 0 auto; /* Memastikan peta berada di tengah */
}

/* Responsive Design */

/* Tablet Layout */
@media (max-width: 768px) {
    .footer-content {
        padding: 30px 20px; /* Menambahkan padding ekstra untuk footer di tablet */
    }

    .social-media {
        gap: 15px;
    }

    .social-media img {
        width: 35px;
        height: 35px;
    }

    .map-container iframe {
        max-width: 100%; /* Memastikan peta lebih responsif di tablet */
    }
}

/* Mobile Layout */
@media (max-width: 480px) {
    footer {
        padding: 20px 10px; /* Mengurangi padding footer di perangkat mobile */
    }

    .social-media {
        gap: 10px;
        flex-direction: row;
        justify-content: center;
    }

    .social-media img {
        width: 30px;
        height: 30px; /* Ikon sosial media lebih kecil di perangkat mobile */
    }

    .map-container iframe {
        height: 300px; /* Mengurangi tinggi peta di layar kecil */
    }
}



/* Styling untuk tombol WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px; /* Jarak dari bawah layar */
    right: 20px; /* Jarak dari kanan layar */
    background-color: #25d366; /* Warna hijau khas WhatsApp */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: ring 1s infinite; /* Menambahkan animasi dering */
}

/* Ikon WhatsApp */
/* Kotak untuk tombol WhatsApp */
.whatsapp-button-with-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* Warna hijau khas WhatsApp */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Bayangan kotak */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
    border: 2px solid #fff; /* Border putih untuk kotak */
}

/* Efek Hover pada kotak tombol WhatsApp */
.whatsapp-button-with-box:hover {
    transform: scale(1.05); /* Memperbesar kotak saat hover */
    background-color: #128C7E; /* Warna lebih gelap saat hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Menambahkan bayangan lebih besar */
    border-radius: 15px; /* Membulatkan border saat hover */
}

/* Styling untuk gambar WhatsApp */
.whatsapp-button-with-box img {
    width: 55px;
    height: 55px;
    transition: transform 0.3s ease, filter 0.3s ease; /* Efek zoom dan filter saat hover */
}

/* Efek zoom pada gambar WhatsApp saat hover */
.whatsapp-button-with-box img:hover {
    transform: scale(1.2); /* Zoom in gambar saat hover */
    filter: brightness(1.2); /* Menambah kecerahan gambar */
}

/* Styling untuk teks "Reservasi di sini segera" */
.reservation-text {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-left: 15px;
    opacity: 0;
    transform: translateX(20px); /* Mulai dengan teks sedikit keluar dari sisi */
    animation: fadeInSlide 5s ease-in-out infinite; /* Menambahkan animasi sliding dan fade */
}

/* Keyframes untuk animasi teks (sliding dan fade) */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(20px); /* Mulai dari sisi kanan */
    }
    30% {
        opacity: 1;
        transform: translateX(0); /* Bergerak ke posisi normal */
    }
    70% {
        opacity: 1;
        transform: translateX(0); /* Tetap di posisi normal */
    }
    100% {
        opacity: 0;
        transform: translateX(-20px); /* Bergerak keluar ke sisi kiri */
    }
}

/* Efek Getar Halus untuk tombol WhatsApp */
@keyframes gentleRing {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(6deg); /* Sedikit dering ke kanan */
    }
    50% {
        transform: rotate(0deg); /* Kembali ke posisi semula */
    }
    75% {
        transform: rotate(-6deg); /* Sedikit dering ke kiri */
    }
    100% {
        transform: rotate(0deg); /* Kembali ke posisi semula */
    }
}

/* Menambahkan efek getar halus pada tombol WhatsApp */
.whatsapp-button-with-box:hover {
    animation: gentleRing 0.6s ease-in-out infinite; /* Getaran halus saat dihover */
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    /* Menurunkan posisi tombol WhatsApp */
    .whatsapp-button-with-box {
        bottom: 10px;
        right: 10px;
        padding: 12px;
    }

    /* Mengurangi ukuran gambar WhatsApp */
    .whatsapp-button-with-box img {
        width: 45px;
        height: 45px;
    }

    /* Mengurangi ukuran teks pada layar kecil */
    .reservation-text {
        font-size: 16px;
        margin-left: 10px;
    }
}

/* Responsif untuk layar sangat kecil (misalnya ponsel dengan layar kecil) */
@media (max-width: 480px) {
    /* Menurunkan posisi tombol WhatsApp lebih rendah */
    .whatsapp-button-with-box {
        bottom: 5px;
        right: 5px;
        padding: 10px;
    }

    /* Ukuran gambar WhatsApp lebih kecil */
    .whatsapp-button-with-box img {
        width: 40px;
        height: 40px;
    }

    /* Ukuran teks "Reservasi di sini segera" lebih kecil */
    .reservation-text {
        font-size: 14px;
        margin-left: 8px;
    }
}
