/* Base font */
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 ===== */
.pulsing-seeds {
  display: flex;
  justify-content: space-around;
  width: 100px;
}
.pulsing-seeds div {
  width: 20px;
  height: 20px;
  background-color: #16a34a; /* Theme Green */
  border-radius: 50%;
  animation: pulsing-seeds-anim 1.4s infinite ease-in-out both;
}

.pulsing-seeds div:nth-child(1) {
  animation-delay: -0.32s;
}
.pulsing-seeds div:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes pulsing-seeds-anim {
  0%, 80%, 100% {
    transform: scale(0.3);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}



/* Header shadow */
.header-sticky {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Custom Button Styles (Pure CSS) */
.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);
}
.btn-primary {
    background-color: #16a34a;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.btn-primary:hover {
    background-color: #15803d;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-0.125rem);
}
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-width: 2px;
    border-color: #ffffff;
}
.btn-outline:hover {
    background-color: #ffffff;
    color: #15803d;
}
.btn-secondary {
    background-color: #f59e0b;
    color: #14532d;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.btn-secondary:hover {
    background-color: #d97706;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-0.125rem);
}
/* ===== GOOGLE TRANSLATE STYLING (IMPROVED) ===== */

/* 1. HIDE the top banner frame that pushes content down */
.goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0px !important;
}

/* 2. Hide the standard Google widget (we use custom buttons) */
#google_translate_element {
    display: none !important;
}

/* 3. Hide the Google tooltip on hover */
.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;
}

/* 4. Custom Dropdown Styling (Keep existing) */
.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);
}
/* Ken Burns (Pan/Zoom) Effect for Hero Image */
.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(2%, 2%); }
}
/* Hero Parallax */
.hero-parallax {
    will-change: transform;
}

/* Hero section text shadow */
.hero-text-shadow { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }

/* Testimonial quote style */
.testimonial-quote {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.testimonial-quote::before {
    content: '“';
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Phygital Animation */
.phygital-icon { animation: pulse-icon 2s infinite ease-in-out; }
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
/* ===== REDESIGNED 'PHYGITAL' SECTION ===== */

/* This styles the white circle container for the icons */
.phygital-icon-wrapper {
    position: relative;
    width: 96px; /* 6rem */
    height: 96px; /* 6rem */
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    margin-left: auto;
    margin-right: auto;
}

/* This creates the small green WhatsApp "badge" */
.phygital-icon-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px; /* 2rem */
    height: 32px; /* 2rem */
    background-color: #25D366; /* WhatsApp Green */
    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);
}

/* This is the container for the path (the dotted line + signal) */
.phygital-path {
    position: relative;
    width: 100px; /* Adjust width as needed for spacing */
    height: 4px;
    background-image: linear-gradient(to right, #f59e0b 50%, transparent 50%); /* Amber color */
    background-size: 10px 4px; /* Creates the dotted line effect */
    background-repeat: repeat-x;
    margin: 0 1rem; /* Space it out */
    transform: translateY(-2rem); /* Lifts it up to be between icons */
}

/* This is the animated "signal" that moves */
.phygital-path-signal {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #f59e0b; /* Amber color */
    border-radius: 50%;
    box-shadow: 0 0 10px #f59e0b, 0 0 20px #f59e0b;
    transform: translateY(-50%);
    animation: travel-signal 2.5s infinite linear;
}

/* The animation for the signal */
@keyframes travel-signal {
    0% {
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100px - 12px), -50%); /* 100px (path width) - 12px (signal width) */
        opacity: 0;
    }
}

/* Keep the pulse animation for the icons */
.phygital-icon { 
    animation: pulse-icon 2s infinite ease-in-out; 
}
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}



/* Card hover effect */
.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 rgb(0 0 0 / 0.25);
}

/* Mobile Nav */
.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); 
}

/* Animated Underline for Desktop Nav */
.nav-link { 
    position: relative;
    padding-bottom: 0.25rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #16a34a;
    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: #16a34a;
    font-weight: 600;
}
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #16a34a;
}

/* ===== 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;
}