/* Index Page - spherebox Specifieke Styling */
/* Critical CSS - Already inlined in HTML */

/* Hero Slideshow - Images loaded dynamically from Strapi */

/* GPU acceleration */
.hero-slide {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* HERO SECTION - INDEX SPECIFIC */
.hero {
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.4));
  z-index: 1;
}

/* Hero Slideshow Background Images - Loaded dynamically from Strapi */

/* HERO CONTENT - INDEX SPECIFIC */
.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO LOGO SVG STYLING */
.hero-logo {
  max-width: 100%;
  height: auto;
  width: clamp(300px, 60vw, 600px);
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.3));
  transition: all 0.6s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.4));
}

/* REMOVE OLD TEXT STYLING - NOT NEEDED ANYMORE */
.hero-content h1,
.hero-subtitle,
.hero-description {
  display: none;
}

/* FEATURED SECTION - PREMIUM LUXE DESIGN */
.featured {
  padding: clamp(8rem, 12vw, 12rem) 0;
  background: var(--ivory-white);
  position: relative;
  overflow: hidden;
}

/* Elegante decoratieve lijn boven sectie */
.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
}

/* Subtiele achtergrond patroon */
.featured::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(201, 166, 107, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(184, 167, 140, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.featured .container {
  position: relative;
  z-index: 1;
}

.featured .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--deep-black);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Elegante decoratie onder titel */
.featured .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--antique-gold);
  margin: 1.5rem auto 0;
}

.featured .section-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--deep-black);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 4rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-image {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Luxe gouden rand accent */
.featured-image::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 166, 107, 0.3), transparent 50%, rgba(201, 166, 107, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.featured-image:hover img {
  transform: scale(1.04);
}

.featured-content {
  text-align: left;
}

.featured-content h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--deep-black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.featured-content p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--deep-black);
  margin-bottom: 2.5rem;
  font-family: var(--font-secondary);
  font-weight: 300;
}

.featured-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.featured-list li {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--deep-black);
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid rgba(201, 166, 107, 0.15);
  font-family: var(--font-secondary);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  font-weight: 300;
}

/* Elegante bullet point */
.featured-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--antique-gold);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.featured-list li:last-child {
  border-bottom: none;
}

.featured-list li:hover {
  color: var(--antique-gold);
  padding-left: 2rem;
}

.featured-list li:hover::before {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--antique-gold);
}

.featured-cta {
  text-align: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.learn-more {
  display: inline-block;
  padding: clamp(1rem, 2.5vw, 1.2rem) clamp(2.5rem, 5vw, 3.5rem);
  background: transparent;
  color: var(--deep-black);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 300;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--deep-black);
  position: relative;
  overflow: hidden;
}

.learn-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--deep-black);
  transition: left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: -1;
}

.learn-more:hover {
  color: var(--ivory-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.learn-more:hover::before {
  left: 0;
}

/* BRANDS SECTION - PREMIUM LUXE DESIGN */
.brands-section {
  padding: clamp(8rem, 12vw, 12rem) 0;
  background: var(--deep-black);
  position: relative;
  overflow: hidden;
}

/* Elegante gouden lijn decoratie */
.brands-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
}

/* Subtiele luxe achtergrond patroon */
.brands-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 166, 107, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 166, 107, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.brands-section .container {
  position: relative;
  z-index: 1;
}

.brands-section .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--ivory-white);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Gouden lijn onder titel */
.brands-section .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--antique-gold);
  margin: 1.5rem auto 0;
}

.brands-section .section-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(249, 247, 243, 0.85);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 1400px;
  margin: 0 auto;
}

/* Puzzle layout: large tiles span 2 columns */
.brand-large {
  grid-column: span 2;
  grid-row: span 2;
}

.brand-small {
  grid-column: span 1;
  grid-row: span 1;
}

.brand-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  min-height: 0;
}

/* Luxe gouden rand accent */
.brand-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 166, 107, 0.2);
  border-radius: 4px;
  z-index: 2;
  transition: all 0.5s ease;
  pointer-events: none;
}

.brand-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 15px 30px rgba(0, 0, 0, 0.3);
}

.brand-item:hover::before {
  border-color: rgba(201, 166, 107, 0.5);
}

