/* ERAY KARATEPE — Dreamweaver ile düzenlenebilir ana stil dosyası. */
@font-face{font-family:Montserrat;src:url('../assets/fonts/montserrat-400.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Montserrat;src:url('../assets/fonts/montserrat-500.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Montserrat;src:url('../assets/fonts/montserrat-600.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Montserrat;src:url('../assets/fonts/montserrat-700.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:Montserrat;src:url('../assets/fonts/montserrat-800.ttf') format('truetype');font-style:normal;font-weight:800;font-display:swap}

/* Renkleri ve genel ölçüleri buradan değiştirin. */
:root {
  --ink: #101010;
  --paper: #fff;
  --accent: #4eafb5;
  --muted: #505050;
  --line: #dedede;
  --page-width: 1120px;
  --header-height: 70px;
  --space: clamp(24px, 5vw, 76px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Montserrat, Arial, sans-serif; font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::-webkit-scrollbar { width: 10px; background: transparent; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.3); border: 2px solid #fff; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #000; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: #000; }
h1, h2, h3, h4, p, figure { margin: 0; }
h2, h3, h4 { line-height: 1.2; }
.wrap { width: min(var(--page-width), calc(100% - var(--space) * 2)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 18px; top: -100px; padding: 12px 20px; z-index: 100; color: #fff; background: #000; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

/* Sabit üst menü */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-height); display: flex; align-items: center; justify-content: center; padding-inline: 24px; background: rgba(255,255,255,.97); border-bottom: 1px solid #ededed; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); }
.main-nav a { position: relative; padding: 12px 0; font-size: .875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.main-nav a::after { position: absolute; content: ''; height: 2px; background: var(--ink); left: 0; right: 0; bottom: 5px; transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.language-toggle { position: absolute; right: 28px; display: flex; gap: 8px; align-items: center; padding: 8px; border: 0; background: transparent; color: var(--ink); font-size: .8125rem; font-weight: 700; min-height: 44px; }
.language-toggle svg { width: 23px; height: 23px; }

/* Orijinal açılış animasyonu */
.hero { --hero-unit: 24px; position: relative; width: 100vw; height: calc(43 * var(--hero-unit)); margin-inline: calc(50% - 50vw); color: #fff; background: #000; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Portfolio ve 2026, videonun yüksekliğinin %15'inde. Merkezden yapılan
   kırpmayı hesaba katarak simgeleri her ekran genişliğinde bu satıra bağla. */
.hero-social { position: absolute; z-index: 2; top: calc(50% - max(35%, 19.6875vw)); left: 50%; transform: translate(-50%, -50%); display: flex; gap: calc(3.75 * var(--hero-unit) - 44px); align-items: center; }
.hero-social { opacity: var(--intro-social-opacity, 0); visibility: hidden; }
.hero-social.is-visible { visibility: visible; }
.hero-social .icon { transform: scale(var(--intro-social-scale, 0)); transform-origin: center; }
.hero-social a { display: grid; place-items: center; width: 44px; height: 44px; transition: color .2s, transform .2s; }
.hero-social .icon { width: calc(1.75 * var(--hero-unit)); height: calc(1.75 * var(--hero-unit)); }
.hero-social a:hover { color: var(--accent); transform: translateY(-3px); }
.video-toggle { position: absolute; right: 24px; bottom: 16px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #777; background: #000; color: #fff; border-radius: 50%; font-size: .8125rem; }
@media (max-width: 1680px) { .hero { --hero-unit: 17.333333px; } }
@media (max-width: 980px) {
  .hero { --hero-unit: 14.666667px; height: auto; aspect-ratio: 16 / 9; }
}

/* Hakkımda ve yaklaşım */
.about { padding-block: clamp(72px, 9vw, 128px); }
.about-intro { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; align-items: start; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.about-intro h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; }
.about-intro p { color: var(--muted); font-size: 1.0625rem; line-height: 1.95; }
.approach { max-width: 810px; margin-top: 64px; }
.approach h3 { font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 700; letter-spacing: -.035em; max-width: 740px; }
.approach > p { margin-top: 22px; color: var(--muted); max-width: 720px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 38px; margin-top: 56px; }
.principles h4 { font-size: 1rem; line-height: 1.5; font-weight: 700; }
.principles p { margin-top: 14px; font-size: 1rem; color: var(--muted); }
.item-number { display: block; color: #287d83; font-weight: 600; margin-bottom: 18px; font-size: .875rem; }

/* Portfolyo başlıkları ve kategori bağlantıları */
.portfolio { padding-top: 50px; }
.portfolio.wrap { width: 100%; }
.portfolio > .section-heading, .gallery-title { width: min(var(--page-width), calc(100% - var(--space) * 2)); margin-inline: auto; }
.section-heading { text-align: center; padding-block: 34px 64px; }
.section-heading h2 { display: inline-block; font-weight: 800; font-size: clamp(2.5rem, 4.4vw, 4rem); letter-spacing: -.04em; }
.section-heading h2::after { content: ''; display: block; border-bottom: 5px solid var(--ink); margin: 17px auto 0; width: 100%; }
.photos-heading h2::after { border-bottom-style: dashed; }
.category-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.category-nav a { border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 10px 23px; font-size: .875rem; font-weight: 500; min-height: 44px; transition: background .2s, color .2s; }
.category-nav a:hover, .category-nav a:focus-visible { background: var(--accent); color: #000; border-color: var(--accent); }
.gallery-section { margin-bottom: 96px; }
.gallery-title { display: flex; align-items: center; gap: 24px; margin-bottom: 36px; }
.gallery-title h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -.025em; flex-shrink: 0; max-width: 100%; }
.gallery-title::after { content: ''; height: 1px; width: 100%; background: var(--line); }
.gallery-rows { display: flow-root; }
/* Orijinal sitedeki galeri yükseklikleri, aralıkları ve sarılma düzeni.
   Bu ölçü birimi yalnızca galerilere aittir; metin boyutunu değiştirmez. */
.portfolio { --reference-unit: 24px; --inset-padding: 6; }
.reference-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: calc(var(--gallery-max) * var(--reference-unit));
  gap: calc(var(--gallery-gap) * var(--reference-unit));
  margin: calc(var(--outer-gap) * var(--reference-unit)) auto;
}
.reference-gallery:first-child { margin-top: 0; }
.reference-gallery:last-child { margin-bottom: 0; }
.reference-gallery.inset-gallery { width: calc(100% - var(--inset-padding) * var(--reference-unit)); }
.reference-gallery .portfolio-image {
  flex: 0 0 auto;
  width: calc(var(--gallery-height) * var(--reference-unit) * var(--image-ratio));
  max-width: 100%;
}
.portfolio-image { margin: 0; min-width: 0; }
.portfolio-image picture { display: block; }
.portfolio-image img { display: block; width: 100%; height: auto; }
/* İkili sokak fotoğrafları ortalanan başlık genişliğini oranlarını koruyarak doldurur. */
@media (min-width: 737px) {
  #street .reference-gallery:where(:has(> .portfolio-image + .portfolio-image)) {
    width: min(var(--page-width), calc(100% - var(--space) * 2));
    max-width: none;
    justify-content: center;
    flex-wrap: nowrap;
  }
  #street .reference-gallery:where(:has(> .portfolio-image + .portfolio-image)) .portfolio-image { flex: var(--image-ratio) 1 0%; width: auto; max-width: none; }
}
/* Hayvan fotoğraflarının dış kenarları masaüstünde başlıkla hizalanır. */
@media (min-width: 737px) {
  #animals .gallery-rows {
    width: min(var(--page-width), calc(100% - var(--space) * 2));
    margin-inline: auto;
  }
  #animals .reference-gallery { width: 100%; max-width: none; flex-wrap: nowrap; }
  #animals .reference-gallery .portfolio-image { flex: var(--image-ratio) 1 0%; width: auto; max-width: none; }
}
/* Ürünlerde masaüstü de mobildeki 2–1–2 düzenini izler.
   Ortadaki tek fotoğraf, iki fotoğraflı sıraların toplam genişliğini kaplar. */
@media (min-width: 737px) {
  #products .gallery-rows {
    --product-gap: clamp(24px, 3vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--product-gap);
    width: min(var(--page-width), calc(100% - var(--space) * 2));
    margin-inline: auto;
  }
  #products .reference-gallery { width: 100%; max-width: none; margin: 0; gap: var(--product-gap); flex-wrap: nowrap; }
  #products .reference-gallery .portfolio-image { flex: var(--image-ratio) 1 0%; width: auto; max-width: none; }
  #products .reference-gallery .portfolio-image:only-child { flex-grow: 1; }
}
/* Genişlikler birlikte değişir; fotoğraflar akışta yer kapladığı için çakışmaz. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(#photos, #design) .reference-gallery.hover-resize .portfolio-image {
    flex: 0 0 auto;
    width: var(--hover-width);
    max-width: none;
    transition: width .35s ease;
  }
}
.project-link { display: block; }
.image-zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; line-height: 0; cursor: zoom-in; }

/* Büyük görsel gerçek oranıyla ortalanır; sayfa bulanık arka planda kalır. */
html.lightbox-open, .lightbox-open body { overflow: hidden; }
html.lightbox-open { scrollbar-gutter: stable; }
.photo-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 64px 80px; border: 0; color: #fff; background: transparent; overflow: hidden; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.photo-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.photo-lightbox::backdrop { background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox-image { flex: 0 1 auto; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); object-fit: contain; box-shadow: 0 12px 60px rgba(0, 0, 0, .3); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.photo-lightbox[open] .lightbox-image { animation: lightbox-enter .2s ease-out; }
.lightbox-close { position: absolute; top: max(8px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 32px; line-height: 1; }
.lightbox-close:hover { background: rgba(0, 0, 0, .65); }
.lightbox-counter { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 20px; background: rgba(0, 0, 0, .45); font-size: .8125rem; line-height: 24px; font-variant-numeric: tabular-nums; }
.lightbox-arrow { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .45); }
.lightbox-arrow svg { width: 24px; height: 24px; }
.lightbox-arrow:hover { background: rgba(0, 0, 0, .75); border-color: #fff; }
.lightbox-previous { left: max(16px, env(safe-area-inset-left)); }
.lightbox-next { right: max(16px, env(safe-area-inset-right)); }
.lightbox-project { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 6px 12px; max-width: calc(100% - 32px); border-radius: 4px; background: rgba(0, 0, 0, .6); font-size: .8125rem; line-height: 1.5; text-align: center; }
.lightbox-project:hover { text-decoration: underline; }
@keyframes lightbox-enter { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

/* Metinler JavaScript hazır olduğunda animasyon için gizlenir.
   JavaScript yoksa veya hareket azaltma seçiliyse içerik görünür kalır. */
.reveal-pending { opacity: 0; }
.reveal-pending:focus-within { opacity: 1; }

@media (max-width: 1680px) { .portfolio { --reference-unit: 17.333333px; } }
@media (max-width: 980px) { .portfolio { --reference-unit: 14.666667px; } }
@media (max-width: 736px) {
  .portfolio { --inset-padding: 4; }
  .reference-gallery { gap: calc(var(--mobile-gap) * var(--reference-unit)); }
  .reference-gallery .portfolio-image { width: calc(var(--mobile-height) * var(--reference-unit) * var(--image-ratio)); }
}
@media (max-width: 360px) {
  .portfolio { --inset-padding: 3; }
  .reference-gallery { gap: calc(var(--mobile-gap) * .75 * var(--reference-unit)); }
}

/* Hizmetler ve iletişim */
.services { padding-block: 88px; border-top: 1px solid var(--line); }
.services h2 { font-weight: 800; letter-spacing: -.04em; font-size: clamp(2rem, 3.8vw, 3.25rem); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; margin-top: 48px; }
.services-grid h3 { font-size: 1.1875rem; line-height: 1.4; }
.services-grid p { margin-top: 20px; color: var(--muted); }
.contact { background: var(--ink); color: #fff; text-align: center; padding: clamp(70px,10vw,140px) var(--space); }
.contact h2 { font-size: clamp(2.25rem, 5vw, 5rem); font-weight: 800; letter-spacing: -.045em; }
.contact p { margin-top: 22px; color: #d4d4d4; }
.email-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; margin-top: 36px; padding: 16px 22px; color: #000; background: var(--accent); font-weight: 600; transition: background .2s; }
.email-link:hover { background: #fff; }
.email-link span { overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 24px; font-size: .8125rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }

/* Tablet ve telefon düzeni */
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; gap: 26px; }
  .principles, .services-grid { gap: 24px; }
}
@media (max-width: 640px) {
  :root { --header-height: 70px; --space: 22px; }
  .site-header { justify-content: center; padding-inline: 18px; }
  .main-nav { gap: clamp(8px, 2.7vw, 17px); }
  .main-nav a { font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 700; }
  .language-toggle { position: absolute; right: 12px; padding: 8px 0 8px 4px; gap: 5px; font-size: .75rem; }
  .language-toggle svg { width: 20px; height: 20px; }
  .hero { width: 100%; height: auto; margin-inline: 0; aspect-ratio: 16 / 9; }
  .hero video { object-fit: contain; }
  /* Mobilde video kırpılmaz; simgeler doğrudan videodaki %15 satırına oturur. */
  .hero-social { top: 15%; left: 50%; bottom: auto; transform: translate(-50%, -50%); gap: 0; }
  .hero-social a { width: 30px; height: 36px; }
  .hero-social .icon { width: clamp(10px, 2.5vw, 15px); height: clamp(10px, 2.5vw, 15px); }
  .photo-lightbox { padding-inline: 16px; }
  .lightbox-arrow { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); transform: none; }
  .lightbox-project { max-width: calc(100% - 144px); padding: 4px 8px; font-size: .75rem; }
  .video-toggle { right: 8px; bottom: 4px; width: 32px; height: 32px; font-size: .6875rem; }
  .about { padding-block: 64px; }
  .about-intro { padding-bottom: 42px; }
  .about-intro p { font-size: 1rem; }
  .approach { margin-top: 42px; }
  .principles, .services-grid { grid-template-columns: 1fr; gap: 30px; }
  .principles { margin-top: 36px; }
  .item-number { margin-bottom: 10px; }
  .portfolio { padding-top: 24px; }
  .section-heading { padding-block: 28px 42px; }
  .category-nav { gap: 8px; margin-top: 25px; }
  .category-nav a { padding: 9px 14px; font-size: .875rem; }
  .gallery-section { margin-bottom: 62px; }
  .gallery-title { margin-bottom: 24px; gap: 16px; }
  .services { padding-block: 58px; }
  .services-grid { margin-top: 34px; }
  .contact { padding-inline: 22px; }
  .email-link { font-size: .875rem; padding: 15px 16px; gap: 10px; }
  .site-footer { padding-block: 22px; }
}
@media (max-width: 370px) {
  .site-header { padding-inline: 12px; }
  .main-nav { gap: 10px; }
  .main-nav a { letter-spacing: 0; }
  .language-toggle svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-social { --intro-social-opacity: 1 !important; --intro-social-scale: 1 !important; visibility: visible; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; }
}
