/* General Styles */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("{{ asset('storage/'.'assets/images/new_background.jpeg') }}");
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section-small {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("https://images.unsplash.com/photo-1542838132-92c53300491e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
}

/* Navbar Animation */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #198754 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Product Card */
.produk-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.produk-img-container img {
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.produk-img-container:hover img {
    transform: scale(1.05);
}

.produk-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 135, 84, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.produk-img-container:hover .produk-overlay {
    opacity: 1;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Colors */
.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.text-success-dark {
    color: #146c43;
}

/* Form Validation */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}
