/* Section heading style for all main titles */
.section-heading {
  font-family: 'Baise', Arial, Helvetica, sans-serif;
  color: #ff3333;
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 4rem; 
  text-shadow:
    0 0 8px #fff,
    0 0 2px #fff,
    0 1px 8px #fff,
    0 2px 12px #fff,
    0 0 0.5px #fff;
}

/* iPhone 7 and similar device specific fixes */
@media (max-width: 375px) and (-webkit-device-pixel-ratio: 2) {
  .phone {
    height: 60px !important;
  }
  .phone_bottom {
    height: 60px !important;
  }
  .phone label {
    height: 60px !important;
  }
}

/* Mobile styles consolidated */
@media (max-width: 700px) {
  .section-heading {
    margin-bottom: 1.8rem; 
  }
  
  .section-projects {
    padding-top: 1rem;
    margin-top: 0.5rem;
    min-height: 85vh;
  }
  .title.title-red {
    margin-bottom: 0.5rem !important;
  }
  .carousel {
    margin-top: 3rem !important;
  }
  .carousel__body {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }
  .carousel__slider {
    margin-top: 0.5rem !important;
  }
  .section-projects .card {
    max-width: 80vw;
    min-width: 60vw;
    width: 80vw;
    height: auto;
    max-height: 60vh;
    padding: 0.5rem 0.3rem 0.5rem 0.3rem;
    margin: 0 2vw;
  }
  .section-projects .card img {
    max-width: 70vw;
    max-height: 22vw;
  }
  .carousel__controls {
    display: none !important;
  }
  html, body, main, .section-projects {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
  }
}
/* --- Hamburger menu and fullscreen overlay --- */
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,20,0.97);
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}
.menu-overlay.open {
  display: flex;
}
.menu-overlay .menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}
.menu-overlay .menu-link {
  color: #fff;
  font-size: 2.1rem;
  font-family: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.menu-overlay .menu-link:hover {
  color: #c00;
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  #navbar .nav-links {
    display: none !important;
  }
}

/* --- Carousel navigation arrows custom style --- */
.carousel__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  position: static !important;
  z-index: 1;
}

.carousel__prev, .carousel__next {
  background: rgba(120,120,120,0.18);
  border: 2px solid #c00;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #0006;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
  position: static !important;
  z-index: 1;
}

.carousel__prev img, .carousel__next img {
  width: 22px !important;
  height: 22px !important;
  display: block;
}

.carousel__prev:hover, .carousel__next:hover {
  background: #f8eaea;
  border-color: #c00;
  box-shadow: 0 4px 16px #c002;
  transform: scale(1.08);
}
/* Project card icons row styling */
/* --- CLEAN, RESPONSIVE PROJECT CARD STYLES --- */
.section-projects .card {
  background: #18181c;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  padding: 1.3rem 0.9rem 1.3rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s;
  max-width: 280px;
  min-width: 220px;
  width: 260px !important;
  min-height: 280px;
  max-height: 330px;
  height: 310px !important;
  margin: 0 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.section-projects .card img {
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 180px;
  border-radius: 0.6rem;
  object-fit: contain;
  background: #222;
  display: block;
  margin: 0 auto 0.6rem auto;
  box-shadow: 0 1px 8px rgba(0,0,0,0.13);
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.section-projects .card img:hover {
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.4), 
              0 0 20px rgba(255, 51, 51, 0.3),
              0 1px 4px rgba(0,0,0,0.1);
  filter: brightness(1.05);
  transform: scale(1.01);
}

.project-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
  flex-wrap: nowrap;
  min-height: 40px;
}

.project-icon {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.6px;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 0 transparent);
}

/* Ensure hover effects are not overridden */
.project-icon:hover {
  filter: drop-shadow(0 0 4px rgba(255, 51, 51, 0.6)) 
          drop-shadow(0 0 8px rgba(255, 51, 51, 0.4))
          brightness(1.1) !important;
  transform: scale(1.05) !important;
}

.section-projects .card h3 {
  margin: 0.5rem 0 0.3rem 0;
  font-size: 1rem; /* Adjusted for better fit */
  text-align: center;
  min-height: 1.5rem;
  max-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.5rem;
  overflow: hidden;
}

.section-projects .card p {
  font-size: 0.85rem; /* Further reduced size for description */
  text-align: center;
  margin-bottom: 0.5rem;
  min-height: 2.5rem;
  max-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.5rem;
  overflow: hidden;
}
/* --- END CLEAN CARD STYLES --- */

/* Projects page carousel and card styles */
:root {
  --crsl-bg: transparent;
  --box-bg: #1e272e;
  --box-shadow: #0000001c;
  --box-shadow-border: #0000000f;
  --box-border: #fff;
}


.section-projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding-top: 2.5rem;
}

/* Desktop spacing for projects section */
@media (min-width: 701px) {
  .section-projects {
    padding-top: 4.5rem;
  }
}

.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}
.carousel__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}
.carousel__slider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
  position: relative;
}
.carousel__slider__item {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: stretch;
  transition: transform 0.7s cubic-bezier(.4,2,.6,1);
  will-change: transform, opacity;
}
.carousel__prev:hover, .carousel__next:hover {
  background: #420000;
  transform: scale(1.12);
  box-shadow: 0 0 24px #420000, 0 0 8px #fff;
}
.carousel__prev img, .carousel__next img {
  width: 28px;
  height: 28px;
  display: block;
}
.carousel__prev i, .carousel__next i {
  color: #420000 !important;
  pointer-events: none;
  transition: color 0.2s;
}
.carousel__prev:hover i, .carousel__next:hover i {
  color: #fff !important;
}
@media (max-width: 900px) {
  .carousel__controls {
    gap: 1.2rem;
    margin-top: 1rem;
  }
  .carousel__prev, .carousel__next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
@media (max-width: 700px) {
  .section-projects {
    padding-top: 2.5rem;
    min-height: 80vh;
  }
  .carousel {
    margin-top: 4rem;
  }
  .carousel__slider {
    width: fit-content !important;
    margin: 0 auto !important;
    left: 0 !important;
    transform: none !important;
  }
}
/* iPhone 7 optimalisatie: cards en afbeeldingen */
@media (max-width: 400px) {
  .section-projects .card {
    width: 92vw !important;
    max-width: 340px !important;
    min-width: 220px !important;
    height: auto !important;
    min-height: 220px !important;
    max-height: 340px !important;
    box-sizing: border-box;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    margin: 0 1vw;
  }
  .section-projects .card img {
    width: 100%; /* Ensure images scale responsively */
    height: auto; /* Maintain aspect ratio */
    max-height: 120px; /* Limit height for smaller screens */
    object-fit: contain;
    display: block;
    margin: 0 auto 0.4rem auto;
  }
  .carousel__slider {
    flex-wrap: wrap;
    justify-content: center;
  }
  .project-icon {
    width: 20px !important; /* Adjust icon size for smaller screens */
    height: 20px !important;
  }

  .project-links {
    gap: 8px; /* Reduce gap between icons */
  }
}
