/* ==========================================================================
   Gülce Besen Dilek — Portfolio
   Matches the black-bar / masonry-grid Squarespace design.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #8a8a8a;
  --border: #ececec;
  --dark: #0a0a0a;
  --cream: #e8dcc2;
  --max-width: 1280px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------------- Header ---------------- */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  background: var(--bg);
}

/* Homepage (Work page) only: a bit more breathing room above the
   header, so the white area isn't flush with the top of the window. */
.site-header--home {
  padding-top: 35px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 20px;
  justify-self: start;
  position: relative;
  top: 10px;
}

/* Katz, Kolaj, Gray Zone and Green Alternative List pages only:
   nav lowered to match the logo's own downward offset on these
   pages (logo--katz), so nav and logo sit on the same baseline. */
.main-nav--centered {
  top: 26px;
}

.main-nav a,
.main-nav .dropdown > span {
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after,
.main-nav .dropdown > span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav .dropdown:hover > span::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--muted);
}

.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  transform: translateY(6px);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 28px 12px 16px;
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 20;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  font-size: 16px;
  white-space: nowrap;
}

.logo {
  justify-self: center;
}

/* Homepage only: nudge the logo down slightly toward the black
   tagline bar, without letting it touch it. */
.logo--home {
  position: relative;
  top: 4px;
}

/* Bakery Katz page only: nudge the logo down toward the
   ANIMATION · ILLUSTRATION line. */
.logo--katz {
  position: relative;
  top: 18px;
}

.logo img, .logo svg {
  height: 56px;
  width: auto;
}

.social-links {
  display: flex;
  gap: 18px;
  justify-self: end;
  color: var(--text);
}

/* Header social icons follow the same vertical offset as the nav
   links on that page, so IG/LinkedIn/mail line up with Work/Reel/About. */
.site-header .social-links {
  position: relative;
  top: 10px;
}

.site-header .social-links--centered {
  top: 26px;
}

.social-links a {
  display: flex;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}
.social-links a:hover { opacity: 1; transform: translateY(-1px); }
.social-links svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ---------------- Tagline bar ---------------- */

.tagline-bar {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 20px 24px;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Light variant used only on the Bakery Katz Comic page */
.tagline-bar--light {
  background: var(--bg);
  color: var(--muted);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

/* ---------------- Hero line above the gallery ---------------- */

.hero-line {
  background: var(--dark);
  color: #ffffff;
  text-align: left;
  padding: 40px 56px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* ---------------- Masonry work grid ---------------- */
/* Explicit columns (rather than CSS column-count) so DOM order controls
   visual order predictably: item 1 top of col 1, item 2 top of col 2, etc. */

.work-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--dark);
}

.work-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-item {
  overflow: hidden;
  background: var(--dark);
}

.work-item a {
  display: block;
  position: relative;
}

.work-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--transition);
}

.work-item a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.work-item a:hover img {
  transform: scale(1.04);
}

.work-item a:hover::before {
  opacity: 1;
}

.work-caption {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 24px;
  width: 100%;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 2;
}

.work-item a:hover .work-caption {
  opacity: 1;
}

.work-caption .project-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Kolaj title only: slightly larger than the other project titles. */
.work-caption .project-title--kolaj {
  font-size: 18px;
}

/* ---------------- Dark bio section ---------------- */

.bio-dark {
  background: var(--dark);
  color: var(--cream);
  padding: 200px 60px;
}

.bio-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
}

.bio-lead {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
  font-size: 22px;
  margin: 0;
}

.bio-text {
  flex: 1;
  max-width: 700px;
}

.bio-text p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
}

.bio-text p:last-child { margin-bottom: 0; }

/* ---------------- Generic page content (About, project pages) ---------------- */

.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.page-content h1 {
  font-size: 28px;
  margin-bottom: 24px;
}

.page-content h3, .page-content h4 {
  margin-top: 40px;
}

.page-content figure {
  margin: 32px 0;
}

.page-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.project-meta {
  color: var(--muted);
  font-size: 14px;
  margin: -12px 0 32px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.project-gallery img {
  width: 100%;
}

.project-header {
  padding: 40px 20px 16px 34px;
  text-align: left;
}

.project-header h1 {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 10px;
}

.project-header.project-header--spaced h1 {
  margin-bottom: 26px;
}

.project-subtitle {
  color: var(--text);
  font-size: 14px;
  margin: 0;
  max-width: 560px;
}

/* Bakery Katz page only: extra breathing room between the subtitle
   and the gallery below it. */
.katz-subtitle {
  margin-bottom: 20px;
}

/* Secondary section heading further down a project page, e.g.
   introducing a second gallery block. */
.section-subtitle {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 28px;
}

/* Unaligned gallery for project pages — explicit columns (not CSS
   column-count) so the DOM order maps predictably to the visual
   arrangement. Images keep their original proportions, no cropping.
   Runs edge-to-edge with only a small side margin. */
.comic-columns {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px 60px;
}

/* MT page only: side margins around the gallery, like the Kolaj
   page's centered container but at half the inset. */
.comic-columns--inset {
  max-width: 1200px;
  margin: -15px auto 0;
  padding-bottom: 45px;
}

/* MT page only: black background behind the character design
   section (header text + gallery), cream text to stay readable. */
.mt-character-section {
  background: var(--bg);
}

/* MT page only: the video section stays white, with the same
   side inset as the character gallery above it. */
.mt-video-section {
  background: var(--bg);
}

.mt-video-section .mt-project-header {
  padding-top: 25px;
  padding-bottom: 0;
}

.mt-video-section .section-subtitle {
  margin-bottom: 0;
}

.video-grid--inset {
  max-width: 1200px;
  margin: 10px auto 0;
  padding-top: 0;
}

/* MT page only: align both section headings with the inset
   gallery/video content below them. */
.mt-project-header {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 34px;
}

.comic-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comic-col img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

@media (max-width: 700px) {
  .comic-columns { flex-direction: column; padding: 12px 12px 60px; }
}

/* Lightbox for project galleries */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 12px;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.cv-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  border: 1px solid var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition), color var(--transition);
}

