/* Bismillah Agro - Custom Styles */
/* Extracted from original HTML template */

:root {
    --brand-color: #16a34a;
    --brand-hover: #15803d;
    --brand-light: #dcfce7;
    --dark-bg: #111827;
}

/* Prevent Horizontal Scroll/Width Issues */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Noto Sans Bengali', 'Poppins', sans-serif;
    background-color: #f8fafc;
}

/* Custom Colors & Utilities */
.text-brand {
    color: var(--brand-color) !important;
}

.bg-brand {
    background-color: var(--brand-color) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

.btn-brand {
    background-color: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    font-weight: 600;
}

.btn-brand:hover {
    background-color: var(--brand-hover);
    color: white;
    border-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.4);
}

.btn-outline-brand {
    color: var(--brand-color);
    border-color: var(--brand-color);
    background-color: transparent;
    font-weight: 600;
}

.btn-outline-brand:hover {
    background-color: var(--brand-color);
    color: white;
}

/* Parallax Backgrounds */
.parallax-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?q=80&w=1920&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.parallax-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.6));
    z-index: 1;
}

.parallax-stats {
    background-image: linear-gradient(rgba(22, 163, 74, 0.95), rgba(21, 128, 61, 0.95)), url('https://images.unsplash.com/photo-1509358271058-acd22cc93898?q=80&w=1920&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* Responsive Hero Text */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem !important;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
    }

    .parallax-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
        background-attachment: scroll;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-hover);
}

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 105px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #FFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(-10deg);
    background-color: #20ba5a;
}

.cart-float {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--brand-color);
    color: #FFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0px 4px 15px rgba(22, 163, 74, 0.4);
    z-index: 1050;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: cart-pulse 2s infinite;
}

.cart-float:hover {
    transform: scale(1.1);
    background-color: var(--brand-hover);
    animation: none;
}

@keyframes cart-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.cart-badge-float {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: white;
    font-size: 13px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
    border: 2px solid white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 95px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .cart-float {
        bottom: 20px;
        right: 15px;
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}

/* General Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(to right, #4ade80, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.08);
}

.card-custom {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.card-custom:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .08) !important;
    border-color: #d1d5db;
}

/* Navbar */
.navbar-scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar .nav-link {
    font-weight: 500;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.navbar .nav-link:hover {
    color: var(--brand-color);
    background-color: var(--brand-light);
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Cart specific */
.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--brand-light);
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.cart-step {
    transition: all 0.3s ease-in-out;
    width: 100%;
}

.step-hidden {
    display: none !important;
}

/* Card Image */
.card-img-wrapper {
    height: 140px;
}

@media (min-width: 768px) {
    .card-img-wrapper {
        height: 200px;
    }
}

.hover-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(2px);
}

.card-img-wrapper:hover .hover-overlay {
    opacity: 1;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    color: var(--brand-color);
    background-color: var(--brand-light);
    box-shadow: none;
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Process Line */
.process-line {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--brand-color), transparent);
    z-index: 0;
    opacity: 0.3;
}
