/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* CSS Variables based on design.md */
:root {
  /* Colors */
  --background-color: white;
  --surface-color: white;
  --primary-highlight: #e3426b;
  --secondary-highlight: #4b88a2;
  --text-color: #011936;
  --quiet-text-color: #6b7280; /* Quiet text color as per design.md */
  --border-color: #e6e8e6;
  --surface-highlight: #e6e8e6;
  
  /* Typography */
  --font-family: 'Lato', sans-serif;
  
  /* Font sizes - Desktop */
  --header-title-size: 24px;
  --page-title-size: 50px;
  --section-title-size: 40px;
  --section-subtitle-size: 22px;
  --body-text-size: 18px;
  
  /* Spacing - Desktop */
  --section-header-subheader-gap: 5px;
  --section-gap: 100px;
  --section-subheader-body-gap: 100px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  min-width: 320px; /* Minimum width to prevent layout breaking on very small screens */
}

/* Layout containers */
.header-container,
.body-container,
.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: var(--surface-color);
  z-index: 1000;
  padding-top: 5px;
  margin-bottom: 5px;
  display: flex;
  min-width: 320px; /* Minimum width to prevent header layout breaking */
}

/* Spacer styles */
.left-spacer, .right-spacer {
  display: none;
  height: 45px; /* 50px - 5px padding = 45px to match header height */
  padding-bottom: 5px; /* Match header bottom padding */
  position: relative;
}

.left-spacer::after {
  content: '';
  position: absolute;
  bottom: 5px; /* Align with header bottom padding */
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--secondary-highlight);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  padding: 0;
  max-width: none;
}

.header-title h1 {
  font-size: var(--header-title-size);
  font-weight: 400;
  border-bottom: 4px solid var(--secondary-highlight);
  padding-bottom: 0;
  padding-right: 5px;
  display: inline-block;
  margin-bottom: 5px;
  align-self: flex-end;
  line-height: 1.2;
}

.header-title a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.header-title a:hover {
  color: var(--text-color);
}

.header-navigation ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.header-navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
}

.header-navigation a:hover {
  color: var(--primary-highlight);
}

/* Hamburger menu styles */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-color);
  font-size: 24px;
}

.hamburger-menu:hover {
  color: var(--primary-highlight);
}

/* Mobile dropdown menu */
.mobile-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1001;
}

.mobile-nav-dropdown.active {
  display: block;
}

.mobile-nav-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-dropdown li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-dropdown li:last-child {
  border-bottom: none;
}

.mobile-nav-dropdown a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  transition: background-color 0.3s ease;
}

.mobile-nav-dropdown a:hover {
  background-color: var(--surface-highlight);
  color: var(--primary-highlight);
}

/* Body styles */
.site-body {
  margin-top: 55px; /* Account for fixed header */
  min-height: calc(100vh - 85px); /* Viewport height minus header and footer */
}

.body-container {
  padding: 60px 0 40px 0;
}

.page-title {
  text-align: left;
  margin-bottom: var(--section-gap);
}

.page-title h1 {
  font-size: var(--page-title-size);
  font-weight: 400;
  margin-bottom: 0; /* No gap between title and subtitle as per spec */
  line-height: 1.1; /* Line spacing as per design spec */
}

.page-title .subtitle {
  font-size: var(--section-subtitle-size);
  color: var(--text-color);
  font-style: italic;
}

.page-title .subtitle::before {
  content: "- ";
}

.content-section {
  margin-bottom: var(--section-gap);
}

.content-section h2 {
  font-size: var(--section-title-size);
  font-weight: 400;
  margin-bottom: var(--section-header-subheader-gap);
  line-height: 1.2;
}

.content-section .subtitle {
  font-size: var(--section-subtitle-size);
  color: var(--text-color);
  margin-bottom: var(--section-subheader-body-gap);
  font-style: italic;
}

.content-section .subtitle::before {
  content: "- ";
}

