

.header {
  font-weight: bolder;
  color: #128c7e;
  height: auto;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* color: rgb(5, 109, 5); */
}
.header h1 {
  /* margin: 0; */
  margin-top: 10px;
  font-size: 100px;
}
/* typing animation */
.h3 {
  font-size: 35px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  margin: 0;
  padding-right: 0.1em; /* Small buffer to prevent cutoff */
  animation: typing 2s steps(20) infinite alternate-reverse;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: calc(100% + 0.1em); /* Extend slightly beyond 100% */
  }
}

.header button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: rgb(125, 229, 125); /* Changed to green */
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.7s;
}

.header button:hover {
  background-color: #45a049; /* Darker green on hover */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80%;
  margin: 50px auto;
  /* padding: 20px; */
}

.container.left {
  flex-direction: row;
}

.container.right {
  flex-direction: row-reverse;
}

.iphone {
  width: 500px;
  height: 500px;
  display: block;
}

.text-box {
  max-width: 300px;
  text-align: left;
}

.infobox {
  font-size: 60px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column !important;
    text-align: center;
  }

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

  .iphone {
    width: 200px;
    height: 200px;
  }
}

/* Add to your existing home.css file */

/* Base styles for fade-in containers */
.container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Left container specific animation */
.container.left {
  transform: translateY(20px) translateX(-20px);
}

/* Right container specific animation */
.container.right {
  transform: translateY(20px) translateX(20px);
}

/* Observer callback class that gets added when element becomes visible */
.container.fade-in {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Staggered delay for sequential containers */
.container:nth-child(2) {
  transition-delay: 0.1s;
}
.container:nth-child(3) {
  transition-delay: 0.2s;
}
.container:nth-child(4) {
  transition-delay: 0.3s;
}
.container:nth-child(5) {
  transition-delay: 0.4s;
}
.container:nth-child(6) {
  transition-delay: 0.5s;
}
.container:nth-child(7) {
  transition-delay: 0.6s;
}

.store-badges {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.store-badge-img {
  height: 56px; /* 3.5rem, matches h-14 */
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

@media (max-width: 500px) {
  .store-badges {
    flex-direction: column;
    gap: 0.75rem;
  }
  .store-badge-img {
    height: 44px;
    max-width: 140px;
  }
}

.download-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto 2rem auto;
}
.download-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0.5rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.download-icon-link:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.download-icon-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .download-icons {
    flex-direction: column;
    gap: 1.2rem;
  }
  .download-icon-link {
    width: 80vw;
    max-width: 320px;
    padding: 0.5rem 0.5rem;
  }
  .download-icon-img {
    height: 40px;
    width: 40px;
  }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: 1fr;
}

/* Card image display styles */
.card-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.card-image {
  width: 98%;
  height: 100%;
  max-height: 350px;
  min-height: 280px;
  object-fit: contain;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.card-image:hover {
  transform: scale(1.02);
}

/* Ensure rounded corners work properly with object-contain */
.image-section img {
  border-radius: 1rem !important;
  overflow: hidden !important;
}

/* Additional rule to ensure rounded corners work */
.image-section {
  overflow: hidden;
  border-radius: 1rem;
}

/* Force rounded corners on all images in feature cards */
.feature-card .image-section img {
  border-radius: 1rem !important;
  overflow: hidden !important;
  -webkit-border-radius: 1rem !important;
  -moz-border-radius: 1rem !important;
}

/* Ensure cards maintain consistent height */
.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 550px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card .content-section {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  padding: 0 0.125rem;
}

.feature-card .image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 0.125rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  margin: 0 0.125rem 0.25rem 0.125rem;
  overflow: hidden;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .card-image {
    width: 95%;
    max-height: 300px;
    min-height: 220px;
  }
  
  .feature-card {
    min-height: 480px;
  }
  
  .feature-card .image-section {
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .card-image {
    width: 92%;
    max-height: 260px;
    min-height: 200px;
  }
  
  .feature-card {
    min-height: 420px;
  }
  
  .feature-card .image-section {
    min-height: 220px;
  }
}
