.projects-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  background: #1c1c1c;
  position: relative;
  overflow: hidden;
}

.projects-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 200px;
}

.projects-parent {
  width: 100%;
}

.portfolio-title {
  color: #3dcfb6;
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0%;
  margin-bottom: 20px;
  font-family: var(--font-main);
}

.featured-title {
  width: 100%;
  max-width: 730px;
  font-family: var(--font-code);
  font-size: 64px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -3%;
  color: #3dcfb6;
  margin-bottom: 24px;
}

.featured-text {
  display: block;
  max-width: 450px;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0%;
  color: #ffffff;
  margin-bottom: 60px;
}

.projects-list {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
}

.project-item {
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
}

.project-name {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0%;
  color: #ffffff;
  transition: all 0.3s ease;
}

.project-tech {
  font-family: var(--font-code);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0%;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
}

.project-divider {
  height: 1px;
  background-color: #3dcfb6;
  width: 100%;
  opacity: 0.3; /* Dezent starten */
  transition: opacity 0.3s ease;
}

.project-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pipe {
  color: #3dcfb6; /* Dein Türkis */
  margin: 0 5px;
  font-weight: bold;
}

.project-item:hover .project-name {
  color: #3dcfb6;
  transform: translateX(15px); /* Kleiner "Slide-In" Effekt */
}

.project-item:hover .project-divider {
  opacity: 1; /* Linie wird beim Hover heller */
}

/* Optional: Ein leichter Hintergrund-Glow beim Drüberfahren */
.project-item:hover .project-row {
  background: linear-gradient(
    90deg,
    rgba(61, 207, 182, 0.05) 0%,
    transparent 100%
  );
}

.projects-content-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* WICHTIG: Streckt beide Seiten auf die gleiche Höhe */
  width: 100%;
  gap: 40px;
}

.project-preview-container {
  flex: 1;
  display: flex;
  justify-content: center; /* Bild horizontal mittig im rechten Bereich */
  position: relative; /* Wir nehmen sticky hier kurz raus, damit die Ausrichtung greift */
  min-height: 100%; /* Nimmt die volle Höhe der Liste an */
}

.project-preview-container.align-top {
  align-items: flex-start; /* Bild nach ganz oben */ /* Kleiner Abstand zur obersten Linie */
}

.project-preview-container.align-center {
  align-items: center; /* Bild genau in die Mitte der Liste */
}

.project-preview-container.align-bottom {
  align-items: flex-end; /* Bild nach ganz unten */ /* Kleiner Abstand zur untersten Linie */
}

.image-frame {
  position: relative;
  width: 295px;
  height: 192px;
  display: inline-block;
  cursor: pointer;
  /* Überlauf erlauben, damit das Muster dahinter sichtbar ist */
  overflow: visible;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.image-frame.visible {
  opacity: 1;
}

#project-preview-img {
  width: 295px;
  height: 192px;
  border-radius: 16px;
  position: relative;
  z-index: 10; /* Ganz vorne */
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(61, 207, 182, 0.2);
}

.image-frame::before {
  content: "";
  position: absolute;
  /* Etwas kleinerer Versatz als beim großen About-Bild */
  bottom: -15px;
  right: -15px;
  border-radius: 16px;
  width: 295px;
  height: 192px;
  /* Dein türkises Linien-Muster */
  background-image: repeating-linear-gradient(
    135deg,
    #3dcfb6 0px,
    #3dcfb6 2px,
    transparent 2px,
    transparent 15px /* Muster etwas enger für das kleinere Bild */
  );
  z-index: 1;
  opacity: 0.5; /* Leicht transparent im Hintergrund */
  transition: all 0.4s ease-in-out;
}

.image-frame.visible:hover #project-preview-img {
  transform: translate(5px, -5px); /* Kombinierte Bewegung nach rechts oben */
}

/* Optional: Muster verstärken beim Hover */
.image-frame.visible:hover::before {
  opacity: 1;
  transform: translate(-5px, 5px); /* Muster schiebt sich leicht entgegen */
}

