/* style.css */

/* --- Global Styles & Variables --- */
:root {
  --primary-color: #007bff; /* A vibrant blue for main actions */
  --secondary-color: #6c757d; /* A subtle grey for secondary elements */
  --accent-color: #28a745; /* A strong green for emphasis, especially Nigerian section */
  --text-color: #343a40; /* Dark grey for body text */
  --heading-color: #212529; /* Even darker for headings */
  --dark-header-bg: #000000; /* Pure black background for fixed header */
  --light-bg: #f8f9fa; /* Light grey background */
  --white-bg: #ffffff; /* White background */
  --border-color: #dee2e6; /* Light grey for borders */
  --font-family: "Poppins", sans-serif;
  --section-padding-desktop: 80px; /* Consistent padding for sections on desktop */
  --section-padding-mobile: 60px; /* Consistent padding for sections on mobile */
  --container-width: 1100px; /* Max width for content */
  --fixed-header-height: 100px; /* Height for the fixed logo header */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-bg);
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: var(
    --fixed-header-height
  ); /* Push content down to avoid hiding behind fixed header */
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: var(--section-padding-desktop) 0;
}

.bg-light {
  background-color: var(--light-bg);
}

.bg-accent {
  background-color: var(--accent-color);
  color: var(--white-bg); /* White text on accent background */
}

.bg-accent h2,
.bg-accent h3,
.bg-accent p,
.bg-accent li,
.bg-accent strong {
  color: var(--white-bg);
}

h1,
h2,
h3 {
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

h1 {
  font-size: 3em;
  font-weight: 700;
}

h2 {
  font-size: 2.5em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.8em;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
}

ul {
  list-style: disc; /* Revert to default disc list style */
  padding-left: 20px; /* Add padding for disc */
  margin-bottom: 20px;
}

ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 0; /* Remove previous custom padding */
}

ul li::before {
  content: none; /* REMOVED green checkmark */
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-bg);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* --- Fixed Main Header Nav (for Logo) --- */
.main-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--fixed-header-height);
  background-color: var(--dark-header-bg); /* Pure black header background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow for black header */
}

.main-header-nav .logo-link {
  height: 100%;
  display: flex;
  align-items: center;
}

