/**
 * MILLIHUB — Editorial Dark Design
 * Bold typography, stark contrast, single accent, no gimmicks
 */

/* ─── Fonts ──────────────────────────────────────────────── */
:root {
  --font-body:    "Inter", system-ui, sans-serif;
  --font-display: "Syne", "Poppins", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;
}

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:      #0d0d0d;
  --ink-2:    #111111;
  --ink-3:    #1a1a1a;
  --paper:    #f5f4f0;
  --lime:     #b5ff2d;
  --lime-dk:  #9ae018;
  --white:    #ffffff;
  --grey-1:   #888888;
  --grey-2:   #555555;
  --grey-3:   #2a2a2a;
  --grey-4:   #1e1e1e;
  --rule:     rgba(255,255,255,0.08);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t1: 0.2s;
  --t2: 0.4s;

  /* Bootstrap compat */
  --background-color: #0d0d0d;
  --default-color: #cccccc;
  --heading-color: #ffffff;
  --accent-color: #b5ff2d;
  --surface-color: #1a1a1a;
  --contrast-color: #0d0d0d;
  --nav-color: #ffffff;
  --nav-hover-color: #b5ff2d;
  --nav-mobile-background-color: #111111;
  --nav-dropdown-background-color: #1a1a1a;
  --nav-dropdown-color: #cccccc;
  --nav-dropdown-hover-color: #b5ff2d;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: #cccccc;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--t1) var(--ease); }
a:hover { color: var(--lime); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--lime); color: var(--ink); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--grey-3); border-radius: 2px; }

/* ─── Preloader ──────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease);
}

#preloader::after {
  content: "MILLIHUB";
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--grey-2);
  animation: preload-pulse 1.2s ease-in-out infinite;
}

@keyframes preload-pulse {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ─── Header / Nav ───────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t2) var(--ease), border-color var(--t2) var(--ease);
}

.header.scrolled {
  background: rgba(13,13,13,0.96);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(12px);
}

.header .container-fluid { width: 100%; display: flex; align-items: center; }

/* Logo */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header .logo img {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: var(--r-sm);
  filter: grayscale(1) brightness(1.4);
}

.header .logo .sitename {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

/* Get Started CTA */
.header .btn-getstarted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lime);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  transition: background var(--t1) var(--ease), transform var(--t1) var(--ease);
  white-space: nowrap;
  margin-left: 24px;
}

.header .btn-getstarted:hover {
  background: var(--lime-dk);
  transform: translateY(-1px);
  color: var(--ink) !important;
}

/* Desktop nav */
@media (min-width: 1200px) {
  .navmenu { margin-left: auto; padding: 0; }
  .navmenu ul { display: flex; list-style: none; gap: 4px; align-items: center; }
  .navmenu a, .navmenu a:focus {
    color: var(--grey-1);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: color var(--t1) var(--ease), background var(--t1) var(--ease);
    display: block;
  }
  .navmenu a:hover, .navmenu .active a {
    color: var(--white);
    background: rgba(255,255,255,0.06);
  }
}

/* Mobile nav */
@media (max-width: 1199px) {
  .header { padding: 0 20px; }

  .mobile-nav-toggle {
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    transition: background var(--t1) var(--ease);
    margin-left: auto;
  }
  .mobile-nav-toggle:hover { background: var(--grey-4); }

  .navmenu ul {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    z-index: 800;
    padding: 0;
  }

  .navmenu a, .navmenu a:focus {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--grey-2);
    padding: 12px 24px;
    display: block;
    letter-spacing: -0.02em;
    transition: color var(--t1) var(--ease);
  }
  .navmenu a:hover, .navmenu .active a { color: var(--white); }

  .mobile-nav-active .navmenu ul { display: flex; }

  .mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    top: 14px; right: 20px;
    z-index: 9999;
    background: var(--grey-4);
  }

  .header .btn-getstarted { margin-left: auto; order: 2; }
  .header .navmenu { order: 3; }
  .header .logo { order: 1; }
}

@media (max-width: 1200px) {
  .header .logo { order: 1; }
  .header .btn-getstarted { order: 2; margin: 0 12px 0 auto; }
  .header .navmenu { order: 3; }
}

/* ─── Sections shared ────────────────────────────────────── */
section, .section {
  color: #cccccc;
  background: var(--ink);
  padding: 100px 0;
  scroll-margin-top: 64px;
  overflow: clip;
}

.light-background { background: var(--ink-2) !important; }
.dark-background  { background: var(--ink-3) !important; }

/* ─── Section title ──────────────────────────────────────── */
.section-title {
  padding-bottom: 64px;
}

