/* =========================
   RESET
========================= */

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

html, body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: "Roboto", sans-serif;

  background: linear-gradient(
    180deg,
    #f8fafc 0%,
    #eef2f6 25%,
    #e3e8ef 55%,
    #d7dde6 100%
  );

  background-attachment: fixed;
  color: #1a1a1a;
  
  padding-top: 0px;
}

.page-content {
  padding-top: 100px;
}

/* =========================
   GRID BACKGROUND
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.5;
  pointer-events: none;
}

/* =========================
   NAV
========================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 60px;

  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.04);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 28px;

  z-index: 100;
}

.nav a {
  color: #4b5563;
  text-decoration: none;
}

.nav .dropdown {
  position: relative;
  display: inline-block;
}

.nav .dropbtn {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  color: #000;
  cursor: pointer;
}

.nav .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  background: white;
  padding: 0;
  box-shadow: none;
}

.nav .dropdown-content.show {
  display: block;
}

.back {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.back:hover {
  background: rgba(0,0,0,0.05);
}

.brand {
  font-size: 22px;
  font-weight: 300;
}

/* =========================
   GLOBAL LAYOUT
========================= */

section {
  padding: 50px 24px;
  text-align: center;
}

h1 {
  font-size: 72px;
  font-weight: 400;
  color: #111827;
}

p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(0,0,0,0.65);
  max-width: 700px;
  margin: 18px auto 0;
}

/* =========================
   ABOUT TAGLINE
========================= */

.about-tagline {
  font-size: 18px;
  font-weight: 300;
  max-width: 800px;
  margin: 10px auto 30px;
}

/* =========================
   Expertise GRID CLICKABLE
========================= */

.service-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  justify-content: center;
  width: 1000px;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);

  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59,130,246,0.35);
}

.ribbon-section.Expertise {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   HOW IT WORKS (FIXED + CENTERED)
========================= */

.ribbon-section.about p {
  max-width: min(1400px, 90vw);
}

.ribbon-section.how {
  width: 100%;
  padding: 50px 24px;
  text-align: center;
}

.ribbon-section.Expertise h1 {
  font-size: 72px;
}

.ribbon-section.Expertise p {
  font-size: 16px;
  max-width: 650px;
}

/* true centered container */
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* flow row */
.three-node-flow.full {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 50px;
  width: 100%;
}

/* bubbles */
.big-bubble {
  width: 320px;
  flex: 0 0 auto;
  padding: 30px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

/* center system */
.big-bubble.center {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.05);
}

/* right system */
.big-bubble.right {
  border-color: rgba(120,120,120,0.25);
  background: rgba(0,0,0,0.02);
}

/* titles */
.title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* roles */
.role {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin: 6px 0;
}

/* description */
.desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
}

/* mini pills */
.mini-system {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.mini {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
}

/* arrows */
.arrow {
  font-size: 22px;
  color: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   CTA
========================= */

.cta {
  margin-top: 80px;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.6);
}

.cta-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(59,130,246,0.4);
  text-decoration: none;
  color: #111827;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .hero-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  .logo {
    font-size: 220px;
  }

  .three-node-flow.full {
    flex-direction: column;
    align-items: center;
  }
}

/* LAMBDA logo */

.logo {
  font-size: 320px;
  font-weight: 300;
  line-height: 1;

  color: #ffffff;

  text-shadow:
    0 8px 20px rgba(0,0,0,0.06);
}


/* dropdown container pushed right */
.dropdown {
  position: relative;
  display: inline-block;
}

/* button style */
/* clean top-right text button */
.dropbtn {
  background: none;
  border: none;
  padding: 0;

  font-size: 20px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;

  color: #000;
  cursor: pointer;
}

.dropbtn:hover {
  opacity: 0.6;
}

/* dropdown box */

/* links */
.dropdown-content a {
  display: block;
  padding: 10px 14px;

  text-decoration: none;

  color: #000;
  font-size: 16px;
  font-weight: 400;
}

.dropdown-content a:hover {
  background: rgba(0,0,0,0.05);
}

/* show on click */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 8px;

  min-width: 180px;

  background: white;

  border: none;
  box-shadow: none;

  padding: 0;
}

.dropdown-content.show {
  display: block;
}

/* top left lambda logo formatting*/
.brand {
  font-size: 25px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.brand:hover {
  opacity: 1;
}


/* home page recentre*/
.hero {
   margin-top: 20px;
  height: calc(100vh - 140px);

  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(
    180deg,
    #eef2f6 0%,
    #e3e8ef 50%,
    #d7dde6 100%
  );
}

.hero-content {
  width: 100%;
  max-width: 1400px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 100px;
  padding: 0 60px;
}

.hero-text {
  max-width: 700px;
  text-align: left;
}

.hero-text h1 {
  margin: 0;
  font-size: 72px;
  font-weight: 400;
  color: #111827;
}

.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: 60px;

  background: white;
  border-top: 1px solid rgba(0,0,0,0.06);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0;
}

.contact {
  font-size: 18px;
  color: rgba(0,0,0,0.6);

  margin: 0;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  margin-top: 50px;
}

.hero p {
  max-width: 700px;
}

/* list on about us page*/
.pillars {
  display: flex;
  justify-content: center;
  gap: 30px;

  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.pillar {
  flex: 1;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;

  padding: 24px;

  backdrop-filter: blur(10px);

  text-align: left;

  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(0,0,0,0.15);
}

.pillar h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0,0,0,0.7);
  margin: 0;
}




.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;

  max-width: 1400px;
  margin: 0 auto;
}

.ribbon-section.benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card {
  flex-direction: column;
  align-items: center;
    width: 100%;
  max-width: 500px;
}


/* =========================
   MOBILE FIX PATCH
========================= */

@media (max-width: 768px) {

  /* prevent horizontal scroll bugs */
  html, body {
    overflow-x: hidden;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 120px 20px 80px;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  /* LAMBDA LOGO */
  .logo {
    font-size: 140px;
  }

  /* NAV */
  .nav {
    padding: 0 16px;
    height: 56px;
  }

  .nav .dropbtn {
    font-size: 16px;
  }

  .brand {
    font-size: 20px;
  }

  /* BOTTOM BAR */
  .bottom {
    height: 56px;
    padding: 0 10px;
  }

  .contact {
    font-size: 14px;
    text-align: center;
  }

  /* GLOBAL TEXT */
  h1 {
    font-size: 34px !important;
  }

  p {
    font-size: 15px;
    padding: 0 10px;
  }

  /* SERVICE CARDS */
  .service-card {
    width: 100% !important;
    max-width: 100%;
    padding: 16px;
  }

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

  /* HOW IT WORKS FLOW */
  .three-node-flow.full {
    flex-direction: column;
    gap: 20px;
  }

  .big-bubble {
    width: 100%;
  }

  .arrow {
    transform: rotate(90deg);
  }

  /* PILARS */
  .pillars {
    flex-direction: column;
    gap: 16px;
  }

  /* spacing cleanup */
  section {
    padding: 40px 16px;
  }
}


@media (max-width: 768px) {
  .ribbon-section.about p {
    max-width: 100%;
    padding: 0 10px;
  }
}