/* Base Reset & Typography */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: #0D0325;
  background-color: #FFFFFF;
  margin: 0;
  padding-top: 140px;
}

/* Navigation Bar */
header {
  padding: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF, rgba(65, 44, 134, 0.08));
  border-bottom: 2px solid #412C86;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: auto;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(65, 44, 134, 0.1);
  transition: transform 0.3s ease;
}

/* Add class for header hide/show */
header.header-hidden {
  transform: translateY(-100%);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
nav a {
  font-size: 1rem;
  font-weight: 600;
  color: #412C86;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}
nav a:hover {
  color: #753871;
  background-color: rgba(65, 44, 134, 0.05);
}
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #412C86;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
nav a:hover::after {
  width: 80%;
}
nav a.active {
  color: #753871;
  background-color: rgba(65, 44, 134, 0.08);
}
nav a.active::after {
  width: 80%;
}

/* Main content wrapper - if you don't have one, add it to your HTML around the main content */
main {
  position: relative;
  z-index: 1;
  padding-top: 60px; /* Reduced significantly for desktop */
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF, rgba(65, 44, 134, 0.1));
  animation: fadeInUp 0.8s ease-in-out forwards;
  margin-top: -60px; /* Match main's padding */
  padding-top: 60px; /* Match main's padding */
}
.hero h2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(13, 3, 37, 0.1);
}
.hero p {
  font-size: 1.2rem;
  max-width: 750px;
  margin: 0 auto 3rem;
  color: #0D0325;
  line-height: 1.9;
  text-shadow: 0 1px 2px rgba(13, 3, 37, 0.08);
}
.cta-button {
  background-color: #412C86;
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1.2rem 2.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(65, 44, 134, 0.4);
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
  background-color: #753871;
  box-shadow: 0 8px 25px rgba(65, 44, 134, 0.5);
  transform: translateY(-2px);
}

/* Section Styling */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Alternating Section Backgrounds */
section:nth-child(even) {
  background-color: rgba(65, 44, 134, 0.03);
}

section:nth-child(even) > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

section:nth-child(odd) {
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(65, 44, 134, 0.05);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: #0D0325;
  line-height: 1.3;
}

/* How It Works Section */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.step {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(65, 44, 134, 0.05);
  border: 1px solid #412C86;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(65, 44, 134, 0.1);
}

/* Replace placeholder with actual icon styling */
.step::before {
  content: '';
  display: block;
  width: 140px;  /* Slightly reduced from 160px */
  height: 140px;  /* Slightly reduced from 160px */
  margin: 0 auto 1.5rem;  /* Reduced bottom margin */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #412C86;
  border-radius: 50%;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(65, 44, 134, 0.1);
  background-color: #E5E3D3;
  transition: transform 0.3s ease;
}

/* Individual step icons */
.step:nth-child(1)::before {
  background-image: url('../images/define.png');
}

.step:nth-child(2)::before {
  background-image: url('../images/choose.png');
}

.step:nth-child(3)::before {
  background-image: url('../images/gather.png');
}

/* Enhance hover effect for icons */
.step:hover::before {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Step number styling */
.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #412C86;
  line-height: 1.3;
}

.step p {
  color: #0D0325;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Products Section */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0;
}

.product-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #412C86;
  box-shadow: 0 4px 16px rgba(65, 44, 134, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(65, 44, 134, 0.15);
  border-color: #753871;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #412C86, #753871);
  opacity: 0.8;
}

.product-card h3 {
  color: #412C86;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.product-card p {
  color: #0D0325;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-card .feature-list li {
  padding: 0.5rem 0;
  color: #0D0325;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .feature-list li::before {
  content: '•';
  color: #412C86;
  font-weight: bold;
  font-size: 1.2em;
}

/* Participants Section */
#participants {
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF, rgba(65, 44, 134, 0.05));
  margin-top: 0;
  border-bottom: none;
}

#participants p {
  max-width: 750px;
  margin: 0 auto 2rem;
}

#participants .cta-button {
  display: inline-block;
  min-width: 300px;
  font-size: 1.4rem;
  padding: 1.4rem 3rem;
  margin-top: 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(65, 44, 134, 0.45);
}

#participants .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(65, 44, 134, 0.6);
}

/* Footer */
footer {
  padding: 2rem 1rem;
  text-align: center;
  background: #412C86;
  border-top: 2px solid #753871;
  font-size: 0.875rem;
  color: #FFFFFF;
}
footer a {
  color: #E8FFFF;
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (min-width: 768px) {
  header h1 {
    font-size: 3rem;
  }
  .hero h2 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  header {
    padding: 0.5rem;
  }
  
  header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }

  /* Adjust body padding */
  body {
    padding-top: 0;
  }
  
  main {
    padding-top: 70px;
  }
  
  .hero {
    margin-top: -70px;
    padding-top: 70px;
    padding-bottom: 30px;
    min-height: 100dvh;
  }

  .hero h2 {
    margin-top: 40px;
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
    margin-top: 1rem;
  }

  .cta-button {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }

  /* Section Styling */
  section {
    padding: 4rem 1rem;
  }
  
  section:nth-child(even) {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .steps, .products {
    grid-template-columns: 1fr;
  }
  
  .step, .product-card {
    margin: 0 auto;
    max-width: 500px;
  }

  /* Products Section */
  .products {
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .product-card {
    padding: 1.5rem;
    width: 100%;
    max-width: none;
  }

  .product-card h3 {
    font-size: 1.5rem;
  }

  /* Feature List */
  .feature-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .logo {
    height: 48px;
  }

  .logo-container {
    padding-top: 0;
    margin: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .step {
    padding: 2rem;
  }
  
  .step::before {
    width: 110px;
    height: 110px;
    margin-bottom: 1.25rem;
    padding: 15px;
  }

  #participants .cta-button {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: unset;
    margin: 1rem auto;
    font-size: 1.3rem;
    padding: 1.2rem 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.75rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section h3 {
    font-size: 1.5rem;
  }

  #participants .cta-button {
    font-size: 1.2rem;
    padding: 1rem;
  }

  body {
    padding-top: 0;
  }
  
  main {
    padding-top: 70px;
  }
  
  .hero {
    margin-top: -70px;
    padding-top: 70px;
    min-height: 100dvh;
  }
}

/* Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.logo {
  height: 80px;
  width: auto;
}
