/* ===== GRUNDLEGENDE SEITENSTYLES ===== */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

/* ===== NAVIGATION (BACK BUTTON) ===== */
.nav-top {
  text-align: right;
  padding: 20px;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

.nav-top a {
  color: #333;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
  padding: 8px 12px;
  background-color: aliceblue;
}

.nav-top a:hover {
  border-color: #333;
  color: #000;
  background-color: aliceblue;
}

/* ===== ZWEITER CONTAINER===== */
.secondcontainer {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ===== PROJECTS BEREICH ===== */
.projects {
  flex: 1;
  min-height: 100vh;
  background-color: #f0f8ff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 60px;
}

/* ===== PROJECT HERO CONTAINER ===== */
.projecthero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 60px;
  max-width: 980px;
}

.projectherokicker {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #707070;
  margin: 0;
}

/* ===== PROJECT HERO TITLE ===== */
.projectherotitle {
  font-family: 'Poppins', sans-serif;
  font-size: 120px;
  font-weight: 900;
  color: #222;
  letter-spacing: -3px;
  text-transform: lowercase;
  line-height: 0.9;
  margin: 0;
}

/* ===== PROJECT HERO DESCRIPTION ===== */
.projectherodescription {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #666;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

.projectherosubtext {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #7a7a7a;
  line-height: 1.7;
  margin: -6px 0 0;
  max-width: 760px;
}

.projectmeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.projectmeta-item {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #222;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 0.62);
}

/* ===== PROJECT HERO IMAGE ===== */
.projectheroimage {
  max-width: 40%;
  height: auto;
  margin-top: -80px;
  z-index: 10;
}

.projectherodetails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: -18px;
}

/* ===== PROJECT SECTIONS ===== */
.projectsection {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 60px;
  width: 100%;
}

/* ===== PROJECT CARDS CONTAINER ===== */
.projectcards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  width: 100%;
}

/* ===== INDIVIDUAL PROJECT CARD ===== */
.projectcard {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

/* ===== CARD IMAGE ===== */
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
  filter: none;
}

/* ===== CARD IMAGE HOVER EFFECT ===== */
.projectcard:hover .card-image {
  filter: blur(3px) brightness(0.4);
}

/* ===== CARD CONTENT OVERLAY ===== */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 30px 20px 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

/* ===== CARD CONTENT HOVER EFFECT ===== */
.projectcard:hover .card-content {
  transform: translateY(0);
}

/* ===== CARD TITLE ===== */
.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CARD DESCRIPTION ===== */
.card-description {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* ===== CARD DESCRIPTION HOVER EFFECT ===== */
.projectcard:hover .card-description {
  opacity: 1;
}

/* ===== EXPERIMENTAL ART ===== */
.experimental-section {
  width: 100%;
  max-width: 1400px;
  margin: 10px 0 80px;
  padding: 0;
}

.experimental-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 32px;
  align-items: center;
  text-align: center;
}

.experimental-kicker {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #707070;
  margin: 0;
}

.experimental-title {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: #171717;
  margin: 0;
  text-transform: lowercase;
}

.experimental-description {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #666;
  margin: 0;
  max-width: 700px;
}

.experimental-scene {
  position: relative;
  width: min(100%, 1180px);
  min-height: 540px;
  margin: 0 auto;
  padding: 36px 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(rgba(16, 16, 18, 0.55), rgba(10, 10, 12, 0.8)),
    radial-gradient(circle at top, rgba(240, 248, 255, 0.15), transparent 40%),
    url("../../img/scene.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.experimental-bg-typography {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.18);
  mix-blend-mode: screen;
  pointer-events: none;
}

.experimental-bg-typography span {
  display: block;
}

.experimental-book {
  position: relative;
  width: 190px;
  height: 285px;
  perspective: 1000px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  --spine-shift: 0px;
  transform: translateX(var(--spine-shift));
  transition: transform 0.5s ease;
}

.experimental-book.book-open {
  --spine-shift: 96px;
}

.experimental-book__item {
  position: absolute;
  width: 190px;
  height: 285px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 0.55s ease-in-out, z-index 0s linear 0.25s;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  z-index: calc(10 - var(--i));
}

.experimental-book__item.is-open {
  transform: rotateY(-180deg);
  transition: transform 0.55s ease-in-out, z-index 0s;
  z-index: calc(20 + var(--i));
}

.experimental-book__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  background: #f4f4f4;
  backface-visibility: hidden;
}

.experimental-book__item img:nth-child(2) {
  transform: rotateY(180deg) translateZ(1px);
  z-index: 1;
}

.experimental-note {
  margin-top: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: #7a7a7a;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #090909;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  color: #ccc;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #666;
}