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

:root {
  --bg: #f9f8ff;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5c5c72;
  --purple: #4b0082;
  --purple-light: #6a1fb8;
  --orange: #ff7f11;
  --orange-hover: #e86f00;
  --border: #e8e6f2;
  --tag-bg: #f0eef8;
  --tag-text: #4a4a5e;
  --navy: #0d0d1a;
  --shadow: 0 4px 24px rgba(75, 0, 130, 0.06);
  --shadow-hover: 0 8px 32px rgba(75, 0, 130, 0.12);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.underscore {
  color: var(--purple);
  font-weight: 700;
}

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}

header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
  text-transform: none;
}

header .logo:hover {
  color: #fc8c05;
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
  text-transform: none;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #011aff;
  border-bottom: 0.2rem solid #011aff;
  padding: 0.5rem 0;
}

#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}

@media (max-width: 768px) {
  #menu {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #011aff;
  }

  .fa-times {
    transform: rotate(180deg);
  }

  header .navbar.nav-toggle {
    right: 0;
  }
}
/* navbar ends */

/* projects showcase */
main {
  background: #080808;
}

.projects-showcase {
  max-width: 124rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 12rem 3rem 9rem;
  color: #f5f5f5;
}

.showcase-intro {
  margin-bottom: 6.5rem;
}

.showcase-intro p {
  max-width: 68rem;
  margin-bottom: 2.6rem;
  color: #d2d2d2;
  font-size: 1.7rem;
  line-height: 1.7;
}

.featured-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.featured-stack span,
.stack-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.featured-stack span {
  border: 1px solid #777;
  color: #e8e8e8;
  background: transparent;
}

.projects-showcase > h1 {
  margin-bottom: 3rem;
  color: #ffcc16;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.projects-grid-section .box-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #292929;
  border-radius: 0.7rem;
  background: #0b0b0b;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-0.4rem);
  border-color: #515151;
}

.project-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card-image {
  height: 22rem;
  overflow: hidden;
  background: #181818;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.025);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2rem 2rem 2.2rem;
}

.card-body h2 {
  margin-bottom: 0.35rem;
  color: #f5f5f5;
  font-size: 2rem;
  font-weight: 700;
}

.project-type {
  margin-bottom: 1.8rem;
  color: #ffcc16;
  font-size: 1.25rem;
  font-weight: 700;
}

.card-desc {
  margin-bottom: 2rem;
  color: #979797;
  font-size: 1.45rem;
  line-height: 1.65;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  min-height: 2.2rem;
}

.stack-badge {
  color: #dedede;
  background: #252525;
}

.stack-loading {
  color: #777;
  font-size: 1.2rem;
}

.integrations-section {
  margin-top: 9rem;
  padding-top: 6rem;
  border-top: 1px solid #252525;
}

.integrations-section h2 {
  margin-bottom: 1.6rem;
  color: #ffcc16;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.integrations-intro {
  max-width: 70rem;
  margin-bottom: 3.2rem;
  color: #a8a8a8;
  font-size: 1.5rem;
  line-height: 1.65;
}

.integrations-carousel {
  position: relative;
}

.integrations-viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.integrations-list {
  display: flex;
  width: max-content;
  gap: 1.4rem;
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
}

.integrations-list.is-marquee {
  animation: integrations-marquee var(--marquee-duration, 45s) linear infinite;
}

.integrations-list.is-paused {
  animation-play-state: paused;
}

@keyframes integrations-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.integrations-list li {
  --partner-accent: #ffcc16;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  flex: 0 0 22rem;
  min-width: 22rem;
  min-height: 16rem;
  padding: 2rem 1.6rem 1.8rem;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--partner-accent) 12%, transparent), transparent 55%),
    linear-gradient(145deg, #111, #0a0a0a);
  color: #f5f5f5;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.integrations-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 0.2rem;
  border-radius: 999px;
  background: var(--partner-accent);
  opacity: 0.8;
}

.integrations-list li:nth-child(1) {
  --partner-accent: #e41b13;
}

.integrations-list li:nth-child(2) {
  --partner-accent: #8cde72;
}

.integrations-list li:nth-child(3) {
  --partner-accent: #8f36d6;
}

.integrations-list li:nth-child(4) {
  --partner-accent: #5866a9;
}

.integrations-list li:nth-child(5) {
  --partner-accent: #e64b45;
}

.integrations-list li:nth-child(6) {
  --partner-accent: #ffcb05;
}

.integrations-list li:nth-child(7),
.integrations-list li:nth-child(8) {
  --partner-accent: #e2231a;
}

.integrations-list li:nth-child(9),
.integrations-list li:nth-child(16) {
  --partner-accent: #5aa348;
}

.integrations-list li:nth-child(10),
.integrations-list li:nth-child(11) {
  --partner-accent: #d71920;
}

.integrations-list li:nth-child(12),
.integrations-list li:nth-child(13),
.integrations-list li:nth-child(14),
.integrations-list li:nth-child(15),
.integrations-list li:nth-child(17) {
  --partner-accent: #6e5ce7;
}

.integrations-list li:hover {
  border-color: color-mix(in srgb, var(--partner-accent) 55%, #333);
  transform: translateY(-0.5rem);
  box-shadow: 0 1.6rem 3.8rem rgba(0, 0, 0, 0.32);
}

.integrations-list img {
  width: 100%;
  max-width: 16rem;
  height: 7.2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #fff, #f4f4f4);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.integrations-list .terrapay-logo {
  padding: 0.3rem 0.6rem;
  object-fit: cover;
}

.integrations-list .telecel-logo {
  padding: 0.6rem 0.8rem;
}

.integrations-list .ghipss-logo {
  padding: 0.4rem 0.6rem;
}

.integrations-list span {
  color: #e5e5e5;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* footer section starts */
.footer {
  min-height: auto;
  padding: 2rem 9%;
  padding-top: 0;
  background: rgb(0, 1, 43);
}

.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}

.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
  text-transform: none;
}

.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}

.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}

.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
  text-decoration: none;
  text-transform: none;
}

.footer .box-container .box a:hover {
  color: #ffae00;
}

.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}

.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}

@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }

  .footer .box-container .box p {
    padding: 0.7rem;
  }

  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* ── Scroll top ── */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
  text-decoration: none;
}

#scroll-top.active {
  top: calc(100% - 12rem);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .projects-grid-section .box-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .integrations-list li {
    flex-basis: 20rem;
    min-width: 20rem;
  }
}

@media (max-width: 900px) {
  .projects-showcase {
    padding-top: 10rem;
  }
}

@media (max-width: 600px) {
  .projects-grid-section .box-container {
    grid-template-columns: 1fr;
  }

  .projects-showcase {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .showcase-intro {
    margin-bottom: 5rem;
  }

  .projects-showcase > h1,
  .integrations-section h2 {
    font-size: 2.6rem;
  }

  .integrations-list li {
    flex-basis: 18rem;
    min-width: 18rem;
    min-height: 14rem;
  }

  .integrations-list img {
    height: 6.4rem;
  }

  .card-image {
    height: 20rem;
  }
}