.main-header-nav .logo {
  width: 70px;
  height: 70px;
  display: block;
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("call-ai.png") no-repeat center center;
  background-size: cover;
  color: var(--white-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--fixed-header-height));
  padding: 40px 20px;
  padding-bottom: var(--section-padding-desktop);
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-section h1 {
  color: var(--white-bg);
  font-size: 3.5em;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero-section p {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* --- Problem-Solution Section --- */
.problem-solution-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.problem-statement,
.solution-statement {
  flex: 1;
  min-width: 300px;
}

.problem-solution-section h2 {
  text-align: left;
  margin-bottom: 20px;
}

/* --- How It Works Section --- */
.how-it-works-section h2 {
  margin-bottom: 50px;
}

.how-it-works-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.how-it-works-steps .step {
  background-color: var(--white-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  transition: transform 0.3s ease;
}

.how-it-works-steps .step:hover {
  transform: translateY(-5px);
}

.how-it-works-steps .step h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.key-features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.key-features ul li {
  background-color: var(--white-bg);
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.key-features ul li::before {
  content: "";
  padding-left: 0;
}

.ai-in-action {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: var(--white-bg);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.ai-in-action h2 {
  margin-bottom: 20px;
  color: var(--heading-color);
}

.ai-in-action audio {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
  outline: none;
}

/* --- Benefits Section --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-item {
  background-color: var(--white-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.benefit-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* --- Nigerian Focus Section --- */
.nigerian-focus-section {
  padding: var(--section-padding-desktop) 20px;
}

.nigerian-focus-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.nigerian-focus-section ul {
  margin-top: 30px;
  margin-bottom: 30px;
}

.nigerian-focus-section ul li {
  margin-bottom: 15px;
}

.nigerian-focus-section ul li::before {
  content: none;
}

.nigerian-focus-section .highlight-text {
  font-size: 1.15em;
  font-weight: 600;
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

/* --- Final CTA Section --- */
.final-cta-section {
  text-align: center; /* Default for desktop */
  background-color: var(--light-bg);
}

.final-cta-section h2 {
  margin-bottom: 25px;
}

.final-cta-section p {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-section .cta-button {
  margin: 0 10px;
}

.secondary-cta {
  background-color: var(--secondary-color);
}

.secondary-cta:hover {
  background-color: #5a6268;
}

/* --- Footer --- */
footer {
  background-color: var(--heading-color);
  color: var(--light-bg);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
}

footer p {
  margin-bottom: 5px;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* --- All-Screen Side Navigation --- */
.side-nav {
  position: fixed;
  right: 20px;
  top: calc(50% + var(--fixed-header-height) / 2);
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 12px 6px;
  border-radius: 8px;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-nav li {
  margin: 0;
}

.side-nav a {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 3px solid var(--white-bg);
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease;
  position: relative;
  outline: none;
}

.side-nav a:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.3);
}

.side-nav a.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.2);
}

/* Tooltip for navigation dots (Always present by default, hidden by media query below for small screens) */
.side-nav a::before {
  content: attr(
    data-label
  ); /* Displays the content of the data-label attribute */
  position: absolute;
  right: 35px; /* Position to the left of the dot */
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--heading-color); /* Dark background for tooltip */
  color: var(--white-bg);
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0; /* Hidden by default */
  visibility: hidden; /* Hidden by default */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-size: 0.95em;
  pointer-events: none; /* Allows clicks to pass through to the element behind it */
}

.side-nav a:hover::before {
  opacity: 1; /* Make visible on hover */
  visibility: visible; /* Make visible on hover */
}

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
  /* Tablet size and smaller */
  h1 {
    font-size: 2.8em;
  }

  h2 {
    font-size: 2.2em;
    margin-bottom: 35px;
  }

  body {
    padding-top: var(--fixed-header-height);
  }

  .hero-section {
    min-height: calc(100vh - var(--fixed-header-height));
    padding-top: 40px;
    padding-bottom: var(--section-padding-mobile);
  }

  .hero-section p {
    font-size: 1.15em;
  }

  .section-padding {
    padding: var(--section-padding-mobile) 0;
  }

  .problem-solution-section .container {
    flex-direction: column;
    gap: 30px;
  }

  .problem-statement,
  .solution-statement {
    min-width: unset;
    text-align: center;
  }

  .problem-statement h2,
  .solution-statement h2 {
    text-align: center;
  }

  .how-it-works-steps,
  .benefits-grid {
    gap: 20px;
  }

  .how-it-works-steps .step,
  .benefit-item {
    max-width: 400px;
    margin: 0 auto;
  }

  .key-features ul {
    grid-template-columns: 1fr;
  }

  /* Final CTA button centering for tablet */
  .final-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .final-cta-section .cta-button {
    margin: 10px 0;
    width: 80%;
    max-width: 300px;
  }

  .main-header-nav .logo {
    width: 60px;
    height: 60px;
  }

  /* Side Nav adjustments for tablets and smaller */
  .side-nav {
    right: 15px;
    gap: 15px;
    padding: 10px 5px;
  }
  .side-nav a {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  /* Tooltips remain visible on tablets by default here */
  .side-nav a::before {
    right: 30px;
    font-size: 0.85em;
  }
}

@media (max-width: 767px) {
  /* Mobile phones breakpoint */
  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  h3 {
    font-size: 1.5em;
  }

  .hero-section {
    padding: 50px 20px;
  }

  .hero-section p {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Final CTA button centering for mobile */
  .final-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .final-cta-section .cta-button {
    margin: 10px auto;
    width: 90%;
    max-width: 300px;
    display: block;
  }

  .main-header-nav .logo {
    width: 50px;
    height: 50px;
  }

  .side-nav {
    right: 8px;
    gap: 10px;
    padding: 6px 3px;
  }
  .side-nav a {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
  /* Explicitly hide tooltips on very small screens to avoid clutter */
  .side-nav a::before {
    display: none; /* Hide tooltips on very small mobile screens */
  }
}

@media (max-width: 480px) {
  /* Smaller mobile screens */
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  .section-padding {
    padding: 40px 0;
  }

  .container {
    padding: 0 15px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .how-it-works-steps .step,
  .benefit-item {
    padding: 25px;
  }

  footer p {
    font-size: 0.8em;
  }
}
