/* ========================================
   BioPly Website - Enhanced Styles
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --bioply-green: #96ca2d;
  --bioply-green-dark: #73ae1f;
  --bioply-dark: #333333;
  --bioply-gray: #888888;
  --bioply-light: #f3f7eb;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---- Sticky Header with Shadow ---- */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: var(--transition-smooth);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.site-header.scrolled .menu-item-link-top {
  color: var(--bioply-dark) !important;
}

.site-header.scrolled .menu-item-link-top:hover {
  color: var(--bioply-green) !important;
}

/* Adjust content for fixed header */
.site-content {
  margin-top: 0 !important;
}

/* ---- Hero Section Enhancements ---- */
.jet-slider {
  position: relative;
}

.jet-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.jet-slider__content {
  z-index: 2;
}

/* ---- Section Fade In Animation ---- */
.elementor-section {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.elementor-section:nth-child(1) { animation-delay: 0.1s; }
.elementor-section:nth-child(2) { animation-delay: 0.2s; }
.elementor-section:nth-child(3) { animation-delay: 0.3s; }
.elementor-section:nth-child(4) { animation-delay: 0.4s; }
.elementor-section:nth-child(5) { animation-delay: 0.5s; }

/* ---- Product Cards Hover Effects ---- */
.jet-animated-box {
  transition: var(--transition-smooth);
  overflow: hidden;
}

.jet-animated-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.jet-animated-box__front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(150, 202, 45, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jet-animated-box:hover .jet-animated-box__front::after {
  opacity: 1;
}

/* ---- CTA Buttons Enhancement ---- */
.jet-slider__button--primary,
.elementor-button {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth) !important;
  border-radius: 50px !important;
}

.jet-slider__button--primary::before,
.elementor-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.jet-slider__button--primary:hover::before,
.elementor-button:hover::before {
  width: 300px;
  height: 300px;
}

.jet-slider__button--primary:hover,
.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(150, 202, 45, 0.4);
}

/* ---- Navigation Improvements ---- */
.menu-item-link-top {
  position: relative;
  transition: var(--transition-smooth);
}

.menu-item-link-top::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bioply-green);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.menu-item:hover .menu-item-link-top::after,
.menu-item.current-menu-item .menu-item-link-top::after {
  width: 100%;
}

/* ---- Image Hover Effects ---- */
.elementor-image-box-img img,
.post-thumbnail img,
.jet-posts__inner-box img {
  transition: var(--transition-smooth);
}

