/* ============================================================
   Complexica — Modern Redesign
   Color Palette: #0f1f3d (navy) | #0066ff (blue) | #f4f6fa (light grey)
   Fonts: Inter (body) | Poppins (headings)
   ============================================================ */

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

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f1f3d;
  --navy2:   #162a52;
  --blue:    #0066ff;
  --blue2:   #0052cc;
  --light:   #f4f6fa;
  --white:   #ffffff;
  --grey:    #6b7280;
  --border:  #e5e7eb;
  --shadow:  0 4px 20px rgba(15,31,61,.08);
  --shadow2: 0 8px 40px rgba(15,31,61,.15);
  --radius:  12px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.25;
  font-weight: 700;
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue2);
  border-color: var(--blue2);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,102,255,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  text-decoration: none;
}
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-dark:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15,31,61,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-links > li > a:hover {
  background: var(--light);
  color: var(--blue);
  text-decoration: none;
}
.nav-links > li > a .chevron {
  font-size: 10px;
  opacity: .6;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  list-style: none;
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--navy);
  transition: background var(--transition);
}
.dropdown li a:hover {
  background: var(--light);
  color: var(--blue);
  text-decoration: none;
}

.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 11px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--light);
}
.nav-mobile .mobile-sub {
  padding-left: 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
}
.nav-mobile .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* === HERO === */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 60%, #0052cc 100%);
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/Science.jpg');
  background-size: cover;
  background-position: center;
  opacity: .15;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .4px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 span { color: #5ea6ff; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* === SECTION GENERIC === */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-light { background: var(--light); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark p { color: inherit; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-dark .section-label { color: #5ea6ff; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 620px;
  margin-bottom: 56px;
}
.section-dark .section-sub { color: rgba(255,255,255,.65); }
.centered { text-align: center; }
.centered .section-sub { margin-left: auto; margin-right: auto; }

/* === LOGOS BAR === */
.logos-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.logos-bar-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 28px;
}
.logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 40px;
}
.logos-track img {
  height: 36px;
  width: auto;
  filter: grayscale(100%) opacity(.55);
  transition: filter var(--transition);
}
.logos-track img:hover { filter: grayscale(0%) opacity(1); }

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow2);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: #e8f0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: .93rem; color: var(--grey); line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
}
.card-link:hover { text-decoration: none; gap: 10px; }

/* === LARRY SPOTLIGHT === */
.larry-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat-item { }
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #5ea6ff;
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}
.larry-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.larry-text p {
  font-size: 1.02rem;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 28px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: #e8f0ff;
  line-height: 1;
  z-index: 0;
}
.testimonial-text {
  position: relative;
  z-index: 1;
  font-size: .95rem;
  font-style: italic;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 24px;
  margin-top: 24px;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-name { font-weight: 700; font-size: .93rem; color: var(--navy); }
.author-title { font-size: .82rem; color: var(--grey); }

/* === AWARDS === */
.awards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.award-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 200px;
  max-width: 240px;
  flex: 1;
  transition: box-shadow var(--transition), transform var(--transition);
}
.award-badge:hover { box-shadow: var(--shadow2); transform: translateY(-2px); }
.award-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.award-name { font-size: .88rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 34px; filter: brightness(10); margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 9px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-iso img { height: 44px; filter: grayscale(100%) brightness(10) opacity(.6); }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 60%, #0052cc 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === MODULES GRID (decision cloud) === */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.module-card:hover { box-shadow: var(--shadow2); transform: translateY(-3px); }
.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.module-card h3 { font-size: 1rem; margin-bottom: 8px; }
.module-card p { font-size: .88rem; color: var(--grey); }

/* === SOLUTIONS LIST === */
.solutions-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.solution-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.solution-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.solution-item p { font-size: .9rem; color: var(--grey); }

/* === FORM === */
.form-section { background: var(--light); }
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow2);
}
.form-wrap h2 { margin-bottom: 8px; }
.form-wrap .form-subtitle { font-size: .95rem; color: var(--grey); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit { width: 100%; padding: 14px; font-size: 16px; border: none; }

/* === NEWS === */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow2); transform: translateY(-3px); }
.news-card-body { padding: 24px; }
.news-tag {
  display: inline-block;
  background: #e8f0ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.news-card h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: .88rem; color: var(--grey); }
.news-card-date { font-size: .8rem; color: var(--grey); margin-top: 12px; }

/* === BREADCRUMB === */
.breadcrumb {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--grey);
}
.breadcrumb a { color: var(--grey); }
.breadcrumb span { margin: 0 6px; }

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}
.about-text p { font-size: 1rem; color: #374151; line-height: 1.75; margin-bottom: 20px; }
.about-sidebar {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
}
.about-sidebar h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); margin-bottom: 12px; }
.about-sidebar ul { list-style: none; }
.about-sidebar ul li { font-size: .92rem; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--navy); }
.about-sidebar ul li:last-child { border: none; }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.partner-card h4 { font-size: .92rem; margin-bottom: 6px; }
.partner-card p { font-size: .82rem; color: var(--grey); }
.partner-icon { font-size: 2rem; margin-bottom: 10px; }

/* === ANIMATE ON SCROLL === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }
.fade-up.delay-3 { transition-delay: .3s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cards-grid, .testimonials-grid, .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .larry-content { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .cards-grid, .testimonials-grid, .modules-grid, .solutions-list, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .larry-stats { gap: 28px; }
  .hero { padding: 60px 0; min-height: auto; }
  .hero h1 { font-size: 1.9rem; }
  .section { padding: 60px 0; }
  .awards-grid .award-badge { min-width: 150px; }
  .partners-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-wrap { padding: 28px 20px; }
}
