/* ============================
   1) RESET + GLOBAL
============================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0e0e0e;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   2) GLOBAL TYPOGRAPHY SYSTEM
============================ */

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Special Titles (Projects / Project Name) */
.playfair {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Body Text */
p {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 300;
  color: #d6d6d6;
  margin-bottom: 20px;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* ============================
   3) SPACING SYSTEM (GLOBAL)
============================ */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

/* ============================
   2) HEADER — GLOBAL
============================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 5000;
  transition: all 0.35s ease;
  backdrop-filter: blur(0px);
}

.site-header.scrolled {
  backdrop-filter: blur(18px);
  background: rgba(0,0,0,0.55);
  height: 64px;
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 26px;
  width: auto;
  filter: brightness(100%);
  transition: opacity .3s ease;
}

/* ============================
   MENU TOGGLE — MINIMAL
============================ */

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 22px;
  height: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: #ffffff;
  transition: 0.3s ease;
  opacity: 0.9;
}

.menu-toggle:hover span {
  opacity: 1;
}

/* ============================
   OVERLAY MENU — GLOBAL
============================ */

.menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 99999;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.overlay-nav li {
  margin: var(--space-3) 0;
}

.overlay-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  animation: menuFade 0.6s ease forwards;
}

@keyframes menuFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* ============================
   3) HOME — HERO (DESKTOP)
============================ */

.hero {
  width: 100%;
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0e0e;
  position: relative;
  overflow: hidden;
  perspective: 600px;
  perspective-origin: right center;
}

.hero-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 var(--space-4);
  box-sizing: border-box;
  position: relative;
}

/* LEFT TEXT */
.hero-left {
  position: relative;
  z-index: 3;
  padding-left: 0;
  text-align: left;
}

.hero-left h1 {
  font-size: 4.6rem;
  font-weight: 300;
  line-height: 0.9;
  margin-bottom: var(--space-5);
  max-width: 900px;
  white-space: normal;
}

.hero-left h1 .line1,
.hero-left h1 .line2 {
  display: block;
  white-space: nowrap;
}

.hero-left em {
  font-style: italic;
  color: #ffffff;
}

.hero-left .subtitle {
  font-size: 1.2rem;
  opacity: 0.7;
  text-align: left;
  line-height: 1.55;
  max-width: 420px;
  margin-top: var(--space-2);
}

/* SCROLL */
.scroll-wrap {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: flex-start;
}

.scroll-text {
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: #ffffff;
  text-decoration: none;
}

.scroll-line {
  width: 46px;
  height: 1px;
  background-color: #ffffff;
  opacity: 0.9;
}

/* RIGHT IMAGE */
.hero-right {
  position: relative;
  width: 100%;
  height: 100vh;
  perspective: 600px;
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background-image: url('https://ehsannazemi.com/wp-content/uploads/2026/06/hero.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: rotateY(-5deg) scale(1.05);
  transform-origin: right center;
  z-index: 1;
  filter: brightness(60%);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
    rgba(14,14,14,0.85),
    rgba(14,14,14,0.4),
    transparent
  );
  pointer-events: none;
  z-index: 3;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(14,14,14,0.85) 0%,
    rgba(14,14,14,0.4) 25%,
    transparent 50%,
    rgba(14,14,14,0.4) 75%,
    rgba(14,14,14,0.85) 100%
  );
  pointer-events: none;
  z-index: 2;
}



/* ============================
   4) PROJECTS PAGE — DESKTOP
============================ */

.projects-page {
  background: #ffffff;
  color: #000;
  padding: var(--space-6) 8%;
  min-height: 100vh;
}

/* HEADER AREA */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-5);
}

.projects-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 500;
  color: #000;
  letter-spacing: -0.01em;
}

/* CATEGORIES */
.projects-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-4);
}

.projects-categories a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #000;
  opacity: 0.6;
  transition: opacity .25s ease;
}

.projects-categories li.active a,
.projects-categories a:hover {
  opacity: 1;
}

/* GRID — 3 COLUMNS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* PROJECT CARD */
.project-card a {
  text-decoration: none;
  color: inherit;
}

/* IMAGE — 1:1 */
.project-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

/* TEXT BELOW IMAGE */
.project-info {
  margin-top: var(--space-2);
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2px;
  color: #000;
  letter-spacing: -0.01em;
}