.section-title .overline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.section-title p {
  color: var(--grey-1);
  font-size: 16px;
  max-width: 520px;
}

.section-title.centered { text-align: center; }
.section-title.centered p { margin: 0 auto; }

/* ─── PHP email form ─────────────────────────────────────── */
.php-email-form .error-message {
  display: none;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.3);
  color: #f87171;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.php-email-form .sent-message {
  display: none;
  background: rgba(22,163,74,0.12);
  border: 1px solid rgba(22,163,74,0.3);
  color: #4ade80;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.php-email-form .loading {
  display: none;
  text-align: center;
  padding: 12px;
  color: var(--grey-1);
  font-size: 14px;
}

/* ─── Scroll top ─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: -60px;
  z-index: 9999;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--lime);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: bottom var(--t2) var(--ease), opacity var(--t2) var(--ease);
}
.scroll-top.active { opacity: 1; visibility: visible; bottom: 24px; }
.scroll-top:hover { background: var(--lime-dk); color: var(--ink); transform: translateY(-2px); }
.scroll-top i { font-size: 18px; line-height: 0; }

@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 0;
  display: grid;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Big rotated background word */
.hero::after {
  content: 'MILLIHUB';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 32px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--lime);
}

.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-desc {
  font-size: 17px;
  color: var(--grey-1);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Primary CTA */
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  transition: background var(--t1) var(--ease), transform var(--t1) var(--ease);
  border: none;
  cursor: pointer;
}
.btn-primary-cta:hover { background: var(--lime-dk); transform: translateY(-2px); color: var(--ink); }
.btn-primary-cta .arrow { font-size: 18px; transition: transform var(--t1) var(--ease); }
.btn-primary-cta:hover .arrow { transform: translateX(4px); }

/* Ghost CTA */
.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-1);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.btn-ghost-cta:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-ghost-cta i { font-size: 18px; color: var(--grey-2); }

/* ── Right column — floating card ── */
.hero-visual {
  position: relative;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
}

.hero-img-wrap img {
  width: 100%;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--t2) var(--ease);
}

.hero-img-wrap:hover img { filter: grayscale(0) contrast(1.05); }

/* Floating badge */
.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: var(--font-display);
}

.hero-badge .num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.hero-badge .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--grey-2), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 991px) {
  .hero::after { display: none; }
  .hero-badge { display: none; }
  .hero h1 { font-size: clamp(40px, 10vw, 72px); }
  .hero-scroll { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════ */
.stats {
  padding: 0;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-item {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  text-align: center;
}

.stats-item:last-child { border-right: none; }

.stats-item .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: block;
  letter-spacing: -0.03em;
}

.stats-item .num span { color: var(--lime); }

.stats-item .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-top: 8px;
  display: block;
}

@media (max-width: 767px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-item:nth-child(2) { border-right: none; }
  .stats-item:nth-child(3), .stats-item:nth-child(4) { border-top: 1px solid var(--rule); }
}

/* ═══════════════════════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════════════════════ */
.clients {
  padding: 48px 0;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.clients-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-2);
  text-align: center;
  margin-bottom: 32px;
}

.clients .swiper-slide img {
  height: 32px;
  width: auto;
  filter: grayscale(1) brightness(0.5);
  transition: filter var(--t1) var(--ease);
  object-fit: contain;
  margin: 0 auto;
}

.clients .swiper-slide img:hover { filter: grayscale(0) brightness(1); }

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about { background: var(--ink); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left {}

.about-right {}

.about-big-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 32px;
}

.about-body {
  font-size: 15px;
  color: var(--grey-1);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--rule);
}

.about-checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: #aaaaaa;
}

.about-checks li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  margin-top: 6px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  transition: border-color var(--t1) var(--ease), color var(--t1) var(--ease);
}

.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-outline i { font-size: 16px; }

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ═══════════════════════════════════════════════════════════
   WHY US / MISSION
═══════════════════════════════════════════════════════════ */
.why-us { background: var(--ink-2); }

.why-us .section-title { padding-bottom: 48px; }

.why-us .mission-headline {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.why-us .mission-headline span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

.why-us .mission-body {
  font-size: 15px;
  color: var(--grey-1);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
}

/* Accordion */
.faq-container { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.faq-item:first-child { border-top: 1px solid var(--rule); }

.faq-item h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #aaaaaa;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  transition: color var(--t1) var(--ease);
  margin: 0;
}

.faq-item h3 span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-2);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item h3:hover { color: var(--white); }

.faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease), padding 0.3s var(--ease);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: grid-template-rows 0.3s var(--ease), visibility 0.3s, opacity 0.3s;
}

.faq-item .faq-content p {
  overflow: hidden;
  font-size: 14px;
  color: var(--grey-1);
  line-height: 1.7;
  margin: 0;
  padding-bottom: 20px;
  padding-left: 36px;
}

.faq-item .faq-toggle {
  position: absolute;
  right: 0; top: 22px;
  font-size: 14px;
  color: var(--grey-2);
  cursor: pointer;
  transition: transform var(--t1) var(--ease), color var(--t1) var(--ease);
}

.faq-active h3 { color: var(--white); }

.faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

.faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--lime);
}

.why-us-img img {
  width: 100%;
  border-radius: var(--r-md);
  filter: grayscale(30%);
}

/* ═══════════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════════ */
.skills { background: var(--ink); }

.skills-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-sub {
  font-size: 13px;
  color: var(--grey-2);
  font-style: italic;
  margin-bottom: 32px;
}

.skill-row {
  margin-bottom: 24px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 8px;
}

.skill-label .val { color: var(--lime); }

.progress-bar-wrap {
  background: rgba(255,255,255,0.06);
  height: 3px;
  border-radius: 2px;
  overflow: visible;
  position: relative;
}

.progress-bar {
  height: 3px;
  background: var(--lime);
  border-radius: 2px;
  width: 1px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: -4px; top: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
}

/* hide Bootstrap progress component defaults */
.progress { height: auto; background: none; border-radius: 0; display: block; margin: 0; }
.progress .skill { display: none; }

.skills img {
  border-radius: var(--r-md);
  filter: grayscale(30%);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services { background: var(--ink-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.service-item {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
  transition: background var(--t1) var(--ease);
  position: relative;
  overflow: hidden;
}

/* Remove right border on every 4th item */
.service-item:nth-child(4n) { border-right: none; }
/* Remove bottom border on last row */
.service-item:nth-last-child(-n+4) { border-bottom: none; }

.service-item:hover { background: var(--ink-3); }

.service-item-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-2);
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: block;
}

.service-icon {
  width: 40px; height: 40px;
  margin-bottom: 20px;
  position: relative;
}

.service-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.6);
  transition: filter var(--t1) var(--ease);
}

.service-item:hover .service-icon img {
  filter: grayscale(0) brightness(1);
}

.service-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-item h4 a {
  color: inherit;
  transition: color var(--t1) var(--ease);
}

.service-item:hover h4 a { color: var(--lime); }

.service-item p {
  font-size: 13px;
  color: var(--grey-1);
  line-height: 1.7;
  margin: 0;
}

/* Arrow indicator on hover */
.service-item::after {
  content: '↗';
  position: absolute;
  top: 20px; right: 20px;
  font-size: 16px;
  color: var(--lime);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t1) var(--ease), transform var(--t1) var(--ease);
}

.service-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(4n) { border-right: 1px solid var(--rule); }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-last-child(-n+4) { border-bottom: 1px solid var(--rule); }
  .service-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 575px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none !important; }
  .service-item:last-child { border-bottom: none; }
  .service-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* ═══════════════════════════════════════════════════════════
   CURRENT PROJECT
═══════════════════════════════════════════════════════════ */
.project { background: var(--ink); }

.project .section-title { padding-bottom: 56px; }
.project .section-title p { max-width: 560px; }

.project-lede {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
}

.project-body {
  font-size: 15px;
  color: var(--grey-1);
  line-height: 1.8;
  margin-bottom: 18px;
}

.project-body strong { color: var(--lime); font-weight: 600; }

/* Intro image */
.project-img-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
}

.project-img-wrap img {
  width: 100%;
  filter: grayscale(25%) contrast(1.05);
  transition: filter var(--t2) var(--ease), transform var(--t2) var(--ease);
}

.project-img-wrap:hover img { filter: grayscale(0) contrast(1.05); transform: scale(1.03); }

.project-img-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-sm);
}

/* Work areas */
.project-areas-title {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
}

.project-areas { margin-top: 8px; }

.project-area {
  display: grid;
  grid-template-columns: 56px 1fr 1.5fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--t1) var(--ease);
}

.project-area:hover { background: rgba(255,255,255,0.02); }

.project-area-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--lime);
  padding-top: 4px;
}

.project-area h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
}

.project-area p {
  font-size: 14px;
  color: var(--grey-1);
  line-height: 1.75;
  margin: 0;
}

/* Impact + partner */
.project-bottom { margin-top: 72px; }

