/* Global Styles */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Lexend:wght@700&display=swap');

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html, body {
  margin: 0px;
  height: 100%;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* CSS Variables */
:root {
  /* Colors */
  --color-cyan-14: #064034;
  --color-yellow-36: #8EB205;
  --color-grey-20: #333333;
  --color-grey-40: #666666;
  --color-white: #FDFDFD;
  --color-accent-green: #7A9B04;
  
  /* Font Families */
  --font-inter: 'Inter', sans-serif;
  --font-lexend: 'Lexend', sans-serif;
}

/* ===== SECTION ALIGNMENT FIXES ===== */
/* Ensure all sections use consistent container logic */
.section {
  width: 100%;
  padding: 120px 90px;
  position: relative;
}

.section-light {
  background: var(--color-white);
}

.section-dark {
  background: var(--color-cyan-14);
  width: 100%;
}

.section-heading-wrapper {
  margin-bottom: 60px;
  text-align: center;
}

.section-label {
  display: inline-block;
  background: var(--color-accent-green);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 23.80px;
  letter-spacing: 0.70px;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--font-lexend);
  font-weight: 700;
  color: var(--color-cyan-14);
  margin-bottom: 20px;
  font-size: 42px;
  line-height: 1.3;
}

.section-dark .section-heading {
  color: var(--color-white);
}

.section-subheading {
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 400;
  opacity: 0.9;
  color: var(--color-grey-20);
  line-height: 1.6;
}

.section-dark .section-subheading {
  color: var(--color-white);
}

/* ===== Science Section Layout - COMPLETELY FIXED ===== */
.science .science-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid for perfect alignment */
.science .science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left content - perfectly aligned */
.science .science-content {
  padding-right: 40px;
}

.science .section-heading-wrapper {
  margin-bottom: 32px;
  text-align: left;
}

.science .section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FDFDFD;
  margin-bottom: 12px;
}

.science .science-heading {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #064034;
  white-space: nowrap;
}

.science .science-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--color-grey-20);
}

/* Right image - PERFECTLY SIZED AND POSITIONED */
.science .science-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.science .science-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Technology Section Fixes */
.technology-section {
  width: 100%;
  padding: 120px 0;
  position: relative;
  background: #064034;
}

.technology-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.technology-heading-wrapper {
  margin-bottom: 60px;
  text-align: left;
}

.technology-label {
  display: inline-block;
  background: #7A9B04;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 23.80px;
  letter-spacing: 0.70px;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.heading-with-icon {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.technology-main-heading {
  font-family: 'Lexend', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 49.40px;
  margin-right: 15px;
}

.heading-icon {
  width: 105px;
  height: 100px;
  object-fit: contain;
}

.technology-subheading {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 27px;
  color: rgba(255, 255, 255, 0.90);
  max-width: 730px;
  margin: 0;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  min-height: 284px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.tech-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tech-heading {
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  line-height: 24px;
}

.tech-description {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 25.60px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  flex-grow: 1;
}

/* Process Section */
.process-steps {
  max-width: 1002px;
  margin: 0 auto;
}

.process-step {
  background: var(--color-white);
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.step-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #8EB205 0%, #7A9B04 100%);
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 40px;
  flex-shrink: 0;
}

.step-number span {
  color: var(--color-white);
  font-family: var(--font-inter);
  font-size: 28px;
  font-weight: 700;
}

.step-title {
  font-family: var(--font-lexend);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-cyan-14);
  margin-bottom: 10px;
}

.step-list {
  list-style: none;
  padding-left: 110px;
}

.step-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 30.60px;
  color: var(--color-grey-20);
}

.step-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--color-yellow-36);
  border-radius: 4px;
}

/* Results Section - MATCHING TECHNOLOGY SECTION LAYOUT */
.results-section {
  width: 100%;
  padding: 120px 0;
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.result-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 50px 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
}

.result-value {
  font-family: var(--font-inter);
  font-size: 45px;
  font-weight: 700;
  color: var(--color-yellow-36);
  line-height: 76.50px;
  margin-bottom: 30px;
}

.result-description {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 28.80px;
  color: var(--color-grey-20);
}

