/*
Theme Name: Yashar Shirdel
Theme URI: https://yasharshirdel.com
Author: Yashar Shirdel
Description: Artist portfolio theme — dark, minimal, scrollable.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:    #0a0a0a;
  --charcoal: #1a1a1a;
  --gray:     #5a5a5a;
  --light:    #e8e5df;
  --white:    #f5f3ef;
  --red:      #c0392b;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--light);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ─── NAVIGATION ───────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  mix-blend-mode: normal;
  transition: background 0.4s ease;
}

#site-nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#site-nav .nav-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.85;
}

#site-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

#site-nav ul li a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}

#site-nav ul li a:hover,
#site-nav ul li a.active {
  color: var(--light);
}

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

#hero .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);
}

#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.1) 60%);
}

#hero .hero-content {
  position: absolute;
  bottom: 60px;
  left: 48px;
  right: 48px;
}

#hero .hero-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
  max-width: 700px;
}

#hero h1 em {
  font-style: italic;
  color: var(--light);
  opacity: 0.6;
}

#hero .hero-scroll {
  position: absolute;
  bottom: 60px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

#hero .hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: var(--gray);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ─── WORKS SECTION ─────────────────────────────────────────── */
#works {
  padding: 120px 0 80px;
}

#works .section-header {
  padding: 0 48px 60px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0;
}

#works .section-header h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
}

/* ─── WORK ITEM ─────────────────────────────────────────────── */
.work-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

.work-item-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  transition: background 0.3s ease;
}

.work-item-inner:hover {
  background: var(--charcoal);
}

/* Left: image area */
.work-image-wrap {
  position: relative;
  overflow: hidden;
  background: #111;
}

.work-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: brightness(0.75) saturate(0.85);
}

.work-item-inner:hover .work-image-wrap img {
  transform: scale(1.03);
  filter: brightness(0.85) saturate(1);
}

/* Right: text area */
.work-text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 48px;
}

.work-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 32px;
}

.work-description {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(232, 229, 223, 0.65);
  max-width: 420px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.work-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
}

.work-meta .meta-key {
  color: var(--gray);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.work-meta .meta-val {
  color: rgba(232, 229, 223, 0.75);
}

.work-meta .meta-val a {
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.work-meta .meta-val a:hover {
  border-color: var(--red);
}

/* Alternating layout */
.work-item:nth-child(even) .work-item-inner {
  direction: rtl;
}

.work-item:nth-child(even) .work-item-inner > * {
  direction: ltr;
}

/* ─── GALLERY STRIP ─────────────────────────────────────────── */
.work-gallery-strip {
  display: grid;
  gap: 2px;
  background: var(--black);
}

.work-gallery-strip.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.work-gallery-strip.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.work-gallery-strip.cols-4 {
  grid-template-columns: 2fr 1fr 1fr;
}

.work-gallery-strip img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.4s;
}

.work-gallery-strip img:hover {
  filter: brightness(1);
}

/* ─── LIGHTBOX ──────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
}

#lightbox-close:hover {
  color: var(--white);
}

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
#about {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

#about .about-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 40px;
}

#about h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 32px;
}

#about .about-bio {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(232, 229, 223, 0.7);
  margin-bottom: 40px;
}

#about .about-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 2;
  color: var(--gray);
}

#about .cv-section {
  margin-top: 0;
}

#about .cv-section h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

#about .cv-list {
  list-style: none;
  margin-bottom: 48px;
}

#about .cv-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  line-height: 1.5;
}

#about .cv-list li .cv-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  padding-top: 1px;
}

#about .cv-list li .cv-text {
  color: rgba(232, 229, 223, 0.75);
}

/* ─── CONTACT SECTION ───────────────────────────────────────── */
#contact {
  padding: 100px 48px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

#contact .contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}

#contact h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 40px;
}

#contact .contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contact .contact-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}

#contact .contact-link:hover {
  color: var(--white);
}

#contact .contact-link .link-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  min-width: 60px;
}

#contact .contact-link .link-val {
  font-size: 14px;
  color: rgba(232, 229, 223, 0.75);
  transition: color 0.2s;
}

#contact .contact-link:hover .link-val {
  color: var(--white);
}

#contact .intro-text {
  font-size: 14px;
  font-style: italic;
  line-height: 1.9;
  color: rgba(232, 229, 223, 0.5);
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 32px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
#site-footer {
  padding: 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#site-footer .footer-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

#site-footer .footer-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  opacity: 0.5;
}

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .work-item-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .work-item:nth-child(even) .work-item-inner {
    direction: ltr;
  }

  .work-image-wrap {
    height: 55vw;
  }

  .work-text {
    padding: 44px 32px;
  }

  #about {
    grid-template-columns: 1fr;
    padding: 80px 32px;
    gap: 60px;
  }

  #contact {
    grid-template-columns: 1fr;
    padding: 80px 32px;
    gap: 48px;
  }

  #site-footer,
  #works .section-header {
    padding-left: 32px;
    padding-right: 32px;
  }

  #hero .hero-content {
    left: 32px;
    right: 32px;
  }

  #hero .hero-scroll {
    display: none;
  }

  .work-gallery-strip.cols-3,
  .work-gallery-strip.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  #site-nav {
    padding: 16px 24px;
  }

  #site-nav ul {
    gap: 24px;
  }

  .work-gallery-strip.cols-2,
  .work-gallery-strip.cols-3,
  .work-gallery-strip.cols-4 {
    grid-template-columns: 1fr;
  }

  .work-gallery-strip img {
    height: 70vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
  .work-image-wrap img { transition: none; }
}
