/* ================================================================
   DECORIUM MİMARLIK & İÇ TASARIM — Global Stylesheet
   Dark anthracite palette · Soft gold accents · Syne / Manrope
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-elevated: #161616;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(10, 10, 10, 0.55);
  --accent-gold: #c9a961;
  --accent-gold-soft: #b8975a;
  --accent-gold-hover: #dfc383;
  --accent-gold-glow: rgba(201, 169, 97, 0.18);
  --text-primary: #f5f5f5;
  --text-secondary: #9a9a9a;
  --text-muted: #666666;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 169, 97, 0.3);
  --shadow-lux: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius-sm: 2px;
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
}

::selection { background: var(--accent-gold); color: var(--bg-primary); }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.8rem, 6.5vw, 6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }

p { color: var(--text-secondary); font-weight: 300; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent-gold);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

/* ================================================================
   Navigation – Glassmorphic Floating Header
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.85);
  border-bottom-color: rgba(201, 169, 97, 0.18);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

.nav-brand img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.15));
  transition: transform 0.4s ease;
}
.nav-brand:hover img { transform: rotate(-4deg) scale(1.05); }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  color: var(--text-primary);
}
.nav-brand-text .sub {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  color: var(--accent-gold);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-menu a.active { color: var(--accent-gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  z-index: 1200;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: currentColor;
  margin: 6px 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(80vw, 340px);
    height: 100vh;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
    border-left: 1px solid var(--border-gold);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 1rem; }
  .nav-brand img { height: 42px; }
  .nav-brand-text .name { font-size: 0.9rem; }
}

/* ================================================================
   Buttons
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 38px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1),
              background 0.35s ease,
              color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 20px 40px -20px rgba(201, 169, 97, 0.6);
}
.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 25px 60px -20px rgba(201, 169, 97, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}
.btn-ghost:hover {
  background: var(--accent-gold-glow);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: "→";
  font-family: var(--font-heading);
  transition: transform 0.35s ease;
}
.btn-arrow:hover::after { transform: translateX(6px); }

/* ================================================================
   Hero — Home
   ================================================================ */

.hero-scroll-wrap {
  height: 100vh;
  position: relative;
}

.hero-sticky {
  position: relative;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Scenic slider (replaces looping video) */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 8.5s ease-out forwards;
}
@keyframes kenBurns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: none;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 30%, rgba(10,10,10,0.25) 65%, rgba(10,10,10,0.35) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.75) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.hero-line {
  position: absolute;
  left: clamp(1.2rem, 4.5vw, 4.5rem);
  right: auto;
  max-width: min(760px, 68vw);
  top: 50%;
  transform: translate(-24px, -50%);
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.2, 0, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0, 0.2, 1);
  text-align: left;
}

.hero-line.active {
  opacity: 1;
  transform: translate(0, -50%);
}

.hero-line .eyebrow { margin-bottom: 1.8rem; }

.hero-line h1 {
  font-size: clamp(2rem, 5.4vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.75);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  line-height: 1.05;
}
.hero-line h1 .gold { color: var(--accent-gold); font-weight: 700; font-style: italic; }

@media (max-width: 900px) {
  .hero-line { max-width: 90vw; }
  .hero-line h1 { font-size: clamp(1.7rem, 6.5vw, 3rem); }
}
@media (max-width: 480px) {
  .hero-line h1 { font-size: 1.7rem; line-height: 1.18; }
  .hero-line .eyebrow { font-size: 0.62rem; }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: clamp(1.2rem, 4.5vw, 4.5rem);
  transform: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll-indicator::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--accent-gold), transparent);
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 33%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-hover));
  z-index: 5;
  transition: width 0.9s cubic-bezier(0.2, 0, 0.2, 1);
}

/* ================================================================
   About snippet (home) & general two-column
   ================================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split .col-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.split .col-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.split .col-media:hover img { transform: scale(1.08); }

.split h2 { margin: 1.5rem 0 1.5rem; }
.split p { max-width: 44ch; margin-bottom: 1.2rem; }

/* ================================================================
   Featured projects grid – home
   ================================================================ */

