/* ============================================================
   APEX SOLUTION PARTNERS — Main Stylesheet
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:       #0A1628;
  --navy-mid:   #0D1F3C;
  --blue:       #1E6FD9;
  --blue-light: #3A8EF6;
  --gold:       #C9A84C;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --gray-light: #E8ECF2;
  --gray-mid:   #8A95A3;
  --gray-dark:  #3D4A5C;
  --text:       #1A2332;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 2px 8px rgba(10,22,40,0.08);
  --shadow-md:  0 8px 32px rgba(10,22,40,0.12);
  --shadow-lg:  0 20px 60px rgba(10,22,40,0.18);
  --radius:     8px;
  --radius-lg:  16px;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: 'Inter', sans-serif; }

p { color: var(--gray-dark); line-height: 1.8; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }
.section--dark { background: var(--navy); }
.section--alt  { background: var(--off-white); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,111,217,0.35);
}

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

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: #d4b55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  padding: 0.875rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar__logo-text .logo-apex {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.navbar__logo-text .logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: var(--transition);
  position: relative;
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar__nav a:hover { color: var(--white); }
.navbar__nav a:hover::after { width: 100%; }

.navbar__portal {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  transition: var(--transition) !important;
}

.navbar__portal:hover {
  background: #d4b55e !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.navbar__portal::after { display: none !important; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.88) 0%,
    rgba(10,22,40,0.65) 50%,
    rgba(10,22,40,0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 6rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.hero__eyebrow-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 span { color: var(--gold); }

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 620px;
  line-height: 1.8;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy-mid);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

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

.stat-item__number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about__image-badge .badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.about__image-badge .badge-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
}

.about__content { padding-left: 1rem; }

.about__content h2 { margin-bottom: 1.25rem; }

.about__content p { margin-bottom: 1.25rem; }

.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}

.pillar__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pillar__text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.pillar__text p {
  font-size: 0.78rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.services__header h2 { margin-bottom: 1rem; }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(30,111,217,0.25);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.75;
}

.service-card__features {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.service-card__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--gray-dark);
  padding: 0.35rem 0;
}

.service-card__features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */
.technology {
  position: relative;
  overflow: hidden;
}

.technology__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/tech_bg.jpg');
  background-size: cover;
  background-position: center;
}

.technology__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.85) 100%);
}

.technology__inner {
  position: relative;
  z-index: 2;
}

.technology__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.technology__header h2 { color: var(--white); margin-bottom: 1rem; }
.technology__header p  { color: rgba(255,255,255,0.7); }

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

.tech-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.tech-item:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(30,111,217,0.5);
  transform: translateY(-4px);
}

.tech-item__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tech-item__icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(30,111,217,0.3), rgba(58,142,246,0.3));
  border: 1px solid rgba(30,111,217,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.tech-item h3 {
  font-size: 1.05rem;
  color: var(--white);
}

.tech-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ============================================================
   TEAM
   ============================================================ */
.team__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.team__header h2 { margin-bottom: 1rem; }

/* Featured member (Neal Jones) */
.team__featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.team__featured-image {
  height: 420px;
  overflow: hidden;
}

.team__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team__featured-content {
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.team__featured-content .section-label { color: var(--gold); }

.team__featured-content h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.team__featured-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
  display: block;
}

.team__featured-content p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.team__featured-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.team__featured-contact a {
  color: var(--blue-light);
  transition: var(--transition);
}

.team__featured-contact a:hover { color: var(--gold); }

/* Board grid */
.team__board-label {
  text-align: center;
  margin-bottom: 2rem;
}

.team__board-label h3 {
  font-size: 1.3rem;
  color: var(--navy);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card__image {
  height: 220px;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__image img {
  transform: scale(1.05);
}

.team-card__body {
  padding: 1.25rem;
}

.team-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.team-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.team-card__bio {
  font-size: 0.8rem;
  color: var(--gray-dark);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.team-card__email {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--gray-mid);
  word-break: break-all;
  transition: var(--transition);
}

.team-card__email:hover { color: var(--blue); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy); }

.contact__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 4rem;
}

.contact__header h2 { color: var(--white); margin-bottom: 1rem; }
.contact__header p  { color: rgba(255,255,255,0.65); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__info h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__detail-icon {
  width: 40px; height: 40px;
  background: rgba(30,111,217,0.2);
  border: 1px solid rgba(30,111,217,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact__detail-text h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact__detail-text p,
.contact__detail-text a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  transition: var(--transition);
}

.contact__detail-text a:hover { color: var(--blue-light); }

/* Offices */
.contact__offices h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.office-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.office-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(30,111,217,0.4);
}

.office-card__region {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.office-card__address {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

/* ============================================================
   EMAIL DIRECTORY
   ============================================================ */
.email-dir {
  background: var(--off-white);
}

.email-dir__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.email-dir__header h2 { margin-bottom: 1rem; }

.email-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.email-table thead {
  background: var(--navy);
}

.email-table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.email-table tbody tr {
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

.email-table tbody tr:last-child { border-bottom: none; }
.email-table tbody tr:hover { background: var(--off-white); }

.email-table td {
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--gray-dark);
}

.email-table td:first-child { font-weight: 600; color: var(--navy); }

.email-table td a {
  color: var(--blue);
  transition: var(--transition);
}

.email-table td a:hover { color: var(--navy); text-decoration: underline; }

/* ============================================================
   PORTAL MODAL
   ============================================================ */
.portal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.portal-modal {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  max-width: 480px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.portal-overlay.active .portal-modal {
  transform: scale(1) translateY(0);
}

.portal-modal__spinner {
  width: 72px; height: 72px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.portal-modal h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.portal-modal p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.portal-modal__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.portal-modal__close:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060E1A;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand .navbar__logo-text .logo-apex {
  font-size: 1.5rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
  line-height: 1.75;
  max-width: 300px;
}

.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer__col ul li {
  margin-bottom: 0.6rem;
}

.footer__col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  transition: var(--transition);
}

.footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(360px, 90vw);
  height: 100vh;
  background: var(--navy);
  z-index: 1100;
  padding: 6rem 2rem 2rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

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

.mobile-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--gold); padding-left: 0.5rem; }

.mobile-nav__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav__overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__image-badge { bottom: -1rem; right: -0.5rem; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .team__featured { grid-template-columns: 1fr; }
  .team__featured-image { height: 300px; }
  .team__featured-content { padding: 2rem; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .services__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__ctas { flex-direction: column; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .about__pillars { grid-template-columns: 1fr; }
  .email-table { font-size: 0.8rem; }
  .email-table td, .email-table th { padding: 0.75rem 1rem; }
}

/* ============================================================
   ANIMATIONS & SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
