:root {
  --slide-transition-time: 0.5s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'League Spartan', sans-serif;
  background: #c6bdad;
}

/* ── Crossfade slideshow ── */
.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--slide-transition-time) linear;
}

.slide.active {
  opacity: 1;
}

/* Dark overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
}

/* ── Page container ── */
.page {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
}

/* ── Centred Logo ── */
.logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.logo-wrap img {
  width: clamp(80px, 10vw, 140px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

/* ── Nav links ── */
.nav-link-item {
  position: absolute;
  cursor: pointer;
  text-decoration: none;
}

.nav-link-item span {
  font-family: 'League Spartan', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
  display: inline-block;
  position: relative;
}

.nav-link-item span::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-link-item:hover span::after {
  width: 100%;
}

/* Individual link positions — matching mockup */
/* Top-left quadrant: EVENTS — vertically centered with logo */
#link-events {
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
}

/* Top-right quadrant: INVITATIONS — vertically centered with logo */
#link-invitations {
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
}

/* Bottom-left: CONTACT */
#link-contact {
  left: 7%;
  bottom: 10%;
}

/* Bottom-center: PORTFOLIO */
#link-portfolio {
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
}

/* Bottom-right: INSTAGRAM */
#link-instagram {
  right: 7%;
  bottom: 10%;
}

/* Mobile */
@media (max-width: 576px) {
  .logo-wrap {
    top: 25%;
    transform: translate(-50%, -50%);
  }

  .logo-wrap img {
    width: 120px;
  }

  .page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-content: space-evenly;
    padding-top: 50vh;
    padding-bottom: 5vh;
  }

  .nav-link-item {
    position: static !important;
    transform: none !important;
  }

  .nav-link-item span {
    font-size: 18px;
  }

  #link-instagram {
    grid-column: 1 / span 2;
  }
}