/* --- Deine Hover-Arrow Styles --- */
.hover-arrow {
  color: #3dcfb6;
  font-size: 32px;
  margin-left: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover .hover-arrow {
  opacity: 1;
}

.modal-content {
  background: linear-gradient(35deg, #1c1c1c 40%, #08463b 100%);
  border-radius: 30px;
  padding: 60px;
  max-width: 1248px;
  width: 100%;
  max-height: 80vh;
  height: auto;
  width: 95%;
  color: white;
  position: relative;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

.modal-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* Linke Seite Styles */
.project-number {
  font-family: var(--font-main);
  font-size: 128px;
  font-weight: 700;
  color: #3dcfb6;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 10px;
}

.modal-project-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
  font-family: var(--font-code);
}

.modal-question {
  color: #3dcfb6;
  font-family: var(--font-code);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0%;
  margin-bottom: 15px;
}

.modal-text {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.5;
  max-width: 400px;
  margin-bottom: 30px;
}

/* Rechte Seite Styles */

.modal-right {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.modal-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-img-wrapper img {
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

/* Buttons im Outline-Style */
.modal-buttons-container {
  display: flex; /* Aktiviert das Nebeneinander-Layout */
  flex-direction: row; /* Zwingt sie in eine Reihe */
  gap: 20px; /* Der Abstand zwischen den Buttons */
  margin-top: 40px; /* Abstand nach oben zum Text */
  justify-content: flex-start; /* Schiebt sie nach links */
}

/* Der Button-Stil (Dein Screenshot-Look) */
.custom-btn {
  display: inline-flex; /* Wichtig, damit Text und Pfeil nebeneinander sitzen */
  align-items: center;
  gap: -10px;
  font-family: var(--font-main);
  padding: 5px 20px 5px 20px; /* Mehr Padding rechts für den Pfeil */
  border-radius: 100px; /* Die Pillenform */
  border: 1px solid #ffffff; /* Startzustand: Weiß */
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.2s ease; /* Macht den Übergang weich */
  background: transparent;
  white-space: nowrap; /* Verhindert Zeilenumbruch im Button */
}

.arrow img {
  width: 30px;
  height: 30px;
  filter: invert(30%) sepia(21%) saturate(1066%) hue-rotate(120deg)
    brightness(91%) contrast(88%);
  transition: transform 0.3s ease;
  margin-top: 5px;
  transform: rotate(-45deg);
}

/* Der Hover-Zustand (Rechte Seite deines Screenshots) */
.custom-btn:hover {
  border-color: #3dcfb6; /* Rahmen wird Türkis */
  /* Schrift wird Türkis */
  cursor: pointer;
}

/* Der kleine Pfeil */
.arrow {
  font-size: 20px;
  transition: transform 0.2s ease;
}

/* Kleiner Bonus: Der Pfeil bewegt sich beim Hover leicht */
.custom-btn:hover .arrow {
  transform: translate(3px, -3px);
}

/* Next Project Link unten rechts */
.next-project-wrapper {
  position: absolute;
  bottom: 40px;
  right: 60px;
  color: #3dcfb6;
  cursor: pointer;
}

.close-modal {
  position: absolute;
  top: 60px;
  right: 60px;
  font-size: 48px;
  font-weight: 200;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 2001;
}

.close-modal:hover {
  color: #3dcfb6;
  transform: scale(1.4);
  font-weight: 300;
  transition: ease-in-out 0.2s;
}

.next-project-wrapper {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3dcfb6;
  font-size: 18px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: color 0.3s ease;
}

.next-project-wrapper:hover {
  color: #ffffff; /* Der Pfeil schiebt sich beim Hover nach rechts */
}

.arrow-right img {
  width: 40px;
  height: 40px;
  filter: invert(30%) sepia(21%) saturate(1066%) hue-rotate(120deg)
    brightness(91%) contrast(88%);
  font-size: 24px;
  margin-top: 7px;
  transition: transform 0.2s ease;
}

.next-project-wrapper:hover .arrow-right img {
  transform: translateX(5px); /* Schiebt nur den Pfeil 10px nach rechts */
}

.modal-tech-icons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tech-icon-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(30%) sepia(21%) saturate(1066%) hue-rotate(120deg)
    brightness(91%) contrast(88%);
}

.tech-icon-item span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0%;
  font-family: var(--font-main);
}

.tech-icon-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
