/* ==========================================================================
   Bihari Farms - Global Stylesheet
   ========================================================================== */

/* Base Styles & Texture Overlay */
body {
    background-color: transparent;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 50;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F0FDF4; }
::-webkit-scrollbar-thumb { background: #007A3A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00A850; }

/* Hide Scrollbar for Horizontal Scroll Areas */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Header & Glass Effects */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 168, 80, 0.05);
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 66, 37, 0.7), rgba(0, 66, 37, 0.5)), url('https://images.unsplash.com/photo-1605000797499-95a51c5269ae?q=60&w=800&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 168, 80, 0.15);
    border-color: #00A850;
}

/* Wave Separator */
.wave-separator {
    position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg);
}
.wave-separator svg {
    position: relative; display: block; width: calc(133% + 1.3px); height: 100px;
}

/* Single Page Application (SPA) Routing Classes */
.page-section { display: none; opacity: 0; transition: opacity 0.4s ease-in-out; }
.page-section.active { display: block; opacity: 1; animation: fadeIn 0.6s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nav Links & Hover Effects */
.nav-link { 
    position: relative; 
    padding-bottom: 2px; 
    font-weight: 500;
    color: #4b5563;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: #00A850; 
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #00A850; font-weight: 700; } 
.nav-link:hover { color: #00A850; }

/* Mobile Menu Overlay Display Fix */
#mobile-menu:not(.hidden) {
    display: flex !important;
    flex-direction: column;
    z-index: 100;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 30px; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 100; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20ba5a; }

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #FFFBEB; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; transition: opacity 0.5s ease;
}

/* Miscellaneous Utilities */
.logo-green { filter: none; }
.pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Award Card Shine Effect */
.award-card {
    position: relative;
    overflow: hidden;
}
.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: all 0.6s;
}
.award-card:hover::before {
    left: 100%;
}

/* Language Dropdown Custom CSS */
.lang-btn { color: #4b5563; transition: all 0.3s; }
.active-lang { background-color: #00A850; color: white !important; }

.lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 100;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.lang-menu button {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.lang-menu button:hover {
    background-color: #f0fdf4;
    color: #00A850;
}
.lang-dropdown:hover .lang-menu {
    display: block;
}

/* Animations Keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}