/* ===================================================================
   MAKONDO STEEL LIMITED (M.S.L) — Core Design System Stylesheet
   Focus: Structural Integrity, Steel Construction, Precision Fabrication
   Palette:
     - Cherry Red: #C91D24 (accent/highlight)
     - Deep Navy: #0B192C / #081220 (primary dark)
     - Light Blue: #38BDF8 / #0EA5E9 (technical secondary)
     - Frost White: #F8FAFC / #F1F5F9 (primary light)
   =================================================================== */

:root {
  --cherry-red: #c91d24;
  --cherry-red-hover: #a51319;
  --cherry-red-glow: rgba(201, 29, 36, 0.28);
  --deep-navy: #081220;
  --deep-navy-surface: #0e1e34;
  --deep-navy-card: #13243d;
  --deep-navy-border: rgba(56, 189, 248, 0.18);
  --light-blue: #38bdf8;
  --light-blue-dim: rgba(56, 189, 248, 0.12);
  --light-blue-hover: #7dd3fc;
  --frost-white: #f8fafc;
  --frost-gray: #f1f5f9;
  --steel-slate: #64748b;
  --steel-dark: #334155;
  --steel-border: #e2e8f0;
  --text-primary: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  --shadow-sm: 0 2px 8px rgba(8, 18, 32, 0.06);
  --shadow-md: 0 10px 30px -5px rgba(8, 18, 32, 0.12);
  --shadow-lg: 0 20px 40px -10px rgba(8, 18, 32, 0.2);
  --shadow-red: 0 10px 25px -5px rgba(201, 29, 36, 0.35);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--frost-white);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: linear-gradient(135deg, #ffffff 60%, var(--cherry-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-light {
  color: var(--text-light);
}

.text-light-muted {
  color: var(--text-light-muted);
}

.text-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.container-fluid {
  max-width: 1560px;
}

