/* ==========================================================================
   KurguLabs — Ana Stil Dosyası
   Kreatif Üretim Stüdyosu
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video, iframe { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Değişkenler --- */
:root {
  /* Renk sistemi — 60 (beyaz/açık) - 30 (koyu) - 10 (turuncu) kuralı */
  --primary: #FA3800;
  --primary-hover: #D62F00;
  --primary-tint: #FFEEE6;

  --dark: #17130F;
  --dark-alt: #221D17;
  --border-on-dark: #362F26;
  --text-on-dark: #FBF9F6;
  --text-on-dark-muted: #AFA79A;

  --white: #FBF9F6;
  --surface: #F2ECE4;
  --text: #262220;
  --text-muted: #837A6E;
  --border: #E3DACB;

  /* Tipografi */
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1180px;
  --radius: 3px;
  --section-pad: 128px;

  /* Derinlik sistemi — sıcak tonlu (saf siyah değil), markaya uygun gölgeler */
  --shadow-sm: 0 2px 10px rgba(23, 19, 15, 0.07);
  --shadow-md: 0 10px 30px rgba(23, 19, 15, 0.12);
  --shadow-lg: 0 24px 60px rgba(23, 19, 15, 0.18);
  --shadow-primary: 0 10px 28px rgba(250, 56, 0, 0.24);
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* İnce film grain dokusu — sinema/prodüksiyon temasına dokunuşu güçlendiren,
   okunabilirliği etkilemeyecek kadar hafif (opacity çok düşük) bir katman */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iMiIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgIDAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwLjUgMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCUyM24pIi8+PC9zdmc+");
  background-repeat: repeat;
}
@media (prefers-reduced-motion: reduce), (max-width: 640px) {
  body::after { display: none; }
}

/* --- Odak durumu (erişilebilirlik) --- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* --- Tipografi --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.01em;
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark); }

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); }
.on-dark p { color: var(--text-on-dark-muted); }

strong { font-weight: 600; color: var(--text); }

/* Mono / timecode etiketleri — sinematik imza öğesi */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.on-dark .eyebrow { color: var(--primary); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tag::before { content: '['; }
.tag::after { content: ']'; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-pad) 0; }
.section-surface {
  background:
    radial-gradient(circle, rgba(38, 34, 32, 0.06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--surface);
}
.section-dark { background: var(--dark); }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 968px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- Butonlar --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(23, 19, 15, 0.08); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-primary); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }
.on-dark .btn-outline { color: var(--text-on-dark); border-color: var(--border-on-dark); }
.on-dark .btn-outline:hover { background: var(--text-on-dark); color: var(--dark); }

.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--dark); color: var(--white); }

.btn-sm { padding: 11px 20px; font-size: 0.78rem; }

/* ==========================================================================
   HEADER / NAVİGASYON
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid var(--border-on-dark);
  box-shadow: 0 4px 20px rgba(23, 19, 15, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-on-dark); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text-on-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border-on-dark);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--border-on-dark); }
  .nav-cta { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 100px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  z-index: 2;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }

/* Arka plan derinliği — sıcak turuncu glow, çok düşük opacity */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 620px 460px at 84% 8%, rgba(250, 56, 0, 0.10), transparent 65%),
    radial-gradient(ellipse 460px 360px at 98% 92%, rgba(250, 56, 0, 0.05), transparent 60%);
}

/* Viewfinder çerçevesi — hero'nun tamamını bir kamera vizörü gibi çerçeveler,
   .video-frame'deki köşe motifiyle aynı dilde, sadece büyütülmüş */
.hero-frame-corner { position: absolute; width: 28px; height: 28px; border: 2px solid var(--primary); opacity: 0.5; z-index: 0; }
.hero-frame-tl { top: 40px; left: 0; border-right: none; border-bottom: none; }
.hero-frame-br { bottom: 40px; right: 0; border-left: none; border-top: none; }
@media (max-width: 640px) { .hero-frame-corner { display: none; } }

/* Odak vizörü (reticle) — kamera netleme noktası motifi */
.hero-reticle { position: absolute; top: 56px; right: 8px; width: 120px; height: 120px; z-index: 0; opacity: 0.55; pointer-events: none; }
.hero-reticle circle, .hero-reticle line { stroke: var(--primary); }
@media (max-width: 960px) { .hero-reticle { display: none; } }

.hero-content { max-width: 780px; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 24px; }
.hero .highlight { color: var(--primary); }
.hero-sub {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 440px;
  max-width: 60%;
  background: radial-gradient(ellipse 420px 280px at 100% 0%, rgba(250, 56, 0, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero-sub { max-width: 620px; font-size: 1.1rem; margin-top: 16px; }

/* ==========================================================================
   VİDEO ÇERÇEVESİ (responsive embed + viewfinder köşeleri)
   ========================================================================== */
.video-frame {
  position: relative;
  padding: 20px;
}
.video-frame::before, .video-frame::after,
.video-frame .vf-tr, .video-frame .vf-bl {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--primary);
}
.video-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.video-frame::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.video-frame .vf-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.video-frame .vf-bl { bottom: 0; left: 0; border-right: none; border-top: none; }

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  border-radius: 1px;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ==========================================================================
   KARTLAR
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-box {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--primary-tint) 0%, #FFE0D1 100%);
  border-radius: var(--radius);
  color: var(--primary);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.icon-box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(255,255,255,0.5), transparent 60%);
}
.icon-box svg { width: 24px; height: 24px; position: relative; z-index: 1; }

.card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.card p { font-size: 0.95rem; margin-bottom: 16px; }
.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.card:hover .card-link { color: var(--primary); border-color: var(--primary); }

