/* ===== VARIABLES ===== */
:root {
  --fs: 1rem;
  --clr: #ffcfcf;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: var(--clr);
  font-family: "Jost", sans-serif;
  font-size: var(--fs);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.18em;
  overflow-x: hidden;
}

/* ===== GLOBAL ELEMENTS ===== */
h1,
h2,
h3 {
  font-size: var(--fs);
  font-weight: 400;
  margin-bottom: 1rem;
}

p {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

p.section-description {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

a {
  color: var(--clr);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* ===== HOME & ABOUT PAGES ===== */
.home-page,
.about-page {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.page-header {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page-background img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: blur(40px) brightness(0.6); */
  filter: brightness(0.35);
  opacity: 0;
  transform: scale(1.8);
  transition: opacity 2s ease-in-out;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  background: #000;
  will-change: opacity;
}

.page-background img.active {
  opacity: 1;
}

.page-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.text-content {
  max-width: 500px;
}

.text-content h1 {
  margin-bottom: 1.5rem;
}

.info {
  margin-top: 2.5rem;
}

.bio-text {
  margin-bottom: 2rem;
}

.nav-links {
  margin-top: 3rem;
}

.nav-links a {
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== WORKS & PUBLICATIONS PAGES ===== */
.works-page,
.publications-page {
  min-height: 100vh;
  background: #000;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.works-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 100;
}

.works-container,
.publications-container {
  padding: 5rem 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.works-section {
  margin-bottom: 5rem;
}

.section-intro {
  margin-bottom: 2rem;
}

.section-note {
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ===== GRIDS ===== */
.works-grid,
.works-gallery-preview,
.self-portraits-preview {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}

.works-grid img,
.works-gallery-preview img,
.self-portraits-preview img {
  width: 100%;
  height: 60vh;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== COPYRIGHT OVERLAY ===== */
.copyright-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background: rgba(0, 0, 0, 0.9); */
  color: var(--clr);
  padding: 2rem 3rem;
  border-radius: 8px;
  font-size: var(--fs-base);
  font-weight: 400;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.copyright-overlay.show {
  opacity: 1;
}

/* ===== PUBLICATIONS ===== */
.publications-intro {
  margin-bottom: 3rem;
}

.publications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.publication-item {
  display: block;
  max-width: 300px;
  width: 100%;
}

.publication-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.publication-link:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.publication-item img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

.publication-info {
  pointer-events: auto;
}

.publication-info h2 {
  margin-bottom: 0.5rem;
  font-size: var(--fs);
  letter-spacing: 0.18em;
  text-align: center;
}

/* ===== FOOTER ===== */
.works-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-nav a {
  display: inline-block;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (min-width: 768px) {
  .page-content {
    padding: 0 4rem;
  }

  .text-content {
    max-width: 600px;
  }

  .works-container,
  .publications-container {
    padding: 6rem 4rem 4rem;
  }

  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    justify-items: center;
  }

  .works-grid,
  .works-gallery-preview {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .works-grid img,
  .works-gallery-preview img,
  .self-portraits-preview img {
    height: 50vh;
  }

  .three-column,
  .masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== RESPONSIVE - DESKTOP ===== */
@media (min-width: 1024px) {
  .home-page .page-content,
  .about-page .page-content {
    padding: 0 10vw;
    align-items: flex-start;
  }

  .home-page .text-content,
  .about-page .text-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
    width: 100%;
    gap: 4rem;
    padding-top: 40%;
  }

  .main-text {
    flex: 1;
    min-width: 0;
  }

  .home-page .nav-links,
  .about-page .nav-links {
    flex: 1;
    margin-top: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .nav-links a {
    display: block;
  }

  .publications-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    justify-items: center;
  }
}

@media (min-width: 1200px) {
  .text-content {
    max-width: 600px;
  }

  .page-background img {
    transform: scale(1);
  }
}
