/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= GLOBAL ================= */
html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
}

/* ================= SCROLL SNAP ================= */
.snap {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.snap-item {
  height: 100dvh;
}

.snap-item {
  height: 100vh;
  scroll-snap-align: start;
}

/* ================= HERO ================= */
.hero {
  max-width: 1440px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.hero-logo {
  width: min(440px, 85%);
}

.hero h1 {
  font-size: 67px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ================= CTA ================= */
.cta {
  display: flex;
  gap: 60px;
}

.cta a {
  width: 260px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  color: white;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: 0.3s ease;
}

.cta a:hover {
  background: rgb(152, 102, 159);
  transform: translateY(-4px);
}

/* ================= PAGE HEADER ================= */
.page-header {
  width: 100%;
  height: 90px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.page-header h2 {
  color: white;
  font-size: 34px;
  letter-spacing: 4px;
}

.logo-small {
  width: 45px;
  position: absolute;
  left: 40px;
}

/* ================= PAGE CENTER ================= */
.page-center {
  width: 100%;
  height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  text-align: center;
  padding: 0 20px;
}

/* ================= PROFIL ================= */
.profil-img {
  width: min(650px, 85%);
}

.profil-text {
  text-align: left;
  max-width: 80ch;
  line-height: 1.75;
  font-size: 18px;
  font-weight: 500;
}

/* ================= WORKS ================= */
#works .page-center {
  justify-content: flex-start;
  padding-top: 35px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 60px;
  width: 100%;
  max-width: 1250px;
}

.work-item {
  text-align: center;
  overflow: hidden;
  position: relative;
}

.work-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.work-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 18px 18px 35px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.5s ease,
    filter 0.5s ease,
    box-shadow 0.5s ease;
  cursor: pointer;
}

.work-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.75);
  box-shadow: 24px 24px 45px rgba(0, 0, 0, 0.45);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

.overlay span {
  color: white;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.work-item:hover .overlay {
  opacity: 1;
}

/* ================= CONTACT ================= */
.contact-text {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
}

.mail {
  font-size: 34px;
}

/* SOCIALS */
.socials {
  display: flex;
  gap: 60px;
}

.socials img {
  width: 70px;
  transition: transform 0.3s ease;
}

.socials img:hover {
  transform: scale(1.2);
}

/* ================= LIGHTBOX ================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 6px;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox .nav {
  margin-top: 20px;
  display: flex;
  gap: 40px;
}

.lightbox button {
  background: white;
  border: none;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
}

#lightbox-caption {
  color: white;
  font-size: 22px;
  margin-top: 15px;
  text-align: center;
  letter-spacing: 1px;
}

/* ================= ANIMATIONS ================= */
.fade-up {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-up.show {
  opacity: 1;
}

/* ================= HERO ANIMATIONS ================= */
.hero-logo {
  animation: fadeIn 1.2s ease;
}

.hero h1 {
  animation: fadeInUp 1.2s ease;
}

.cta {
  animation: fadeInUp 1.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 48px;
  }

  .cta {
    gap: 25px;
  }

  .cta a {
    width: 200px;
    height: 60px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .snap {
    scroll-snap-type: none;
  }

  .hero h1 {
    font-size: 34px;
  }

  .cta {
    flex-direction: column;
    gap: 15px;
  }

  .cta a {
    width: 80vw;
  }

  .page-header h2 {
    font-size: 22px;
  }

  .logo-small {
    left: 15px;
    width: 35px;
  }

  .profil-text {
    padding: 0 20px;
    font-size: 15px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .work-item img {
    height: 220px;
  }

  .contact-text,
  .mail {
    font-size: 20px;
    padding: 0 20px;
  }

  .socials {
    gap: 30px;
  }

  .socials img {
    width: 50px;
  }
  @media (max-width: 768px) {
    .snap {
      scroll-snap-type: none;
    }

    .snap-item {
      height: auto;
      min-height: 100dvh;
    }

    .page-center {
      min-height: auto;
    }
  }
}
@media (max-width: 768px) {
  /* WORKS fix */
  #works.snap-item {
    height: auto;
    min-height: 100dvh;
  }

  #works .page-center {
    height: auto;
    padding-bottom: 60px;
  }

  /* CONTACT fix */
  #contact.snap-item {
    height: auto;
    min-height: 100dvh;
  }

  #contact .page-center {
    height: auto;
    padding-bottom: 60px;
  }

  /* GLOBAL mobile fix */
  .page-center {
    height: auto;
    min-height: auto;
  }
}