.brand-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.brand-item:hover img {
  transform: scale(1.1);
}

.brand-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 50%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.brand-overlay span {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 300;
  color: var(--ivory-white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  position: relative;
  padding-left: 20px;
}

/* Elegante gouden accent voor merknaam */
.brand-overlay span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: var(--antique-gold);
  transition: width 0.3s ease;
}

.brand-item:hover .brand-overlay span::before {
  width: 20px;
}

/* GALLERY PREVIEW - PREMIUM LUXE DESIGN */
.gallery-preview {
  padding: clamp(8rem, 12vw, 12rem) 0;
  background: linear-gradient(180deg, var(--ivory-white) 0%, #f5f2ed 100%);
  position: relative;
  overflow: hidden;
}

/* Elegante decoratieve lijn */
.gallery-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
}

.gallery-preview .container {
  position: relative;
  z-index: 1;
}

.gallery-preview .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--deep-black);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Gouden lijn onder titel */
.gallery-preview .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--antique-gold);
  margin: 1.5rem auto 0;
}

.gallery-preview .section-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--deep-black);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 4rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Premium Masonry-achtige Grid */
/* Dynamische gallery grid - past zich aan op aantal items */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* 1 item: centreer, brede kaart */
.gallery-grid.gallery-count-1 {
  grid-template-columns: 1fr;
  max-width: 600px;
}

/* 2 items: 2 kolommen, verschil in hoogte */
.gallery-grid.gallery-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.gallery-count-2 .gallery-item:nth-child(1) {
  grid-row: span 1;
}

.gallery-grid.gallery-count-2 .gallery-item:nth-child(2) {
  grid-row: span 1;
}

/* 3 items: puzzel layout */
.gallery-grid.gallery-count-3 .gallery-item:nth-child(1) {
  grid-column: span 2;
}

/* 4 items: asymmetrisch */
.gallery-grid.gallery-count-4 .gallery-item:nth-child(1) {
  grid-column: span 2;
}

.gallery-grid.gallery-count-4 .gallery-item:nth-child(3) {
  grid-row: span 2;
}

/* 5+ items: volledige puzzel */
.gallery-grid.gallery-count-large .gallery-item:nth-child(1) {
  grid-column: span 2;
}

.gallery-grid.gallery-count-large .gallery-item:nth-child(2) {
  grid-row: span 2;
}

.gallery-grid.gallery-count-large .gallery-item:nth-child(5) {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 5px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Gallery item als link */
a.gallery-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Subtiele gouden rand */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 166, 107, 0.1);
  border-radius: 4px;
  z-index: 3;
  transition: all 0.5s ease;
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 10px 25px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover::before {
  border-color: rgba(201, 166, 107, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 10, 10, 0.9) 0%,
      rgba(10, 10, 10, 0.4) 40%,
      transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--ivory-white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  position: relative;
  padding-left: 24px;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s;
}

/* Elegante gouden lijn accent */
.gallery-overlay span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 1px;
  background: var(--antique-gold);
  transition: width 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

.gallery-item:hover .gallery-overlay span::before {
  width: 20px;
}

/* Responsive Gallery Grid */
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .gallery-grid.gallery-count-1 {
    grid-template-columns: 1fr;
  }

  /* Reset puzzel spans voor tablet */
  .gallery-grid .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Eerste item mag breed blijven op tablet */
  .gallery-grid.gallery-count-large .gallery-item:nth-child(1),
  .gallery-grid.gallery-count-3 .gallery-item:nth-child(1),
  .gallery-grid.gallery-count-4 .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  /* Mobile/Tablet: titels standaard zichtbaar (hover werkt niet op touch) */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.3) 50%,
        transparent 100%);
  }

  .gallery-overlay span {
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  /* Alles 1 kolom op mobiel */
  .gallery-grid .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item {
    aspect-ratio: 16/10;
  }

  /* GSM: titels altijd zichtbaar */
  .gallery-overlay {
    opacity: 1;
    padding: 1.5rem;
  }

  .gallery-overlay span {
    transform: translateY(0);
    font-size: 0.95rem;
  }
}