.cv-link:hover {
  background: var(--text);
  color: var(--bg);
}

.locked-notice {
  text-align: center;
  padding: 100px 32px;
  font-size: 18px;
  color: var(--muted);
}

.folder-list {
  column-count: 2;
  column-gap: 4px;
  padding: 4px 0;
  background: var(--dark);
}

.folder-list .work-item {
  break-inside: avoid;
  margin-bottom: 4px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

/* Reel page only: white cover behind the video frame, so its size
   is visible even before/if the embed loads. Also slightly smaller
   than the default --max-width. */
.video-embed--white {
  max-width: 1080px;
  margin-bottom: 0;
}

/* Reel page only: the dark section wraps the title and video, and
   needs its own bottom padding (instead of the video's old
   margin-bottom) so the black background extends all the way down
   to the footer instead of leaving a white gap. */
.gal-dark-section--reel {
  padding-bottom: 100px;
}

.video-embed--white iframe,
.video-embed--white video {
  background: #fff;
}

/* Reel page only: align the title with the video's left edge.
   Matches .video-embed--white's width/centering above so the two
   stay aligned at any viewport width instead of a fixed offset. */
.gal-dark-section .project-header.project-header--reel-aligned {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 0;
  padding-top: 90px;
  padding-bottom: 30px;
}

.gal-dark-section .project-header.project-header--reel-aligned h1 {
  font-size: 20px;
}

/* Three-up video layout for project pages (e.g. Green Alternative List).
   Videos show at their full natural size — no aspect-ratio box, no
   cropping — just scaled to fit the column width. */
.video-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 48px 20px 120px;
}

.video-grid .video-embed {
  position: static;
  flex: 1;
  min-width: 0;
  max-width: none;
  height: auto;
  padding-bottom: 0;
  margin: 0;
}

.video-grid .video-embed video {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  object-fit: initial;
}

.video-embed--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f2;
  color: var(--muted);
  font-size: 13px;
}

.video-embed--placeholder span {
  position: absolute;
}

@media (max-width: 700px) {
  .video-grid { flex-direction: column; padding: 12px 12px 60px; }
}

/* Green Alternative List page only: black background behind the
   header text and video grid together. */
.gal-dark-section {
  background: var(--dark);
}

.gal-dark-section .project-header h1 {
  color: var(--cream);
}

.gal-dark-section .project-subtitle {
  color: var(--cream);
}

/* Green Alternative List page only: slightly tighter title/subtitle
   gap, more breathing room before the video grid, and more black
   background below the videos. */
.gal-dark-section .project-header.project-header--spaced h1 {
  margin-bottom: 22px;
}

.gal-dark-section .video-grid {
  padding: 64px 20px 160px;
}

@media (max-width: 700px) {
  .gal-dark-section .video-grid { padding: 40px 20px 90px; }
}

/* Kolaj page only: replicates the layout of the old site — a full-bleed
   light gray background behind all the content sections, with a
   centered container so there's visible gray margin on both sides,
   rather than content running edge to edge. Poster on the left,
   title graphic + description on the right, followed by trailer /
   festivals / credits sections that also use pre-designed graphics
   as images. */
.kolaj-page {
  background: #eeedeb;
}

