/* ========================================
   BIBITNESIA PORTAL STYLES
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #27ae60;
    --primary-dark: #1e8449;
    --primary-light: #2ecc71;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
.header-logo {
    background-image: url("path/to/header-background.png");
    background-size: cover; /* Or contain */
    height: 100px; /* Header height */
    width: 7%;
}
.header-logo img {
    height: 65px; /* Adjust for logo size within background */
    width: auto;
    display: block; /* Or inline-block */
    margin: 10px; /* Spacing */
}

.navbar-custom {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    padding: 0.15rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: #ecf0f1 !important;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.nav-link-custom:hover {
    color: white !important;
    transform: translateY(-2px);
}

.btn-login {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(39, 174, 96, 0.8),
        rgba(30, 132, 73, 0.7)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

.btn-marketplace {
    background: white;
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-marketplace:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--primary-light),
        var(--primary-color)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-section {
    padding: 5rem 0;
    background: white;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #e8f5e9;
}

.product-body {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-seller {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-location {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    padding: 4rem 0;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-explore {
    background: white;
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background: #ecf0f1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, #1e8449, #145a32);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.app-download {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.app-badge {
    height: 45px;
    transition: all 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-marketplace {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.border-primary-custom {
    border-color: var(--primary-color);
}

/* ================================
   DROPDOWN NOTIFIKASI SMOOTH
   ================================ */

.notif-popup {
    position: fixed;
    top: 85px;
    right: 25px;
    width: 330px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 0;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease-in-out;
}

.notif-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.notif-header {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 14px 18px;
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #f8f9fa;
}

.notif-icon-success {
    color: #27ae60;
}
.notif-icon-danger {
    color: #e74c3c;
}
.notif-icon-warning {
    color: #f1c40f;
}
.notif-icon-info {
    color: #3498db;
}
.notif-icon-normal {
    color: #7f8c8d;
}

.notif-footer {
    text-align: center;
    padding: 12px;
}

.notif-see-all {
    font-weight: 600;
    color: #2c7be5;
    text-decoration: none;
}

.notif-see-all:hover {
    text-decoration: underline;
}

/* Animasi */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