.featured-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}

.proj-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: border-color 0.4s ease, transform 0.5s ease;
  /* button reset (some cards are <button> for accessibility) */
  background: var(--bg-secondary);
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.proj-card:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.proj-card:hover { border-color: var(--border-gold); transform: translateY(-6px); }

.featured-projects .proj-card { grid-column: span 1; aspect-ratio: 4/5; margin-top: 0; }

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

.proj-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0, 0.2, 1), filter 0.6s ease;
  filter: brightness(0.85) saturate(0.9);
}
.proj-card:hover img { transform: scale(1.08); filter: brightness(1) saturate(1); }

.proj-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.8rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  transform: translateY(20px);
  transition: transform 0.5s ease;
  z-index: 2;
}
.proj-card:hover .proj-card-info { transform: translateY(0); }

.proj-card-info .cat {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.proj-card-info h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
}

/* ================================================================
   Projects gallery grid (projects.html)
   ================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

/* All cards are uniform squares now, regardless of position. */
.gallery-grid .proj-card,
.gallery-grid .proj-card:nth-child(3n+2),
.gallery-grid .proj-card:nth-child(4n+3) {
  aspect-ratio: 1 / 1;
  margin-top: 0;
}

@media (min-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1600px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}

.gallery-grid .proj-card-info { padding: 1rem 1.1rem; }
.gallery-grid .proj-card-info h3 { font-size: 0.98rem; }
.gallery-grid .proj-card-info .cat { font-size: 0.6rem; letter-spacing: 0.28em; }

/* ================================================================
   Project detail modal
   ================================================================ */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.project-modal.open { display: flex; opacity: 1; }

.project-modal .pm-dialog {
  width: 100%;
  max-width: 1180px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-lux);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}
.project-modal.open .pm-dialog { transform: translateY(0) scale(1); }

.project-modal .pm-media {
  position: relative;
  background: #000;
  min-height: 380px;
  max-height: 90vh;
  overflow: hidden;
}
.project-modal .pm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal .pm-body {
  padding: clamp(1.5rem, 3vw, 2.8rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: 90vh;
}

.project-modal .pm-cat {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.project-modal .pm-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.project-modal .pm-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.project-modal .pm-meta .k {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}
.project-modal .pm-meta .v { color: var(--text-primary); font-size: 0.92rem; }

.project-modal .pm-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
}
.project-modal .pm-desc p + p { margin-top: 0.9rem; }

.project-modal .pm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.project-modal .pm-close:hover { transform: rotate(90deg); background: var(--accent-gold); color: var(--bg-primary); }

.project-modal .pm-actions {
  margin-top: auto;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .project-modal .pm-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .project-modal .pm-media {
    aspect-ratio: 16/10;
    min-height: 0;
    max-height: 42vh;
  }
  .project-modal .pm-body { max-height: 50vh; }
}

.proj-card { cursor: pointer; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 999px;
}
.filter-btn:hover { color: var(--text-primary); border-color: var(--border-gold); }
.filter-btn.active { background: var(--accent-gold); color: var(--bg-primary); border-color: var(--accent-gold); }

/* ================================================================
   Forms
   ================================================================ */

.form { display: flex; flex-direction: column; gap: 1.8rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

.form-field { position: relative; }

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 12px 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.35s ease;
  border-radius: 0;
}

/* Native select — full dark styling. The browser paints the option list
   using its own dark widgets when `color-scheme: dark` is set on the element. */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23c9a961' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
  padding-right: 28px;
  cursor: pointer;
}

/* Style the option list itself. Support is limited but modern browsers honor these. */
.form-field select option {
  background-color: #141414;
  color: #f5f5f5;
  padding: 10px;
}
.form-field select option:checked,
.form-field select option:hover {
  background-color: #1f1a10;
  color: var(--accent-gold-hover);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--accent-gold); }

.form-field textarea { resize: vertical; min-height: 120px; padding: 12px 0; }

.form-message {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(201, 169, 97, 0.08);
  border-color: var(--border-gold);
  color: var(--accent-gold-hover);
}
.form-message.error {
  display: block;
  background: rgba(255, 80, 80, 0.06);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff8b8b;
}

