@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root { 
    --brand: #9b1b1b; 
    --gold: #d4af37; 
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --body-bg: #000;
    --body-text: #fff;
    --body-text-muted: rgba(255, 255, 255, 0.65);
    --bg-overlay: rgba(0, 0, 0, 0.65);
    --hero-overlay: rgba(0, 0, 0, 0.85);
    --card-hover: rgba(255, 255, 255, 0.06);
    --dropdown-bg: rgba(10, 10, 10, 0.96);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(255, 255, 255, 0.08);
}

:root.light-theme {
    --dark-bg: #eae6db;
    --card-bg: #ffffff;
    --border-color: rgba(27, 51, 34, 0.12);
    --brand: #124e27;
    --gold: #ad820a;
    --body-bg: #f7f5f0;
    --body-text: #1b3322;
    --body-text-muted: #5e6f62;
    --bg-overlay: rgba(247, 245, 240, 0.7);
    --hero-overlay: rgba(247, 245, 240, 0.9);
    --card-hover: rgba(27, 51, 34, 0.03);
    --dropdown-bg: rgba(247, 245, 240, 0.98);
    --shadow: 0 10px 30px rgba(27, 51, 34, 0.1);
    --card-shadow: 0 15px 35px rgba(27, 51, 34, 0.06);
    --nav-bg: rgba(27, 51, 34, 0.05);
}

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

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: var(--body-bg); 
    color: var(--body-text); 
    overflow-x: hidden; 
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- BACKGROUND SLIDESHOW (Works perfectly here) --- */
.hero-bg { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    z-index: -1; 
}

.slide {
    position: absolute; 
    width: 100%; 
    height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0; 
    animation: slideAnimation 24s infinite;
}

.slide:nth-child(1) { background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('../pics/badam-bg.jpg'); animation-delay: 0s; }
.slide:nth-child(2) { background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('../pics/cashew-bg.jpg'); animation-delay: 6s; }
.slide:nth-child(3) { background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('../pics/oats-bg.jpg'); animation-delay: 12s; }
.slide:nth-child(4) { background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('../pics/veggie-bg.jpg'); animation-delay: 18s; }

@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