/* FEATURED PROJECT SECTION - SINGLE PROJECT */
.featured-project-container {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-project {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-project-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.featured-project-image:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.featured-project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-project-image:hover img {
  transform: scale(1.03);
}

.featured-project-content {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
}

.featured-project-content h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 300;
  color: var(--deep-black);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.featured-project-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--deep-black);
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  font-family: var(--font-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* VIEW ALL BUTTON - MINIMALISTISCH */
.view-all-btn {
  display: inline-block;
  background: var(--deep-black);
  color: var(--ivory-white);
  padding: clamp(0.9rem, 2vw, 1.1rem) clamp(2rem, 5vw, 3rem);
  font-family: var(--font-secondary);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 300;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--deep-black);
}

.view-all-btn:hover {
  background: transparent;
  color: var(--deep-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE - FEATURED PROJECT */
@media (min-width: 1024px) {
  .featured-project {
    grid-template-columns: 1fr 1fr;
    gap: clamp(4rem, 6vw, 6rem);
    text-align: left;
  }

  .featured-project-content {
    text-align: left;
    padding: 0;
  }

  .featured-project-content p {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .featured-project {
    gap: clamp(2rem, 4vw, 3rem);
  }

  .featured-project-image img {
    aspect-ratio: 4/3;
  }

  .featured-project-content {
    padding: clamp(1.5rem, 3vw, 2rem);
  }
}

/* RESPONSIVE DESIGN FOR INDEX PAGE */

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 5rem);
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, 1fr);
    gap: clamp(1rem, 2vw, 1.25rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
  }

  .hero-logo {
    width: clamp(500px, 45vw, 800px);
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(150px, 1fr);
  }

  .brand-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid.gallery-count-1 {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: clamp(280px, 65vw, 500px);
  }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {

  .featured,
  .brands-section,
  .gallery-preview {
    padding: clamp(3rem, 6vw, 4rem) 0;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(140px, 1fr);
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
  }

  .brand-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .brand-item {
    min-height: 140px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .gallery-item {
    aspect-ratio: 16/10;
  }

  .featured-list li {
    font-size: 0.85rem;
    padding: 0.6rem 0;
  }

  .hero-logo {
    width: clamp(250px, 80vw, 400px);
  }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .hero-logo {
    width: clamp(220px, 85vw, 350px);
  }

  .brands-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(120px, 1fr);
    gap: 0.4rem;
  }

  .brand-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .brand-item {
    min-height: 120px;
  }

  .featured-content h3 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .featured-content p {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {

  .hero-slide,
  .hero-logo,
  .featured-image,
  .brand-item,
  .gallery-item,
  .learn-more {
    transition: none !important;
  }

  .hero-logo:hover,
  .featured-image:hover,
  .brand-item:hover,
  .gallery-item:hover {
    transform: none !important;
  }

  .brand-overlay,
  .gallery-overlay {
    opacity: 0.9 !important;
  }

  .brand-overlay span,
  .gallery-overlay span {
    transform: translateY(0) !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

  .brand-item,
  .gallery-item,
  .featured-image {
    border: 2px solid var(--deep-black);
  }

  .brand-overlay,
  .gallery-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
  }
}

/* Print Styles */
@media print {

  .hero-slideshow,
  .brand-overlay,
  .gallery-overlay {
    display: none !important;
  }

  .hero {
    height: auto !important;
    min-height: auto !important;
    padding: 2rem 0 !important;
    background: white !important;
  }

  .hero-logo {
    width: 300px !important;
    max-width: 100% !important;
    filter: none !important;
  }

  .brand-item,
  .gallery-item,
  .featured-image {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
}

/* Focus States for Accessibility */
.brand-item:focus,
.gallery-item:focus,
.learn-more:focus {
  outline: 3px solid var(--antique-gold);
  outline-offset: 2px;
}

/* LOADING STATES - MINIMALISTISCH */
.loading-state {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--deep-black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-state p {
  font-family: var(--font-secondary);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--deep-black);
  font-weight: 400;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* PROJECTS SLIDESHOW SECTION - PREMIUM LUXE DESIGN */
.projects-slideshow-section {
  padding: clamp(8rem, 12vw, 12rem) 0;
  background: var(--ivory-white);
  position: relative;
  overflow: hidden;
}

/* Elegante decoratieve lijn boven sectie */
.projects-slideshow-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
}

/* Subtiele achtergrond patroon */
.projects-slideshow-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(201, 166, 107, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(184, 167, 140, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.projects-slideshow-section .container {
  position: relative;
  z-index: 1;
}

.projects-slideshow-section .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--deep-black);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Elegante decoratie onder titel */
.projects-slideshow-section .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--antique-gold);
  margin: 1.5rem auto 0;
}

.projects-slideshow-section .section-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--deep-black);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 4rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Projects Slideshow Container */
.projects-slideshow-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-slideshow-wrapper {
  position: relative;
  width: 100%;
}

.projects-slideshow-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  height: 500px;
  min-height: 500px;
}

.project-slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.project-slideshow-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Side-by-side layout wrapper - FIXED HEIGHT */
.project-slide-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  height: 500px;
  min-height: 500px;
  max-height: 500px;
}

.project-slide-image {
  width: 100%;
  height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Luxe gouden rand accent */
.project-slide-image::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 166, 107, 0.3), transparent 50%, rgba(201, 166, 107, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.project-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-slideshow-slide.active .project-slide-image:hover img {
  transform: scale(1.04);
}

.project-slide-content {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 500px;
  overflow: hidden;
}

.project-slide-content h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--deep-black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  word-break: break-word;
}

.project-slide-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  color: var(--deep-black);
  margin-bottom: 0;
  font-family: var(--font-secondary);
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slideshow Navigation Buttons */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(249, 247, 243, 0.9);
  border: 1px solid rgba(10, 10, 10, 0.1);
  color: var(--deep-black);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.slideshow-nav:hover {
  background: var(--deep-black);
  color: var(--ivory-white);
  border-color: var(--deep-black);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
  left: 20px;
}

.slideshow-next {
  right: 20px;
}

/* Slideshow Indicators */
.slideshow-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
  padding: 0 1rem;
}