/* ================================================================
   Footer
   ================================================================ */

.footer {
  border-top: 1px solid var(--border-light);
  padding: clamp(60px, 8vw, 100px) 0 40px;
  background: var(--bg-secondary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand img {
  width: 240px;
  max-width: 80%;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.12));
}
.footer-brand p { max-width: 34ch; }

.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer ul a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.3s ease, padding 0.3s ease;
}
.footer ul a:hover { color: var(--accent-gold); padding-left: 6px; }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.footer-bottom a { color: var(--text-muted); transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--accent-gold); }

/* ================================================================
   Page hero (about, projects, contact)
   ================================================================ */

.page-hero {
  padding-top: calc(var(--nav-h) + 100px);
  padding-bottom: 60px;
  position: relative;
}

.page-hero .eyebrow { margin-bottom: 2rem; }
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
  line-height: 1;
}
.page-hero h1 em { color: var(--accent-gold); font-style: italic; font-weight: 600; }
.page-hero h1 em + * { margin-left: 0.35em; }
.page-hero h1 em { margin-right: 0.15em; }

/* Give all italic <em> in headings a small breathing room, so italic letters
   never visually collide with the upright text that follows them. */
h1 em, h2 em, h3 em { margin-right: 0.18em; }
h1 em + *, h2 em + *, h3 em + * { margin-left: 0.08em; }
.page-hero p.lead {
  margin-top: 2rem;
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ================================================================
   Reveal animation
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* "instant" = element was already inside the viewport at page load
   (or entered it via zoom/resize before scrolling). No entrance animation. */
.reveal.instant {
  transition: none !important;
  transition-delay: 0s !important;
  animation: none !important;
}

.reveal.d-1 { transition-delay: 0.1s; }
.reveal.d-2 { transition-delay: 0.2s; }
.reveal.d-3 { transition-delay: 0.3s; }
.reveal.d-4 { transition-delay: 0.4s; }

/* ================================================================
   Stats
   ================================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ================================================================
   Services list (about)
   ================================================================ */

.svc-list { border-top: 1px solid var(--border-light); }
.svc-item {
  display: grid;
  grid-template-columns: 60px 1fr 2fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding 0.4s ease, background 0.4s ease;
}
.svc-item:hover { padding-left: 1rem; background: rgba(201, 169, 97, 0.03); }
.svc-item .num {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
.svc-item h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; }
.svc-item p { margin: 0; max-width: 60ch; }
.svc-item .arrow { color: var(--accent-gold); font-family: var(--font-heading); font-size: 1.5rem; opacity: 0.6; transition: transform 0.4s ease, opacity 0.3s ease; }
.svc-item:hover .arrow { transform: translateX(8px); opacity: 1; }
@media (max-width: 800px) {
  .svc-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .svc-item .arrow { display: none; }
}

/* ================================================================
   Contact page
   ================================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info {
  border: 1px solid var(--border-light);
  padding: clamp(1.8rem, 3vw, 3rem);
  background: var(--bg-secondary);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.contact-info h3 { margin-bottom: 2rem; font-weight: 500; }

.contact-block { margin-bottom: 2rem; }
.contact-block .label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  display: block;
}
.contact-block .value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.5;
}
.contact-block .value a:hover { color: var(--accent-gold); }

.map-embed {
  width: 100%;
  height: 260px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  margin-top: 1rem;
  filter: grayscale(1) contrast(1.15) brightness(0.7);
  transition: filter 0.5s ease;
}
.map-embed:hover { filter: grayscale(0.4) contrast(1) brightness(0.85); }

/* ================================================================
   Login page
   ================================================================ */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(201, 169, 97, 0.06), transparent 60%),
    var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 4px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lux);
}

.auth-card .brand {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.auth-card .brand img { height: 60px; }

.auth-card h1 {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}
.auth-card p.sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
}

