/* Science Page Styles */
:root {
  --premium-accent: #a16a88;
  --premium-accent-light: #f3e9ef;
  --premium-text: #4a3c39;
  --premium-text-light: #7c7270;
  --premium-border: #e8e1e0;
  --premium-background: #f9f7f7;
  --premium-white: #ffffff;
  --premium-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --premium-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
  --premium-radius: 12px;
  --premium-transition: all 0.3s ease;
}

/* Science Hero Section */
.science-hero-section {
  background-color: var(--background);
  padding: 120px 0 60px;
  text-align: center;
}

.science-page-title {
  color: var(--text-dark);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.science-subtitle {
  color: var(--text-dark);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Science Section Padding */
.science-section-padding {
  padding: 80px 0;
}

/* Science Two Column Layout */
.science-two-column-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.science-content-column,
.science-image-column {
  flex: 1;
}

.science-content-column h2 {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

.science-content-column p {
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.science-image-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Science Stats Container */
.science-stats-container {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 20px;
}

.science-stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--primary-light);
  border-radius: 8px;
}

.science-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.science-stat-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Science Background Light */
.science-bg-light {
  background-color: var(--gray);
}

/* Science Section Title and Subtitle */
.science-section-title {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.science-section-subtitle {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.science-text-center {
  text-align: center;
}

/* Science Ingredients Section */
.science-ingredients-section {
  padding: 5rem 0;
  background-color: var(--white);
}

/* Update the ingredients grid section with more colors */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.ingredient-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 5px solid var(--primary);
  position: relative;
  overflow: hidden;
}

/* Add distinct colors for each ingredient card */
.ingredient-card:nth-child(1) {
  border-top-color: #a16a88; /* Pink/purple for Vijaya */
  background-color: rgba(161, 106, 136, 0.05);
}

.ingredient-card:nth-child(2) {
  border-top-color: #4caf50; /* Green for Peppermint */
  background-color: rgba(76, 175, 80, 0.05);
}

.ingredient-card:nth-child(3) {
  border-top-color: #8d6e63; /* Brown for Cocoa Butter */
  background-color: rgba(141, 110, 99, 0.05);
}

.ingredient-card:nth-child(4) {
  border-top-color: #ffc107; /* Amber/yellow for Beeswax */
  background-color: rgba(255, 193, 7, 0.05);
}

.ingredient-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ingredient-card:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}

.ingredient-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.ingredient-card:hover .ingredient-icon {
  transform: scale(1.1);
}

.ingredient-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-family: var(--font-serif);
  position: relative;
  display: inline-block;
}

.ingredient-card h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.ingredient-card:hover h3::after {
  width: 80%;
}

.ingredient-card p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Update the ingredient section in the science page */
.science-ingredient-number {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* Enhanced How It Works Section with Animations */
.how-it-works {
  background-color: var(--premium-background);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(161, 106, 136, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.how-it-works .section-title {
  position: relative;
}

.how-it-works .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #a16a88, #4caf50);
  border-radius: 3px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.process-card {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  background-color: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid transparent;
}

.process-card:nth-child(1) {
  border-bottom-color: #a16a88;
}

.process-card:nth-child(2) {
  border-bottom-color: #4caf50;
}

.process-card:nth-child(3) {
  border-bottom-color: #8d6e63;
}

.process-card:nth-child(4) {
  border-bottom-color: #ffc107;
}

.process-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background-color: rgba(161, 106, 136, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
  z-index: 1;
}

.process-card:nth-child(1) .step-icon {
  background-color: rgba(161, 106, 136, 0.1);
}

.process-card:nth-child(2) .step-icon {
  background-color: rgba(76, 175, 80, 0.1);
}

.process-card:nth-child(3) .step-icon {
  \
  background-color: rgba(141, 110, 99, 0.1);
  175,80,0.1);
}

.process-card:nth-child(3) .step-icon {
  background-color: rgba(141, 110, 99, 0.1);
}

.process-card:nth-child(4) .step-icon {
  background-color: rgba(255, 193, 7, 0.1);
}

.emoji {
  font-size: 32px;
  line-height: 1;
  display: block;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  background-color: var(--premium-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.process-card h3 {
  margin: 15px 0 10px;
  color: var(--premium-text);
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.process-card h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.4s ease;
}

.process-card:hover h3::after {
  width: 100%;
}

.process-card p {
  color: var(--premium-text-light);
  line-height: 1.6;
  margin-top: 10px;
  font-size: 0.95rem;
}

.process-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.process-card:hover::before {
  opacity: 0.3;
  transform: scale(1);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 0.3;
    transform: scale(1) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(360deg);
  }
}

/* Science FAQ Section */
.science-faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.science-faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.science-faq-question {
  padding: 1.5rem;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.science-faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-family: var(--font-serif);
}

.science-toggle-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.science-faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.science-faq-item.active .science-faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.science-faq-item.active .science-toggle-icon {
  transform: rotate(45deg);
}

/* Science CTA Section */
.science-cta-section {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.science-cta-section .science-section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.science-cta-section .science-section-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.science-cta-section .science-primary-button {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}

.science-cta-section .science-primary-button:hover {
  background-color: transparent;
  color: var(--white);
}

/* Science Rounded Image */
.science-rounded-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Science Responsive Styles */
@media (max-width: 992px) {
  .science-two-column-layout {
    flex-direction: column;
    gap: 40px;
  }

  .science-image-column {
    order: -1;
  }

  .science-process-steps {
    gap: 30px;
  }

  .science-process-step {
    min-width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .science-page-title {
    font-size: 2.5rem;
  }

  .science-section-title {
    font-size: 2rem;
  }

  .science-stats-container {
    flex-direction: column;
  }

  .science-stat-item {
    margin: 0.5rem 0;
  }

  .science-process-step {
    min-width: 100%;
  }

  .science-section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .science-page-title {
    font-size: 2rem;
  }

  .science-subtitle {
    font-size: 1rem;
  }

  .science-section-title {
    font-size: 1.8rem;
  }

  .science-section-subtitle {
    font-size: 1rem;
  }
}

/* Science Animation Classes */
.science-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.science-animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.science-animate-on-scroll[data-delay="100"] {
  transition-delay: 0.1s;
}

.science-animate-on-scroll[data-delay="200"] {
  transition-delay: 0.2s;
}

.science-animate-on-scroll[data-delay="300"] {
  transition-delay: 0.3s;
}

.science-animate-on-scroll[data-delay="400"] {
  transition-delay: 0.4s;
}

.science-animate-on-scroll[data-delay="600"] {
  transition-delay: 0.6s;
}

/* Keep original styles for elements that might be shared */
.hero-section {
  background-color: var(--background);
  padding: 90px 0 0px;
  text-align: center;
}

.page-title {
  color: var(--text-dark);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.subtitle {
  color: var(--text-dark);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-padding {
  padding: 80px 0;
}

.two-column-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.content-column,
.image-column {
  flex: 1;
}

.content-column h2 {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

.content-column p {
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.image-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-container {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--primary-light);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.stat-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.bg-light {
  background-color: var(--gray);
}

.section-title {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.section-subtitle {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

/* Colorful ingredient cards */
.ingredients-section .ingredient-card:nth-child(1) {
  border-top: 4px solid #9d6a87;
  background-color: rgba(157, 106, 135, 0.05);
}

.ingredients-section .ingredient-card:nth-child(2) {
  border-top: 4px solid #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.ingredients-section .ingredient-card:nth-child(3) {
  border-top: 4px solid #8d6e63;
  background-color: rgba(141, 110, 99, 0.05);
}

.ingredients-section .ingredient-card:nth-child(4) {
  border-top: 4px solid #ffc107;
  background-color: rgba(255, 193, 7, 0.05);
}

.ingredients-section .ingredient-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ingredients-section .ingredient-card h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.ingredients-section .ingredient-card h3::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.ingredients-section .ingredient-card:hover h3::after {
  width: 100%;
}

.ingredients-section .ingredient-card:nth-child(1) h3::after {
  background-color: #9d6a87;
}

.ingredients-section .ingredient-card:nth-child(2) h3::after {
  background-color: #4caf50;
}

.ingredients-section .ingredient-card:nth-child(3) h3::after {
  background-color: #8d6e63;
}

.ingredients-section .ingredient-card:nth-child(4) h3::after {
  background-color: #ffc107;
}

.ingredient-icon {
  transition: transform 0.3s ease;
}

.ingredients-section .ingredient-card:hover .ingredient-icon {
  transform: scale(1.1);
}
