/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    min-height: 100vh;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTION STYLING ===== */
section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

section h2 {
    color: #2d5016;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #93c572, #65a30d, #84cc16);
    border-radius: 2px;
}

/* ===== PRODUK SECTION ===== */
#produk {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f8f0 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
    margin-bottom: 3rem;
}

/* ===== CARD STYLING ===== */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(45, 80, 22, 0.15);
}

.card-img-top {
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
}

.card-title {
    color: #2d5016;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #374151;
    font-size: 1rem;
}

.card-text:first-of-type {
    color: #65a30d;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== STOK HABIS BADGE ===== */
.position-absolute.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* ===== FORM STYLING ===== */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
    outline: none;
}

.form-control:disabled {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

/* ===== BUTTON STYLING ===== */
.btn {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 50%, #4d7c0f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(132, 204, 22, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 50%, #365314 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.4);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== ABOUT SECTION ===== */
#about {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9ff 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(45, 80, 22, 0.08);
}

#about p {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== KONTAK SECTION ===== */
#kontak {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(45, 80, 22, 0.08);
}

#kontak p {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#kontak a {
    color: #65a30d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#kontak a:hover {
    color: #4d7c0f;
    text-decoration: underline;
}

/* ===== SARAN SECTION ===== */
#saran {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(45, 80, 22, 0.08);
}

#saran .form-label {
    color: #2d5016;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

#saran textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== HR STYLING ===== */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #84cc16, transparent);
    margin: 3rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    #produk,
    #about,
    #kontak,
    #saran {
        padding: 2rem 1rem;
        border-radius: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    section h2 {
        font-size: 1.5rem;
    }
    
    #produk,
    #about,
    #kontak,
    #saran {
        padding: 1.5rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ===== UTILITY CLASSES ===== */
.text-success {
    color: #65a30d !important;
}

.text-muted {
    color: #6b7280 !important;
}

.fw-bold {
    font-weight: 600 !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1) !important;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #84cc16, #65a30d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #65a30d, #4d7c0f);
}