/* ================================================================
   Admin panel
   ================================================================ */

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-side {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-light);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.admin-side .brand img { height: 46px; margin-bottom: 0.5rem; }
.admin-side .brand span {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.admin-side nav a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 3px;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}
.admin-side nav a:hover,
.admin-side nav a.active {
  color: var(--text-primary);
  background: rgba(201, 169, 97, 0.06);
  border-left-color: var(--accent-gold);
}
.admin-side .logout {
  margin-top: auto;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.admin-side .logout:hover { color: #ff8b8b; border-color: rgba(255, 80, 80, 0.3); }

.admin-main { padding: 2.5rem clamp(1.5rem, 4vw, 3rem); }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-topbar h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; }
.admin-topbar .stats-inline { display: flex; gap: 2rem; }
.admin-topbar .stats-inline span { font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-secondary); }
.admin-topbar .stats-inline strong { color: var(--accent-gold); font-weight: 600; }

.msg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.msg-table th, .msg-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  vertical-align: top;
}
.msg-table th {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
  background: var(--bg-elevated);
}
.msg-table tbody tr { transition: background 0.3s ease; }
.msg-table tbody tr:hover { background: rgba(201, 169, 97, 0.03); }
.msg-table tbody tr.unread { border-left: 2px solid var(--accent-gold); }
.msg-table .msg-preview { max-width: 500px; color: var(--text-secondary); }
.msg-table .actions { display: flex; gap: 8px; white-space: nowrap; }
.msg-table .icon-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.3s ease;
  border-radius: 3px;
}
.msg-table .icon-btn:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
.msg-table .icon-btn.danger:hover { color: #ff8b8b; border-color: rgba(255, 80, 80, 0.35); }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-state h3 { color: var(--text-primary); margin-bottom: 0.5rem; font-weight: 500; }

/* Modal for message details */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 2.5rem;
  max-width: 620px;
  width: 100%;
  border-radius: 4px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { margin-bottom: 1.5rem; font-weight: 500; }
.modal .row { margin-bottom: 1.2rem; }
.modal .row .label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
  display: block;
}
.modal .row .value { color: var(--text-primary); font-size: 0.98rem; word-wrap: break-word; white-space: pre-wrap; }
.modal .modal-actions { display: flex; gap: 1rem; margin-top: 2rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  padding: 1rem 1.6rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-radius: 3px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-lux);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { border-color: rgba(255, 80, 80, 0.4); }

/* ================================================================
   Misc utilities
   ================================================================ */

.gold { color: var(--accent-gold); }
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.mb-lg { margin-bottom: 3rem; }
.max-w-lead { max-width: 60ch; }

.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  border: 0;
  margin: 2rem 0;
}

/* ================================================================
   MOBILE POLISH — everything below 900px / 560px gets tuned
   for touch, one-hand use and small viewports.
   ================================================================ */

