/* ============================================================================
   CSS STYLES - Büro für Bauten
   ============================================================================ */

/* Base Styles & Reset
   ================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1f28;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography
   ================================ */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 24px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1f28;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

/* Body Text */
p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.text-small {
  font-size: 0.85rem;
}

.text-large {
  font-size: 1.2rem;
}

/* Links */
a {
  color: #345d87;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

a:hover {
  color: #2c4d73;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: 600;
}

.text-normal {
  font-weight: 400;
}

.text-light {
  font-weight: 300;
}

/* Layout & Structure
   ================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Generic section layout */
section {
  padding: 48px 24px;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  section {
    padding: 96px 40px;
  }
}

/* Components
   ================================ */

/* Buttons */
.button {
  display: inline-block;
  padding: 8px 24px;
  background-color: #345d87;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #2c4d73;
}

.button--secondary {
  background-color: #345d87;
}

.button--secondary:hover {
  background-color: #2c4d73;
}

.button--large {
  padding: 16px 32px;
  font-size: 1.2rem;
}

/* Cards */
.card {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
  transition: background-color 0.2s ease;
  transform: translateY(0);
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.icon--large {
  width: 32px;
  height: 32px;
}

/* Utilities
   ================================ */

/* Spacing Utilities */
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mt-2xl { margin-top: 40px; }
.mt-3xl { margin-top: 48px; }

.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.mb-2xl { margin-bottom: 40px; }
.mb-3xl { margin-bottom: 48px; }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Display Utilities */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none !important;
  }
}

/* Background Colors */
.bg-light {
  background-color: #f7f9fb;
}

.bg-dark {
  background-color: #1a1f28;
}

.bg-primary {
  background-color: #345d87;
}

.bg-secondary {
  background-color: #345d87;
}

/* Text Colors */
.text-primary {
  color: #345d87;
}

.text-secondary {
  color: #345d87;
}

.text-dark {
  color: #1a1f28;
}

.text-light {
  color: #ffffff;
}

/* Two-column grid */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Flex layouts */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Page content container - sits above fixed hero */
.page-content {
  margin-top: 100vh;
  position: relative;
  z-index: 3;
}

/* About page - start content in middle of viewport */
.about-page .page-content {
  margin-top: 30vh;
}

/* Hero Section & Index Page
   ================================ */

/* Hero background - fixed, full viewport */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* Background styling */
  color: white;
  background-image:
    linear-gradient(rgba(10,15,25,0.45), rgba(10,15,25,0.45)),
    url("https://images.unsplash.com/photo-1609320407089-84aaed61d9f5?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=3432");
  background-size: cover;
  background-position: center calc(50% - 10px);
  background-attachment: fixed;
  -webkit-filter: saturate(0.5);
  filter: saturate(0.5);
}

/* Hero text styling */
.hero h1,
.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: white;
  text-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.35);
  text-align: center;
}

.hero p,
.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  max-width: 700px;
  color: #e8edf3;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.25);
}

/* Content Sections
   ================================ */

/* Content sections - About & Contact */
.about, .contact {
  background-color: #ffffff;
  position: relative;
  z-index: 3;
}

/* About section with gray background to match footer */
.about {
  background-color: #f2f4f6;
}

.about h2, .contact h2 {
  color: #345d87;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.about h2 {
  font-size: 1.6rem;
}

.contact h2 {
  font-size: 1.4rem;
}

.about p, .contact p {
  color: #4b5563;
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
}

.contact p {
  font-size: 1rem;
  line-height: 1.7;
}

.contact .blurb {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  color: #4b5563;
  font-size: 1rem;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
}

/* Legacy UID class */
.uid {
  font-family: monospace;
  color: #1a1f28;
  font-weight: 600;
  margin-top: 10px;
}

/* Header & Footer
   ================================ */

/* Site Header - Fixed top-left */
.top-header {
  position: fixed;
  top: 36px;
  left: 36px;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  z-index: 1000;
  pointer-events: auto;
  background: transparent;
}

.top-header h1 {
  margin: 0;
  color: #ffffff;
  font-weight: 100;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.25rem, 5vw, 2.4rem);
  letter-spacing: 0.1em;
  padding: 4px 0;
  text-shadow: 0 3px 8px rgba(56, 56, 56, 0.65);
  text-align: left;
  background: transparent;
}

/* Logo styling */
.top-logo {
  width: 400px !important;
  height: auto !important;
  max-width: min(400px, 60vw) !important;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 10px;
  pointer-events: none;
  user-select: none;
}

/* Site Footer */
footer {
  text-align: center;
  color: #4b5563;
  font-size: 0.85rem;
  padding: 40px 20px;
  background-color: #f2f4f6;
  position: relative;
  z-index: 4;
  clear: both;
}



/* Hero overlay for index page */
.hero-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

/* Features section styling */
.features {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  width: 100%;
}

.features-inner {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Service cards enhancement */
.features-inner .card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  flex: 1 1 300px;
  max-width: 350px;
  min-width: 300px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
  padding: 24px;
  padding-bottom: 84px;
  position: relative;
  text-align: left;
}

