/* Add these styles for the new navbar */

/* Navbar Scrolling Effect */
.nav-scrolled {
  padding-top: 1rem;
}

.nav-scrolled .nav-element {
  width: 92%;
  max-width: 768px;
  /* 6xl equivalent in px */
  background: rgba(27, 94, 32, 0.9) !important;
  backdrop-filter: blur(2rem);
  border: none;
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(27, 94, 32, 0.3);
}

.nav-scrolled .brand-name {
  color: white !important;
}

.nav-scrolled .brand-subtitle {
  color: rgba(255, 255, 255, 0.6) !important;
}

.nav-scrolled .desktop-nav {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.nav-scrolled .nav-link:not(.active) {
  color: white !important;
}

.nav-scrolled .nav-link:not(.active):hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.nav-scrolled .mobile-menu-icon {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Active link styles */
.nav-link.active,
.mobile-nav-link.active {
  background: #FF8F00 !important;
  color: white !important;
  box-shadow: 0 0 0 0 rgba(255, 143, 0, 0.3) !important;
  animation: glow 0.3s ease-in-out;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 143, 0, 0.3);
  }

  100% {
    box-shadow: 0 10px 20px -5px rgba(255, 143, 0, 0.3), 0 5px 10px -7px rgba(255, 143, 0, 0.3);
  }
}

/* Mobile drawer visibility */
.mobile-drawer.visible {
  visibility: visible;
}

.mobile-drawer .mobile-backdrop.opacity-100 {
  opacity: 1;
}

.mobile-drawer .mobile-menu-content.translate-x-0 {
  transform: translateX(0);
}

/* Logo hover effect */
.logo-bg:hover {
  transform: scale(1.1);
}

/* Mobile menu close button rotation */
#mobile-close-btn:hover {
  transform: rotate(90deg);
}

/* Chevron icon animation */
.chevron-icon {
  transition: transform 0.3s ease;
}

.mobile-nav-link:hover .chevron-icon {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex !important;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
}

/* Ensure proper z-index stacking */
#navbar-header {
  top: 0;
  z-index: 100;
}

/* Add spacing for content below fixed navbar */
body.has-navbar {
  padding-top: 80px;
}

/* Hero section positioned under navbar with increased spacing */
section[class*="min-h-"][class*="rounded-\[3rem\]"] {
  margin-top: 40px;
  /* Increased space below navbar */
  padding-top: 0;
  z-index: 10;
  position: relative;
}

/* Ensure hero section is positioned properly */
section[class*="min-h-"][class*="rounded-\[3rem\]"]:first-of-type {
  position: relative;
  z-index: 10;
  margin-top: 3rem;
  /* Increased space below navbar */
}

/* Mobile responsiveness for hero section */
@media (max-width: 768px) {
  body.has-navbar {
    padding-top: 70px;
  }

  section[class*="min-h-"][class*="rounded-\[3rem\]"] {
    margin-top: 15px;
    /* Space below navbar on mobile */
  }
}

/* Ensure hero section is positioned correctly after navbar loads */
body.has-navbar section[class*="min-h-"][class*="rounded-\[3rem\]"]:first-of-type {
  margin-top: 40px !important;
  /* Maintain proper spacing from navbar */
  padding-top: 0;
  position: relative;
  z-index: 10;
}

/* Adjust for mobile */
@media (max-width: 768px) {
  body.has-navbar section[class*="min-h-"][class*="rounded-\[3rem\]"]:first-of-type {
    margin-top: 25px !important;
    /* Maintain spacing on mobile */
    padding-top: 0;
  }
}

/* Mobile menu backdrop */
#mobile-backdrop {
  z-index: -1;
}

/* Leaf icon styles */
.logo-icon {
  width: 20px;
  height: 20px;
}

.logo-icon-sm {
  width: 16px;
  height: 16px;
}

/* Arrow icon styles */
.arrow-icon {
  width: 14px;
  height: 14px;
}

/* Menu icon styles */
.menu-icon {
  width: 24px;
  height: 24px;
}

/* Additional styles for the lightbox functionality */
#certificate-lightbox {
  z-index: 9999;
}

#certificate-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  #certificate-lightbox .relative {
    max-width: 95vw;
  }

  #certificate-lightbox #lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  #certificate-lightbox #lightbox-caption {
    padding: 12px 8px;
  }
}

/* Certificate card responsive improvements */
.view-certificate-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

/* Certification Container Grid */
#certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 7xl;
  margin: 0 auto;
}

/* Certification Card Specific Styles */
#certifications-container .custom-item {
  background: white;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

#certifications-container .custom-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(27, 94, 32, 0.15);
}

#certifications-container .cert-top-section {
  height: 12rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#certifications-container .cert-default-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s ease;
}

#certifications-container .cert-default-state .icon-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

#certifications-container .custom-item:hover .cert-default-state .icon-circle {
  transform: scale(1.1);
  background: #f0fdf4;
  border-color: #bbf7d0;
}

#certifications-container .cert-revealed-state {
  position: absolute;
  inset: 0;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-center: center;
  padding: 2rem;
  opacity: 0;
  scale: 0.95;
  pointer-events: none;
}

#certifications-container .cert-revealed-state.reveal-active {
  opacity: 1;
  scale: 1;
}

#certifications-container .cert-content-section {
  padding: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

#certifications-container .cert-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: #065f46;
  margin-bottom: 1rem;
  line-height: 1.3;
}

#certifications-container .cert-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

#certifications-container .cert-status-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#certifications-container .cert-fssai {
  color: #16a34a; /* green-600 */
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

#certifications-container .cert-locked {
  color: #ea580c; /* orange-600 */
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

