:root {
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent-color: #0f172a; /* Slate 900 for a very professional, sharp look */
  --accent-light: #334155;
  --highlight-color: #2563eb; /* Blue 600 for interactive elements */
  --font-main: "Roboto", sans-serif;
  --font-serif: "Roboto Slab", serif;

  /* Component System */
  --text-size-section-title: 2.5rem;
  --text-size-h3: 1.5rem;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --spacing-card: 40px;

  /* Color System */
  --border-subtle: rgba(0, 0, 0, 0.05);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 10px rgba(37, 99, 235, 0.2);
  --shadow-primary-hover: 0 10px 20px rgba(37, 99, 235, 0.3);

  --text-muted: #94a3b8;
  --icon-muted: #e2e8f0;

  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --highlight-hover: #1d4ed8;
  
  --shadow-navbar: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
}

.container {
  max-width: 1000px;
  width: 100%;
  padding: 115px 20px 60px;
  box-sizing: border-box;
}

/* Header / Hero */
.hero {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--surface-color);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.headshot:hover {
  transform: scale(1.05) rotate(2deg);
}

h1.author {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

h3.intro {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-light);
  margin: 0 0 30px 0;
  letter-spacing: 0.1em;
}

.description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px auto;
  font-weight: 300;
}

.generative-ai {
  color: var(--highlight-color);
  font-weight: 500;
}

/* CTA & Animation */
.cta-section {
  margin: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.typewriter-container {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  min-height: 1.5em; /* Prevent layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.typewriter-text {
  color: var(--highlight-color);
  font-weight: 600;
  border-right: 3px solid var(--highlight-color);
  white-space: pre;
  padding-right: 4px; /* Fix cursor cutting through text */
  animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--highlight-color);
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(
    --highlight-color
  ); /* Royal Blue instead of dark slate */
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-primary); /* Colored shadow */
}

.cta-button:hover {
  background-color: var(--highlight-hover); /* Darker blue on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

.cta-button .icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.social-links a {
  color: var(--text-secondary);
  transition: all 0.2s ease;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* background: var(--surface-color); */
}

.social-links a:hover {
  color: var(--highlight-color);
  transform: translateY(-3px);
  background: white;
  box-shadow: var(--shadow-md);
}

.social-links .icon-svg {
  width: 28px;
  height: 28px;
}