/* About Me Section Layout */
.about-content {
  /* Removed 10% margins - now uses full width */
  overflow: hidden; /* Clearfix to contain floated elements */
  display: flex;
  gap: 20px; /* Gap between headshot and text content */
}

.about-content .headshot {
  flex-shrink: 0;
  width: 300px; /* Fixed width as per spec */
}

.about-content .headshot img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.about-content .about-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about-content .background-summary {
  margin-bottom: 30px; /* Space between summary and introduction/CTA */
}

.about-content .background-summary .summary-item {
  margin-bottom: 20px;
  position: relative;
  padding-left: 13px; /* 8px icon + 5px spacing = 13px total */
}

.about-content .background-summary .summary-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Adjust for perfect centering */
  width: 8px;
  height: 8px;
  background-color: var(--primary-highlight); /* Icon color is primary highlight */
  border-radius: 50%;
}

.about-content .background-summary .main-content {
  font-size: 22px; /* Main content size as per spec */
  font-weight: 500; /* Main content weight */
  line-height: 1.4;
  /* Removed margin-bottom to eliminate spacing between main and sub content */
}

.about-content .background-summary .sub-content {
  font-size: 18px; /* Sub content size as per spec */
  font-weight: 400; /* Sub content weight */
  line-height: 1.4;
  color: var(--text-color);
  font-style: italic;
}

.about-content .background-summary .sub-content::before {
  content: "- ";
}

.about-content .introduction {
  margin-bottom: 20px; /* Space between introduction and CTA */
}

.about-content .introduction p {
  font-size: 20px; /* Introduction text size as per spec */
  font-style: italic; /* Italics */
  text-align: center; /* Center aligned */
  font-weight: 400; /* Sub content weight */
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-content .about-cta {
  text-align: center; /* Center the CTA button */
  margin-bottom: 20px; /* Additional spacing between CTA and next section */
}

/* CTA Button styles */
.cta-button {
  background-color: var(--primary-highlight);
  color: white;
  border: none;
  padding: 8px 16px; /* Top & bottom: 8px, Left & right: 16px */
  border-radius: 6px;
  font-size: 18px; /* Explicitly set to 18px as per design spec */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

/* Header button container */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  Xmin-width: 160px; /* Ensure enough space for buttons + hamburger */
  flex-shrink: 0; /* Prevent shrinking */
}

/* Header-specific circular buttons */
.header-cta .cta-button,
.header-contact .cta-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  gap: 0;
  justify-content: center;
}

/* Hide labels on header buttons (show only icons) */
.header-cta .cta-button .label,
.header-contact .cta-button .label {
  display: none;
}

.cta-button:hover {
  background-color: #d13a5f;
}

/* CTA Container styles for prefix text */
.about-cta,
.services-cta,
.faq-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cta-pre-text {
  font-size: var(--body-text-size);
  color: var(--text-color);
  font-weight: 400;
}

/* About Me section CTA pre-text matches main list item text */
.about-cta .cta-pre-text {
  font-size: 22px; /* Match main list item text size */
  font-weight: 500; /* Match main list item text weight */
  line-height: 1.4; /* Match main list item text line height */
}

/* Material Icons styles */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Default size for icons - matches design spec */
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  /* These properties are essential for Material Icons to work properly */
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  /* Ensure the text content is hidden but the icon glyph shows */
  text-indent: 0;
  overflow: hidden;
}

/* Ensure icons in buttons are properly sized */
.cta-button .material-icons {
  margin: 0;
}

/* Footer styles */
.site-footer {
  height: 30px;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Tools Section */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(8, 60px);
  grid-template-rows: repeat(2, auto);
  column-gap: 40px;
  row-gap: 12px;
  margin-top: 30px;
  justify-content: center;
}

.tool-tile {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 8px;
}

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

.tool-tile img {
  width: 100%;
  height: auto;
  display: block;
}

.tool-label {
  display: none;
}