.project-sub-head {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.project-sub-note {
  font-size: 14px;
  color: var(--grey-2);
  margin-bottom: 24px;
}

.project-impact { list-style: none; padding: 0; margin: 0; }

.project-impact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: #aaaaaa;
  line-height: 1.65;
}

.project-impact li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  margin-top: 7px;
}

.project-partner {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--lime);
  border-radius: var(--r-md);
  padding: 28px;
  margin-bottom: 24px;
}

.project-partner-label,
.project-vision-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

.project-partner h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.project-partner p { font-size: 14px; color: var(--grey-1); line-height: 1.75; margin: 0; }

.project-vision {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px;
}

.project-vision p { font-size: 15px; color: #cccccc; line-height: 1.75; margin: 0; }

/* Closing banner */
.project-closing {
  margin-top: 72px;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  background-image: linear-gradient(rgba(13,13,13,0.78), rgba(13,13,13,0.92)), url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=fleet%20of%20modern%20electric%20buses%20and%20cars%20driving%20on%20a%20highway%20in%20Nigeria%20at%20golden%20hour%2C%20sustainable%20transportation%2C%20cinematic%20wide%20shot%2C%20photorealistic&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
}

.project-closing p {
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.project-closing p em { font-style: normal; color: var(--lime); }

@media (max-width: 767px) {
  .project-areas-title { margin-top: 56px; }
  .project-bottom { margin-top: 56px; }
  .project-area { grid-template-columns: 40px 1fr; gap: 6px 16px; }
  .project-area p { grid-column: 2 / 3; }
  .project-closing { margin-top: 56px; min-height: 220px; padding: 48px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   CALL TO ACTION
═══════════════════════════════════════════════════════════ */
.call-to-action {
  padding: 100px 0;
  background: var(--lime);
  position: relative;
  overflow: hidden;
}

.call-to-action::before {
  content: 'GO';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 900;
  color: rgba(0,0,0,0.06);
  letter-spacing: -0.04em;
  pointer-events: none;
  line-height: 1;
}

.call-to-action h3 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.call-to-action p {
  font-size: 16px;
  color: rgba(13,13,13,0.65);
  margin: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--r-sm);
  transition: background var(--t1) var(--ease), transform var(--t1) var(--ease);
}

.cta-btn:hover {
  background: var(--ink-3);
  color: var(--lime);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════════════════════ */
.portfolio { background: var(--ink); }

.portfolio-filters {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  flex-wrap: wrap;
}

.portfolio-filters li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-2);
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease), background var(--t1) var(--ease);
}

.portfolio-filters li:hover { color: var(--white); border-color: rgba(255,255,255,0.15); }

.portfolio-filters li.filter-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-radius: var(--r-sm);
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform var(--t2) var(--ease), filter var(--t2) var(--ease);
  filter: grayscale(20%);
}

.portfolio-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0);
}

.portfolio-info {
  position: absolute;
  left: 0; right: 0;
  bottom: -100%;
  padding: 20px;
  background: rgba(13,13,13,0.9);
  border-top: 2px solid var(--lime);
  transition: bottom var(--t2) var(--ease);
}

.portfolio-item:hover .portfolio-info { bottom: 0; }

.portfolio-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.portfolio-info p { font-size: 12px; color: var(--grey-1); margin: 0; }

.portfolio-info .preview-link,
.portfolio-info .details-link {
  position: absolute;
  top: 50%; right: 44px;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--grey-1);
  transition: color var(--t1) var(--ease);
  line-height: 0;
}

.portfolio-info .details-link { right: 16px; font-size: 22px; }
.portfolio-info .preview-link:hover, .portfolio-info .details-link:hover { color: var(--lime); }

/* ═══════════════════════════════════════════════════════════
   TEAM
═══════════════════════════════════════════════════════════ */
.team { background: var(--ink-2); }

.team-member {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color var(--t1) var(--ease);
  height: 100%;
}

.team-member:hover { border-color: rgba(255,255,255,0.15); }

.team-member .pic {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.team-member .pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter var(--t1) var(--ease);
}

.team-member:hover .pic img { filter: grayscale(0); }

.member-info { flex: 1; }

.team-member h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.team-member span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.team-member .social {
  display: flex;
  gap: 8px;
}

.team-member .social a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--grey-2);
  font-size: 13px;
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}

.team-member .social a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