/* ===== Testimonials Section - UPDATED TO MATCH INDEX PAGE ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  background: #FDFDFD;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 40px 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 96px;
  height: 26px;
  background-color: #f0f0f0;
  border-radius: 30px;
  margin-bottom: 30px;
}

.testimonial-text {
  color: #333333;
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  margin-top: 3%;
  font-family: var(--font-inter);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  margin-right: 12px;
}

.author-info {
  text-align: left;
}

.author-name {
  color: #064034;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: var(--font-inter);
}

.author-role {
  color: #666666;
  font-size: 14px;
  font-family: var(--font-inter);
}

/* Remove the old testimonial quote styling */
.testimonial-quote {
  display: none;
}

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

.cta-heading {
  font-family: var(--font-lexend);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-cyan-14);
  margin-bottom: 30px;
}

.cta-subheading {
  font-family: var(--font-inter);
  font-size: 22px;
  line-height: 35.20px;
  opacity: 0.9;
  color: var(--color-grey-20);
  margin-bottom: 50px;
}

.cta-button {
  display: inline-block;
  background: var(--color-yellow-36);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 600;
  padding: 20px 40px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(142, 178, 5, 0.3);
}

.cta-button:hover {
  background: var(--color-accent-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 178, 5, 0.4);
}

/* =========================
   HOW IT WORKS PAGE RESPONSIVE MEDIA QUERIES
   Only for how-it-works.css
========================= */

/* Large tablets and small desktops (993px - 1200px) */
@media (max-width: 1200px) {
  .science .science-container,
  .technology-container,
  .results-container {
    max-width: 1000px;
    padding: 0 40px;
  }
  
  .technology-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .tech-card {
    min-height: 300px;
    padding: 30px 25px;
  }
}

