/* Color Variables */
:root {
  /* Primary colors */
  --color-primary: #f1c40f; /* Yellow */
  --color-primary-hover: #f39c12; /* Darker yellow */

  /* Secondary colors */
  --color-secondary: #333; /* Dark gray for text */
  --color-secondary-light: #f5e9dc; /* Light beige for benefit boxes */

  /* Neutral colors */
  --color-white: #fff;
  --color-black: #000;
  --color-gray-light: #f0f0f0;
  --color-gray: #ccc;
  --color-light-gray: #e6e6e6;
  --color-text: #333;

  /* Overlay colors */
  --color-overlay: rgba(0, 0, 0, 0.3);
  --color-shadow: rgba(0, 0, 0, 0.1);

  /* Footer colors */
  --color-footer-bg: #2b2522;
  --color-footer-cta: #f5e9dc;
  --color-footer-cta-button: #e67e22;
  --color-footer-cta-button-hover: #d35400;

  /* Section spacing */
  --section-padding: 5rem 1.5rem; /* Standardized padding for all sections */

  /* Background color */
  --color-background: #f9f9f9; /* Light gray background */
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
}

/* Top Navigation Bar */
.top-nav {
  background-color: var(--color-secondary);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  position: fixed;
  width: 100%;
  top: -40px; /* Initially hidden above the viewport */
  z-index: 101;
  transition: top 0.3s ease;
  height: 36px; /* Set a fixed height */
}

.top-nav.visible {
  top: 0; /* Show when scrolled */
}

.top-nav.extended {
  top: 0 !important; /* Always visible on non-index pages */
}

.top-nav .container {
  display: flex;
  justify-content: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-info a {
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.8;
}

.contact-info svg {
  color: var(--color-primary);
}

/* Hero container */
.hero-container {
  position: relative;
  min-height: 95vh;
  width: 100%;
  overflow: hidden;
}

/* Hero image carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
}

/* Carousel navigation dots */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-gray);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--color-white);
}

/* Overlay for better text readability */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
}

/* Navigation */
header {
  padding: 1rem;
  position: fixed;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease, top 0.3s ease;
  top: 0;
}

header.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
}

header.with-top-nav {
  top: 36px;
}

header.extended {
  top: 36px !important;
  background-color: var(--color-white) !important;
  box-shadow: 0 2px 10px var(--color-shadow) !important;
}

header.extended nav a {
  color: var(--color-secondary) !important;
}

