html {
  scroll-behavior: smooth;
}
*, *::before, *::after{
  box-sizing: border-box;
}

*{
  margin: 0;
  padding: 0;
}

ul[role='list'], ol[role='list']{
  list-style: none;
}

html:focus-within{
  scroll-behavior: smooth;
}

.process {
  position: relative;
}

.process:before, .services:before, .about:before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--background);
  transform: skewY(-1.5deg);
  z-index: 1;
}

/* Add the reversed white triangle */
.process::after, .services:after {
  content: '';
  bottom: -50px; /* Adjust this value to control how much the triangle extends */
  left: 0;
  right: 0;
  height: 100px; /* Adjust this value to control the triangle height */
  background: var(--background);
  transform: skewY(-1.5deg); /* Positive value for reverse angle */
  z-index: 1;
}

.faq-section {
  margin-top: 8rem;
}

.faq-section::after {
  content: '';
  bottom: -50px; /* Adjust this value to control how much the triangle extends */
  left: 0;
  right: 0;
  height: 100px; /* Adjust this value to control the triangle height */
  background: #f8f9fa;
  transform: skewY(-1.5deg); /* Positive value for reverse angle */
  z-index: 1;
}

.faq-section:before {
  content: '';
  position: fixed;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: #f8f9fa;
  transform: skewY(-1.5deg);
  z-index: 1;
}

/* Hamburger Menu Fixes */
.hamburger {
  display: none;
  padding: 1rem;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1;
  margin-left: auto;
}

.hamburger-box {
  width: 32px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  top: 8px;
}

.hamburger.active .hamburger-inner {
  transform: rotate(45deg);
  background: var(--background);
}

.hamburger.active .hamburger-inner::before {
  transform: translateY(8px) rotate(-45deg);
  opacity: 0;
}

.hamburger.active .hamburger-inner::after {
  transform: translateY(-8px) rotate(45deg);
  background: var(--background);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 320px;
  height: 100vh;
  background: var(--primary);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  visibility: hidden;
}

.mobile-nav.active {
  right: 0;
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.close-menu {
  background: none;
  border: none;
  color: var(--background);
  padding: 0.5rem;
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  color: var(--background);
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.nav-link .material-icons {
  color: var(--accent);
  min-width: 32px;
}

/* Overlay Fixes */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links:not(.mobile-nav .nav-links) {
    display: none;
  }

  .main-nav .nav-cta {
    display: none;
  }

  .mobile-nav .logo-header {
    width: 140px;
  }
}
/* Enhanced Top Bar Styles */
.top-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--background);
  padding: calc(var(--spacing-unit) * 1.5) 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 2);
}

.emergency {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  font-weight: 500;
}

.emergency a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit));
}

.emergency a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.emergency a:hover {
  color: var(--background);
  transform: translateX(3px);
}

.emergency-call {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--accent);
  color: var(--background);
  border-radius: 8px;
  margin-top: 2rem;
  text-decoration: none;
}

.emergency-call .material-icons {
  color: var(--background);
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.contact-btn {
  background: var(--accent);
  color: var(--background);
  text-decoration: none;
  font-weight: 500;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 3);
  border-radius: 2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit));
}