.project-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: var(--space-1);
}

/* VIEW PROJECT */
.project-view {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .25s ease;
}

.project-card:hover .project-view {
  opacity: 1;
}

.project-view .arrow {
  font-size: 14px;
}

/* ============================
   5) single-PAGE — DESKTOP
============================ */

/* فاصله از هدر */
.single-project-wrapper {
  margin-top: 100px;
  width: 100%;
  display: flex;
  justify-content: center;   /* کل بخش وسط صفحه */
}

/* ساختار کلی: مربع + پنل مشکی کنار هم */
.single-project-fullscreen {
  display: grid;
  grid-template-columns: auto 380px; /* ستون راست ثابت */
  background: #000;
  align-items: start;                /* ستون راست مربع نشود */
}

/* LEFT: مربع عکس */
.project-left {
  display: flex;
  justify-content: flex-start; /* مربع از سمت چپ مستطیل شروع شود */
  align-items: flex-start;
  padding: 0px;
  background: #000;
   height: auto;
}

/* مربع واقعی برای عکس پروژه */
.project-image-wrapper {
  position: relative;
  width: 700px;          /* اندازه مربع زرد مطابق خواسته */
  aspect-ratio: 1 / 1;   /* مربع کامل */
  overflow: hidden;
  background: #000;
  margin-left: 0;        /* چسبیده به سمت چپ مستطیل قرمز */
   top: 0;
}


/* عکس کامل داخل مربع، لب‌به‌لب قاب */
.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;   /* این خط مشکل را کامل حل می‌کند */
  opacity: 0;
  transition: opacity .4s ease;
}



.project-slide.active {
  opacity: 1;
}

/* BACK BUTTON داخل مربع، بالا سمت چپ */
.project-back {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff !important;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  z-index: 10;
}

.project-back .arrow {
  font-size: 16px;
  margin-right: 6px;
}

/* NAV BUTTONS داخل مربع، پایین سمت چپ */
.project-nav {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 0;
  z-index: 10;
}

.project-nav button {
  background: #000;
  border: none;
  color: #fff;
  padding: 10px 18px;
  font-size: 18px;
  cursor: pointer;
}

.project-nav button:hover {
  opacity: 0.7;
}

/* RIGHT: پنل مشکی متن‌ها (مستطیل کنار مربع) */
.project-right {
  background: #000;
  color: #fff;
  padding: 60px 50px;
padding-top: 100px;
  display: flex;
  align-items: flex-start; /* ارتفاع مستقل از مربع */
}

.project-right-inner {
  max-width: 480px;
}

.project-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  opacity: .9;
}

.project-heading {
  font-size: 22px;
  font-weight: 400;
  margin-top: 90px;
  margin-bottom: 10px;
}

.project-heading::after {
  content: "";
  display: block;
  width: 100px;
  height: 1px;
  background: #fff;
  margin-top: 10px;
}

.project-right p {
  font-size: 15.5px;
  line-height: 1.85;
  color: #d6d6d6;
  margin-bottom: 20px;
}

/* موبایل */
@media (max-width: 768px) {
  .single-project-fullscreen {
    grid-template-columns: 1fr;
  }

  .project-left {
    justify-content: center;
    padding: 20px 0;
  }

  .project-image-wrapper {
    width: 90%;
    max-width: 420px;
  }

  .project-right {
    padding: 30px 20px;
  }
}




/* ============================
   OVERLAY MODE (WHEN OPENED)
============================ */

.project-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 4000;
  pointer-events: none;
  grid-template-columns: 58% 42%;
}

.project-overlay.active {
  display: grid;
  pointer-events: auto;
}

.project-overlay.active .single-project-fullscreen {
  padding-top: var(--space-4);
}


/* ============================
   6) PROJECT OVERLAY SYSTEM
============================ */

/* OVERLAY WRAPPER */
.project-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 4000;
  pointer-events: none;
  grid-template-columns: 58% 42%;
  opacity: 0;
  transition: opacity .35s ease;
}

/* WHEN ACTIVE */
.project-overlay.active {
  display: grid;
  pointer-events: auto;
  opacity: 1;
}

/* WHEN OVERLAY IS ACTIVE, REDUCE TOP PADDING */
.project-overlay.active .single-project-fullscreen {
  padding-top: var(--space-4);
}

