/* ==========================================================================
   SAAKAR CHEMICALS - BRAND DEFINITION & STYLING OVERHAUL
   Primary Color: Deep Navy Blue (#1e3a8a) -> Core brand text, navigation accents
   Secondary Color: Vibrant Green (#22c55e) -> Performance CTAs, success states
   Accent Color: Warm Orange/Amber (#f97316) -> Highlights, trend indicators, badges
   ========================================================================== */

/* Base font & Performance Rendering overrides */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Animated Page Loader ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== Preloader Pulsing Seeds (Re-Themed to Brand Identity) ===== */
.pulsing-seeds {
    display: flex;
    justify-content: space-around;
    width: 100px;
}
.pulsing-seeds div {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulsing-seeds-anim 1.4s infinite ease-in-out both;
}

/* Tri-Color Pulsing Identity from Sakar AgroTech Logo */
.pulsing-seeds div:nth-child(1) {
    background-color: #1e3a8a; /* Deep Navy Blue */
    animation-delay: -0.32s;
}
.pulsing-seeds div:nth-child(2) {
    background-color: #22c55e; /* Vibrant Green */
    animation-delay: -0.16s;
}
.pulsing-seeds div:nth-child(3) {
    background-color: #f97316; /* Warm Orange/Amber */
}

@keyframes pulsing-seeds-anim {
    0%, 80%, 100% {
        transform: scale(0.3);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Header & UI Elements ===== */
.header-sticky {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* Custom Button Styles (Pure CSS Overhauled for Saakar) */
.btn {
    display: inline-block;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Vibrant Green for Conversions (WhatsApp, Call Buttons) */
.btn-primary {
    background-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2), 0 2px 4px -2px rgba(34, 197, 94, 0.2);
}
.btn-primary:hover {
    background-color: #16a34a;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3), 0 4px 6px -4px rgba(22, 163, 74, 0.3);
    transform: translateY(-0.125rem);
}

/* Deep Navy Blue for secondary actions and corporate presence */
.btn-secondary {
    background-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2), 0 2px 4px -2px rgba(30, 58, 138, 0.2);
}
.btn-secondary:hover {
    background-color: #1e40af;
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.3), 0 4px 6px -4px rgba(30, 64, 175, 0.3);
    transform: translateY(-0.125rem);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-width: 2px;
    border-color: #ffffff;
}
.btn-outline:hover {
    background-color: #ffffff;
    color: #1e3a8a;
}

/* ===== GOOGLE TRANSLATE SYSTEM CORRECTIONS ===== */
.goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0px !important;
}

#google_translate_element {
    position: absolute;
    top: -9999px;
    left: -9999px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}

/* Custom Dropdown Styling */
.custom-translate-menu {
    display: none;
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 150ms ease-out, transform 150ms ease-out;
    right: 0;
    left: auto;
}
.custom-translate-dropdown:hover .custom-translate-menu {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.goog-te-menu-frame {
    right: 0 !important;
    left: auto !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    border-radius: 0.5rem !important;
    border: 1px solid #E5E7EB !important;
}

/* ===== UI Animations & Shadow Textures ===== */
.hero-bg-animate {
    animation: ken-burns 20s ease-in-out infinite alternate;
}
@keyframes ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(1%, 1%); }
}
.hero-parallax {
    will-change: transform;
}
.hero-text-shadow { 
    text-shadow: 0 4px 12px rgba(15, 23, 42, 0.8); 
}

/* Testimonial structural corrections */
.testimonial-quote {
    position: relative;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 0.75rem;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.testimonial-quote::before {
    content: '“';
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(34, 197, 94, 0.2);
    line-height: 1;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== PHYGITAL MODEL SYSTEM STYLING ===== */
.phygital-icon-wrapper {
    position: relative;
    width: 96px; 
    height: 96px; 
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.15), 0 8px 10px -6px rgba(30, 58, 138, 0.15);
    margin-left: auto;
    margin-right: auto;
}

.phygital-icon-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px; 
    height: 32px; 
    background-color: #25D366; /* CRM Active Color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.phygital-path {
    position: relative;
    width: 100px; 
    height: 4px;
    background-image: linear-gradient(to right, #f97316 50%, transparent 50%); /* Re-themed to Orange/Amber */
    background-size: 10px 4px; 
    background-repeat: repeat-x;
    margin: 0 1rem; 
    transform: translateY(-2rem); 
}

.phygital-path-signal {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #f97316; 
    border-radius: 50%;
    box-shadow: 0 0 10px #f97316, 0 0 20px #f97316;
    transform: translateY(-50%);
    animation: travel-signal 2.5s infinite linear;
}

@keyframes travel-signal {
    0% {
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100px - 12px), -50%); 
        opacity: 0;
    }
}

.phygital-icon { 
    animation: pulse-icon 2s infinite ease-in-out; 
}
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Card Interaction Layouts */
.product-card, .knowledge-card, .crop-card {
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    overflow: hidden;
}
.product-card:hover, .knowledge-card:hover, .crop-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.2); /* Deep structural shadows */
}

/* Mobile Layout Responsive Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    z-index: 50;
    transform: translateX(100%);
    transition-property: transform;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { 
    transform: translateX(0); 
}

/* ===== Nav Links Animated State Architecture ===== */
.nav-link { 
    position: relative;
    padding-bottom: 0.25rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e3a8a; /* Underline updated to Deep Navy Blue */
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after { 
    width: 100%; 
}
.nav-link-active { 
    color: #1e3a8a; /* Updated to Deep Navy Blue */
    font-weight: 600;
}
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1e3a8a;
}

/* ===== GOOGLE TRANSLATE STYLING (NEW METHOD) ===== */
/* 1. Hide the original Google Translate elements */
.goog-te-banner-frame.skiptranslate { display: none !important; } 
body { top: 0px !important; }
.VIpgJd-ZVi9od-l4eHX-hSRGPd, .goog-logo-link { display: none !important; }
/* 1. Hide the original Google Translate elements */
#google_translate_element {
    /* Don't use display: none! Use this instead: */
    position: absolute;
    top: -9999px;
    left: -9999px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* 2. Style our new custom dropdown */
.custom-translate-menu {
    display: none; /* Hide by default */
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 150ms ease-out, transform 150ms ease-out;
    right: 0; /* Align to the right edge of the button */
    left: auto;
}
/* Show menu on hover */
.custom-translate-dropdown:hover .custom-translate-menu {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 3. This is the *only* rule needed for the *real* Google dropdown */
/* It fixes the dropdown opening off-screen */
.goog-te-menu-frame {
    right: 0 !important;
    left: auto !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    border-radius: 0.5rem !important;
    border: 1px solid #E5E7EB !important;
}