/* Section Shells */
.section-py {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-py-lg {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

@media (max-width: 768px) {
  .section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .section-py-lg {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* Subtle Technical Grid Backgrounds */
.bg-navy {
  background-color: var(--deep-navy);
  color: var(--text-light);
  position: relative;
}

.bg-navy-surface {
  background-color: var(--deep-navy-surface);
  color: var(--text-light);
  position: relative;
}

.bg-frost {
  background-color: var(--frost-white);
  color: var(--text-primary);
  position: relative;
}

.bg-frost-gray {
  background-color: var(--frost-gray);
  color: var(--text-primary);
  position: relative;
}

/* Engineering Blueprint Grid Effect */
.blueprint-grid-dark {
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.blueprint-grid-light {
  background-image: 
    linear-gradient(rgba(11, 25, 44, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 25, 44, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Crosshair / Technical Accents */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--light-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tech-tag-red {
  background: rgba(201, 29, 36, 0.1);
  border-color: rgba(201, 29, 36, 0.3);
  color: #ff6b72;
}

.tech-tag-dark {
  background: rgba(8, 18, 32, 0.06);
  border-color: rgba(8, 18, 32, 0.15);
  color: var(--deep-navy);
}

.tech-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* Section Header Component */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

.bg-navy .section-subtitle,
.bg-navy-surface .section-subtitle {
  color: var(--text-light-muted);
}

.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Header & Topbar */
.site-topbar {
  background-color: #050d18;
  color: #94a3b8;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0;
  position: relative;
  z-index: 101;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.topbar-item:hover {
  color: var(--light-blue);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--light-blue);
}

/* Main Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 18, 32, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  transition: background var(--transition-smooth), padding var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--light-blue);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  background: #000;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo-wrap:hover .brand-emblem {
  transform: rotate(5deg) scale(1.04);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--cherry-red);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--light-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cherry-red), var(--light-blue));
  transition: width var(--transition-smooth);
}

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

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--cherry-red);
  color: #ffffff;
  border-color: var(--cherry-red);
  box-shadow: 0 4px 14px rgba(201, 29, 36, 0.35);
}

.btn-primary:hover {
  background-color: var(--cherry-red-hover);
  border-color: var(--cherry-red-hover);
  box-shadow: 0 8px 24px rgba(201, 29, 36, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.08);
  color: var(--light-blue);
  border-color: rgba(56, 189, 248, 0.3);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--light-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--deep-navy);
  border-color: rgba(8, 18, 32, 0.25);
}

.btn-outline-dark:hover {
  background: var(--deep-navy);
  color: #ffffff;
  border-color: var(--deep-navy);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 0.98rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  padding: 0.5rem;
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background-color: #07111e;
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  z-index: 200;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.4rem;
}

.drawer-close:hover {
  color: #ffffff;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.drawer-link {
  color: #e2e8f0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-link.active,
.drawer-link:hover {
  color: var(--light-blue);
}

.drawer-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #94a3b8;
}

.drawer-contact a {
  color: #ffffff;
  display: block;
  margin-top: 0.35rem;
}

@media (max-width: 991px) {
  .nav-menu, .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* Page Banner (For Inner Pages) */
.page-banner {
  position: relative;
  padding: 6rem 0 4.5rem;
  background-color: var(--deep-navy);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(40%) contrast(110%);
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.85) 0%, rgba(8, 18, 32, 0.98) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-banner-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.page-banner-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: #64748b;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.breadcrumb-nav a {
  color: var(--light-blue);
}

.breadcrumb-nav span {
  color: #475569;
}

/* Cards & Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 991px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Premium Technical Card Styling */
.card-tech {
  background: #ffffff;
  border: 1px solid var(--steel-border);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-tech::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--cherry-red), var(--light-blue));
  transition: height var(--transition-smooth);
  border-top-left-radius: 6px;
}

.card-tech:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(56, 189, 248, 0.4);
}

.card-tech:hover::before {
  height: 100%;
}

.card-tech-dark {
  background: var(--deep-navy-card);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--text-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card-tech-dark:hover {
  border-color: var(--light-blue);
  box-shadow: 0 15px 40px rgba(8, 18, 32, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: rgba(201, 29, 36, 0.08);
  border: 1px solid rgba(201, 29, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cherry-red);
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.card-tech-dark .card-icon {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--light-blue);
}

.card-tech:hover .card-icon {
  transform: scale(1.08);
}

.card-tech-dark:hover .card-icon {
  background: var(--light-blue);
  color: var(--deep-navy);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-tech-dark .card-desc {
  color: var(--text-light-muted);
}

/* Architectural Framing & Image Wrappers */
.image-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame:hover img {
  transform: scale(1.04);
}

.image-frame-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(8, 18, 32, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 3px solid var(--cherry-red);
}

/* Metric / Stat Display */
.metric-box {
  border-left: 2px solid var(--cherry-red);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--light-blue);
  text-transform: uppercase;
}

/* Interactive Portfolio Gallery Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--steel-border);
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--deep-navy);
  color: #ffffff;
  border-color: var(--deep-navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--steel-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(56, 189, 248, 0.4);
}

.portfolio-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.06);
}

.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 18, 32, 0.88);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--light-blue);
  text-transform: uppercase;
}

.portfolio-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.portfolio-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--steel-border);
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel-slate);
}

/* Lightbox Modal for Portfolio Inspection */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 9, 17, 0.94);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  background: var(--deep-navy-surface);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--cherry-red);
}

.lightbox-img-area {
  max-height: 65vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-img-area img {
  max-height: 65vh;
  width: auto;
  object-fit: contain;
}

.lightbox-info {
  padding: 1.5rem 2rem;
  color: #ffffff;
}

.lightbox-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.lightbox-info p {
  color: #94a3b8;
  font-size: 0.92rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: #ffffff;
  border: 1px solid var(--steel-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bg-navy-surface .form-control,
.bg-navy .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, #07111f 0%, #0d223c 60%, #152e4d 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 29, 36, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cta-banner-text {
  max-width: 650px;
}

.cta-banner-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background-color: #050d18;
  color: #94a3b8;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 991px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 1.25rem;
  line-height: 1.65;
  max-width: 360px;
}

.footer-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--cherry-red);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--light-blue);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--light-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

/* ===================================================================
   LOBITO CORRIDOR SECTION — REFINED SPLIT REGIONAL INFRASTRUCTURE CARD
   =================================================================== */
.lobito-section {
  position: relative;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  overflow: hidden;
}

.lobito-wrapper {
  background: linear-gradient(135deg, #071322 0%, #0c1f36 55%, #122c4a 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(4, 11, 20, 0.6);
  position: relative;
}

.lobito-wrapper::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lobito-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  min-height: 520px;
}

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

.lobito-content {
  padding: 3.5rem 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .lobito-content {
    padding: 2.25rem 1.5rem;
  }
}

.lobito-headline {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.lobito-headline .highlight-well-positioned {
  background: linear-gradient(135deg, #ffffff 30%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.lobito-lead {
  font-size: 1.08rem;
  color: #f1f5f9;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.lobito-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.lobito-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

@media (max-width: 520px) {
  .lobito-badges {
    grid-template-columns: 1fr;
  }
}

.lobito-badge-item {
  display: flex;
  flex-direction: column;
}

.lobito-badge-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.lobito-badge-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--light-blue);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Right Visual Media Column */
.lobito-media-panel {
  background: #050d18;
  border-left: 1px solid rgba(56, 189, 248, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  overflow: hidden;
}

@media (max-width: 991px) {
  .lobito-media-panel {
    border-left: none;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
    min-height: 380px;
  }
}

.lobito-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  display: flex;
}

.lobito-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.lobito-media-panel:hover .lobito-image-wrap img {
  transform: scale(1.03);
}

.lobito-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.2) 0%, rgba(8, 18, 32, 0.85) 100%);
  pointer-events: none;
}

.lobito-badge-overlay {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(8, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobito-badge-overlay::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cherry-red);
  box-shadow: 0 0 8px var(--cherry-red);
}

.lobito-media-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(5, 13, 24, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lobito-corridor-route {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lobito-corridor-route span.arrow {
  color: var(--light-blue);
  font-weight: 700;
}

@media (max-width: 640px) {
  .lobito-media-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }
  .lobito-corridor-route {
    font-size: 0.65rem;
    flex-wrap: wrap;
  }
}

/* Technical Diagrams & Schematic Cards (Pure CSS/SVG - No stock photos) */
.schematic-box {
  background: linear-gradient(145deg, #0a1728 0%, #060e19 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.schematic-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.schematic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--light-blue);
  text-transform: uppercase;
}

.schematic-svg {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
  margin: 1.25rem auto;
}

/* Lobito Corridor Strategic Feature Card */
.corridor-banner {
  background: linear-gradient(135deg, #091524 0%, #0e223b 50%, #163254 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.corridor-banner::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201, 29, 36, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.route-diagram {
  background: rgba(5, 13, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1.75rem;
}

.route-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 1rem;
  flex-wrap: wrap;
}

.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 110px;
  position: relative;
  z-index: 2;
}

.route-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--deep-navy);
  border: 3px solid var(--light-blue);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  margin-bottom: 0.65rem;
}

.route-node.active .route-dot {
  border-color: var(--cherry-red);
  box-shadow: 0 0 14px rgba(201, 29, 36, 0.6);
  background: #ffffff;
}

.route-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.route-desc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--light-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Director Profile Card Refinements */
.director-avatar-box {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--cherry-red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: #0f172a;
}

.director-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Slide-in Viewport Animation Requirement */
/* "Every text card throughout the website must have a polished slide-in entrance transition when it enters the viewport." */
.reveal-card {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helper classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Respect reduced motion preferences */
@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;
  }
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