header.extended .nav-cta {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

header nav a {
  color: var(--color-white);
}

header.scrolled nav a {
  color: var(--color-secondary);
}

header .nav-cta {
  background-color: var(--color-primary);
  color: var(--color-white);
}

header.scrolled .nav-cta {
  background-color: var(--color-primary);
  color: var(--color-white);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo styles */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 75px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo img:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
}

header.scrolled .mobile-menu-button {
  color: var(--color-secondary);
}

header.extended .mobile-menu-button {
  color: var(--color-secondary);
}

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

/* Added mobile navigation styles */
@media (max-width: 768px) {
  .top-nav {
    background-color: var(--color-secondary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .top-nav .container a {
    color: var(--color-white) !important;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 108px; /* Below both top-nav and header */
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 98; /* Lower than header to not block logo and menu button */
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    color: var(--color-secondary) !important;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: center;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Fixed mobile navigation to be fully extended on index page with proper background */
  .index-page .top-nav,
  .index-page header {
    position: fixed !important;
    top: 0 !important;
    background-color: var(--color-secondary) !important;
    box-shadow: 0 2px 10px var(--color-shadow) !important;
    z-index: 1000;
  }

  .index-page .top-nav {
    top: 0 !important;
  }

  .index-page header {
    top: 36px !important;
    background-color: var(--color-white) !important; /* Ensure white background */
  }

  .index-page header nav a {
    color: var(--color-secondary) !important;
  }

  .index-page header .nav-cta {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
  }

  .index-page .mobile-menu-button {
    color: var(--color-secondary) !important;
  }

  /* Mobile menu button styling when active */
  .mobile-menu-button.active svg {
    color: black !important;
  }

  /* Removed horizontal scrolling for werkzaamheid cards - will be handled by JavaScript scroll-based translation */
  .werkzaamheden-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
  }

  .werkzaamheid-card {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  /* Taller project cards on mobile */
  .project-card .project-image {
    height: 320px;
  }

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .company-info .info-content {
    flex-direction: column;
    gap: 2rem;
  }

  .process-content {
    flex-direction: column;
    gap: 2rem;
  }

  /* Fixed process-image on mobile like project detail pages */
  .process-image {
    max-width: 100%;
    width: 100%;
    height: 250px;
    position: relative;
  }

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

/* Hero content */
main {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0;
  padding-top: 10rem;
  padding-left: 4rem;
  max-width: 36rem;
  color: var(--color-white);
}

/* Standardized heading sizes */
h1,
.company-info h2,
.projects-section h2,
.work-process h2,
.werkzaamheden-section h2,
.footer-cta h2,
.service-detail h3,
.contact-info-section h2,
.contact-form-section h2,
.detailed-services h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.company-info {
  margin-top: 110px;
}

p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 32rem;
}

/* Buttons */
.cta-button {
  background-color: var(--color-white);
  color: var(--color-black);
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--color-gray-light);
}

.nav-cta {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

/* Section divider */
.section-divider {
  height: 1px;
  background-color: var(--color-gray);
  opacity: 0.3;
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
}

.section-divider1 {
  height: 1px;
  background-color: var(--color-gray);
  opacity: 0.3;
  margin: 0 auto;
  margin-bottom: 3rem;
  max-width: 1200px;
}

/* Standardized section padding */
.company-info,
.projects-section,
.work-process,
.werkzaamheden-section,
.contact-form-section {
  background-color: var(--color-white);
  color: var(--color-black);
  padding: var(--section-padding);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.info-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.info-text {
  flex: 1;
  min-width: 300px;
}

.process-margin {
  margin-top: -7rem;
}

.benefits {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  justify-content: center;
}

.benefits.visible {
  opacity: 1;
  transform: translateX(0);
}

.company-description {
  color: var(--color-secondary);
  margin-bottom: 2rem;
  font-weight: normal;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-secondary-light);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.benefits.visible .benefit-item {
  opacity: 1;
  transform: translateX(0);
}

.benefits.visible .benefit-item:nth-child(1) {
  transition-delay: 0.1s;
}

.benefits.visible .benefit-item:nth-child(2) {
  transition-delay: 0.2s;
}

.benefits.visible .benefit-item:nth-child(3) {
  transition-delay: 0.3s;
}

.benefits.visible .benefit-item:nth-child(4) {
  transition-delay: 0.4s;
}

.benefit-item p {
  margin-bottom: 0;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.ctaofferte {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

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


.orange:hover {
  background-color: var(--color-primary-hover);
}

/* Projects Section */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  margin-top: 6rem;
  position: relative;
  z-index: 1;
}

.projects-text {
  max-width: 60%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.werkzaamheid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--color-shadow);
}

.project-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-text {
  padding: 1.5rem;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.project-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.project-text p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-overlay h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.projects-description {
  margin-top: 2rem;
  text-align: center;
}

.projects-description p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.projects-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Added styling for service details section with alternating layout */
.service-detail {
  margin-bottom: 4rem;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-detail.reverse .service-content {
  direction: rtl;
}

.service-detail.reverse .service-text,
.service-detail.reverse .service-image {
  direction: ltr;
}

.service-text h3 {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.service-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.service-text ul {
  list-style: none;
  padding: 0;
}

.service-text ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
}

.service-text ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

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

/* Work Process Section */
.process-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.process-text {
  flex: 1;
  min-width: 300px;
}

.process-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: 350px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--color-shadow);
}

.workshop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.process-description {
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary) 100%);
  opacity: 1;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  z-index: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  transition: none;
  position: relative;
  z-index: 1;
}

.process-step:hover {
  transform: none;
  box-shadow: none;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-icon svg {
  color: var(--color-white);
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.step-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.process-cta {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.process-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive styles for Work Process section */
@media (max-width: 992px) {
  .process-steps {
    flex-wrap: wrap;
  }

  .process-step {
    min-width: calc(50% - 1rem);
  }

  .process-image {
    order: -1;
    height: 300px;
  }

  .process-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .process-cta .cta-button {
    width: 100%;
    max-width: 300px;
  }

  .werkzaamheden-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service images below text on mobile */
  .service-content {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse .service-content {
    direction: ltr;
  }

  .service-image {
    order: 2;
  }

  .service-text {
    order: 1;
  }
}

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

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .company-info .info-content {
    flex-direction: column;
    gap: 2rem;
  }

  .process-content {
    flex-direction: column;
    gap: 2rem;
  }

  .process-image {
    max-width: 100%;
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .process-step {
    min-width: 100%;
  }

  .work-process {
    padding: 3rem 1rem;
  }

  .process-image {
    height: 250px;
  }

  .company-info,
  .projects-section,
  .work-process,
  .werkzaamheden-section,
  .contact-form-section {
    padding: 3rem 1rem;
  }

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

  .footer-logo img {
  margin-left: -300px;
  }
}

/* Werkzaamheden Section */
.werkzaamheden-section {
  background-color: var(--color-white);
  color: var(--color-black);
  padding: var(--section-padding);
}

.werkzaamheden-header {
  margin-bottom: 3rem;
  position: relative;
  margin-top: 7rem;
  z-index: 1;
}

.werkzaamheden-text {
  max-width: 60%;
}

.werkzaamheden-section p {
  color: var(--color-secondary);
  margin-bottom: 0;
}

.werkzaamheden-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.werkzaamheid-card {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 10px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  transform: translateX(-50px);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.werkzaamheden-grid.visible .werkzaamheid-card {
  opacity: 1;
  transform: translateX(0);
}

.werkzaamheden-grid.visible .werkzaamheid-card:nth-child(1) {
  transition-delay: 0.1s;
}

.werkzaamheden-grid.visible .werkzaamheid-card:nth-child(2) {
  transition-delay: 0.3s;
}

.werkzaamheden-grid.visible .werkzaamheid-card:nth-child(3) {
  transition-delay: 0.5s;
}

.werkzaamheden-grid.visible .werkzaamheid-card:nth-child(4) {
  transition-delay: 0.7s;
}

.werkzaamheid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--color-shadow);
}

.werkzaamheid-icon {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.werkzaamheid-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.werkzaamheid-card p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.werkzaamheid-card .card-button {
  margin-top: auto;
  align-self: center;
}

/* Footer Styles */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  padding: 4rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 1rem;
}

.footer ul li a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer ul li a:hover {
  opacity: 0.8;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

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

/* Animation for project cards */
.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-card:nth-child(5) {
  animation-delay: 0.5s;
}

.project-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Hover effects for buttons */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 0;
}

.cta-button:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Checkmark styling */
.checkmark {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-hover);
}

/* Form styling for contact and quote forms */
.contact-details {
  margin-top: 2rem;
}

.contact-item-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon svg {
  color: white;
  width: 24px;
  height: 24px;
}

.contact-info-text h3 {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.contact-info-text p {
  margin: 0;
  color: var(--color-text);
}

.contact-info-text p a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info-text p a:hover {
  text-decoration: underline;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon svg {
  color: white;
  width: 24px;
  height: 24px;
}

.contact-info-text h3 {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.contact-info-text p {
  margin: 0;
  color: var(--color-text);
}

.contact-info-text p a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info-text p a:hover {
  text-decoration: underline;
}

.contact-form {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

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

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.quote-form-centered {
  max-width: 800px;
  margin: 0 auto;
}

.quote-form-centered form {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px var(--color-shadow);
}

.quote-form-centered .form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.quote-form-centered .form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.quote-form-centered .form-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

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

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

.quote-form-centered label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-secondary);
}

.quote-form-centered input,
.quote-form-centered select,
.quote-form-centered textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.quote-form-centered input:focus,
.quote-form-centered select:focus,
.quote-form-centered textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-value {
  color: var(--color-text) !important;
}

.contact-value a {
  color: var(--color-text) !important;
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--color-primary) !important;
  text-decoration: underline;
}

.contact-form-container {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.contact-form-container h2 {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.contact-form-container .company-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  color: var(--color-text);
}

/* Contact Layout Styles */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-info-section,
.contact-form-section {
  display: flex;
  flex-direction: column;
}

.contact-form-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form .form-group:last-of-type {
  flex: 1;
}

.contact-form textarea {
  flex: 1;
  min-height: 120px;
  resize: vertical;
}

/* Responsive Contact Layout for Mobile */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
  }
}

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

  .werkzaamheid-card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }
}

/* Updated project card hover to affect entire card on index page only */
.projects-section .project-card:hover .project-text {
  background: transparent;
  color: inherit;
}

.projects-section .project-card:hover .project-text h4 {
  color: inherit;
}

.projects-section .project-card:hover .project-text p {
  color: inherit;
}

.index-page .projects-section .project-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.index-page .project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-page .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.index-page .project-card .project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

.index-page .project-card .project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.index-page .project-card:hover .project-overlay {
  transform: translateY(0);
}

.index-page .project-card .project-overlay h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* Project titles visible on images in projects page */
.projects-page .project-image::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Added hover effect to project cards on projects page */
.projects-page .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Project Detail Carousel */
.project-carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 80px;
}

.project-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
}

.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slide.active {
  opacity: 1;
}

/* Added border to project carousel images */
.project-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:hover {
  background-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
  color: var(--color-secondary);
}

.carousel-arrow:hover svg {
  color: var(--color-white);
}

.carousel-arrow-prev {
  left: 0;
}

.carousel-arrow-next {
  right: 0;
}

.project-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.project-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-gray);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-carousel-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

.project-carousel-dot:hover {
  background-color: var(--color-primary-hover);
}

.info-content {
  margin-top: -5.5rem;
}

.info-margin {
  margin-top: 5rem;
}

.projects-margin {
  margin-top: -7.5rem;
}

.werkzaamheden-margin {
  margin-top: -7.5rem;
}

/* Responsive adjustments for project carousel */
@media (max-width: 768px) {
  .project-carousel-container {
    padding: 0 60px;
  }

  .project-carousel {
    height: 350px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .project-carousel-container {
    padding: 0 50px;
  }

  .project-carousel {
    height: 250px;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
  }
}

.page-header.section-padding {
  margin-top: 108px;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Ensure all containers respect viewport width */
.hero-container,
.company-info,
.projects-section,
.work-process,
.werkzaamheden-section,
.contact-form-section,
.footer {
  max-width: 100%;
  overflow-x: hidden;
}

.verbouwingen-padding {
  margin-top: 50px;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}
