:root {
    --md-primary-fg-color: #f3f1f2;
    --md-primary-fg-color--dark: #0D4984;
    --md-primary-fg-color--light: #6593C8;
    --nav-item-color: #4d4d4d;
    --nav-bg-color: #f3f1f2;
    --md-footer-bg-color: #081729;
    --elasti-primary: #4F46E5;
    --elasti-secondary: #6366F1;
    --elasti-accent: #818CF8;
    --elasti-light: #F5F5F5;
    --elasti-dark: #161616;
    --elasti-text-light: #FFFFFF;
    --elasti-text-dark: #000;
    --section-padding: 5rem 2rem;
    --border-radius: 8px;
    --transition-standard: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--elasti-primary) 0%, var(--elasti-secondary) 100%);
    --text-color: var(--elasti-text-dark);
    --section-bg-main: rgba(255, 255, 255, 0.7);
    --section-bg-alt: rgba(245, 245, 245, 0.7);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --card-bg-light: rgba(255, 255, 255, 0.9);
    --card-bg-dark: rgba(35, 39, 47, 0.8);
  }


  /* header css */
.md-header {
    background-color: var(--elasti-primary);
  }
  

  .md-tabs {
    background-color: var(--elasti-primary);
    font-weight: bold;
  }
  

  /* Tame the footer and make the prev/next stand out */
/* .md-footer {
    background-color: var(--elasti-dark);
    color: var(--elasti-text-light);
  } */
  
  
  .md-footer-meta {
    /* background-color: var(--elasti-dark); */
    width: 100%;
  }
  
  a.md-header__button.md-logo :is(img, svg),
  a.md-header__button.md-logo img {
    width: 1.8rem;
    height: 1.8rem;
  }
  
  .md-header__button.md-logo {
    transition-duration: 0.2s;
    transition-property: transform;
  }
  
  .md-header__button.md-logo:hover {
    opacity: 1;
  }

/* Custom Homepage Styles */

/* General Styles */
.md-content__inner {
  padding: 0;
  margin: 0;
  margin-bottom: 3rem;
}

.md-content__inner > h1:first-child {
  margin-top: 0;
}

/* Theme compatibility */
[data-md-color-scheme="default"] {
  --text-color: var(--elasti-text-dark);
  --card-bg: var(--card-bg-light);
  --section-bg-alt: #fff;
  --section-bg-main: #fff;
}

[data-md-color-scheme="slate"] {
  --text-color: var(--elasti-text-light);
  --card-bg: var(--card-bg-dark);
  --section-bg-alt: rgba(30, 34, 42, 0.7);
  --section-bg-main: rgba(25, 29, 37, 0.7);
}

/* Animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: var(--section-padding);
  /* background: var(--elasti-dark); */
  /* color: var(--elasti-text-light); */
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.1) 0%, transparent 70%); */
  z-index: 0;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-out forwards;
}

.hero-logo-title {
  display: flex;
  align-items: center;
  animation: fadeIn 0.8s ease-out 0.2s both;
  margin-bottom:20px;
}

.hero-logo {
  width: 90px;
  margin-top:2px;
  margin-right:5px;
  margin-left:-13px;
  animation: pulse 3s infinite ease-in-out;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin: 0;
  color: var(--elasti-primary);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: var(--text-color);
  font-weight: 800;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-description {
  font-size: 1.2rem;
  margin: 0 0 2rem;
  max-width: 600px;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out 0.8s both;
}

.hero-buttons .md-button {
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition-standard);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
}

.hero-buttons .md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.hero-buttons .md-button--primary {
  background: var(--gradient-primary);
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: slideInRight 0.8s ease-out 0.4s both, float 6s ease-in-out infinite;
  padding: 40px;
  border-radius: var(--border-radius);
  /* background: #1e2129; */
}

.hero-image img {
  width: 100%;
}

/* Companies Section */
.companies-section {
  padding: var(--section-padding);
  text-align: center;
  background-color: var(--elasti-primary);
  color: var(--elasti-text-light);
  border-radius: var(--border-radius);
  position: relative;
}

.companies-section h2 {
  margin-bottom: 2rem;
  color: var(--elasti-text-light);
  font-weight: 700;
  position: relative;
  display: inline-block;
  animation: fadeIn 0.8s ease-out forwards;
}

.companies-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.company-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto;
  max-width: 1200px;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.company-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
}

.company-logo:hover {
  transform: scale(1.05);
}

.company-logo.placeholder {
  width: 200px;
  height: 80px;
  /* background-color: rgba(224, 224, 224, 0.3); */
  color: var(--elasti-text-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  /* box-shadow: var(--card-shadow); */
  transition: var(--transition-standard);
}

.company-logo.placeholder:hover {
  opacity: 1;
  transform: translateY(-5px);
}

/* Features Section */
.features-section {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
}

.features-section h2 {
  margin-bottom: 3rem;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  animation: fadeIn 0.8s ease-out forwards;
}

.features-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--border-radius);
  /* box-shadow: var(--card-shadow); */
  transition: var(--transition-standard);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); */
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: var(--transition-standard);
}