.features-inner .card .card-intro {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.features-inner .card .card-intro h2 {
  margin: 0 0 6px 0;
  line-height: 1.05;
  min-height: 3.6rem;
  display: block;
  color: #345d87;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.features-inner .card .card-intro p {
  margin-top: 12px;
  color: #4b5563;
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.card-link-wrapper {
  position: absolute;
  right: 24px;
  bottom: 18px;
  text-align: right;
}

.card-link {
  display: inline-block;
  padding: 10px 16px;
  background: #345d87;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.card-link:hover {
  background: #2c4d73;
  color: #ffffff;
}

/* Team section styling */
.team-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
}

.team {
  display: flex;
  gap: 100px;
  justify-content: center;
  text-align: center;
  width: 540px;
  margin-bottom: 56px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  padding: 0;
}

.team-photo {
  width: 200px;
  height: 200px;
  max-width: 70vw;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 0 8px;
}

.team-caption {
  font-size: 0.98rem;
  color: #1a1f28;
  margin-top: 0;
  text-align: center;
  width: 100%;
}

.about-link-wrapper {
  margin-top: 0;
  display: flex;
  justify-content: center;
}

.about-link {
  display: inline-block;
  padding: 12px 20px;
  background: #345d87;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.about-link:hover {
  background: #2c4d73;
  color: #fff;
}

/* Footer styling */
.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 40px 20px;
  background-color: #f2f4f6;
  text-align: center;
  color: #4b5563;
  font-size: 0.85rem;
  z-index: 4;
  margin-bottom: 0;
}

/* About Page Styles
   ================================ */

/* About container - main wrapper for about page content */
.about-container {
  max-width: 1200px;
  margin: 5vh auto 0;
  padding: 40px 20px 0;
  position: relative;
  z-index: 10;
}

/* Sub-hero section - matches index subtitle appearance */
.about-sub-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 8vh;
  margin: 9px 0 120px;
}

.about-sub-hero > div {
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
}

.about-sub-hero p {
  margin: 0 auto;
  color: #e8edf3;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  max-width: 700px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
  text-align: center;
}

/* Team introduction section */
.team-intro {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  align-items: stretch;
}

.team-member-box {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.team-member-box img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
}

.team-member-box h3 {
  color: #345d87;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.team-member-box h5 {
  color: #345d87;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
}

.team-member-box .credentials {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.4;
}

.team-member-box .email {
  margin-top: 12px;
  color: #4b5563;
  font-size: 1rem;
}

.team-member-box .email a {
  color: inherit;
  text-decoration: none;
}

.team-member-box [data-content-id$="-CV"] {
  display: block;
  margin-top: 32px;
}

/* Projects section - simple and clean */
.projects-section {
  margin-top: 20px;
  margin-bottom: 120px;
}

.projects-section h2 {
  color: #ffffff;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
  text-align: center;
  margin: 0 0 40px;
}

/* Project rows - match team layout exactly */
.project-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: stretch;
}

.project-row:last-child {
  margin-bottom: 0;
}