/* --- HOME PILL NAV --- */
.pill-nav {
    position: fixed; 
    top: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    z-index: 2000; 
    background: var(--nav-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 40px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center;
    gap: 35px; 
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pill-nav a { 
    text-decoration: none; 
    color: var(--body-text); 
    font-weight: 600; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s;
}
.pill-nav a:hover {
    color: var(--gold);
}

.gold-link { 
    color: var(--gold) !important; 
    font-weight: 800 !important;
}

/* --- HOME SECTIONS --- */
section { 
    min-height: 100vh; 
    padding: 120px 10%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
}

.main-title { 
    font-size: clamp(3rem, 8vw, 7.5rem); 
    font-weight: 800; 
    letter-spacing: -2px; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.sub-title { 
    font-size: clamp(1rem, 2vw, 1.8rem); 
    letter-spacing: 0.6rem; 
    color: var(--gold); 
    margin-top: 5px; 
    font-weight: 800;
}
.govt-tag { 
    font-size: 0.9rem; 
    margin-top: 25px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    border-top: 1px solid var(--border-color); 
    padding-top: 15px; 
    opacity: 0.8; 
    font-weight: 600;
}
.premium-quote { 
    font-style: italic; 
    margin-top: 35px; 
    opacity: 0.7; 
    font-size: 1.15rem; 
    max-width: 700px; 
    line-height: 1.6;
}

.clean-card { 
    background: var(--card-bg); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px; 
    border-radius: 30px; 
    border: 1px solid var(--border-color); 
    max-width: 900px; 
    box-shadow: var(--card-shadow);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.about-text { 
    font-size: 1.15rem; 
    line-height: 1.9; 
    opacity: 0.85; 
}
.about-text strong {
    color: var(--gold);
}

.section-heading { 
    font-size: 2.4rem; 
    margin-bottom: 50px; 
    color: var(--gold); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-weight: 800;
}

/* --- FEATURED HOME GRID --- */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    width: 100%; 
    max-width: 1200px;
}

/* Homepage Stock Cards */
.item-card-pro { 
    padding: 50px 40px; 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    border-radius: 25px; 
    background: rgba(255,255,255,0.02); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    cursor: pointer; 
}

.item-card-pro:hover { 
    border-color: var(--brand); 
    background: rgba(155, 27, 27, 0.12); 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(155, 27, 27, 0.2);
}

.item-card-pro h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

/* --- BOTTOM LAYOUT (MAP & FOOTER) --- */
.bottom-layout {
    background: var(--card-bg); 
    padding-bottom: 20px;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* --- CONTACT GLASS BOX --- */
.contact-glass-box {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-icons { 
    display: flex; 
    justify-content: center; 
    gap: 60px; 
    margin-top: 40px; 
}
.contact-icons i { 
    font-size: 3.5rem; 
    color: var(--body-text); 
    transition: 0.3s ease; 
}
.contact-icons i:hover { 
    color: var(--gold); 
    transform: scale(1.15); 
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* --- FOOTER AREA --- */
footer { 
    padding: 60px 10% 40px; 
}
.map-box { 
    height: 380px; 
    border-radius: 25px; 
    overflow: hidden; 
    margin-bottom: 50px; 
    filter: grayscale(1) invert(0.92) contrast(1.05); 
    border: 1px solid var(--border-color); 
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
}
:root.light-theme .map-box {
    filter: none;
    opacity: 0.85;
}
.footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 30px; 
    opacity: 0.65; 
    font-size: 0.95rem; 
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.footer-bottom h3 {
    color: var(--gold);
    font-weight: 800;
}
.credits { 
    text-align: center; 
    margin-top: 50px; 
    opacity: 0.35; 
    font-size: 0.75rem; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 25px; 
}

/* --- MOBILE RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    section {
        padding: 80px 8%;
    }
    .clean-card {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .pill-nav a[href="#about"],
    .pill-nav a[href="#contact"] {
        display: none;
    }
    .pill-nav { 
        width: fit-content; 
        max-width: 95%; 
        gap: 6px; 
        padding: 6px 10px; 
        top: 15px;
    }
    .pill-nav a {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .theme-toggle-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    .login-pill-btn, .profile-pill-btn {
        padding: 5px 8px !important;
        font-size: 0.65rem !important;
    }
    .dropdown-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
    }
    section {
        padding: 100px 5% 60px;
    }
    .main-title { 
        font-size: 3.5rem; 
        letter-spacing: -1px;
    }
    .sub-title { 
        letter-spacing: 0.3rem; 
    }
    .premium-quote {
        font-size: 1rem;
        margin-top: 25px;
    }
    .section-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .clean-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    .product-grid {
        gap: 20px;
    }
    .item-card-pro {
        padding: 30px 20px;
    }
    .contact-glass-box {
        padding: 40px 20px;
        border-radius: 25px;
    }
    .contact-icons {
        gap: 40px;
    }
    .contact-icons i {
        font-size: 2.8rem;
    }
    .map-box {
        height: 280px;
        border-radius: 15px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .pill-nav {
        gap: 10px;
        padding: 10px 15px;
    }
    .pill-nav a {
        font-size: 0.65rem;
    }
    .main-title {
        font-size: 2.8rem;
    }
    .sub-title {
        font-size: 0.9rem;
    }
    .govt-tag {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

/* --- NAVIGATION DROPDOWN MENU --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dropdown-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    min-width: 185px;
    box-shadow: var(--shadow);
    z-index: 4000;
    padding: 8px 0;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-menu a {
    color: var(--body-text) !important;
    padding: 10px 20px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    transition: 0.2s ease;
}

.dropdown-menu a i {
    color: var(--gold);
    font-size: 0.9rem;
    width: 15px;
    text-align: center;
}

.dropdown-menu a:hover {
    background: var(--nav-bg);
    color: var(--gold) !important;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
}

/* Dropdown mobile positioning adjustments */
@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: 70px;
        left: 5%;
        width: 90%;
        transform: none;
        box-shadow: var(--shadow);
    }
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--body-text);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.theme-toggle-btn:hover {
    color: var(--gold);
    background: var(--nav-bg);
    transform: scale(1.1);
}

/* --- FEATURED BESTSELLERS CAROUSEL --- */
.carousel-section {
    min-height: auto !important;
    padding: 80px 10% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 20px;
    display: flex;
    align-items: center;
}

.carousel-track-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    opacity: 0.1;
    transition: opacity 0.6s ease;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.carousel-slide.active {
    opacity: 1;
}

.slide-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
}

.slide-img-side {
    height: 380px;
    overflow: hidden;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.carousel-slide:hover .slide-img-side img {
    transform: scale(1.04);
}

.slide-info-side {
    padding: 40px 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-tag {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.slide-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.slide-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--body-text-muted);
    margin-bottom: 25px;
}

.slide-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 25px;
}

.slide-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    align-self: flex-start;
}

.slide-btn:hover {
    background: #c22929;
    box-shadow: 0 5px 15px rgba(155, 27, 27, 0.4);
    transform: translateY(-2px);
}

/* Light theme button adjustments */
:root.light-theme .slide-btn {
    background: var(--brand);
    color: #fff;
}
:root.light-theme .slide-btn:hover {
    background: #0c381c;
    box-shadow: 0 5px 15px rgba(18, 78, 39, 0.3);
}

/* Arrows */
.carousel-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--body-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 100;
    transition: 0.3s;
    position: absolute;
}

.carousel-arrow:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.prev-arrow {
    left: -70px;
}

.next-arrow {
    right: -70px;
}

/* Dots */
.carousel-dots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--gold);
    width: 25px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .carousel-container {
        max-width: 92%;
    }
    .prev-arrow { left: -20px; background: rgba(0,0,0,0.6); }
    .next-arrow { right: -20px; background: rgba(0,0,0,0.6); }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 50px 5% !important;
    }
    .slide-grid {
        grid-template-columns: 1fr;
    }
    .slide-img-side {
        height: 220px;
    }
    .slide-info-side {
        padding: 30px 20px;
        text-align: center;
        align-items: center;
    }
    .slide-btn {
        align-self: center;
    }
    .slide-title {
        font-size: 1.3rem;
    }
    .slide-desc {
        font-size: 0.85rem;
    }
    .slide-price {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}