@media (max-width: 468px) {
  .team-member { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq-2 { background: var(--ink); }

.faq-2 .faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-2 .faq-item:first-child { border-top: 1px solid var(--rule); }

.faq-2 .faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #aaaaaa;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  transition: color var(--t1) var(--ease);
  margin: 0;
  position: relative;
}

.faq-2 .faq-item h3:hover { color: var(--white); }

.faq-2 .faq-item .faq-icon {
  position: absolute;
  left: 0; top: 22px;
  font-size: 16px;
  color: var(--lime);
  display: none;
}

.faq-2 .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  transition: grid-template-rows 0.3s var(--ease), visibility 0.3s, opacity 0.3s;
}

.faq-2 .faq-item .faq-content p {
  overflow: hidden;
  font-size: 14px;
  color: var(--grey-1);
  line-height: 1.7;
  margin: 0;
  padding-bottom: 20px;
}

.faq-2 .faq-item .faq-toggle {
  position: absolute;
  right: 0; top: 22px;
  font-size: 14px;
  color: var(--grey-2);
  cursor: pointer;
  transition: transform var(--t1) var(--ease), color var(--t1) var(--ease);
}

.faq-2 .faq-active h3 { color: var(--white); }
.faq-2 .faq-active .faq-content { grid-template-rows: 1fr; visibility: visible; opacity: 1; }
.faq-2 .faq-active .faq-toggle { transform: rotate(90deg); color: var(--lime); }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact { background: var(--ink-2); }

.contact .info-wrap {
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 40px;
  height: 100%;
}

.contact .info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.contact .info-item:last-child { margin-bottom: 0; }

.contact .info-item i {
  font-size: 16px;
  color: var(--lime);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(181,255,45,0.2);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background var(--t1) var(--ease);
}

.contact .info-item:hover i {
  background: rgba(181,255,45,0.1);
}

.contact .info-item h3 {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 4px;
}

.contact .info-item p {
  font-size: 14px;
  color: #aaaaaa;
  margin: 0;
}

.contact .php-email-form {
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 40px;
  height: 100%;
}

.contact label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 8px;
}

.contact .form-control {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  color: var(--white);
  padding: 12px 16px;
  font-size: 14px;
  border-radius: var(--r-sm);
  transition: border-color var(--t1) var(--ease);
  width: 100%;
}

.contact .form-control:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--ink-2);
  color: var(--white);
  box-shadow: none;
}

.contact .form-control::placeholder { color: var(--grey-2); }

.contact button[type=submit] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background var(--t1) var(--ease), transform var(--t1) var(--ease);
}

.contact button[type=submit]:hover { background: var(--lime-dk); transform: translateY(-1px); }

@media (max-width: 575px) {
  .contact .info-wrap, .contact .php-email-form { padding: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--grey-1);
}

.footer .footer-newsletter {
  background: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding: 60px 0;
  text-align: center;
}

.footer .footer-newsletter h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer .footer-newsletter p { color: var(--grey-1); margin-bottom: 28px; }

.footer .newsletter-form {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color var(--t1) var(--ease);
}

.footer .newsletter-form:focus-within { border-color: var(--lime); }

.footer .newsletter-form input[type=email] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--white);
  font-size: 14px;
  outline: none;
}

.footer .newsletter-form input[type=email]::placeholder { color: var(--grey-2); }

.footer .newsletter-form input[type=submit] {
  background: var(--lime);
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--t1) var(--ease);
  white-space: nowrap;
}

.footer .newsletter-form input[type=submit]:hover { background: var(--lime-dk); }

.footer .footer-top { padding: 56px 0 32px; }

.footer h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 20px;
}

.footer .footer-about .sitename {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

.footer .footer-contact p { margin-bottom: 4px; color: var(--grey-1); }
.footer .footer-contact strong { color: #888; }

.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }

.footer .footer-links ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.footer .footer-links ul i { color: var(--lime); font-size: 10px; }

.footer .footer-links ul a {
  color: var(--grey-1);
  font-size: 14px;
  transition: color var(--t1) var(--ease);
}

.footer .footer-links ul a:hover { color: var(--lime); }

.footer .social-links { display: flex; gap: 8px; margin-top: 16px; }

.footer .social-links a {
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-2);
  font-size: 14px;
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}

.footer .social-links a:hover {
  color: var(--lime);
  border-color: rgba(181,255,45,0.3);
}

.footer .copyright {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--grey-2);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.footer .credits { margin-top: 4px; }

/* ─── Responsive: global ─────────────────────────────────── */
@media (max-width: 1199px) {
  section, .section { scroll-margin-top: 64px; }
}

@media (max-width: 767px) {
  section, .section { padding: 72px 0; }
  .section-title { padding-bottom: 48px; }
  .section-title h2 { font-size: 28px; }
}