/* .feature-card:hover .feature-icon {
  transform: scale(1.2);
} */

.feature-card h3 {
  margin: 0 0 1rem;
  /* color: var(--elasti-primary); */
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--text-color);
  opacity: 0.9;
}

/* How It Works Section */
.how-it-works-section {
  padding: var(--section-padding);
  /* background-color: var(--section-bg-alt); */
  text-align: center;
  position: relative;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.05) 0%, transparent 70%); */
  z-index: 0;
}

.how-it-works-section h2 {
  margin-bottom: 3rem;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  z-index: 1;
  animation: fadeIn 0.8s ease-out forwards;
}

.how-it-works-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.how-it-works-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.how-it-works-image {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
  animation: slideInLeft 0.8s ease-out forwards;
}

.how-it-works-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  /* box-shadow: var(--card-shadow); */
  transition: var(--transition-standard);
}

.how-it-works-steps {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  text-align: left;
  opacity: 0;
  transform: translateX(20px);
  animation: slideInRight 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }

.step-number {
  background: var(--gradient-primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  /* box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3); */
}

.step-content h3 {
  margin: 0 0 0.5rem;
  color: var(--elasti-primary);
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: var(--text-color);
  opacity: 0.9;
}

/* Get Started Section */
.get-started-section {
  padding: var(--section-padding);
  /* background-color: var(--section-bg-main); */
  text-align: center;
  position: relative;
}

.get-started-section h2 {
  margin-bottom: 3rem;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  animation: fadeIn 0.8s ease-out forwards;
}

.get-started-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  /* background: var(--gradient-primary); */
  border-radius: 3px;
}

.get-started-content {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
  text-align: center;
  animation: slideInRight 0.8s ease-out 0.4s forwards;
}

.get-started-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.6;
}

.get-started-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}

.code-block {
  flex: 1;
  width: 100%;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  position: relative;
}

.code-block::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--gradient-primary);
  border-radius: calc(var(--border-radius) + 5px);
  opacity: 0.1;
  z-index: 0;
}

.code-block pre {
  text-align: left;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--elasti-dark);
  overflow-x: auto;
  margin: 0;
  position: relative;
  z-index: 1;
  /* box-shadow: var(--card-shadow); */
}

.code-block code {
  background-color: var(--elasti-dark);
  color: var(--elasti-text-light);
}

.green {
  color: green;
}

.yellow {
  color: yellow;
}

.white {
  color: white;
}

.blue {
  color: blue;
}

.gray {
  color: gray;
}

/* Community Section */
.community-section {
  padding: var(--section-padding);
  /* background-color: var(--section-bg-alt); */
  text-align: center;
  position: relative;
}

.community-section h2 {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  animation: fadeIn 0.8s ease-out forwards;
}

.community-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.community-section > p {
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color);
  opacity: 0.9;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.community-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.community-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--card-bg);
  /* box-shadow: var(--card-shadow); */
  transition: var(--transition-standard);
  width: 300px;
  text-decoration: none !important;
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease-out forwards;
  cursor: pointer;
}

.community-link:nth-child(1) { animation-delay: 0.1s; }
.community-link:nth-child(2) { animation-delay: 0.2s; }
.community-link:nth-child(3) { animation-delay: 0.3s; }
.community-link:nth-child(4) { animation-delay: 0.4s; }

.community-link:hover {
  transform: translateY(-5px) scale(1.05);
  /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); */
}

.community-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--elasti-primary);
}

.community-icon i {
  transition: var(--transition-standard);
}

.community-link:hover .community-icon i {
  transform: scale(1.2);
}

.community-text {
  color: var(--text-color);
  font-weight: 500;
}

/* Footer CTA */
.footer-cta {
  padding: var(--section-padding);
  /* padding-top: var(--section-padding); */
  background: var(--elasti-primary);
  border-radius: 10px;
  color: var(--elasti-text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: radial-gradient(circle at center, #100b28 0%, transparent 50%); */
  /* background: linear-gradient(360deg, var(--elasti-dark) 0%, var(--elasti-primary) 100%); */
  z-index: 0;
}

.footer-cta h2 {
  margin-bottom: 2rem;
  margin-top:-20px;
  color: var(--elasti-text-light);
  font-weight: 700;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-out forwards;
}

.footer-cta .md-button {
  position: relative;
  z-index: 1;
  background-color: white;
  color: var(--elasti-primary);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition-standard);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.footer-cta .md-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1.5rem;
  }
  
  .hero-section,
  .how-it-works-content,
  .get-started-steps {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-image,
  .how-it-works-image,
  .how-it-works-steps,
  .code-block,
  .get-started-content {
    padding: 1rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .community-link {
    min-width: 120px;
  }
  
  .step {
    margin-bottom: 1.5rem;
  }
  
  .company-logos {
    gap: 1.5rem;
  }
  
  .company-logo.placeholder {
    width: 120px;
    height: 50px;
  }
  
  .code-block pre {
    font-size: 0.9rem;
  }
}