.contact-btn:hover {
  background: var(--background);
  color: var(--accent);
  transform: translateY(-2px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.mobile-nav-footer {
  .material-left {
    margin-left: -340px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: calc(var(--spacing-unit)* 1) 0!important;
  }
  .top-bar .container {
    justify-content: center;
    text-align: center;
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  }

  .top-bar {
    padding: 0;
  }

  .top-bar-right {
    display: none;
    width: 100%;
    justify-content: center;
    margin-top: calc(var(--spacing-unit));
  }

  .emergency {
    width: 100%;
    justify-content: center;
    .material-left {
      margin-left: -370px;
    }
  }
}

@media (max-width: 405px) {
  .emergency {
    justify-content: space-between;
    font-size: 0; /* Hide all text */
  }

  .emergency span.material-icons {
    display: none;
    font-size: 1rem; /* Restore icon size */
    margin-right: 0.5rem; /* Adjust spacing */
  }

  .emergency a {
    font-size: 1rem; /* Restore link size */
    display: inline-block; /* Ensure the link is inline */
    margin-left: 0!important;
  }

  .emergency a::before {
    margin-right: 0.5rem;
  }

  .emergency::after {
    content: "24/7"; /* Add "24/7" text */
    font-size: 1rem; /* Set font size */
    margin-left: 0.5rem; /* Add spacing */
  }
}

.contact-btn {
  background: var(--accent);
  color: var(--background) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.contact-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.main-nav {
  padding: 1rem 0;
}

/* Modern Burger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
  width: 48px;
  height: 48px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  position: relative;
  transition: all 0.3s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(6px);
}

.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  transform: rotate(45deg);
}

.menu-toggle.active span::after {
  transform: rotate(-45deg);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Mobile Menu Overlay Update */
.mobile-menu-overlay {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
}

.nav-links a{
  white-space: nowrap;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    padding: 2rem !important;
  }
}

img, picture, svg, video, canvas{
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

li::marker {
  display: none;
}

ul {
  list-style-type: none;
}

li {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

input, button, textarea, select{
  font: inherit;
}

@media (prefers-reduced-motion: reduce){
  html:focus-within {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition: none;
  }
}

body, html{
  height: 100%;
  scroll-behavior: smooth;
}

/* Add to styles.css */
.nav-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 6);
  align-items: center;
}

@media (max-width: 768px) {
  .nav-links {
    display: flex !important; /* Override any previous display:none */
    right: -100%;
    top: var(--header-height, 80px);
    height: calc(100vh - var(--header-height, 80px));
    padding-top: 2rem;
  }

  body {
    --header-height: 80px; /* Adjust based on your header height */
  }
}

/* Mobile Header Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
}

.menu-toggle svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: var(--background);
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

/* Enhanced Hero Responsiveness */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .hero-image {
    margin-top: 2rem;
    order: -1;
  }

  .number {
    font-size: 2rem;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Enhanced Process Timeline */
.process {
  background: var(--light-gray);
  padding: calc(var(--spacing-unit) * 16) 0;
}

/* Enhanced Expertise Cards */
.expertise-card {
  padding: calc(var(--spacing-unit) * 8);
  background: var(--background);
  border: 1px solid rgba(200,164,92,0.1);
}

.material-left {
  margin-left: -290px
}

.expertise-card .material-icons {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.feature-list {
  list-style: none;
  margin: calc(var(--spacing-unit) * 4) 1em 0;
}

.feature-list li {
  padding: calc(var(--spacing-unit) * 2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.expertise-card:hover .card-number {
  color: rgba(0,0,0,0.1);
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)), url('/img/haus.webp');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.hero-cta {
  background: var(--accent);
  color: var(--background);
  margin-top: calc(var(--spacing-unit) * 4);
}

.hero-cta:hover {
  background: var(--primary);
  color: var(--background);
}
.contact {
  background: #f8f8f8;
  padding: 5rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 1.75rem;
  color: #333;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 1rem;
}

.contact-info h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #dc611d;
}

.contact-info p {
  color: #555;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.contact-details li:last-child {
  border-bottom: none;
}

.icon-container {
  background: #f8f8f8;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.contact-details .material-icons {
  color: #dc611d;
  font-size: 20px;
}

.contact-details a {
  color: #333;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #dc611d;
}

.emergency-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 6px;
  margin-top: auto;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.emergency-button:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.emergency-button .material-icons {
  margin-right: 0.75rem;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #dc611d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 97, 29, 0.1);
}

.submit-button {
  width: 100%;
  background: #dc611d;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: #c45416;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky header styles */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: var(--background);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

main {
  margin-top: 120px
}

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

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Add animations to various elements */
.hero-content {
  animation: fadeIn 0.8s ease-out;
}

.service-card {
  animation: scaleIn 0.6s ease-out;
  animation-fill-mode: both;
}

.expertise-card {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.expertise-card p {
  margin-top: 0.5em
}

/* Stagger service card animations */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }
.services-grid .service-card:nth-child(7) { animation-delay: 0.7s; }
.services-grid .service-card:nth-child(8) { animation-delay: 0.8s; }

/* Smooth transitions */
.nav-links a,
.service-card,
.project-card,
.button,
.footer a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.nav-links a:hover {
  color: var(--accent);
}

.project-card:hover {
  transform: translateY(-5px);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Add intersection observer animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --primary: #1a1a1a;
  --secondary: #2a2a2a;
  --accent: #dc611d;
  --background: #ffffff;
  --text: #333333;
  --light-gray: #f8f8f8;
  --spacing-unit: 8px;
  --transition: all 0.3s ease;
}

/* Improved button styles */
.button {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  background: var(--accent);
  color: var(--background);
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Improved card shadows */
.service-card,
.project-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

/* Improved spacing */
section {
  padding: calc(var(--spacing-unit) * 16) 0;
}

/* Better typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* Improved mobile navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background: var(--background);
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 8);
    transition: var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 4);
}

.contact-btn {
  color: var(--background);
  text-decoration: none;
  font-weight: 500;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.contact-btn:hover {
  background: var(--accent);
  color: var(--background);
}

.emergency a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: calc(var(--spacing-unit) * 2);
}

/* Main Navigation */
.main-nav {
  background: var(--background);
  padding: calc(var(--spacing-unit) * 2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--spacing-unit) * 8);
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 6);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--background) !important;
  border-radius: 2px;
  margin-left: auto;
  padding: calc(var(--spacing-unit)* 2) calc(var(--spacing-unit)* 4);
}


.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 8);
  align-items: center;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
}

.stat {
  text-align: center;
  padding: 1rem;
}

.number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.label {
  font-size: 1rem;
  color: white;
  opacity: 0.9;
}

/* Enhanced Hero Stats Styling */
@media (max-width: 768px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
  }

  .stat {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .label {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
    text-align: left;
    padding-right: 1rem;
  }

  .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: left;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .stat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .button.hero-cta {
    text-align: center;
    width: 100%;
  }
}
.about {
  padding: calc(var(--spacing-unit) * 20) 0;
  background: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 8);
  align-items: center;
  margin-top: calc(var(--spacing-unit) * 8);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: var(--primary);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 4);
  margin-top: calc(var(--spacing-unit) * 6);
}