/* Tablets (769px - 992px) */
@media (max-width: 992px) {
  .section {
    padding: 80px 40px;
  }
  
  .science .science-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .science .science-content {
    padding-right: 0;
  }
  
  .science .section-heading-wrapper {
    text-align: center !important;
  }
  
  .science .science-heading {
    white-space: normal;
    font-size: 36px;
  }
  
  .science .science-img {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .technology-section {
    padding: 80px 0;
  }
  
  .technology-container {
    padding: 0 40px;
  }
  
  .heading-with-icon {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .heading-icon {
    margin-top: 15px;
  }
  
  .process-step {
    padding: 30px 25px;
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .step-list {
    padding-left: 0;
  }
  
  .cta-section {
    padding: 80px 40px;
  }
  
  .cta-heading {
    font-size: 36px;
  }
  
  .cta-subheading {
    font-size: 20px;
  }
}

/* Mobile Devices (481px - 768px) */
@media (max-width: 768px) {
  .section {
    padding: 60px 20px;
  }
  
  .science .science-heading {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .science .science-text {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .science .science-img {
    max-width: 300px;
  }
  
  .technology-section {
    padding: 60px 0;
  }
  
  .technology-container {
    padding: 0 20px;
  }
  
  .technology-grid,
  .results-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .technology-main-heading {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .tech-card {
    min-height: auto;
    padding: 25px 20px;
  }
  
  .tech-heading {
    font-size: 18px;
  }
  
  .tech-description {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .process-step {
    padding: 25px 20px;
    margin-bottom: 30px;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
  }
  
  .step-number span {
    font-size: 24px;
  }
  
  .step-title {
    font-size: 20px;
  }
  
  .step-item {
    font-size: 16px;
    line-height: 1.5;
    padding-left: 30px;
    margin-bottom: 15px;
  }
  
  .step-item:before {
    top: 10px;
  }
  
  .result-card {
    padding: 40px 20px;
  }
  
  .result-value {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .result-description {
    font-size: 16px;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .testimonial-text {
    font-size: 15px;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-avatar {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .author-info {
    text-align: center;
  }
  
  .cta-section {
    padding: 60px 20px;
  }
  
  .cta-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .cta-subheading {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
  }
  
  .cta-button {
    padding: 16px 32px;
    font-size: 18px;
  }
}

/* Small Mobile Devices (375px - 480px) */
@media (max-width: 480px) {
  .section {
    padding: 50px 15px;
  }
  
  .section-heading {
    font-size: 28px;
  }
  
  .section-subheading {
    font-size: 16px;
  }
  
  .science .science-heading {
    font-size: 28px;
  }
  
  .science .science-img {
    max-width: 250px;
  }
  
  .science .science-text {
    font-size: 15px;
  }
  
  .technology-section {
    padding: 50px 0;
  }
  
  .technology-container {
    padding: 0 15px;
  }
  
  .technology-main-heading {
    font-size: 26px;
  }
  
  .heading-icon {
    width: 80px;
    height: 76px;
  }
  
  .technology-subheading {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .tech-card {
    padding: 20px 15px;
  }
  
  .tech-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
  }
  
  .tech-icon img {
    width: 35px;
    height: 35px;
  }
  
  .tech-heading {
    font-size: 17px;
    margin-bottom: 12px;
  }
  
  .tech-description {
    font-size: 15px;
  }
  
  .process-step {
    padding: 20px 15px;
    margin-bottom: 25px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  
  .step-number span {
    font-size: 20px;
  }
  
  .step-title {
    font-size: 18px;
  }
  
  .step-item {
    font-size: 15px;
    padding-left: 25px;
    margin-bottom: 12px;
  }
  
  .step-item:before {
    top: 9px;
    width: 6px;
    height: 6px;
  }
  
  .result-card {
    padding: 30px 15px;
  }
  
  .result-value {
    font-size: 32px;
    margin-bottom: 15px;
  }
  
  .result-description {
    font-size: 15px;
  }
  
  .testimonial-card {
    padding: 25px 15px;
  }
  
  .testimonial-text {
    font-size: 14px;
  }
  
  .author-name {
    font-size: 15px;
  }
  
  .author-role {
    font-size: 13px;
  }
  
  .cta-section {
    padding: 50px 15px;
  }
  
  .cta-heading {
    font-size: 24px;
  }
  
  .cta-subheading {
    font-size: 16px;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* Extra Small Mobile Devices (below 374px) */
@media (max-width: 374px) {
  .section {
    padding: 40px 12px;
  }
  
  .section-heading {
    font-size: 24px;
  }
  
  .science .science-heading {
    font-size: 24px;
  }
  
  .science .science-img {
    max-width: 200px;
  }
  
  .technology-main-heading {
    font-size: 22px;
  }
  
  .tech-card {
    padding: 18px 12px;
  }
  
  .process-step {
    padding: 18px 12px;
  }
  
  .cta-heading {
    font-size: 22px;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Fix for navbar toggle visibility specifically on how-it-works page */
@media (max-width: 768px) {
  /* Ensure navbar toggle is visible and properly positioned */
  .nav-top-variant2 .hamburger-toggle {
    display: flex !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
  }
  
  .nav-top-variant2 .hamburger-toggle span {
    background: #ffffff !important;
  }
  
  /* Ensure mobile menu starts exactly below navbar */
  .nav-top-variant2 .mobile-menu {
    top: 65px !important;
  }
  
  .nav-top-variant2.menu-active::before {
    top: 65px !important;
  }
  
  /* Adjust hero section margin for navbar */
  main.hero-default {
    margin-top: 65px !important;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-top-variant2 .mobile-menu {
    height: auto;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }
  
  .technology-section,
  .results-section {
    padding: 40px 0;
  }
  
  .section {
    padding: 40px 20px;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .science-img,
  .heading-icon,
  .tech-icon img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .tech-card,
  .process-step,
  .result-card,
  .testimonial-card,
  .cta-button {
    transition: none;
  }
  
  .tech-card:hover,
  .process-step:hover,
  .result-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}





/* ===== Decorative Drop Section - NOW RESPONSIVE ===== */
.decorative-drop-section {
  width: 100%;
  height: 313px;
  position: relative;
  background: var(--color-cyan-14, #064034);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.decorative-drop-section img {
  width: auto;
  height: auto;
  max-width: 500px;
  object-fit: contain;
}

/* ===== RESPONSIVE MEDIA QUERIES FOR DECORATIVE DROP SECTION ===== */

/* Tablets (769px - 992px) */
@media (max-width: 992px) {
  .decorative-drop-section {
    height: 250px;
  }
  
  .decorative-drop-section img {
    max-width: 180px;
  }
}

/* Mobile Devices (481px - 768px) */
@media (max-width: 768px) {
  .decorative-drop-section {
    height: 200px;
  }
  
  .decorative-drop-section img {
    max-width: 150px;
  }
}

/* Small Mobile Devices (375px - 480px) */
@media (max-width: 480px) {
  .decorative-drop-section {
    height: 150px;
  }
  
  .decorative-drop-section img {
    max-width: 120px;
  }
}

/* Extra Small Mobile Devices (below 374px) */
@media (max-width: 374px) {
  .decorative-drop-section {
    height: 120px;
  }
  
  .decorative-drop-section img {
    max-width: 100px;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .decorative-drop-section {
    height: 180px;
  }
  
  .decorative-drop-section img {
    max-width: 140px;
  }
}