.slideshow-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slideshow-indicator:hover {
  background: rgba(10, 10, 10, 0.4);
  transform: scale(1.2);
}

.slideshow-indicator.active {
  background: var(--antique-gold);
  width: 32px;
  border-radius: 6px;
}

/* View All Projects Button */
.view-all-projects-btn {
  display: inline-block;
  padding: clamp(1rem, 2.5vw, 1.2rem) clamp(2.5rem, 5vw, 3.5rem);
  background: transparent;
  color: var(--deep-black);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 300;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--deep-black);
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
}

.view-all-projects-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--deep-black);
  transition: left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: -1;
}

.view-all-projects-btn:hover {
  color: var(--ivory-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.view-all-projects-btn:hover::before {
  left: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .projects-slideshow-slides {
    height: auto;
    min-height: auto;
  }

  .project-slide-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .project-slide-image {
    height: 350px;
    min-height: 350px;
  }

  .project-slide-content {
    height: auto;
    padding: 1.5rem 1rem;
    min-height: 200px;
  }

  .project-slide-content p {
    -webkit-line-clamp: 5;
  }
}

@media (max-width: 768px) {
  .projects-slideshow-slides {
    height: auto;
    min-height: auto;
  }

  .slideshow-nav {
    width: 40px;
    height: 40px;
  }

  .slideshow-prev {
    left: 10px;
  }

  .slideshow-next {
    right: 10px;
  }

  .slideshow-nav svg {
    width: 18px;
    height: 18px;
  }

  .project-slide-content {
    padding: 1.5rem 1rem;
    min-height: 180px;
  }

  .project-slide-content p {
    -webkit-line-clamp: 4;
  }

  .slideshow-indicator {
    width: 10px;
    height: 10px;
  }

  .slideshow-indicator.active {
    width: 24px;
  }

  .project-slide-image {
    height: 280px;
    min-height: 280px;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .project-slideshow-slide,
  .project-slide-image img,
  .slideshow-nav,
  .slideshow-indicator,
  .view-all-projects-btn {
    transition: none !important;
  }

  .project-slideshow-slide.active .project-slide-image:hover img {
    transform: none !important;
  }

  .slideshow-nav:hover {
    transform: translateY(-50%) !important;
  }
}

/* Focus States for Accessibility */
.slideshow-nav:focus,
.slideshow-indicator:focus,
.view-all-projects-btn:focus {
  outline: 3px solid var(--antique-gold);
  outline-offset: 2px;
}