@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  h1 { font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.06; }
  h2 { font-size: clamp(1.7rem, 6.5vw, 2.6rem); line-height: 1.1; }
  h3 { font-size: clamp(1.15rem, 4.5vw, 1.6rem); }

  .section { padding: clamp(56px, 12vw, 90px) 0; }
  .container { padding: 0 1.2rem; }

  .page-hero { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 40px; }
  .page-hero p.lead { font-size: 1rem; }

  .btn { padding: 15px 26px; font-size: 0.76rem; letter-spacing: 0.24em; min-height: 48px; }
  .btn-primary { box-shadow: 0 15px 30px -18px rgba(201, 169, 97, 0.55); }

  /* Nav */
  .nav-brand img { height: 40px; }
  .nav-brand-text .name { font-size: 0.82rem; letter-spacing: 0.24em; }
  .nav-brand-text .sub { font-size: 0.52rem; letter-spacing: 0.28em; }

  /* Hero */
  .hero-line { max-width: 90vw; left: 1.1rem; }
  .hero-line h1 { font-size: clamp(1.9rem, 8.5vw, 3rem); }
  .hero-line .eyebrow { font-size: 0.6rem; margin-bottom: 1.2rem; }
  .hero-scroll-indicator { left: 1.1rem; bottom: 28px; font-size: 0.6rem; }
  .hero-scroll-indicator::after { height: 30px; }

  /* Footer */
  .footer { padding: 60px 0 32px; }
  .footer-brand img { width: 200px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; font-size: 0.72rem; }

  /* Split layouts stack nicely */
  .split { gap: 2rem; }
  .split .col-media { aspect-ratio: 4/3; }

  /* Featured / gallery cards */
  .featured-projects { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .featured-projects .proj-card { aspect-ratio: 4/5; }
  .featured-projects .proj-card:last-child { grid-column: 1 / -1; aspect-ratio: 16/10; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .gallery-grid .proj-card-info { padding: 1rem 1rem 0.9rem; }
  .gallery-grid .proj-card-info h3 { font-size: 0.85rem; line-height: 1.15; }
  .gallery-grid .proj-card-info .cat { font-size: 0.54rem; letter-spacing: 0.24em; margin-bottom: 0.3rem; }

  /* Project modal on mobile — bottom sheet style */
  .project-modal { padding: 0; align-items: flex-end; }
  .project-modal .pm-dialog {
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
  }
  .project-modal .pm-media { max-height: 38vh; min-height: 220px; }
  .project-modal .pm-body { padding: 1.4rem 1.2rem 1.6rem; max-height: 56vh; }
  .project-modal .pm-meta { grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; padding: 0.9rem 0; }
  .project-modal .pm-meta .v { font-size: 0.84rem; }
  .project-modal .pm-title { font-size: clamp(1.35rem, 5vw, 1.75rem); }
  .project-modal .pm-actions { padding-top: 0.6rem; flex-direction: column; align-items: stretch; }
  .project-modal .pm-actions .btn { width: 100%; }
  .project-modal .pm-close { top: 12px; right: 12px; width: 40px; height: 40px; }

  /* Contact page — stack + tighter */
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info { position: static; padding: 1.4rem; }
  .contact-info h3 { font-size: 1.35rem; }
  .contact-block { margin-bottom: 1.4rem; }
  .map-embed { height: 200px; }

  /* Filters wrap prettily */
  .filters { gap: 0.5rem; margin-bottom: 2rem; }
  .filter-btn { padding: 9px 16px; font-size: 0.62rem; letter-spacing: 0.2em; }

  /* Stats */
  .stats { grid-template-columns: 1fr 1fr; padding: 2rem 0; gap: 1rem; }
  .stat-num { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .stat-label { font-size: 0.6rem; letter-spacing: 0.22em; }

  /* Services list */
  .svc-item { padding: 1.6rem 0; }

  /* Forms — larger tap targets, iOS: font-size ≥ 16px prevents zoom on focus */
  .form { gap: 1.2rem; }
  .form-row { gap: 1.2rem; }
  .form-field input,
  .form-field textarea,
  .form-field select { font-size: 16px; padding: 14px 0; }
  .form-field label { font-size: 0.62rem; letter-spacing: 0.24em; }

  /* Admin: sidebar becomes a top bar */
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.2rem;
    gap: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
  }
  .admin-side .brand img { height: 32px; margin-bottom: 0; }
  .admin-side nav { display: flex; flex-direction: row; gap: 0.5rem; flex: 1; }
  .admin-side nav a { padding: 0.5rem 0.8rem; font-size: 0.68rem; border-left: none; border-bottom: 2px solid transparent; }
  .admin-side nav a.active { border-left: none; border-bottom-color: var(--accent-gold); background: transparent; }
  .admin-side .logout { margin: 0; padding: 0.5rem 0.9rem; font-size: 0.62rem; }
  .admin-side > div { display: none; }  /* hide session block on mobile */
  .admin-main { padding: 1.4rem 1rem; }
  .admin-topbar { flex-direction: column; align-items: flex-start; margin-bottom: 1.4rem; }
  .admin-topbar .stats-inline { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .featured-projects,
  .gallery-grid { grid-template-columns: 1fr; }
  .featured-projects .proj-card,
  .featured-projects .proj-card:last-child { grid-column: auto; aspect-ratio: 4/5; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .hero-line h1 { font-size: 1.7rem; line-height: 1.15; }
  .hero-line { left: 1rem; max-width: 92vw; }

  [data-testid="section-cta"] h2,
  [data-testid="section-cta-projects"] h2 { font-size: clamp(1.55rem, 7vw, 2.2rem); }

  /* Compact login card on very small phones */
  .auth-card { padding: 1.6rem 1.3rem; }
  .auth-card .brand img { height: 46px; }
}

@media (max-width: 700px) {
  .msg-table th, .msg-table td { padding: 0.7rem 0.8rem; font-size: 0.84rem; }
  .msg-table .msg-preview { max-width: 180px; }
  .msg-table .actions { flex-direction: column; gap: 6px; }
}

/* On touch / hover-less devices, project card labels stay visible (there's no hover). */
@media (hover: none) {
  .proj-card-info { transform: translateY(0) !important; }
  .proj-card img { transform: scale(1) !important; filter: brightness(0.92) saturate(0.95) !important; }
}

/* ================================================================
   Language switcher (TR / EN)
   ================================================================ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px;
  margin-left: 1.5rem;
  background: rgba(255,255,255,0.02);
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
  text-transform: uppercase;
  min-width: 40px;
}
.lang-switch button:hover { color: var(--text-primary); }
.lang-switch button.active {
  color: var(--bg-primary);
  background: var(--accent-gold);
  font-weight: 700;
}

@media (max-width: 900px) {
  .lang-switch { margin-left: 0; margin-top: 1.5rem; }
  .lang-switch button { padding: 8px 16px; font-size: 0.7rem; }
}

/* ================================================================
   Project modal — image gallery controls (prev / next / dots / thumbs)
   ================================================================ */

.project-modal .pm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--accent-gold);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.project-modal .pm-nav:hover { background: var(--accent-gold); color: var(--bg-primary); border-color: var(--accent-gold); }
.project-modal .pm-nav-prev { left: 12px; }
.project-modal .pm-nav-next { right: 12px; }

.project-modal .pm-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10,10,10,0.65);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.1);
}

