@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

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

:root {
  --primary: #D31A38;
  --primary-light: #FDE8EA;
  --secondary: #212121;
  --bg-soft-blue: #F3F4FF;
  --bg-soft-rose: #FFF5F6;
  --text-main: #1A1A1A;
  --text-muted: #5E5E5E;
  --white: #FFFFFF;
  --border-light: #E0E0E0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --section-padding: 80px 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --accent: #F59E0B;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #F8F9FB; /* Subtle off-white/blueish background */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 20px;
  z-index: 1000;
  width: 90%;
  margin: 20px auto 0 auto;
  height: 66px;
  background-color: transparent;
}

.nav-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  padding: 0.8rem 20px;
  position: relative;
  z-index: 2001;
}

.logoimg {
  width: 100px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-only {
  display: none;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-signin {
  color: var(--text-main);
}

.btn-signup {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-signup:hover {
  opacity: 0.9;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2002;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--secondary);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.active span:first-child {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 80px 20px 40px;
  text-align: center;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 20% 30%, rgba(211, 26, 56, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(243, 244, 255, 0.5) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: var(--secondary);
}

.hero h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}



.btn-get-started {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* Hero Map Visual */
.hero-map-container {
  margin-top: 40px;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connecting-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.connecting-lines {
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-dasharray: 4, 4;
  opacity: 0.2;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 15%; /* Responsive width */
  min-width: 100px;
  max-width: 150px;
  transition: transform 0.3s;
  z-index: 10;
}

.floating-card:hover {
  transform: translateY(-5px) scale(1.1);
}

.floating-card img {
  width: 40%;
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: 8px;
  object-fit: cover;
}

.floating-card .name {
  font-weight: 800;
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  color: var(--secondary);
  white-space: nowrap;
}

.floating-card .location {
  font-size: clamp(0.5rem, 1.2vw, 0.7rem);
  color: var(--text-muted);
}

/* Precise Positions based on design */
.card-1 { top: 15%; left: 10%; }
.card-2 { top: 10%; right: 10%; }
.card-3 { bottom: 10%; left: 15%; }
.card-4 { bottom: 5%; right: 15%; }
.card-center { 
  top: 50%; 
  left: 51%; 
  transform: translate(-50%, -50%); 
}

/* Section Helpers */
section {
  padding: 100px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-tag {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
  text-align: center;
  background: var(--primary-light);
  width: fit-content;
  margin: 0 auto 0.5rem;
  padding: 4px 12px;
  border-radius: 50px;
}

.section-title-large {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: var(--bg-soft-rose);
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stat-card .icon-arrow {
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-card .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-card .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Featured Businesses */
.featured-businesses {
  background-color: var(--white);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  justify-content: center;
}

.business-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-light);
  text-align: left;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 1.5rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.business-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
}

.category-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.institution-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  background-color: var(--bg-soft-blue);
  color: var(--secondary);
}

.product .category-tag {
  background-color: var(--primary-light);
  color: var(--primary);
}

.service .category-tag {
  background-color: #E8F0FE;
  color: #1967D2;
}

.training .category-tag {
  background-color: #E6F4EA;
  color: #137333;
}

.card-body {
  padding: 1.5rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.business-links {
  display: flex;
  gap: 10px;
}

.business-links a {
  display: inline-block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  flex: 1;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.catalogue-link {
  background-color: var(--bg-soft-blue);
  color: var(--secondary);
}

.whatsapp-link {
  background-color: #25D366;
  color: white;
}

.catalogue-link:hover {
  background-color: var(--border-light);
}

.whatsapp-link:hover {
  background-color: #128c7e;
}

.btn-view-all {
  display: block;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 10px 30px;
}

/* Feature Cards Redesign */
.features-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card-new {
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.feature-card-new.rose {
  background-color: var(--bg-soft-rose);
}

.feature-card-new.blue {
  background-color: var(--bg-soft-blue);
}

.feature-icon-new {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card-new h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--secondary);
}

.feature-card-new p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* How It Works Redesign */
.how-it-works-new {
  background-color: var(--bg-soft-blue);
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.how-it-works-col {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.col-badge {
  display: inline-block;
  padding: 6px 15px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-number-circle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.step-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}

.step-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Why Choose Us */
.why-choose-us {
  background-color: var(--white);
}

.features-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card-new {
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.feature-card-new.rose { background-color: var(--bg-soft-rose); }
.feature-card-new.blue { background-color: var(--bg-soft-blue); }

.feature-card-new .icon-arrow {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.feature-card-new h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.feature-card-new p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA Banner */
.cta-banner {
  padding: 0;
  max-width: 100%;
  margin: 60px 20px;
}

.cta-banner-content {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./images/footer-bg.jpg'); /* I'll assume this image exists or use a generic one */
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  border-radius: 20px;
  text-align: center;
  color: var(--white);
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-banner {
  background-color: var(--secondary);
  color: var(--white);
  padding: 12px 40px;
  font-weight: 700;
}

/* Testimonials Section */
.carousel-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--text-dark);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

/* How It Works Section */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  color: var(--text-dark);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-dark);
  font-size: 1.25rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.card {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid #334155;
  backdrop-filter: blur(10px);
}

.card-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: rgb(211, 26, 56);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: white;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.step-number {
  background-color: rgb(211, 26, 56);
}

.step-content h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: #94a3b8;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--secondary);
  font-size: 1rem;
}

.faq-answer {
  padding-top: 15px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .icon-arrow {
  transform: rotate(180deg);
}

/* Footer redesign */
footer {
  background-color: var(--white);
  color: var(--text-main);
  padding: 60px 20px 20px;
  border-top: 1px solid var(--border-light);
}

.footer-logo {
  margin-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--secondary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #A3142A 100%);
  color: white;
  padding: 1rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(211, 26, 56, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 26, 56, 0.6);
  background: linear-gradient(135deg, #A3142A 0%, var(--primary) 100%);
}

.floating-btn::before {
  content: "✨";
  font-size: 1.2rem;
}

html {
  scroll-behavior: smooth;
}

/* Scroll to top button styles */
.scroll-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #A3142A 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(211, 26, 56, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(211, 26, 56, 0.6);
  background: linear-gradient(135deg, #A3142A 0%, var(--primary) 100%);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px 15px;
  }

  nav {
    padding: 1rem 15px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
  }

  .mobile-only {
    display: block;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
  }

  .mobile-only .btn {
    width: 20%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 0;
  }

  .mobile-only .btn-signin {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--secondary);
    margin-bottom: 1rem;
  }

  .mobile-only .btn-signup {
    background-color: var(--secondary);
    color: var(--white) !important;
    font-weight: 700;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-buttons {
    display: none; /* Hide buttons on mobile for simplicity, or include in mobile menu */
  }

  .hamburger {
    display: flex;
  }

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

  .hero-map-container {
    width: 120%; /* Expands slightly to keep cards from clustering */
    margin-left: -10%;
    margin-right: -10%;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-2x2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-map-container {
    width: 140%;
    margin-left: -20%;
    margin-right: -20%;
    transform: scale(0.9);
  }

  .floating-card {
    min-width: 80px;
    padding: 8px;
  }
  
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
