/* BASE */
body {
  font-family: 'Inter', sans-serif;
  background-color: white;
  color: #1f2937;
}

/* HERO + NAVBAR */
.hero-section {
  background-color: #29453e;

}

.navbar {
  font-size: 1rem; /* Smaller navbar links */
  padding: 0.5rem 0;
}



.header-content {
  font-size: 2.1rem;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  color: white;
  font-size: 2.5rem; /* Bigger logo */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link {
  color: white;
  font-weight: 600;
  transition: color 0.3s;
  margin-left: 1.8rem;
  font-size: 1.5rem;
}
.nav-link:hover {
  color: #00ff7b;
}

/* HERO MAIN */
.hero-main {
  max-width: 90rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-text {
  text-align: center;
  padding-left: 4rem; /* shift left a bit */
}

@media (min-width: 768px) {
  .hero-text {
    text-align: left;
    padding-left: 2rem; /* extra left offset on desktop */
  }
}

.hero-text h1 {
  font-size: 6rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}
.hero-text p {
  font-size: 1.6rem; /* larger body */
  color: #e5e7eb;
}

/* HERO IMAGE */
.hero-image img {
  border-radius: 0.75rem;
  margin: 0 auto;
  width: 100%;
  max-width: 650px; /* bigger image size */
  height: auto;
}
@media (min-width: 1024px) {
  .hero-image img {
    max-width: 750px; /* even bigger on large screens */
  }
}


/* HOW IT WORKS */
.how-it-works {
  padding: 5rem 0;
  background-color: #f9fafb;
}
.section-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.how-it-works h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-item {
  text-align: center;
}
.step-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border: 4px solid #a7f3d0;
  border-radius: 9999px;
  background-color: #d1fae5;
}
.step-icon {
  font-size: 2rem;
}
.step-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-item p {
  color: #4b5563;
}

        /* FEATURED CATEGORIES */
        .carousel-unit {
            /* Ensure the carousel wrapper contains the absolute positioned arrows */
            position: relative;
        }
        .carousel-container {
            display: flex;
            overflow-x: auto;
            padding: 1rem 0;
            margin: 1rem 0;
            gap: 2rem;
            -ms-overflow-style: none;
            scrollbar-width: none;
       
        }
        .carousel-container::-webkit-scrollbar {
            display: none;
        }
        .card {
            flex-shrink: 0;
            width: 18rem;
            height: 20rem;
            background-color: #f3f4f6;
            border-radius: 0.75rem;
            position: relative;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
        }
        .swap-button {
            position: absolute;
            bottom: 1.5rem;
            left: 50%;
            transform: translateX(-50%);
            background-color: #1f2937;
            color: white;
            padding: 0.75rem 2.5rem;
            border-radius: 9999px;
            font-weight: 700;
            transition: background-color 0.3s;
        }
        .swap-button:hover {
            background-color: #111827;
        }
        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 3rem;
            height: 3rem;
            background-color: white;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #4b5563;
            cursor: pointer;
            transition: background-color 0.3s;
            /* FIX 1: Add z-index to ensure arrows are above the cards */
            z-index: 10;
        }
        .nav-arrow:hover {
            background-color: #f3f4f6;
        }
        
        /* FIX 2: Changed ID to Class (.prev-btn) and adjusted position for visibility */
        .prev-btn { 
            left: 0.25rem; 
        } 
        /* FIX 2: Changed ID to Class (.next-btn) and adjusted position for visibility */
        .next-btn { 
            right: 0.25rem; 
        } 

        .category-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 2rem;
            padding: 0 1.5rem;
        }
        
        .carousel-separator {
            border-top: 1px solid #e5e7eb;
            margin-top: 2rem;
            margin-bottom: 2rem;
        }


/* FOOTER */
footer {
    background-color: #29453e;
    color: #ffffff;
    padding: 20px 50px 10px 50px; /* reduced top and bottom padding */
    font-size: 1.4rem;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 80px; /* slightly smaller spacing if needed */
    flex-wrap: wrap;
    margin-bottom: 10px; /* reduce bottom margin */
}

.footer-bottom {
    text-align: center;
    padding-top: 10px; /* less padding */
}

.footer-bottom p {
    margin: 3px 0; /* smaller spacing between lines */
    font-size: 1.3rem;
}

.card {
  position: relative;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: visible; /* allow popup to show outside */
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* Swap button stays at bottom */
.swap-button {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f2937;
  color: white;
  padding: 0.75rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  z-index: 5; /* behind popup */
}

/* Description popup */
.description {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: #1f2937;
  padding: 1rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

/* Show popup on hover */
.card:hover .description {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-10px);
}