/* Project boxes - match team member boxes exactly */
.project-box {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.project-box h5 {
  color: #345d87;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
}

/* Project and CV list styling */
.project-box ul,
.cv-box ul,
.team-member-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-box li.project-li,
.cv-box li.project-li,
.team-member-box li.project-li {
  display: grid;
  grid-template-columns: 100px 12px 1fr;
  gap: 6px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.98rem;
}

.project-box li.project-li:last-child,
.cv-box li.project-li:last-child,
.team-member-box li.project-li:last-child {
  border-bottom: none;
}

.project-box .project-li-year,
.cv-box .project-li-year,
.team-member-box .project-li-year {
  color: #4b5563;
  text-align: right;
  font-weight: 600;
  font-size: 0.95rem;
  padding-right: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-box .project-li-divider,
.cv-box .project-li-divider,
.team-member-box .project-li-divider {
  text-align: center;
  color: #4b5563;
  line-height: 1;
}

.project-box .project-li-text,
.cv-box .project-li-text,
.team-member-box .project-li-text {
  color: #1a1f28;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* General list styling for about container */
.about-container ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.about-container li {
  margin-bottom: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.28;
  font-size: 0.98rem;
}

.about-container li:last-child {
  border-bottom: none;
}

/* Header link styling for about page */
.about-page-header-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.about-page-header-link .visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer styling for about page */
.about-page-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 40px 20px;
  background-color: #f2f4f6;
  text-align: center;
  color: #4b5563;
  font-size: 0.85rem;
  z-index: 4;
  margin-bottom: 0;
}

/* Service Page Styles
   ================================ */

.service-page .top-header a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.service-page .top-header .visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.service-page .page-content {
  max-width: 100vw;
  overflow-x: hidden;
}

.service-page #hero-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.service-page .hero-overlay-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.service-page .service-content-wrapper {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-page .content-card {
  flex: 1;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
  padding: 40px 40px 100px 40px;
  text-align: left;
  position: relative;
}

.service-page .content-card h2 {
  margin-top: 0;
  color: #345d87;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-page .content-card > p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.service-page .content-card #content {
  color: #1a1f28;
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-page .back-link-wrapper {
  position: absolute;
  right: 24px;
  bottom: 18px;
  text-align: right;
}

.service-page .back-link {
  display: inline-block;
  padding: 10px 16px;
  background: #345d87;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.service-page .back-link:hover {
  background: #2c4d73;
  color: #fff;
}

/* Responsive Design
   ================================ */

/* Mobile (up to 600px) - Index and About pages */
@media (max-width: 600px) {
  /* About page mobile */
  .about-page .page-content {
    margin-top: 30vh !important;
  }

  /* Index page mobile - fixed logo and background */
  .top-header {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
  }

  .top-logo {
    width: 260px !important;
    max-width: 260px !important;
  }

  /* Hero background - stays completely fixed, fills full viewport */
  .hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  /* Hero overlay - extended height to show all service cards */
  .hero-overlay {
    position: relative;
    height: 235vh;
    z-index: 1;
    padding: 0;
    padding-top: 35vh;
    padding-bottom: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .hero-content {
    max-width: none;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Hero text - floats over background, scrolls up */
  .hero-title {
    font-size: 1.6rem !important;
    text-align: center;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  }

  /* Service cards - float over background, scroll up */
  .features {
    margin-top: 20px;
    width: 100%;
  }

  .features-inner {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0 10px;
  }

  .features-inner .card {
    min-height: auto;
    max-width: 100%;
    min-width: auto; 
    padding: 20px;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    position: relative;
  }

  .features-inner .card .card-intro h2 {
    font-size: 1.3rem;
    min-height: auto;
    text-align: left;
    margin-bottom: 12px;
  }

  .features-inner .card .card-intro p {
    font-size: 0.95rem;
    text-align: left;
  }

  .card-link-wrapper {
    position: absolute;
    right: 15px;
    bottom: 15px;
  }

  .card-link {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  /* Page content - starts after hero area */
  .page-content {
    margin-top: 0;
    position: relative;
    z-index: 1;
  }

  /* About and contact sections - solid background to cover hero */
  .about, .contact {
    background: white;
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    margin-top: 0;
  }

  /* About section with gray background on mobile too */
  .about {
    background: #f2f4f6;
  }

  /* Team section adjustments */
  .team {
    gap: 40px;
    width: auto;
    flex-direction: column;
    align-items: center;
  }

  .team-photo {
    width: 150px;
    height: 150px;
  }

  /* Service pages mobile - same behavior as index */
  .service-page .top-header {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
  }

  .service-page .top-logo {
    width: 260px !important;
    max-width: 260px !important;
  }

  /* Service page hero background - stays completely fixed */
  .service-page .hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  /* Service page hero overlay - scrollable content over fixed background */
  .service-page #hero-overlay {
    position: relative;
    height: auto;
    min-height: 100vh;
    z-index: 2;
    padding: 35vh 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    inset: auto;
  }

  .service-page .hero-overlay-content {
    max-width: none;
    width: 100%;
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
  }

  .service-page .service-content-wrapper {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }

  .service-page .content-card {
    max-width: 100%;
    margin: 0 0 40px 0;
    padding: 30px 20px 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 3;
  }

  .service-page .content-card h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .service-page .content-card > p {
    font-size: 1rem;
    text-align: left;
    line-height: 1.5;
  }

  .service-page .content-card #content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .service-page .back-link-wrapper {
    position: absolute;
    right: 20px;
    bottom: 20px;
  }

  .service-page .back-link {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* Service page contact section - solid background */
  .service-page .contact {
    background: white;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    margin-top: 0;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .top-header {
    top: 44px;
  }

  .top-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    padding: 0 30px;
  }

  .features-inner {
    padding: 0 30px;
  }

  .features-inner .card {
    min-height: 380px;
  }

  .about, .contact {
    padding: 80px 30px;
  }

  .service-page .content-card {
    padding: 40px 30px 90px 30px;
  }
}

/* About page responsive adjustments */
@media (max-width: 900px) {
  .about-container {
    margin-top: 80px;
    padding: 20px 15px;
    transform: none;
    margin-bottom: 0;
  }

  .about-sub-hero {
    height: auto;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 18px 0;
  }

  .team-intro,
  .project-row {
    flex-direction: column;
    gap: 20px;
  }

  .team-member-box {
    padding: 20px;
  }

  .team-member-box img {
    width: 150px;
    height: 150px;
  }

  .team-member-box h3 {
    font-size: 1.2rem;
  }

  .team-member-box .credentials {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 15px 2px 0;
  }

  .about-sub-hero {
    padding: 0 2px;
  }

  .about-container ul {
    padding-left: 0;
    margin-left: -2px;
    padding-right: 0;
    margin-right: 0;
  }

  .about-container li {
    padding-left: 2px;
    padding-right: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
  }

  .contact {
    padding: 40px 20px;
    text-align: center;
  }

  .about-page-footer {
    padding: 30px 20px;
    font-size: 0.8rem;
  }
}

/* Prevent horizontal scroll */
body.about-page {
  overflow-x: hidden;
}

.about-page .page-content {
  max-width: 100vw;
  overflow-x: hidden;
}