.value-card {
  background: var(--background);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card .material-icons {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.value-card h4 {
  font-size: 1.2rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--primary);
}

.value-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

  .value-cards {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
  }

  .about-image {
    order: -1;
    margin-bottom: calc(var(--spacing-unit) * 4);
  }

  .about-content h3 {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
  }
}

/* Expertise Section */
.expertise {
  padding: calc(var(--spacing-unit) * 20) 0;
}

.section-tag {
  display: inline-block;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  background: var(--accent);
  color: var(--background);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-header h2 {
  margin-bottom: calc(var(--spacing-unit)* 8)
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
  margin-top: calc(var(--spacing-unit) * 8);
}

.expertise-card {
  background: var(--light-gray);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.card-number {
  position: absolute;
  top: calc(var(--spacing-unit) * 2);
  right: calc(var(--spacing-unit) * 2);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Services Section */
.services {
  padding: calc(var(--spacing-unit) * 20) 0;
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
  margin-top: calc(var(--spacing-unit) * 8);
}

.service-card {
  /* Add these properties to existing service-card styles */
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Set a minimum height to make cards uniform */
  position: relative;
  padding-bottom: 80px; /* Make space for the button */
}

.service-cta {
  position: absolute;
  bottom: 30px; /* Distance from bottom */
  left: calc(var(--spacing-unit) * 6); /* Match padding of card */
  right: calc(var(--spacing-unit) * 6); /* Match padding of card */
  width: calc(100% - (var(--spacing-unit) * 12)); /* Account for padding */
}

.service-card {
  background: var(--background);
  padding: calc(var(--spacing-unit) * 6);
  padding-bottom: calc(var(--spacing-unit) * 12);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--primary);
}

.service-card p {
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: rgba(0,0,0,0.7);
}

.service-features {
  list-style: none;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.service-features li {
  padding: calc(var(--spacing-unit)) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: var(--text);
  display: flex;
  align-items: center;
}

.service-features li::before {
  content: '✓';
  color: var(--accent);
  margin-right: calc(var(--spacing-unit) * 2);
}

.service-cta {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  background: var(--primary);
  color: var(--background);
  text-decoration: none;
  text-align: center;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.service-cta:hover {
  background: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-cta {
    margin-top: 2.5rem;
    position: relative;
  }
  .hero-content {
    h1 {
      font-size: 2.5rem;
    }
    .hero-subtitle {
      font-size: 1.1rem;
    }
  }
  .container {
    padding: 0 calc(var(--spacing-unit) * 1);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: calc(var(--spacing-unit) * 4);
  }
}

/* Material Icons Styling */
.service-icon .material-icons {
  font-size: 48px;
  color: var(--accent);
}

/* Projects Section */
.projects {
  padding: calc(var(--spacing-unit) * 20) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
  margin-top: calc(var(--spacing-unit) * 8);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: calc(var(--spacing-unit) * 4);
  background: linear-gradient(transparent, rgba(0,0,0,1));
  color: white;
}

/* Enhanced Process Timeline */
.process-timeline {
  display: grid;
  gap: 2rem;
  position: relative;
  padding: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1440px;
  margin: 0 auto;
}

/* Connecting line between timeline items */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #DC611DFF 0%, #DC611DFF 100%);
  z-index: 0;
  opacity: 1;
}

.timeline-item {
  position: relative;
  text-align: center;
  padding: 2rem;
  background: var(--background);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  border: 4px solid var(--background);
  box-shadow: 0 0 0 4px var(--accent);
  transition: all 0.3s ease;
}

.timeline-icon .material-icons {
  font-size: 32px;
  color: white;
}

.timeline-item h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.timeline-item p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Progressive Enhancement for different screen sizes */
@media (min-width: 1200px) {
  .process {
    padding: calc(var(--spacing-unit) * 16) calc(var(--spacing-unit) * 1);
  }

  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline-item:hover {
    transform: translateY(-10px);
  }

  .timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(360deg);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }


  .process-timeline::before {
    display: none;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: center;
    gap: 1.5rem;
  }

  .timeline-icon {
    margin: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .process {
    padding-left: calc(var(--spacing-unit) * 2);
  }
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 1rem;
  }

  .process-timeline::before {
    opacity: 1;
    top: 85px;
    left: 24px;
    width: 4px;
    height: 75%;
    background: linear-gradient(180deg, rgba(220, 97, 29, 0.51) 0%, #DC611DFF 100%);
  }

  .timeline-item {
    text-align: left;
    padding-left: 4rem;
    margin-left: 20px;
  }

  .timeline-icon {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .timeline-icon .material-icons {
    font-size: 24px;
  }
}

/* Fluid Typography */
@media (max-width: 480px) {
  .timeline-item h3 {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .timeline-item p {
    font-size: clamp(0.875rem, 3vw, 0.95rem);
  }

  .timeline-item {
    padding: 1.5rem;
    padding-left: 3.5rem;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
    left: -35px;
  }

  .timeline-icon .material-icons {
    font-size: 20px;
  }
}

/* Ensure smooth transitions */
.timeline-item,
.timeline-icon,
.timeline-icon .material-icons {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation for items entering viewport */
@media (prefers-reduced-motion: no-preference) {
  .timeline-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .timeline-item:nth-child(1) { animation-delay: 0.1s; }
  .timeline-item:nth-child(2) { animation-delay: 0.2s; }
  .timeline-item:nth-child(3) { animation-delay: 0.3s; }
  .timeline-item:nth-child(4) { animation-delay: 0.4s; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }
}

/* Footer Styles */
.footer {
  background: var(--primary);
  color: var(--background);
  padding: calc(var(--spacing-unit) * 12) 0 calc(var(--spacing-unit) * 4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 8);
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.footer h4 {
  color: var(--accent);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-info p {
  margin: calc(var(--spacing-unit) * 3) 0;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

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

.footer a:hover {
  color: var(--accent);
}

.footer-contact-form input {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 2);
  border: none;
  border-radius: 2px;
}

.footer-contact-form button {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.5);
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: var(--background);
  cursor: pointer;
  transition: background 0.3s ease;
}

.social-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: calc(var(--spacing-unit) * 4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 2);
}

.footer-bottom-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
}

.logo-header {
  height: auto;
  width: 170px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* FAQ Section Styles */
.faq-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.section-header {
  text-align: left;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #dc611d;
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  max-width: 800px;
  line-height: 1.3;
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Hide the checkbox but use it for state */
.accordion-input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.accordion-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  padding-right: 1rem;
  margin: 0;
}

.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Creating the plus icon with CSS */
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #dc611d;
  transition: transform 0.3s ease;
}

/* Horizontal line */
.accordion-icon::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 2px;
}

/* Vertical line */
.accordion-icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}

/* Content area, initially collapsed */
.accordion-content {
  background-color: white;
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.accordion-content p {
  margin: 0;
  padding: 1.5rem 0;
  color: #555;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

/* When the checkbox is checked, expand the content */
.accordion-input:checked ~ .accordion-content,
.accordion-item.active .accordion-content {
  max-height: 500px; /* A large enough value */
}

.accordion-input:checked ~ .accordion-content p,
.accordion-item.active .accordion-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Rotate the plus icon to make a minus icon */
.accordion-input:checked ~ .accordion-header .accordion-icon::after,
.accordion-item.active .accordion-icon::after {
  transform: rotate(90deg);
}

/* Focus styles for accessibility */
.accordion-input:focus + .accordion-header {
  outline-offset: -2px;
}

/* Active/hover state */
.accordion-header:active,
.accordion-input:checked ~ .accordion-header,
.accordion-item.active .accordion-header {
  background-color: rgba(220, 97, 29, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-section {
    padding: 4rem 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .accordion-title {
    font-size: 1.05rem;
  }

  .accordion-header {
    padding: 1.25rem;
  }

  .accordion-content {
    padding: 0 1.25rem;
  }

  .accordion-content p {
    padding: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .accordion-title {
    font-size: 1rem;
  }

  .accordion-header {
    padding: 1rem;
  }

  .accordion-content {
    padding: 0 1rem;
  }

  .accordion-content p {
    padding: 1rem 0;
  }

  .accordion-icon {
    width: 20px;
    height: 20px;
  }

  .accordion-icon::before {
    top: 9px;
    width: 20px;
  }

  .accordion-icon::after {
    left: 9px;
    height: 20px;
  }
}

/* Vienna Districts Styles */
.service-areas {
  padding: calc(var(--spacing-unit) * 16) 0;
  background: var(--background);
  position: relative;
}

.service-areas:before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--light-gray);
  transform: skewY(-1.5deg);
  z-index: 1;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.district-group {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.district-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.district-group h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.district-group h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.district-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text);
  transition: transform 0.3s ease;
}

.district-list li:last-child {
  border-bottom: none;
}

.district-list li:hover {
  transform: translateX(5px);
  color: var(--accent);
}

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

  .district-group {
    padding: 1.5rem;
  }
}

/* Reimagined Value Pillars Section */
.value-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--background);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.value-pillar:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.value-icon {
  background: var(--accent);
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon .material-icons {
  color: white;
  font-size: 24px;
}

.value-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.value-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .value-pillar {
    padding: 1.25rem;
  }

  .value-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .value-icon .material-icons {
    font-size: 20px;
  }

  .value-content h4 {
    font-size: 1rem;
  }

  .value-content p {
    font-size: 0.9rem;
  }
}

/* Enhanced Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

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

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  color: white;
  transition: all 0.3s ease;
}

.project-card:hover .project-content {
  padding-bottom: 3rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.project-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
}

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

  .project-card {
    height: 280px;
  }
}

/* Enhanced Vienna Districts Section for SEO */
.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.district-group {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.district-group:hover {
  background: white;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.district-group h3 {
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.district-group h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

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

.district-list li {
  padding: 0.625rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  color: var(--text);
  font-size: 0.95rem;
}

.district-list li:last-child {
  border-bottom: none;
}

/* Service Image Styles */
.service-image {
  width: calc(100% + 4rem);
  height: 180px;
  margin: -2rem -2rem 1.5rem -2rem;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Overlay for service images */
.service-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  pointer-events: none;
}

.service-card {
  background: var(--background);
  padding: 0 2rem 5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Enhanced Service Card Styles */
.service-card {
  background: var(--background);
  padding: 0 2rem 5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card .service-icon {
  margin-top: 0;
}

.highlighted-card .service-image::before {
  content: 'Empfohlen';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 30px;
  z-index: 2;
}

/* Service Card Layout */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2rem;
}

/* Services Section Styling */
.services {
  padding: 5rem 0;
  background: var(--light-gray);
  position: relative;
}

.services::before,
.services::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--light-gray);
  z-index: 1;
}

.services::before {
  top: -40px;
  transform: skewY(-1.5deg);
}

.services::after {
  bottom: -40px;
  transform: skewY(-1.5deg);
}

.section-intro {
  max-width: 800px;
  text-align: left;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.service-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 2rem;
  padding-bottom: 4.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 450px;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #dc611d 30%, #f39c63 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.service-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.highlighted-card {
  border: 2px solid #dc611d;
  transform: scale(1.02);
}

.highlighted-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-icon {
  margin-bottom: 1.5rem;
  background: rgba(220, 97, 29, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-icon .material-icons {
  font-size: 32px;
  color: #dc611d;
}

.service-card:hover .service-icon {
  background: #dc611d;
}

.service-card:hover .service-icon .material-icons {
  color: white;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #222;
  line-height: 1.3;
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: center;
  color: #444;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-check {
  color: #dc611d;
  font-weight: bold;
  margin-right: 0.8rem;
}

.service-cta {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: auto;
}

.service-cta:hover {
  background: #dc611d;
  transform: translateY(-3px);
}

/* Services CTA Box */
.services-cta-box {
  margin-top: 4rem;
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.services-cta-box h3 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 1rem;
}

.services-cta-box p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.emergency-cta,
.quote-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.emergency-cta {
  background: #dc611d;
  color: white;
}

.quote-cta {
  background: #1a1a1a;
  color: white;
}

.emergency-cta:hover,
.quote-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.emergency-cta:hover {
  background: #c45416;
}

.quote-cta:hover {
  background: #333;
}

/* Project Styles */
.project-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: white;
  z-index: 10000; /* Very high z-index to ensure it's above all elements */
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.project-modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  background: white;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: #f5f5f5;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 170px);
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-thumbnails {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.thumbnail.active {
  border-color: var(--accent);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.detail-section h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

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

.results-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid #f5f5f5;
}

.results-list li:last-child {
  border-bottom: none;
}

.results-list li:before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
  text-align: center;
  background: white;
}

.project-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-cta:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 9999; /* One less than the modal to sit behind it */
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: block;
  opacity: 1;
}

/* Fix for service-areas:before issue */
.service-areas:before {
  z-index: 1; /* Ensure this is lower than our modal */
}

/* Make sure any other elements with high z-indexes are handled */
.header, .main-nav, .top-bar {
  z-index: 1000; /* Lower than our modal */
}

/* Fix for any other potential triangles or overlays */
.process:before, .process:after,
.services:before, .services:after,
.about:before, .about:after,
.faq-section:before, .faq-section:after {
  z-index: 1; /* Ensure all these are lower than our modal */
}

/* Enhanced Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

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

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2rem 3.5rem 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  color: white;
  transition: all 0.3s ease;
}

.project-card:hover .project-content {
  padding-bottom: 3.5rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.project-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
}

.view-project {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
}

.project-card:hover .view-project {
  bottom: 1rem;
  opacity: 1;
}

.view-project:hover {
  background: var(--accent);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .modal-body {
    grid-template-columns: 1fr;
    max-height: calc(90vh - 130px);
    padding: 1.5rem;
  }

  .main-image {
    height: 200px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    height: 280px;
  }

  .modal-header h3 {
    font-size: 1.5rem;
  }

  .detail-section h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .solutions-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .image-container {
    min-height: 350px;
  }

  .service-image {
    margin-bottom: 1rem;
  }

  .service-image {
    height: 300px;
  }

  .services-grid {
    gap: 2rem;
  }

  .services {
    padding: 4rem 0;
  }

  .section-intro {
    font-size: 1rem;
    padding: 0 1rem;
  }

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

  .service-card {
    padding: 1.5rem;
    min-height: unset;
  }

  .highlighted-card {
    transform: none;
  }

  .highlighted-card:hover {
    transform: translateY(-8px);
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon .material-icons {
    font-size: 28px;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .services-cta-box {
    padding: 1.75rem;
    margin-top: 3rem;
  }

  .services-cta-box h3 {
    font-size: 1.4rem;
  }

  .services-cta-box p {
    font-size: 1rem;
  }

  .emergency-cta,
  .quote-cta {
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .service-image {
    height: 100%;
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  }

  .service-card {
    padding: 0 1.5rem 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .service-features {
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .service-image {
    height: 180px;
  }

  .service-card {
    padding: 0 1.5rem 5rem 1.5rem;
  }

  .service-image {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  }
}
