:root {
    --primary-color: #8B0000; /* Merah Tua */
    --secondary-color: #FFC107; /* Kuning */
    --text-color: #333;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease-in-out;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.nav-link.active {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    transition: all 0.2s ease-in-out;
}

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

/* Hero Section */
.hero-section {
    /* Background image with a dark overlay and a fallback color */
    background: var(--primary-color); /* Fallback color */
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #000;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFF;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* Custom Image Size for Product Cards */
.card .card-img-small {
    width: 100%; /* Width is 100% of the card */
    aspect-ratio: 1 / 1; /* Creates a square aspect ratio */
    object-fit: cover; /* Ensures the image fills the space without distortion */
}

/* Footer */
footer {
    background-color: var(--bg-light);
    margin-top: auto;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s ease;
    /* Flexbox for perfect centering */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: wobble 2s ease-in-out 3s infinite;
}

.whatsapp-float i {
    /* Margin is no longer needed thanks to Flexbox */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
    animation-play-state: paused; /* Hentikan animasi saat di-hover */
}

/* Text Utilities */
.text-justify {
    text-align: justify;
}

/* Social Icons in Footer */
.social-icons a {
    color: var(--text-color); /* Default text color */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color); /* Change to primary color on hover */
}

/* Heading Colors */
h1, h2 {
    color: var(--primary-color);
}

/* Custom style for About Us page image */
.about-us-image {
    width: 80%; /* Make the image smaller than its container */
    max-width: 450px; /* Set a maximum size for large screens */
    display: block; /* Needed to apply margin auto */
    margin-left: auto;
    margin-right: auto;
}

/* Custom styles for team member modals */
.team-member-photo {
    max-width: 150px;
    border: 3px solid var(--secondary-color);
    padding: 3px;
    background-color: white;
    border-radius: 50%; /* Make it a circle */
    width: 150px; /* Set fixed width */
    height: 150px; /* Set fixed height */
    object-fit: cover; /* Ensure image fills the circle */
}

.team-member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

/* Hover effect for contact list */
.contact-list-item {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-list-item:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
    border-radius: 8px;
}

/* Custom style for side images on Contact page */
.side-contact-img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Animasi untuk Tombol WhatsApp */
@keyframes wobble {
    0%, 100% {
        transform: rotate(0deg);
    }
    15% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(8deg);
    }
    45% {
        transform: rotate(-6deg);
    }
    60% {
        transform: rotate(4deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}