.elementor-image-box:hover .elementor-image-box-img img,
.jet-posts__item:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* ---- Typography Enhancements ---- */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.elementor-heading-title {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ---- Better Contrast for Text ---- */
.elementor-image-box-description,
.jet-testimonials__comment,
.entry-excerpt {
  color: #666666;
  line-height: 1.7;
}

/* ---- Smooth Page Transitions ---- */
.page-preloader-cover {
  background: linear-gradient(135deg, var(--bioply-green) 0%, var(--bioply-green-dark) 100%);
}

.page-preloader {
  border-color: rgba(255,255,255,0.3);
  border-top-color: white;
}

/* ---- Mobile Menu Enhancements ---- */
.jet-nav__mobile-trigger {
  transition: var(--transition-smooth);
}

.jet-nav__mobile-trigger:hover {
  transform: scale(1.1);
}

.jet-mobile-menu-active .jet-nav {
  background: linear-gradient(180deg, var(--bioply-dark) 0%, #2a2a2a 100%) !important;
}

/* ---- Social Icons Animation ---- */
.elementor-social-icon {
  transition: var(--transition-smooth) !important;
}

.elementor-social-icon:hover {
  transform: translateY(-4px) rotate(8deg);
  box-shadow: 0 4px 12px rgba(150, 202, 45, 0.3);
}

/* ---- Testimonials Enhancement ---- */
.jet-testimonials__item {
  transition: var(--transition-smooth);
}

.jet-testimonials__item:hover {
  transform: translateY(-5px);
}

.jet-testimonials__figure img {
  border: 3px solid var(--bioply-green);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ---- Brands/Logos Section ---- */
.brands-list__item-img-wrap img {
  transition: var(--transition-smooth);
  filter: grayscale(30%);
}

.brands-list__item-img-wrap:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* ---- Parallax Background Enhancement ---- */
.jet-parallax-section__image {
  will-change: transform;
}

/* ---- News/Posts Cards ---- */
.jet-posts__inner-box {
  transition: var(--transition-smooth);
  border-radius: 8px;
  overflow: hidden;
}

.jet-posts__inner-box:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.jet-posts .entry-title a {
  transition: var(--transition-smooth);
}

.jet-posts .entry-title a:hover {
  color: var(--bioply-green-dark);
}

.jet-more {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth) !important;
}

.jet-more:hover {
  background-color: var(--bioply-green) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(150, 202, 45, 0.3);
}

/* ---- Slider Arrows Enhancement ---- */
.sp-arrow {
  transition: var(--transition-smooth) !important;
}

.sp-arrow:hover {
  transform: scale(1.2);
  background-color: var(--bioply-green) !important;
  border-color: var(--bioply-green) !important;
}

/* ---- Logo Enhancement ---- */
.site-header .elementor-widget-image img {
  transition: var(--transition-smooth);
}

.site-header.scrolled .elementor-widget-image img {
  transform: scale(0.9);
}

/* ---- Footer/Contact Section ---- */
footer a,
footer a:hover {
  transition: var(--transition-smooth);
}

/* ---- Loading Animation for Images ---- */
img {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

img[src] {
  opacity: 1;
}

/* ---- Focus States for Accessibility ---- */
a:focus,
button:focus,
.jet-slider__button--primary:focus,
.elementor-button:focus {
  outline: 2px solid var(--bioply-green);
  outline-offset: 2px;
}

/* ---- Selection Color ---- */
::selection {
  background: var(--bioply-green);
  color: white;
}

/* ---- Responsive Improvements ---- */
@media (max-width: 1024px) {
  .elementor-section {
    animation-delay: 0s !important;
  }
  
  .jet-animated-box:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 767px) {
  .site-header {
    position: relative !important;
  }
  
  .jet-slider__title {
    font-size: 36px !important;
    letter-spacing: -2px !important;
  }
  
  .jet-slider__subtitle {
    font-size: 18px !important;
  }
  
  .elementor-social-icon:hover {
    transform: translateY(-2px) rotate(0deg);
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   NEW CONTENT SECTIONS - Why BioPly, Process, CTA
   ======================================== */

/* ---- Why BioPly Section ---- */
.why-bioply {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f3f7eb 0%, #ffffff 100%);
  text-align: center;
}

.why-bioply h2 {
  font-family: "Montserrat", Sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--bioply-dark);
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit {
  background: white;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(150, 202, 45, 0.1);
}

.benefit:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(150, 202, 45, 0.3);
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.benefit h3 {
  font-family: "Montserrat", Sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bioply-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.benefit p {
  font-family: "Open Sans", Sans-serif;
  font-size: 14px;
  color: var(--bioply-gray);
  line-height: 1.7;
  margin: 0;
}

/* ---- Process Section ---- */
.process {
  padding: 80px 20px;
  background: var(--bioply-dark);
  text-align: center;
}

.process h2 {
  font-family: "Montserrat", Sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  color: white;
  margin-bottom: 50px;
}

.process-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(150, 202, 45, 0.2);
  transition: var(--transition-smooth);
}

.step:hover {
  background: rgba(150, 202, 45, 0.1);
  border-color: var(--bioply-green);
  transform: translateY(-5px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bioply-green);
  color: white;
  font-family: "Montserrat", Sans-serif;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h3 {
  font-family: "Montserrat", Sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.step p {
  font-family: "Open Sans", Sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--bioply-green) 0%, var(--bioply-green-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section h2 {
  font-family: "Montserrat", Sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: white;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-family: "Open Sans", Sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  display: inline-block;
  padding: 16px 40px;
  margin: 0 10px 10px;
  font-family: "Montserrat", Sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary {
  background: white;
  color: var(--bioply-green-dark);
}

.cta-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-section .btn-secondary:hover {
  background: white;
  color: var(--bioply-green-dark);
  transform: translateY(-3px);
}

/* ---- Responsive for new sections ---- */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .why-bioply h2,
  .process h2,
  .cta-section h2 {
    font-size: 36px;
  }
  
  .process-steps {
    gap: 25px;
  }
  
  .step {
    min-width: 180px;
    padding: 25px 20px;
  }
}

@media (max-width: 767px) {
  .why-bioply {
    padding: 60px 15px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit {
    padding: 30px 20px;
  }
  
  .why-bioply h2,
  .process h2 {
    font-size: 28px;
    margin-bottom: 35px;
  }
  
  .process {
    padding: 60px 15px;
  }
  
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .step {
    max-width: 100%;
    width: 100%;
  }
  
  .cta-section {
    padding: 70px 15px;
  }
  
  .cta-section h2 {
    font-size: 26px;
  }
  
  .cta-section p {
    font-size: 16px;
  }
  
  .cta-section .btn {
    display: block;
    margin: 10px auto;
    max-width: 280px;
  }
}