/* Services Section */
#services {
  clear: both; /* Ensure services section starts on new line */
  margin-top: var(--section-gap); /* Explicitly set the section gap */
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 20px;
  margin-top: 30px;
}

.service-item {
  display: flex;
  align-items: center; /* Changed from flex-start to center for better alignment */
  gap: 10px;
}

.service-icon {
  font-family: 'Material Icons';
  font-size: 30px; /* Updated to 30px as per new spec */
  line-height: 1; /* Ensure icon height matches font-size */
  color: var(--primary-highlight); /* Icon color is primary highlight */
  flex-shrink: 0;
  /* Removed margin-top since we're now using center alignment */
}

.service-text {
  font-size: var(--body-text-size);
  line-height: 1.2; /* Updated to 1.2 as per new spec */
  color: var(--text-color);
  font-style: italic; /* Added italics as per new spec */
}

/* Products Section */
.products-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: var(--section-subheader-body-gap);
}

.product-tile {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 10px 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 320px;
}

.product-image {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-title {
  font-weight: 600;
  font-size: 20px;
  color: var(--text-color);
  line-height: 1.2;
  margin: 0;
}

.product-cost {
  font-weight: 800;
  font-size: 32px;
  color: var(--primary-highlight);
  margin: 0;
}

.cost-min {
  font-size: 12px;
  color: var(--quiet-text-color);
  font-weight: 400;
}

.product-description {
  font-weight: 400;
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
}

.description-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 8px;
}

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

.description-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--text-color);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.description-text {
  flex: 1;
  margin: 0;
}

.product-cta-intro {
  font-weight: 400;
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
  margin-top: auto;
  padding-top: 15px;
}

.product-close-text {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
  margin-bottom: 20px;
}

.product-close-text p {
  margin: 0;
}

.hidden {
  visibility: hidden;
}

.product-cta-intro p {
  margin: 0;
}

.product-cta {
  margin-top: -7.5px;
}

.cta-button.full-width {
  width: 100%;
  justify-content: center;
}

.cta-button.full-width .material-icons {
  font-size: 20px;
}

.cta-button.full-width .label {
  font-size: 16px;
}

.product-learn-more {
  background: none;
  border: none;
  color: var(--quiet-text-color);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  margin: 12px 0 0 0;
  border-radius: 4px;
  text-align: center;
  width: 100%;
  text-decoration: none;
  display: block;
  font-family: inherit;
}

.product-learn-more:hover {
  color: var(--secondary-highlight);
}

.learn-more-text {
  text-transform: uppercase;
  display: block;
  text-align: center;
}

/* FAQ Section */
.faq-list {
  margin-top: 0; /* Removed redundant margin since subtitle already has margin-bottom */
}

.faq-item {
  margin-bottom: 20px; /* Updated to 20px as per spec */
  overflow: hidden;
}

.faq-question-container {
  display: flex;
  align-items: center;
  gap: 0; /* Updated to 0 as per spec - no gap between chevron and text */
  padding: 0 20px 10px 0; /* Removed top padding, kept bottom padding for gap between questions */
  background-color: var(--surface-color);
  cursor: pointer;
}

.faq-chevron {
  font-size: 24px;
  color: var(--text-color); /* Updated to match font color as per spec */
  transition: transform 0.3s ease;
}

.faq-item.expanded .faq-chevron {
  transform: rotate(180deg);
}

.faq-question {
  font-size: var(--section-subtitle-size);
  font-weight: 500;
  margin: 0;
  flex: 1;
}

.faq-answer-container {
  /* Removed border-top */
  margin-top: 0; /* Removed margin since we're using padding on question container */
}

.faq-answer-preview {
  padding: 0 20px 0 40px; /* Removed bottom padding */
}

