/*
  KKP - Khundkar Khamar Prakalpa
  Main Stylesheet

  Color Scheme:
  - Gold/Bronze: #D4AF37 (Primary accent)
  - Light Gray: #E5E5E5 (Secondary background)
  - Deep Green: #2E5D4B (Agriculture accent)
  - Warm Brown: #8B6B3D (Earth tones)
  - Off-White: #F9F9F9 (Main content background)
  - Dark Gray: #333333 (Text and footer)
*/

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

/* === Base Styles === */
:root {
    --gold: #D4AF37;
    --light-gray: #E5E5E5;
    --deep-green: #2E5D4B;
    --warm-brown: #8B6B3D;
    --off-white: #F9F9F9;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    background-color: var(--off-white);
    line-height: 1.6;
}

body[lang="bn"] {
    font-family: 'Hind Siliguri', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deep-green);
}

a {
    color: var(--deep-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold);
}

.btn-primary {
    background-color: var(--deep-green);
    border-color: var(--deep-green);
}

.btn-primary:hover {
    background-color: var(--warm-brown);
    border-color: var(--warm-brown);
}

.btn-outline-primary {
    color: var(--deep-green);
    border-color: var(--deep-green);
}

.btn-outline-primary:hover {
    background-color: var(--deep-green);
    border-color: var(--deep-green);
}

.section {
    padding: 4rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background-color: var(--gold);
    transform: translateX(-50%);
}

/* === Header Styles === */
.top-bar {
    background-color: var(--deep-green);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: white;
}

.top-bar a:hover {
    color: var(--gold);
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.brand-text {
    font-weight: 600;
    color: var(--dark-gray);
    display: inline-block;
}

/* Hide text on small screens but keep logo */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
}

.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold);
}

.language-switch {
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switch:hover {
    background-color: var(--light-gray);
}

/* === Hero Section === */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--gold);
    padding: 2rem;
    max-width: 600px;
    right: auto;
    bottom: 50%;
    transform: translateY(50%);
    left: 10%;
    text-align: left;
    z-index: 2;
}

.hero-carousel h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-carousel p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Responsive adjustments for hero carousel */
@media (max-width: 992px) {
    .hero-carousel .carousel-item {
        height: 70vh;
    }

    .hero-carousel .carousel-caption {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .hero-carousel .carousel-caption {
        max-width: 90%;
        left: 5%;
        bottom: 50%;
        transform: translateY(50%);
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-item {
        height: 50vh;
        min-height: 300px;
    }

    .hero-carousel .carousel-caption {
        padding: 1.5rem;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .hero-carousel h2 {
        font-size: 1.75rem;
    }

    .hero-carousel p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* === Products Section === */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    overflow: hidden;
}

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

.product-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-details {
    padding: 1.5rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--deep-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-location {
    color: var(--warm-brown);
    font-size: 0.9rem;
}

/* === About Section === */
.about-section {
    background-color: var(--light-gray);
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.feature-box {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-box .icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* === Footer === */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: white;
    opacity: 0.8;
}

footer a:hover {
    color: var(--gold);
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--dark-gray);
}

/* === Cart Button === */
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.cart-fab.show {
    opacity: 1;
    visibility: visible;
}

.cart-fab .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--deep-green);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

/* === Responsive styles === */
@media (max-width: 992px) {
    .hero-carousel .carousel-item {
        height: 60vh;
    }

    .hero-carousel .carousel-caption {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 50vh;
    }

    .hero-carousel .carousel-caption {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
        text-align: center;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 45px;
    }

    .hero-carousel .carousel-item {
        height: 40vh;
    }
}