.kolaj-hero {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.kolaj-poster {
  flex: 0 0 400px;
}

.kolaj-poster img {
  width: 100%;
  display: block;
}

.kolaj-intro {
  flex: 1;
  max-width: 560px;
  margin-bottom: 81px;
}

.kolaj-title-img {
  max-width: 197px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.kolaj-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.kolaj-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.kolaj-section h2 {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px;
}

.kolaj-vd-section {
  padding-top: 50px;
}

.kolaj-trailer-section {
  padding-top: 60px;
  padding-bottom: 140px;
}

.kolaj-credits-section {
  padding-bottom: 120px;
}

.kolaj-section h2.kolaj-vd-heading {
  font-size: 19px;
  margin: 0 0 40px;
}

.kolaj-section h2.kolaj-trailer-heading {
  font-size: 23px;
}

.kolaj-vd {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kolaj-vd img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.kolaj-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.kolaj-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kolaj-festivals-img {
  width: 100%;
  display: block;
}

.kolaj-credits-img {
  width: 100%;
  max-width: 932px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .kolaj-hero { flex-direction: column; align-items: center; gap: 32px; padding: 40px 20px 20px; }
  .kolaj-poster { flex: none; max-width: 280px; }
  .kolaj-section { padding: 20px 20px 40px; }
}

/* Play-triggered enlarge lightbox for gal.html videos.
   The native browser fullscreen control on <video controls> is untouched;
   this only handles the custom "enlarge on play" behavior. */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.video-lightbox.open {
  display: flex;
}

.video-lightbox-inner {
  max-width: 63vw;
  max-height: 63vh;
  display: flex;
}

.video-lightbox-inner video {
  max-width: 63vw;
  max-height: 63vh;
  width: auto;
  height: auto;
  display: block;
}

/* MT page only: larger enlarge size for the portrait social clips. */
.video-lightbox-inner--large {
  max-width: 85vw;
  max-height: 85vh;
}

.video-lightbox-inner--large video {
  max-width: 85vw;
  max-height: 85vh;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--bg);
  padding: 50px 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer-impressum {
  margin-top: 10px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .folder-list { column-count: 2; }
  .bio-grid { flex-direction: column; gap: 24px; }
  .bio-lead { flex: none; white-space: normal; font-size: 18px; }
  .bio-text p { font-size: 13px; }
}

@media (max-width: 700px) {
  .site-header { grid-template-columns: 1fr auto 1fr; padding: 16px 20px; }
  .nav-toggle { display: block; justify-self: start; }
  .logo img, .logo svg { height: 44px; }
  .social-links { gap: 10px; }
  .social-links svg { width: 16px; height: 16px; }
  .tagline-bar { font-size: 10px; letter-spacing: 0.16em; padding: 14px 20px; }
  .main-nav {
    grid-column: 1 / -1;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.open { max-height: 400px; margin-top: 16px; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    border: none;
    padding: 8px 0 0 12px;
  }
  .dropdown.open .dropdown-menu { display: flex; }
  .work-grid { flex-direction: column; }
  .folder-list { column-count: 1; }
  .bio-dark { padding: 70px 24px; }
  .gal-dark-section .project-header.project-header--reel-aligned { padding: 60px 20px 24px; }
}

/* ---------------- About page ---------------- */

.about-page h1,
.about-page h2 {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 28px;
}

.about-page p {
  margin: 0 0 20px;
  max-width: 620px;
}

.about-page h3 {
  margin: 40px 0 14px;
  font-size: 17px;
}

/* Section 1: About Me — text left, full-height portrait right. */
.about-hero {
  display: flex;
  align-items: stretch;
  min-height: 90vh;
}

.about-hero-text {
  flex: 1;
  padding: 220px 56px 64px 140px;
}

.about-hero-text h1 {
  font-size: 60px;
  margin-bottom: 32px;
}

.about-hero-photo {
  flex: 1;
  position: relative;
  min-height: 480px;
}

.about-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section 2: My Approach — line-art visual left, text right. */
.about-approach {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 170px 56px 100px;
}

.about-approach-visual {
  flex: 1;
  position: relative;
  min-height: 360px;
}

.about-approach-illustration {
  position: relative;
  z-index: 1;
  display: block;
  width: 128px;
  margin: 55px 0 0 55px;
}

.about-approach-text {
  flex: 1;
  padding-top: 6px;
}

.about-approach-text h2 {
  font-size: 30px;
}

/* Section 3: Contact Me — info left, form right. */
.about-contact {
  display: flex;
  gap: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 56px 160px;
}

.about-contact-info {
  flex: 1;
}

.about-contact-info h2 {
  font-size: 34px;
}

.about-page p.about-contact-name {
  margin-bottom: 10px;
}

.about-page p.about-contact-connect {
  margin-top: 48px;
}

.about-contact-socials {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.about-contact-socials a {
  color: var(--text);
}

.about-contact-socials svg {
  width: 24px;
  height: 24px;
}

.about-contact-form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-block-label {
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field span {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}

.form-field span em {
  font-style: normal;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--text);
  background: #fafaf8;
  color: var(--text);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
  background: #fff;
}

.form-send {
  align-self: flex-start;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}

.form-send::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.form-send:hover::after {
  transform: scaleX(1);
}

@media (max-width: 900px) {
  .about-hero { flex-direction: column; min-height: 0; }
  .about-hero-text { padding: 48px 24px 56px; }
  .about-hero-text h1 { font-size: 40px; }
  .about-hero-photo { min-height: 360px; order: -1; }
  .about-approach { flex-direction: column; padding: 36px 24px 60px; gap: 6px; }
  .about-approach-visual { min-height: 270px; width: 100%; }
  .about-contact { flex-direction: column; padding: 60px 24px 100px; gap: 48px; }
  .form-row { flex-direction: column; gap: 20px; }
}