.faq-answer-preview p {
  margin: 0;
  font-size: var(--body-text-size);
  line-height: 1.6;
  color: var(--text-color);
  /* Show only first line */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faq-answer-full {
  padding: 0 20px 0 40px; /* Removed bottom padding */
}

.faq-answer-full p {
  margin: 0;
  font-size: var(--body-text-size);
  line-height: 1.6;
  color: var(--text-color);
}

.faq-answer-full p + p {
  margin-top: 10px; /* Gap between paragraphs as per spec */
}

.faq-cta + p {
  margin-top: 10px; /* Gap between CTA and post-CTA answer paragraph */
}

.faq-cta {
  margin-top: 20px;
}

.faq-toggle {
  background: none;
  border: none;
  color: var(--quiet-text-color); /* Quiet text color as per design.md */
  font-size: 12px; /* Updated to 12px as per spec */
  font-weight: 400; /* Updated to 400 as per spec */
  cursor: pointer;
  padding: 0 0 0 40px; /* Removed top padding, kept 40px left padding for indentation */
  margin: 0; /* Removed margin */
  border-radius: 4px;
  text-align: left; /* Added left alignment as per spec */
  transition: color 0.3s ease;
}

.faq-toggle:hover {
  color: var(--text-color); /* Full text color on hover for better interaction */
}

.faq-item.expanded .faq-toggle .toggle-text {
  display: none;
}

.faq-item:not(.expanded) .faq-toggle .toggle-text {
  display: inline;
}

.faq-item.expanded .faq-toggle::after {
  content: "SHOW LESS";
}

.faq-item:not(.expanded) .faq-toggle::after {
  content: "";
}

/* Inline CTA button in FAQ section title */
.inline-cta {
  background-color: var(--primary-highlight);
  color: white;
  border: none;
  padding: 4px 10px; /* Top/bottom: 4px, Left/right: 10px as per layout spec */
  border-radius: 6px;
  font-size: 35px; /* Font size as per layout spec */
  font-weight: 400; /* Font weight as per layout spec */
  line-height: 1.2; /* Line spacing as per layout spec */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  margin: 0; /* No margins as per layout spec */
  vertical-align: middle;
}

.inline-cta:hover {
  background-color: #d13a5f;
}

.inline-cta .material-icons {
  font-size: 24px;
  display: inline;
}

/* Recent Projects Section */
.projects-intro {
  margin-bottom: 30px;
}

.projects-intro p {
  font-size: var(--body-text-size);
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 20px;
}

.evaluation-list {
  list-style: none;
  padding: 0;
}

.evaluation-list li {
  margin-bottom: 15px;
}

.evaluation-list strong {
  font-weight: 600;
  color: var(--text-color);
}

.evaluation-list .duration {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.7;
  margin-left: 5px;
}

.evaluation-list p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-color);
  margin-top: 5px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
  margin-top: 30px;
}

