:root {
  --bg: #1e293b; /* Rich blue-grey slate */
  --card-bg: #ffffff;
  --card-border: #94a3b8;
  --card-text: #0f172a;
  --card-subtext: #334155;
  --text: #f1f5f9;
  --text-heading: #ffffff;
  --accent: #38bdf8; /* Bright blue accent for high-contrast visibility */
  --accent-hover: #7dd3fc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg);
  /* Crisp white diamond/argyle geometric pattern */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="1" stroke-dasharray="2 3"/><path d="M30 10 L50 30 L30 50 L10 30 Z" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  background-repeat: repeat;
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

/* Header & Logo */
header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-container {
  margin-bottom: 1.5rem;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

/* Hero Section & 250x300 Portrait Frame */
.hero-profile {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.profile-photo {
  width: 250px;
  height: 300px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-photo:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.4);
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bio {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

/* Executive Single LinkedIn Badge */
.linkedin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1.1rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.linkedin-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  transition: fill 0.25s ease;
}

.linkedin-badge:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.linkedin-badge:hover svg {
  fill: #0f172a;
}

/* Section Shells & Headers */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  color: var(--text-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Brand Grid & White Hover/Focus Effect */
.brand-marquee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.25rem;
  justify-items: center;
}

.brand-card {
  width: 100%;
  max-width: 280px;
  min-height: 120px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Turns card background solid white on hover or when focused */
.brand-card:hover,
.brand-card:focus,
.brand-card.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.brand-logo-img {
  max-width: 220px;
  max-height: 60px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.95);
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* Reverts logo back to original dark colors when card background is white */
.brand-card:hover .brand-logo-img,
.brand-card:focus .brand-logo-img,
.brand-card.active .brand-logo-img {
  filter: none;
  transform: scale(1.04);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.75rem;
  color: var(--card-text);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.25);
}

.card h3 {
  color: var(--card-text);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.card p {
  font-size: 0.95rem;
  color: var(--card-subtext);
  line-height: 1.5;
}

.bio-blurb-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2.5rem;
  color: var(--card-text);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.bio-blurb-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--card-text);
  margin-bottom: 1rem;
}

.bio-blurb-card p {
  font-size: 1.05rem;
  color: var(--card-subtext);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.bio-blurb-card p:last-child {
  margin-bottom: 0;
}

/* Executive Leadership Split Grid (Narrative + Photo) */
.bio-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.bio-narrative-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  color: var(--card-text);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-narrative-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--card-text);
  margin-bottom: 1rem;
}

.bio-narrative-card p {
  font-size: 0.98rem;
  color: var(--card-subtext);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.bio-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--card-subtext);
  line-height: 1.5;
}

.pillar-bullet {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.bio-photo-card {
  display: flex;
  flex-direction: column;
}

.bio-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  background: #0f172a;
}

.bio-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease;
}

.bio-photo-frame:hover .bio-photo-img {
  transform: scale(1.03);
}

.bio-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
  padding: 1rem;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Skills Badges Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.skill-badge {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.skill-badge:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Direct Intake CTA Contact Card */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  margin-top: 2.5rem;
  color: var(--card-text);
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.contact-card h2 {
  color: var(--card-text);
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
}

.contact-card p {
  color: var(--card-subtext);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
  border: none;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: #ffffff;
  color: var(--card-text);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: #0284c7;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Modals & Dialog Overlays */
dialog {
  margin: auto;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: #0f172a;
  color: #ffffff;
  max-width: 850px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.75rem;
  cursor: pointer;
}

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

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Section */
footer {
  text-align: center;
  padding: 3rem 0 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Responsive Layout Breakdown */
@media (max-width: 880px) {
  .bio-split-grid {
    grid-template-columns: 1fr;
  }
  .bio-photo-frame {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .hero-profile {
    flex-direction: column;
    text-align: center;
  }
  .profile-photo {
    width: 220px;
    height: 264px;
  }
  .brand-marquee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .contact-actions {
    flex-direction: column;
  }
  .brand-marquee-grid {
    grid-template-columns: 1fr;
  }
}

