  /* Import font */
@import "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap";

/* Global styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7F7F7;
    color: #333333;
    height: 100vh;
    position: relative;
}

header {
    background-color: rgba(107, 91, 149, 0.7);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FF6F61;
}

section {
    padding: 20px;
    text-align: center;
    position: relative;
}

/* Home Section */
section#home {
    background: linear-gradient(135deg, #FF6F61, #6B5B95);
    background-size: 600% 600%;
    animation: gradientAnimation 5s ease infinite;
    color: white;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

section#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

section#home h2 {
    font-size: 2.5em;
    margin: 0;
    z-index: 1;
}

/* Products Section */
section#products {
    background-color: #FFFFFF;
    color: #333333;
    position: relative;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.product {
    flex: 0 1 calc(50% - 40px);
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .product {
        flex: 0 1 calc(100% - 40px);
    }
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.product h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #333333;
}

.product p {
    font-size: 1.2em;
    color: #555555;
}

.product .description {
    font-size: 1em;
    margin-top: 10px;
    color: #555555;
    text-align: left; /* Menjadikan teks menjadi lurus */
}

.product .pler {  
    font-size: 1em;
    margin-top: 10px;
    color: #d8bfd8;
    text-align: left;
    animation: slideIn 1s ease-in-out;
}
  

/* Animasi Button */
.product .buy-now {
    display: block;
    margin-top: 10px;
    background-color: #d8bf;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.product .buy-now:hover {
    background-color: #6B5B95;
    transform: scale(1.1);
}

/* Animasi Produk saat diklik */
.product:active {
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Contact Section */
section#contact {
    background: rgba(255, 255, 255, 0.1);
    color: #333333;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

/* Contact Section */
section#contact {
    background: rgba(255, 255, 255, 0.1);
    color: #333333;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

section#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d8bfd8, #6B5B95);
    background-size: 600% 600%;
    animation: gradientAnimation 3s ease infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-container form {
    display: flex;
    flex-direction: column;
}

.contact-container form input,
.contact-container form textarea {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-container form button {
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-container form button:hover {
    background-color: #76A045;
}

/* Profile Styling */
.profile {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile p {
    font-size: 14px;
    margin: 0;
}

/* Testimonial Section */
section#testimonials {
    background-color: #F7F7F7;
    color: #333333;
    padding: 40px 20px;
    text-align: center;
}

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

.testimonial {
    flex: 0 1 calc(50% - 40px);
    margin: 20px;
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.testimonial p {
    margin: 0 0 10px 0;
}

@media (max-width: 768px) {
    .testimonial {
        flex: 0 1 calc(100% - 40px);
    }
}

/* Animation Classes for Testimonials */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-in-out;
}

.footer {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* Keyframes Animations */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-in-out;
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}