.project-tile {
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

.project-screenshot {
  border: 1px solid var(--secondary-highlight);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.project-screenshot.dark-mode {
  padding-top: 10px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  border-top-width: 16px;
}

.project-screenshot:not(.dark-mode) {
  padding: 0;
  border-top-width: 16px;
}

.project-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.project-detail {
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 16px; /* Small Mode size */
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.project-tile:not(.small-mode) .project-title {
  font-size: 20px; /* Big Mode size */
}

.project-summary {
  font-size: 14px;
  color: var(--text-color);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

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

.project-details li {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 3px;
  line-height: 1.4;
  position: relative;
  padding-left: 15px;
}

.project-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-highlight);
}

/* Responsive: Single column on smaller screens */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}

/* Responsive design */
@media (min-width: 981px) {
  .header-container,
  .body-container,
  .footer-container {
    width: 964px;
  }
  
  /* Show spacers on desktop */
  .left-spacer, .right-spacer {
    display: block;
    flex: 1;
  }
}

/* Tablet screens */
@media (min-width: 768px) and (max-width: 980px) {
  .header-container,
  .body-container,
  .footer-container {
    width: 736px;
  }
  
  /* Show spacers on tablet */
  .left-spacer, .right-spacer {
    display: block;
    flex: 1;
  }
  
  /* Responsive spacing - Tablet */
  :root {
    --section-gap: 75px;
    --section-subheader-body-gap: 75px;
  }
  
  /* Header Title: 22px */
  .header-title h1 {
    font-size: 22px;
  }
  
  /* Page Title: 40px */
  .page-title h1 {
    font-size: 40px;
  }
  
  /* Page Subtitle: 18px */
  .page-title .subtitle {
    font-size: 18px;
  }
  
  /* Section Title: 32px */
  .content-section h2 {
    font-size: 32px;
    line-height: 1.2;
  }
  
  /* Section Subtitle: 18px */
  .content-section .subtitle {
    font-size: 18px;
  }
  
  /* Body text: 16px */
  body {
    font-size: 16px;
  }
  
  /* About Me Section - Tablet adjustments */
  .about-content {
    gap: 20px; /* Default gap for tablet */
  }
  
  .about-content .headshot {
    width: 300px;
  }
  
  .about-content .background-summary .main-content {
    font-size: 22px;
  }
  
  .about-content .background-summary .sub-content {
    font-size: 18px;
  }
  
  /* Update other body text elements */
  .about-content .introduction p {
    font-size: 20px;
  }
  
  .service-text {
    font-size: 16px;
  }
  
  .faq-question {
    font-size: 18px;
  }
  
  .faq-answer-preview p,
  .faq-answer-full p {
    font-size: 16px;
  }
  
  .projects-intro p {
    font-size: 16px;
  }
  
  .cta-button {
    font-size: 16px;
  }
  
  .cta-pre-text {
    font-size: 16px;
  }
  
  .about-cta .cta-pre-text {
    font-size: 20px;
  }
  
  /* Products Section - Tablet adjustments */
  .products-grid {
    gap: 20px;
  }
  
  .product-tile {
    flex: 1;
  }
  
  .product-title {
    font-size: 18px;
  }
  
  .product-cost {
    font-size: 28px;
  }
  
  .product-description {
    font-size: 15px;
  }
  
  .product-close-text {
    font-size: 13px;
  }
  
  .cta-button.full-width .label {
    font-size: 15px;
  }
}

/* Mobile landscape screens */
@media (max-width: 767px) and (orientation: landscape) {
  .header-container,
  .body-container,
  .footer-container {
    max-width: none;
    margin: 0;
  }
  
  .header-container {
    padding: 0 8px;
  }
  
  .body-container {
    padding: 20px 8px;
  }
  
  .footer-container {
    padding: 0 8px;
  }
  
  /* Responsive spacing - Mobile landscape */
  :root {
    --section-gap: 50px;
    --section-subheader-body-gap: 50px;
  }
  
  /* Header Title: 20px */
  .header-title h1 {
    font-size: 20px;
  }
  
  /* Hide desktop navigation and show hamburger menu */
  .header-navigation {
    display: none;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  /* Page Title: 32px */
  .page-title h1 {
    font-size: 32px;
  }
  
  /* Page Subtitle: 16px */
  .page-title .subtitle {
    font-size: 16px;
  }
  
  /* Section Title: 26px */
  .content-section h2 {
    font-size: 26px;
    line-height: 1.2;
  }
  
  /* Section Subtitle: 16px */
  .content-section .subtitle {
    font-size: 16px;
  }
  
  /* Body text: 15px */
  body {
    font-size: 15px;
  }
  
  /* About Me Section - Mobile landscape adjustments */
  .about-content {
    gap: 12px;
  }
  
  .about-content .headshot {
    width: 180px;
  }
  
  .about-content .background-summary .main-content {
    font-size: 18px;
  }
  
  .about-content .background-summary .sub-content {
    font-size: 15px;
  }
  
  /* CTA spacing - matches gap between items */
  .about-content .background-summary {
    margin-bottom: 20px;
  }
  
  /* Update other body text elements */
  .about-content .introduction p {
    font-size: 16px;
  }
  
  .service-text {
    font-size: 15px;
  }
  
  .faq-question {
    font-size: 16px;
  }
  
  .faq-answer-preview p,
  .faq-answer-full p {
    font-size: 15px;
  }
  
  .projects-intro p {
    font-size: 15px;
  }
  
  .cta-button {
    font-size: 15px;
  }
  
  .cta-pre-text {
    font-size: 15px;
  }
  
  .about-cta .cta-pre-text {
    font-size: 18px;
  }
  
  /* Services Grid - 2 columns for landscape */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Projects Grid - 2 columns for landscape */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Products Section - Mobile landscape adjustments */
  .products-grid {
    flex-direction: column;
    gap: 25px;
  }
  
  .product-tile {
    flex: none;
    width: 100%;
  }
  
  .product-title {
    font-size: 16px;
  }
  
  .product-cost {
    font-size: 24px;
  }
  
  .product-description {
    font-size: 14px;
  }
  
  .product-close-text {
    font-size: 12px;
  }
  
  .cta-button.full-width .label {
    font-size: 14px;
  }
}

/* Mobile screens */
@media (max-width: 767px) {
  .header-container,
  .body-container,
  .footer-container {
    max-width: none;
    margin: 0;
  }
  
  .header-container {
    padding: 0 8px;
    width: 100%;
  }
  
  .body-container {
    padding: 20px 8px;
  }
  
  .footer-container {
    padding: 0 8px;
  }
  
  /* Responsive spacing - Mobile */
  :root {
    --section-gap: 60px;
    --section-subheader-body-gap: 60px;
    --section-header-subheader-gap: 5px;
  }
  
  /* Header Title: 18px */
  .header-title h1 {
    font-size: 18px;
  }
  
  /* Hide desktop navigation and show hamburger menu */
  .header-navigation {
    display: none;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  /* Page Title: 24px */
  .page-title h1 {
    font-size: 24px;
  }
  
  /* Page Subtitle: 14px */
  .page-title .subtitle {
    font-size: 14px;
  }
  
  /* Section Title: 20px */
  .content-section h2 {
    font-size: 20px;
    line-height: 1.2;
  }
  
  /* Section Subtitle: 14px */
  .content-section .subtitle {
    font-size: 14px;
  }
  
  /* Body text: 14px */
  body {
    font-size: 14px;
  }
  
  /* About Me Section - Mobile adjustments */
  .about-content {
    flex-direction: column;
    gap: 0;
  }
  
  .about-content .headshot {
    width: 200px;
    align-self: center;
    margin-bottom: 20px;
  }
  
  .about-content .background-summary .main-content {
    font-size: 16px;
  }
  
  .about-content .background-summary .sub-content {
    font-size: 14px;
  }
  
  /* CTA spacing - 8px below background summary */
  .about-content .background-summary {
    margin-bottom: 8px;
  }
  
  /* Update other body text elements */
  .about-content .introduction p {
    font-size: 15px;
  }
  
  .service-text {
    font-size: 14px;
  }
  
  .faq-question {
    font-size: 15px;
  }
  
  .faq-answer-preview p,
  .faq-answer-full p {
    font-size: 14px;
  }
  
  .projects-intro p {
    font-size: 14px;
  }
  
  .cta-button {
    font-size: 14px;
  }
  
  .cta-pre-text {
    font-size: 14px;
  }
  
  .about-cta .cta-pre-text {
    font-size: 16px;
  }
  
  /* Services Grid - Single column on mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Projects Grid - Single column on mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  /* Additional gap before Recent Projects section on mobile */
  #recent-projects {
    margin-top: 20px;
  }
  
  /* Products Section - Mobile adjustments */
  .products-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .product-tile {
    flex: none;
    width: 100%;
  }
  
  .product-title {
    font-size: 14px;
  }
  
  .product-cost {
    font-size: 20px;
  }
  
  .product-description {
    font-size: 13px;
  }
  
  .product-close-text {
    font-size: 12px;
  }
  
  .cta-button.full-width .label {
    font-size: 13px;
  }
} 

/* Mobile header CTA button adjustments */
@media (max-width: 767px) {
  .header-container {
    justify-content: space-between;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    Xmin-width: 160px; /* Ensure enough space for buttons + hamburger */
    flex-shrink: 0; /* Prevent shrinking */
  }
  
  .header-cta .cta-button,
  .header-contact .cta-button {
    margin: 0;
  }
  
  .hamburger-menu {
    margin: 0;
  }
} 

/* Show More Link */
.show-more-container {
  text-align: center;
  margin-top: 20px;
}

.show-more-link {
  color: var(--quiet-text-color);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.show-more-link:hover {
  color: var(--secondary-highlight);
}

@media (max-width: 767px) {
  .tools-grid {
    grid-template-columns: repeat(5, 60px);
    grid-template-rows: repeat(2, auto);
    row-gap: 12px;
    column-gap: 12px;
  }
  .tool-tile.tile-idx-10,
  .tool-tile.tile-idx-11,
  .tool-tile.tile-idx-12,
  .tool-tile.tile-idx-13,
  .tool-tile.tile-idx-14,
  .tool-tile.tile-idx-15,
  .tool-tile.tile-idx-16,
  .tool-tile.tile-idx-17,
  .tool-tile.tile-idx-18,
  .tool-tile.tile-idx-19 {
    display: none !important;
  }
} 

/* Contact Popup Styles */
.contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.contact-popup.active {
  display: flex;
}

.contact-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.contact-popup-content {
  position: relative;
  background-color: var(--surface-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: popup-slide-in 0.3s ease-out;
}

@keyframes popup-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
  border-bottom: 1px solid var(--default-border);
  margin-bottom: 20px;
}

.contact-popup-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-color);
}

.contact-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  color: var(--quiet-text-color);
  transition: all 0.2s ease;
}