/* Cards Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.card {
  background: var(--surface-color);
  padding: var(--spacing-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-subtle);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--border-subtle);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--bg-color);
  padding-bottom: 20px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: var(--text-size-h3);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-item {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}

.link-item:hover {
  background-color: var(--bg-color);
  color: var(--highlight-color);
  padding-left: 24px;
}

/* Reviews Section */
.reviews-section {
  width: 100%;
  margin-top: 60px;
  scroll-margin-top: 100px;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.reviews-title {
  font-family: var(--font-serif);
  font-size: var(--text-size-section-title);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

@media (min-width: 1100px) {
  .reviews-grid {
    width: 110%;
    margin-left: -5%;
  }

  /* Apply same breakout style to services grid */
  .services-grid {
    width: 110%;
    margin-left: -5%;
  }
}

.review-card {
  background: var(--surface-color);
  padding: var(--spacing-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Hide reviews that are toggled off */
.review-card.hidden {
  display: none;
}

/* Show More Button Container */
.reviews-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

.show-more-reviews {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-reviews:hover {
  background-color: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bg-color);
}

.review-meta {
  flex: 1;
  min-width: 0; /* allows text truncation */
  padding-right: 24px;
}

.review-author {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.review-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.review-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

.review-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  fill: var(--icon-muted);
  transition: fill 0.3s;
}

.review-card:hover .review-icon {
  fill: #0077b5; /* LinkedIn Color */
}

.footer {
  width: 100%;
  margin-top: auto;
  padding: 60px 0 40px 0; /* More top padding for separation */
  background: transparent;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: none;
  opacity: 0.8;
}

.read-more {
  display: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
  cursor: pointer;
  align-self: flex-end;
}

.review-card.is-truncated .read-more {
  display: block;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: var(--surface-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-navbar);
  width: auto;
  min-width: 580px;
  max-width: 90%;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: var(--bg-glass);
}

.nav-brand {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.brand-text {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent-color);
  letter-spacing: -0.05em;
  padding-left: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.nav-link .icon-svg {
  fill: currentColor;
  margin-right: 8px;
  opacity: 0.8;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
}

.nav-item:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}

/* Little triangle connector */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: var(--surface-color);
  border-left: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--bg-color);
  color: var(--highlight-color);
}

.dropdown-item.disabled {
  opacity: 0.5;
  cursor: default;
}

.dropdown-item.disabled:hover {
  background-color: transparent;
  color: var(--text-secondary);
}

/* CTA */
.nav-actions {
  margin-left: 20px;
}

.nav-cta-button {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content */
  width: 160px; /* Fixed width */
  box-sizing: border-box;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-cta-button:hover {
  background-color: var(--text-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-cta-button .icon-svg {
  fill: currentColor;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Services Section */
.services-section {
  width: 100%;
  margin-top: 100px;
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.services-title {
  font-family: var(--font-serif);
  font-size: var(--text-size-section-title);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

.services-intro {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: var(--surface-color);
  padding: var(--spacing-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-subtle);
  
  /* Desktop Layout: Grid */
  display: grid;
  grid-template-columns: 1fr 322px;
  gap: 16px 40px;
  align-items: start;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-subtle);
}

.service-name {
  font-family: var(--font-serif);
  font-size: 1.75rem; /* Increased slightly for emphasis */
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  grid-column: 1 / -1;
}

.service-subheader {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.4;
  grid-column: 1 / -1;
}

.service-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  grid-column: 1;
}

.service-meta {
  background: var(--bg-color);
  padding: 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  grid-column: 2;
  height: fit-content;
  align-self: end;
}

.deliverables-title {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.deliverables-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.deliverables-list li {
  margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  /* ... existing navbar styles ... */
  
  /* Stack service card on mobile/tablet */
  .service-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .service-name {
    margin-bottom: 8px;
    font-size: 1.35rem;
  }
  
  .service-subheader {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .service-description {
    margin-bottom: 20px;
  }
  
  .service-meta {
    width: 100%;
    box-sizing: border-box;
    align-self: stretch;
  }

  .navbar {
    min-width: auto;
    width: 80%;
  }
}

@media (max-width: 768px) {
  /* Fix sticky header overlap */
  body {
    padding-top: 80px;
  }

  .navbar {
    width: 90%;
    top: 20px;
    padding: 12px 20px;
    flex-wrap: wrap; /* Allow wrapping for the menu */
  }

  .brand-text {
    font-size: 1.1rem;
    margin-right: auto; /* Push brand to the left */
    display: block; /* Keep visible */
  }

  /* Show hamburger */
  .hamburger-menu {
    display: block;
    order: 2; /* Place after brand */
    margin-left: 10px;
  }

  .nav-actions {
    margin-left: auto;
    margin-right: 10px;
    order: 1; /* Place between brand and hamburger */
  }

  /* CTA Button on Mobile */
  .nav-cta-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .nav-cta-button .icon-svg {
    width: 12px;
    height: 12px;
  }

  /* Mobile Menu */
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 10px;
    order: 3; /* Navigation drops to new line */
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-item {
    width: 100%;
    margin-bottom: 5px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    justify-content: flex-start;
    border-radius: var(--radius-sm);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    background: transparent;
    display: none; /* Hide dropdown items initially on mobile to save space, or show them? Let's show them for simplicity or make them always visible under the parent */
    display: block; /* Let's show them to make them accessible */
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-item:hover .dropdown-menu {
    transform: none;
  }

  .dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .brand-text {
    display: none; /* Hide brand on very small screens if needed, but 375 should fit */
  }

  .navbar {
    padding: 10px 15px;
  }

  .nav-cta-button span {
    display: none; /* Hide "Schedule Call" text on very small screens */
  }

  .nav-cta-button {
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  .nav-cta-button .icon-svg {
    margin: 0;
  }

  .hamburger-menu {
    margin-left: 10px;
  }
}
