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

:root {
  --primary: #0f6e94;
  --primary-dark: #0b4f6c;
  --primary-light: #d6eef6;
  --neutral-light: #f2f4f6;
  --accent: #2ca6a4;
  --accent-color: #2ca6a4;
  --border-color: #e5e7eb;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s ease;

  --text-dark: #2e2e2e;
  --text-light: #fdfdfd;
  --text-muted: #696969;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

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

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn:focus-visible,
.nav a:focus-visible,
.arrow:focus-visible,
.dots button:focus-visible,
.nav-toggle:focus-visible,
.footer-col a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ======
header */
header {
  background-color: var(--white);
  padding: 0.75rem 1.5rem 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav .nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* =======
Hamburger menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Fixed hamburger menu toggle - nav.open affects hamburger inside nav */
.nav.open .hamburger {
  background: transparent;
}

.nav.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* hero slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 1400px;
  margin: auto;
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  width: 100%;
  min-height: 550px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 5rem;
  gap: 3rem;
}

.slide-content {
  flex: 1;
  max-width: 550px;
}

.slide-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.slide-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.slide-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.3rem;
  /* line-height: 1.3; */
}

.slide-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Slide backgrounds */
.slide-1 {
  background: linear-gradient(135deg, rgb(102, 2, 64) 0%, var(--primary) 100%);
}

.slide-2 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.slide-3 {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.prev {
  left: 1.5rem;
}

.next {
  right: 1.5rem;
}

.dots {
  position: absolute;
  bottom: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dots button.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.1);
}
/* hero slider end */

/* ===========================
   Home About section
=========================== */
.about-section {
  background: var(--neutral-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-text > p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===========================
   Why Join us SECTION
=========================== */
.join-section {
  background: var(--white);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.join-card {
  background: var(--primary-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.join-card.featured {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.join-heading {
  color: var(--accent);
  font-size: small;
  margin-bottom: 1rem;
}

.join-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.join-card:not(.featured) .join-text {
  color: var(--text-dark);
}

.join-card:not(.featured) span {
  color: var(--text-muted);
}

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

/* ===========================
   INTEGRATIONS SECTION
=========================== */
.chapters-section {
  background: var(--white);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
}

.chapters-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}

.chapters-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
}

.chapters-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.chapters-card span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

.chapters-cta {
  text-align: center;
}

/* footer */

footer {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 4rem 1.5rem 1.5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-brand {
  text-align: left;
}

.footer-brand img {
  max-width: 150px;
  width: 120px;
  margin-bottom: 1rem;
}

.footer-col h3 {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
/* end */

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

  .info-grid.three-col,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =============
===== mobile nav bar ===
================== */

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.3rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
  }

  .nav.open .nav-list {
    right: 0;
  }

  .nav.open .hamburger {
    background: transparent;
  }

  .nav.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav.open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .nav-list a {
    display: block;
    padding: 1rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .chapters-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn-lg {
    width: 100%;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
  .join-grid {
    grid-template-columns: 1fr;
  }

  .info-grid.two-col,
  .info-grid.three-col,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* 404 Responsive */
  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: 2rem;
  }

  .error-description {
    font-size: 1rem;
  }

  .error-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .error-actions .btn {
    width: 100%;
  }

  .error-suggestions ul {
    grid-template-columns: 1fr;
  }

  .error-suggestions {
    padding: 1.5rem;
  }
}

@media (max-width: 560px) {
  .slide {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
  }

  .slide-content {
    width: 100%;
    margin: 25% 0 0 0;
  }
  .slide-content h1 {
    font-size: 1.6rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .about-section {
    padding: 1.3rem 0;
  }
  .about-image {
    display: none;
  }
}

@media (max-width: 480px) {
  .chapters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================
   Inner pages
=========================== */
.page-hero {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.page-hero .section-tag {
  color: #a7edf3;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  max-width: 820px;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.08rem;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
}

.page-section {
  padding: 4rem 0;
}

.alt-surface {
  background: var(--neutral-light);
}

.info-grid {
  display: grid;
  gap: 1.25rem;
}

.info-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card h2,
.info-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--text-muted);
}


.data-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.data-card-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  background: #fff;
}

.feature-list {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.step-card span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