#certifications-container .cert-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

#certifications-container .cert-action-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#certifications-container .view-cert-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f97316;
  transition: color 0.3s ease;
}

#certifications-container .view-cert-btn:hover {
  color: #ea580c;
}

#certifications-container .btn-text {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#certifications-container .chevron-icon {
  transition: transform 0.3s ease;
}

#certifications-container .chevron-icon.rotate-180 {
  transform: rotate(180deg);
}

#certifications-container .cert-icon {
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  color: #166534;
}

/* Mobile responsive adjustments for certificate cards */
@media (max-width: 640px) {
  #certifications-container .group {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  #certifications-container .w-24 {
    width: 4rem;
    height: 4rem;
  }

  #certifications-container .text-xl {
    font-size: 1.25rem;
  }

  #certifications-container .mb-6 {
    margin-bottom: 1rem;
  }
  
  #certifications-container .cert-content-section {
    padding: 1.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
  
  #certifications-container .cert-title {
    font-size: 1.5rem;
  }
}

/* Tablet responsive adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  #certifications-container .group {
    padding: 2rem;
    border-radius: 2rem;
  }
}

/* Premium Animations and Micro-interactions for Home Page */

/* Animated background slider */
.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 3rem;
}

.bg-slide.active {
  opacity: 1;
}

/* Hero section animations */
.hero-section {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product name transition */
#product-name {
  transition: all 0.5s ease;
  display: inline-block;
  vertical-align: middle;
}

/* Hover effects for action buttons */
a[href="Products.html"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgba(255, 143, 0, 0.25) !important;
  transition: all 0.3s ease;
}

a[href="Contact.html"]:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* Feature cards animations */
.feature-card {
  animation: float 6s ease-in-out infinite;
}

.feature-card:nth-child(2) {
  animation-delay: 0.5s;
}

.feature-card:nth-child(3) {
  animation-delay: 1s;
}

.feature-card:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Enhanced hover effects for feature cards */
.bg-white.rounded-\[2\.5rem\]:hover {
  transform: translateY(-10px) scale(1.02) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

/* Button hover effects */
.bg-secondary-orange:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(255, 143, 0, 0.4) !important;
  transition: all 0.3s ease !important;
}

.border-2.border-white\/40:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-3px);
  transition: all 0.3s ease !important;
}

/* Smooth transitions for all interactive elements */
*:hover {
  transition: all 0.3s ease !important;
}

/* Pulse animation for stats */
.text-secondary-orange.text-3xl.font-black {
  animation: pulse 2s infinite;
}

.text-secondary-orange.text-3xl.font-black:nth-child(2) {
  animation-delay: 0.5s;
}

.text-secondary-orange.text-3xl.font-black:nth-child(3) {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(45deg, #FF8F00, #E65D00, #1B5E20);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Subtle parallax effect for hero background */
#bg-slider-container {
  perspective: 1000px;
}

.bg-slide {
  transform-style: preserve-3d;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced testimonial carousel animation */
.testimonial-track {
  animation: slideInfinite 30s linear infinite;
}

@keyframes slideInfinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Interactive hover effects for testimonials */
#testimonials-container .bg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

/* Bounce animation for decorative elements */
.animate-bounce {
  animation: bounce-enhanced 2s infinite;
}

@keyframes bounce-enhanced {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

/* Glowing effect for interactive elements */
.glow-on-hover {
  position: relative;
  overflow: hidden;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.glow-on-hover:hover::before {
  left: 100%;
}

/* Enhanced focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid #FF8F00;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Loading animations */
.loading {
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Staggered animations for page elements */
.stagger-1 {
  animation: staggerFadeIn 0.8s ease-out 0.1s both;
}

.stagger-2 {
  animation: staggerFadeIn 0.8s ease-out 0.2s both;
}

.stagger-3 {
  animation: staggerFadeIn 0.8s ease-out 0.3s both;
}

.stagger-4 {
  animation: staggerFadeIn 0.8s ease-out 0.4s both;
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations removed - not needed for hero section */

/* Smooth reveal animations */
.reveal {
  position: relative;
  overflow: hidden;
}

.reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.reveal:hover::after {
  transform: translateX(100%);
}

/* Testimonials toggle button styles */
#toggle-testimonials {
  transition: all 0.3s ease;
}

#toggle-testimonials:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 143, 0, 0.4);
}

/* Testimonials section spacing adjustments */
section.w-full.px-4.py-16.bg-neutral {
  margin-top: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Ensure testimonials section has proper spacing from other sections */
section.w-full.px-4.py-16.bg-neutral+div[id$="-container"] {
  margin-top: 2rem;
}

/* Responsive product card adjustments */
@media (max-width: 640px) {
  .product-card {
    margin-bottom: 1.5rem;
  }

  .product-card .p-6 {
    padding: 1rem;
  }
}

/* Gallery and media improvements */
.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive video container */
.video-wrapper {
  width: 100%;
}

.video-wrapper video {
  width: 100%;
  height: auto;
}

/* Responsive adjustments for product details */
@media (max-width: 768px) {
  .product-detail-container {
    flex-direction: column;
  }

  .product-gallery,
  .product-info {
    width: 100%;
  }

  .product-info-content {
    padding: 1rem;
  }
}
/* Video Section Enhancements */
.video-item {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.video-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(27, 94, 32, 0.15);
}

.video-item video {
  transition: transform 0.8s ease;
  width: 100%;
  display: block;
}

.video-item:hover video {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .video-item {
    border-radius: 24px;
  }
  
  .video-item .p-6 {
    padding: 1.25rem;
  }
}

