section.project-header {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  background: radial-gradient(circle at center, #161616 0%, #0a0a0a 35%);
  padding: 20px;
  z-index: 1;
}
.project-title {
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(8rem, 15vw, 14rem);
  line-height: 0.9;
  font-weight: 900;
  will-change: transform;
}
.indent {
  margin-left: 520px;
  display: inline-block;
}

@media (max-width: 768px) {
  section.project-header {
    height: 40vh;
  }
  section.project-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .indent {
    margin-left: 0;
  }
}

.projects-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #0a0a0a;
}

.ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: block;
}

.title-container {
  position: absolute;
  top: 60px;
  left: 60px;
  text-align: left;
}

.project-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

.current-title {
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 900;
  color: white;
  line-height: 1;

  text-transform: uppercase;
  font-family: "Bebas Neue";
}

.subtitle-container {
  position: absolute;
  bottom: 60px;
  right: 60px;
  text-align: right;
  max-width: 300px;
}

.project-subtitle {
  font-family: "Bebas Neue";
  font-size: clamp(1.9rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: #ccc;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
}

.project-counter {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 16px;
  font-weight: 100;
  color: #999;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .title-container {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: red; */
  }
  .projects-section {
    /* background-color: blue; */
    height: 80svh;
  }
  .current-title {
    font-size: clamp(64px, 8vw, 48px);
    line-height: 1.1;
  }

  .subtitle-container {
    bottom: 12%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: none;
  }

  .project-counter {
    bottom: 22%;
  }

  .project-subtitle {
    font-size: 32px;
    color: #aaa;
  }
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: grab;
}

.slider-container:active {
  cursor: grabbing;
}

.slide-item {
  position: absolute;
  width: 40vw;
  aspect-ratio: 16 / 9;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  overflow: hidden;
  background-color: transparent;
  will-change: transform, box-shadow;

  cursor: pointer;

  transition: box-shadow 0.5s ease;
}

@media (max-width: 768px) {
  .slide-item {
    width: 80vw;
    aspect-ratio: 16 / 9;
  }
}

.slide-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-img {
  width: 130%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  will-change: transform;
  top: 0;
  left: 0;
  filter: brightness(0.5) grayscale(0.2);
  transition: filter 0.5s ease;
}

.slide-item.active .slide-img {
  filter: brightness(1) grayscale(0);
}

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #0f0f11;
  position: relative;
}

.contact-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: #333;
  transition: color 0.3s;
  cursor: pointer;
  text-align: center;
}

.contact-text:hover {
  color: #fff;
}

.footer-links {
  margin-top: 40px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: #666;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  transition: 0.3s;
}

.footer-link:hover {
  color: #3b82f6;
}

.nav-buttons {
  position: absolute;
  bottom: 60px;
  left: 60px;
  display: flex;
  gap: 16px;
  z-index: 1;
  pointer-events: auto;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #999;
  font-size: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.1);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}
.nav-buttons {
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
}

.project-minimap {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1;
  pointer-events: auto;
}

.minimap-item {
  width: 80px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.4;
  background: #1a1a1a;
  will-change: transform;
}

.minimap-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) brightness(0.6);
  transition: filter 0.3s ease;
}

.minimap-item:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.minimap-item.active {
  border-color: #3b82f6;
  opacity: 1;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.minimap-item.active img {
  filter: grayscale(0) brightness(1);
}

@media (max-width: 768px) {
  .project-minimap {
    bottom: 22%;
    gap: 8px;
  }

  .minimap-item {
    width: 60px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .project-minimap {
    gap: 6px;
  }

  .minimap-item {
    width: 50px;
    height: 28px;
  }
}
@media (max-width: 1024px) {
  .slide-item {
    width: 65vw;
  }
}
@media (max-height: 600px) {
  .title-container {
    top: 8%;
  }

  .subtitle-container {
    bottom: 8%;
  }

  .project-minimap {
    bottom: 14%;
  }
}