.contact-popup-close:hover {
  background-color: var(--surface-highlight-color);
  color: var(--text-color);
}

.contact-form {
  padding: 0 24px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--default-border);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background-color: var(--surface-color);
  color: var(--text-color);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-highlight);
  box-shadow: 0 0 0 3px rgba(227, 66, 107, 0.1);
}

.form-group input[type="file"] {
  padding: 8px 12px;
  border: 2px dashed var(--default-border);
  background-color: var(--surface-highlight-color);
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  border-color: var(--secondary-highlight);
}

.file-info {
  margin-top: 8px;
  font-size: 14px;
  color: var(--quiet-text-color);
  white-space: pre-line;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary-highlight);
  color: white;
}

.btn-primary:hover {
  background-color: #d13a5f;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface-highlight);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-popup-content {
    width: 95%;
    margin: 20px;
  }
  
  .contact-popup-header {
    padding: 16px 20px 0;
  }
  
  .contact-popup-header h3 {
    font-size: 20px;
  }
  
  .contact-form {
    padding: 0 20px 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Form submission states */
.contact-form.submitting .btn-primary {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form.submitting .btn-primary .material-icons {
  animation: spin 1s linear infinite;
}

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

/* Success/Error messages */
.form-message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
} 

/* Option Selector Styles */
.option-card {
  cursor: default;
  transition: border-color 0.3s ease;
}

.option-card.product-tile {
    padding: 10px;
}

.option-card.selected {
  border-color: var(--primary-highlight);
}

.option-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.option-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.option-card.selected .option-circle {
  border-color: var(--border-color);
}

.material-icons.checkmark {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary-highlight);
  position: absolute;
  top: -10px;
  left: -12px;
}

.cta-button.disabled {
  opacity: 0.5;
  cursor: pointer;
  background-color: var(--quiet-text-color);
}

.cta-button.disabled:hover {
  background-color: var(--quiet-text-color);
  transform: none;
} 