/* ========================================================================
   Marietta Pavlaki — Artist Portfolio
   Black & white, minimalist, parallax. Plain CSS.
   ======================================================================== */

:root {
  --black: #0d0d0d;
  --ink: #111;
  --grey: #6b6b6b;
  --light: #f4f4f2;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.5px;
}

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }

/* ---- Shared bits ---- */
.section-label {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 1.2rem;
}
.section-label.center,
.section-heading.center { text-align: center; }

.section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.95rem 2.4rem;
  border: 1px solid currentColor;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.btn-outline { color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { color: var(--white); background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: transparent; color: var(--black); }

.link-arrow {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s var(--ease);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { opacity: 0.55; }

/* ========================================================================
   Header
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: 90%; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 1.15rem;
  color: var(--white);
  transition: color 0.4s var(--ease);
}
.logo span { font-weight: 300; opacity: 0.7; margin-left: 4px; }
.site-header.scrolled .logo { color: var(--black); }

.nav ul { display: flex; gap: 2.2rem; list-style: none; }
.nav-link {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.site-header.scrolled .nav-link { color: var(--black); }

/* Solid header for inner pages (no full-screen hero behind it) */
.site-header.solid {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.solid .logo,
.site-header.solid .nav-link { color: var(--black); }
.site-header.solid .nav-toggle span { background: var(--black); }

/* Burger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--white);
  transition: all 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.site-header.scrolled .nav-toggle span { background: var(--black); }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ========================================================================
   Hero
   ======================================================================== */
.parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.6));
}
.hero-content { position: relative; z-index: 2; padding: 0 1rem; }
.hero-kicker {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.hero-title {
  font-size: clamp(3.5rem, 12vw, 9rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  margin-top: 1rem;
}
.hero-nav a {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 4px;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  line-height: 1;
  color: var(--white);
  position: relative;
  transition: opacity 0.35s var(--ease);
}
.hero-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: -8px;
  width: 0; height: 2px; background: currentColor;
  transform: translateX(-50%);
  transition: width 0.4s var(--ease);
}
.hero-nav a:hover { opacity: 0.85; }
.hero-nav a:hover::after { width: 100%; }

.scroll-cue {
  position: absolute; bottom: 38px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%;
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--white); transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ========================================================================
   Statement
   ======================================================================== */
.statement { padding: 8rem 0; text-align: center; }
.statement-text {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: 0.5px;
}

/* ========================================================================
   Works (alternating rows)
   ======================================================================== */
.works { padding: 8rem 0; }
.works .section-label, .works .section-heading { text-align: center; }
.works .section-heading { margin-bottom: 3.5rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.project-card { display: block; color: inherit; }
.project-media { overflow: hidden; margin-bottom: 1.4rem; }
.project-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.05); }
.project-card h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  text-transform: uppercase;
  margin: 0.3rem 0 0.9rem;
}
.project-card p { color: var(--grey); margin-bottom: 1.2rem; }
.project-card .link-arrow { display: inline-block; }

/* ========================================================================
   Parallax break
   ======================================================================== */
.parallax-break {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
}
.parallax-break .container { position: relative; z-index: 2; }
.parallax-break blockquote {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 3.5rem);
  letter-spacing: 1px;
  max-width: 800px; margin: 0 auto;
}

/* ========================================================================
   About
   ======================================================================== */
.about { padding: 8rem 0; background: var(--light); }
.about .section-heading,
.contact .section-heading { text-align: center; margin-bottom: 3.5rem; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-media img { filter: grayscale(100%) contrast(1.05); width: 100%; }
.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-text p {
  color: var(--grey);
  margin-bottom: 1.4rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.about-text p:last-child { margin-bottom: 0; }

.about-facts {
  list-style: none;
  display: flex; gap: 2.5rem;
  margin: 2rem 0;
}
.about-facts li { display: flex; flex-direction: column; }
.about-facts strong {
  font-family: "Oswald", sans-serif;
  font-size: 2.4rem; font-weight: 500; line-height: 1;
}
.about-facts span {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 2px; color: var(--grey); margin-top: 0.4rem;
}

/* ========================================================================
   Gallery
   ======================================================================== */
.gallery { padding: 8rem 0 0; }
.gallery .container { margin-bottom: 3.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); filter: grayscale(0%); }
.gallery-item .caption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.7));
  color: var(--white);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover .caption { opacity: 1; }

/* ========================================================================
   Contact
   ======================================================================== */
.contact { padding: 8rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.contact-intro h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.contact-intro > p { color: var(--grey); max-width: 420px; margin-bottom: 2.5rem; }
.contact-details { list-style: none; }
.contact-details li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.contact-details span {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: var(--grey);
  margin-bottom: 0.2rem;
}

.contact-form .field { margin-bottom: 1rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--black); }
.contact-form .btn { width: 100%; margin-top: 0.5rem; }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--grey); min-height: 1.2em; }
.form-note.error { color: #b00020; }
.form-note.success { color: var(--ink); }

/* ========================================================================
   Project detail page
   ======================================================================== */
.subpage { padding-top: 90px; }
.project-detail { padding: 4rem 0 7rem; }
.back-link { display: inline-block; margin-bottom: 3rem; }
.project-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
  margin: 0.4rem 0 2rem;
}
.project-lead {
  max-width: 680px;
  margin-bottom: 4rem;
}
.project-lead p { color: var(--grey); margin-bottom: 1.2rem; font-size: 1.05rem; }

.project-gallery {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}
.project-gallery img {
  width: 100%;
}

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer { background: var(--black); color: var(--white); padding: 4rem 0; }
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem; text-align: center;
}
.footer-logo { color: var(--white); font-size: 1.3rem; }
.socials { list-style: none; display: flex; gap: 2rem; }
.socials a {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.78rem; opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}
.socials a:hover { opacity: 1; }
.copyright { font-size: 0.78rem; opacity: 0.5; letter-spacing: 1px; }

/* ========================================================================
   Scroll reveal
   ======================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
  .projects-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  /* mobile nav */
  .nav {
    position: fixed; inset: 0;
    background: rgba(13,13,13,0.97);
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .nav-link { color: var(--white); font-size: 1.4rem; }
  .nav-toggle { display: block; z-index: 110; }
  .site-header.scrolled .nav-toggle span,
  .nav-toggle.open span { background: var(--white); }

  .statement, .about, .contact { padding: 5rem 0; }
  .about-facts { gap: 1.6rem; }
  .about-facts strong { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax { background-attachment: scroll; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* iOS doesn't support fixed background well — fall back gracefully */
@supports (-webkit-touch-callout: none) {
  .parallax { background-attachment: scroll; }
}