/* DISABLE PAGE SCROLL WHEN OVERLAY IS OPEN */
body.overlay-open {
  overflow: hidden;
}


/* ============================
   7) LOGO & MENU COLOR OVERRIDES
   (FOR WHITE BACKGROUND PAGES)
============================ */

/* PROJECTS PAGE — WHITE BACKGROUND */
.projects-page .logo img {
  content: url('/wp-content/themes/enazemi-studio/assets/images/logowhite.webp');
  filter: invert(0) brightness(0);
}

/* MENU TOGGLE — BLACK LINES */
.projects-page .menu-toggle span {
  background-color: #000 !important;
  opacity: 0.9;
}

/* HEADER ON WHITE PAGES */
.projects-page .site-header {
  background: transparent;
  backdrop-filter: none;
}

.projects-page .site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}

/* MENU OVERLAY ALWAYS WHITE TEXT */
.projects-page .menu-overlay a {
  color: rgba(255,255,255,0.85) !important;
}


/* ============================
   8) ANIMATIONS + MICRO‑INTERACTIONS
============================ */

/* GLOBAL TRANSITIONS */
a,
button,
.project-card,
.menu-toggle span,
.scroll-line,
.project-nav button {
  transition: all .3s ease;
}

/* SMOOTH HOVER SCALE (SUBTLE) */
.hover-scale {
  transition: transform .35s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

/* FADE-IN ELEMENTS */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp .6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FADE-IN SLOW */
.fade-in-slow {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInSlow .9s ease forwards;
}

@keyframes fadeInSlow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FADE-IN DELAYED */
.fade-in-delay {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInDelay .75s ease forwards;
  animation-delay: .25s;
}

@keyframes fadeInDelay {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* IMAGE HOVER BRIGHTNESS */
img:hover {
  filter: brightness(1.05);
}

/* SCROLL LINE ANIMATION */
.scroll-line {
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollLine 2.4s linear infinite;
  opacity: .7;
}

@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* MENU OVERLAY FADE */
.menu-overlay {
  opacity: 0;
  transition: opacity .35s ease;
}

.menu-overlay.active {
  opacity: 1;
}

/* PROJECT CARD HOVER */
.project-card:hover .project-name {
  opacity: 1;
  transform: translateY(-2px);
}

.project-card:hover .project-view {
  opacity: 1;
}

/* BUTTON PRESS FEEDBACK */
button:active {
  transform: scale(0.96);
}

/* SMOOTH PAGE FADE-IN */
body {
  animation: bodyFade .5s ease;
}

@keyframes bodyFade {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ============================================
   TYPOGRAPHY SYSTEM — MINIMAL ARCHITECTURAL
   enazemi-studio — 2026
============================================ */

:root {
  /* TYPE SCALE */
  --type-h1: 4.2rem;
  --type-h2: 2.4rem;
  --type-h3: 1.6rem;
  --type-h4: 1.25rem;
  --type-h5: 1rem;

  --type-body: 15.5px;
  --type-small: 13px;

  /* LINE HEIGHT */
  --lh-tight: 1.05;
  --lh-normal: 1.35;
  --lh-relaxed: 1.55;

  /* LETTER SPACING */
  --ls-tight: -0.01em;
  --ls-normal: 0.02em;
  --ls-wide: 0.08em;
}

/* HEADINGS */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: var(--ls-tight);
  color: #fff;
  margin-bottom: var(--space-3);
}

/* BODY */
p {
  font-size: var(--type-body);
  line-height: var(--lh-relaxed);
  font-weight: 300;
  color: #d6d6d6;
  margin-bottom: var(--space-3);
}

/* PLAYFAIR TITLES */
.playfair {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: var(--ls-tight);
}
/* ============================================
   HERO TYPOGRAPHY — UNIFIED ACROSS ALL PAGES
============================================ */

.hero-title,
.method-title,
.principles-title,
.commissions-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--type-h1);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}

.hero-subtitle,
.method-lead,
.principles-subtitle,
.commissions-subtitle {
  font-size: var(--type-h4);
  line-height: var(--lh-normal);
  opacity: 0.75;
  margin-bottom: var(--space-3);
}

.hero-text,
.method-text,
.principles-text,
.commissions-text {
  font-size: var(--type-body);
  line-height: var(--lh-relaxed);
  opacity: 0.85;
  max-width: 520px;
}