/* ==========================================================================
   SÜREÇ / SAHNE ADIMLARI (gerçekten sıralı içerik — numaralandırma burada anlamlı)
   ========================================================================== */
.scene-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-on-dark);
  border: 1px solid var(--border-on-dark);
}
.scene-step { background: var(--dark); padding: 40px 28px; }
.scene-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}
.scene-step h4 { margin-bottom: 10px; }
.scene-step p { font-size: 0.9rem; }

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

/* ==========================================================================
   İSTATİSTİK / DEĞER KARTLARI
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

.value-item .icon-box { margin-bottom: 20px; }
.value-item h4 { margin-bottom: 8px; }
.value-item p { font-size: 0.92rem; }

/* ==========================================================================
   CTA BANDI
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(ellipse 700px 380px at 15% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(ellipse 600px 340px at 100% 100%, rgba(23,19,15,0.12), transparent 65%),
    var(--primary);
  padding: 88px 0;
  text-align: center;
  position: relative;
}
.cta-band h2 { color: var(--dark); margin-bottom: 16px; }
.cta-band p { color: #6B1F00; font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .btn-white:hover { background: var(--dark); color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark); padding: 80px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-brand p { margin-top: 18px; max-width: 300px; font-size: 0.92rem; }
.footer-links h4, .footer-contact h4 {
  color: var(--text-on-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-links a, .footer-contact a {
  display: block;
  color: var(--text-on-dark-muted);
  padding: 6px 0;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  padding: 0;
}
.footer-social a:hover { border-color: var(--primary); background: var(--primary); }
.footer-social svg { width: 17px; height: 17px; fill: var(--text-on-dark-muted); }
.footer-social a:hover svg { fill: #fff; }

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   FORM (İletişim Sayfası)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Honeypot — bot koruması, gerçek kullanıcıya görünmez */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

.form-msg {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.form-msg.show { display: block; }
.form-msg.success { background: #EAF3DE; color: #27500A; border: 1px solid #97C459; }
.form-msg.error { background: #FCEBEB; color: #791F1F; border: 1px solid #F09595; }

.info-block { margin-bottom: 36px; }
.info-block h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.info-block a, .info-block span { font-size: 1.05rem; }
.info-block a:hover { color: var(--primary); }

/* ==========================================================================
   HİZMETLER — TAB / ACCORDION SİSTEMİ
   ========================================================================== */
.services-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .services-layout { grid-template-columns: 1fr; } }

.service-tabs {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
@media (max-width: 860px) { .service-tabs { position: static; flex-direction: row; overflow-x: auto; } }

.service-tab {
  text-align: left;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.service-tab:last-child { border-bottom: none; }
.service-tab.active { color: var(--primary); background: var(--primary-tint); }
.service-tab:hover:not(.active) { background: var(--surface); }

.service-panel { display: none; }
.service-panel.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.service-panel h3 { font-size: 1.8rem; margin-bottom: 16px; }
.service-panel > p { font-size: 1.05rem; margin-bottom: 32px; max-width: 620px; }

.service-list { margin-bottom: 40px; }
.service-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--text);
}
.service-list li:first-child { border-top: 1px solid var(--border); }
.service-list .tag { flex-shrink: 0; width: 90px; }

/* ==========================================================================
   PORTFÖY — FİLTRE + GRID + MODAL
   ========================================================================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); box-shadow: var(--shadow-sm); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 968px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card { cursor: pointer; opacity: 1; transition: opacity 0.25s ease, transform 0.25s ease; }
.portfolio-card.hidden { display: none; }

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.portfolio-thumb .ph-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* "Henüz görsel yok" durumu — düz gri kutu yerine film şeridi/slate izlenimi */
.portfolio-thumb.ph-slate {
  background: var(--dark);
  flex-direction: column;
  gap: 10px;
}
.portfolio-thumb.ph-slate::before,
.portfolio-thumb.ph-slate::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 13px;
  background-image: radial-gradient(circle, var(--surface) 2.6px, transparent 3px);
  background-size: 20px 13px;
  background-position: 8px center;
  background-repeat: repeat-x;
  opacity: 0.55;
}
.portfolio-thumb.ph-slate::before { top: 0; }
.portfolio-thumb.ph-slate::after { bottom: 0; }
.portfolio-thumb.ph-slate .ph-icon {
  width: 26px; height: 26px;
  color: var(--primary);
  opacity: 0.85;
}
.portfolio-thumb.ph-slate .ph-label { color: var(--text-on-dark-muted); }
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 19, 15, 0);
  transition: background 0.25s ease;
}
.play-badge svg {
  width: 52px; height: 52px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  fill: var(--white);
}
.portfolio-card:hover .play-badge { background: rgba(23, 19, 15, 0.35); }
.portfolio-card:hover .play-badge svg { opacity: 1; transform: scale(1); }
.portfolio-card:hover .portfolio-thumb { border-color: var(--primary); }

.portfolio-info h4 { font-size: 1.05rem; margin-bottom: 4px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 19, 15, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  z-index: 10;
  font-size: 1.2rem;
}
.modal-close:hover { background: var(--primary); }
.modal-media { background: var(--dark); }
.modal-body { padding: 36px; }
.modal-body .tag { margin-bottom: 14px; display: inline-block; }
.modal-body h3 { margin-bottom: 14px; }
.modal-body p { font-size: 1rem; }
.modal-placeholder {
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.modal-gallery { display: flex; flex-direction: column; gap: 2px; max-height: 72vh; overflow-y: auto; }
.modal-gallery img { width: 100%; display: block; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