.project-modal .pm-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.project-modal .pm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}
.project-modal .pm-dot.active { background: var(--accent-gold); width: 22px; border-radius: 999px; }

.project-modal .pm-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-gold) transparent;
}
.project-modal .pm-thumbs::-webkit-scrollbar { height: 6px; }
.project-modal .pm-thumbs::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }
.project-modal .pm-thumb {
  flex: 0 0 auto;
  width: 68px; height: 68px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  padding: 0;
  background: #000;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.project-modal .pm-thumb:hover { transform: translateY(-2px); }
.project-modal .pm-thumb.active { border-color: var(--accent-gold); box-shadow: 0 0 0 1px var(--accent-gold); }
.project-modal .pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .project-modal .pm-nav { width: 36px; height: 36px; font-size: 1.1rem; }
  .project-modal .pm-thumb { width: 56px; height: 56px; }
}

/* ================================================================
   Admin — toolbar, bulk bar, image editor
   ================================================================ */

.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.admin-search {
  flex: 1;
  min-width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.admin-search::placeholder { color: var(--text-muted); }
.admin-search:focus { border-color: var(--accent-gold); }

.admin-filter {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  color-scheme: dark;
}

.admin-bulk {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 6px 12px;
  background: rgba(201, 169, 97, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.admin-bulk .bulk-count {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-weight: 600;
}

.admin-check {
  width: 18px; height: 18px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

/* Category editor block */
.cat-editor {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: 4px;
}

/* Project image editor */
.proj-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-top: 0.6rem;
}
.proj-img {
  position: relative;
  aspect-ratio: 1/1;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  background: #000;
}
.proj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-img-actions {
  position: absolute;
  top: 6px; right: 6px;
  display: flex;
  gap: 4px;
}
.proj-img-actions button {
  background: rgba(10,10,10,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  width: 28px; height: 28px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease;
}
.proj-img-actions button:hover:not(:disabled) { background: var(--accent-gold); color: var(--bg-primary); }
.proj-img-actions button:disabled { opacity: 0.35; cursor: not-allowed; }
.proj-img-cover {
  position: absolute;
  bottom: 6px; left: 6px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.admin-side .lang-switch { margin-left: 0; }
