:root {
  --bg: #0b0b0d;
  --panel: #121216;
  --muted: #a9a9b2;
  --text: #f2f3f5;
  --brand: #ffe600;
}

/* Genel Ayarlar */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

/* Container */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10,10,12,.7);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid #1b1b22;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}
.brand img {

  width: auto;
  height: 65px; 
}
.site-header nav a {
  color: #eaeaea;
  margin-left: 1rem;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.22s cubic-bezier(.7,.3,.3,1);
}
.site-header nav a:hover {
  transform: scale(1.22);
}

/* Footer */
.site-footer {
  border-top: 1px solid #1b1b22;
  background: #0a0a0c;
}
.site-footer .container {
  padding: 1.2rem 0;
  text-align: center;
}
.small { font-size: .9rem; }
.footer-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 0 12px;
}
.footer-brand {
    min-width: 180px;
    text-align: left;
}
.footer-brand img {
    height: 80px;
    margin-bottom: 8px;
}
.footer-branches {
    flex: 1;
    text-align: center;
}
.footer-branches h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #e0e0e2;
}
.footer-branches ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: center;
}
.footer-branches li {
    font-size: .98rem;
    color: #a9a9b2;
    margin-bottom: 4px;
}
.footer-contact {
    min-width: 180px;
    text-align: right;
}
.footer-contact h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #e0e0e2;
}
.footer-contact a {
    color: #a9a9b2;
    text-decoration: none;
}
.footer-social {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.footer-bottom {
    border-top: 1px solid #222;
    text-align: center;
    padding: 12px 0 0;
    font-size: .97rem;
    color: #a9a9b2;
}
@media (max-width: 700px) {
    .footer-flex {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
        text-align: center;
    }
    .footer-brand,
    .footer-contact {
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
}

/* Bölümler */
.section { padding: 72px 0; }
.section-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 .6rem;
  font-weight: 800;
}
.muted { color: var(--muted); }

/* Gridler */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}
@media (max-width:900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Butonlar */
.btn {
  display: inline-block;
  color: #ffffff;
  padding: .8rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  background: #1e1e24;
  border: 2px solid #adadad;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid #2a2a30;
}
.btn:hover { background-color: #d3d3d3b0; color: #000000; }

/* Hero ve Slider */
.hero { position: relative; }
.slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.slides {
  display: flex;
  transition: transform .6s ease;
  height: min(78vh, 720px);
}
.slides img {
  width: 100%;
  object-fit: cover;
  flex: 0 0 100%;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: 0;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.prev { left: 14px; }
.next { right: 14px; }
.dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  opacity: .7;
}
.dots button.active {
  background: #fff;
  opacity: 1;
}
.hero-text {
  position: relative;
  margin-top: -100px;
  padding: 0 0 40px;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 6vw, 3.8rem);
  margin: .6rem 0 0;
}
.hero-text p {
  color: var(--muted);
  max-width: 780px;
}

/* Klipler */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 12px;
}
.clip {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.clip img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: .86;
  transition: .25s;
}
.clip .play {
  position: absolute;
  inset: auto auto 10px 10px;
  background: rgba(0,0,0,.65);
  padding: .3rem .5rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}
.clip:hover img {
  opacity: 1;
  transform: scale(1.02);
}
@media (max-width:900px) {
  .clips-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px) {
  .clips-grid { grid-template-columns: 1fr; }
}

/* Referanslar */
.testimonials {
  background: linear-gradient(180deg, rgba(255,230,0,.06), transparent);
}
.testi-slider {
  position: relative;
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: 18px;
  transition: transform .5s ease;
  padding: 10px 0;
}
.testi {
  background: var(--panel);
  border: 1px solid #1c1c22;
  border-radius: 16px;
  padding: 24px;
  min-width: min(520px, 90vw);
}
.testi h4 { margin: .6rem 0 0; }
.tbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #111;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.tprev { left: -2px; }
.tnext { right: -2px; }

/* Filtreler */
.filters {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
}
.pill {
  border: 1px solid #2a2a30;
  background: transparent;
  color: #eaeaea;
  padding: .4rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
}
.pill.active, .pill:hover {
  background: var(--brand);
  color: #111;
  border-color: transparent;
}

/* Mobil filtre menüsü */

.filters-mobile {
  width: 100%;
}
.filters-toggle {
  display: none;
  width: 100%;
  background: var(--brand);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: .6rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .filters {
    flex-direction: column;
    gap: 6px;
    margin: 0;
    background: #18181c;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    padding: 10px 0;
    position: static;
    display: none;
  }
  .filters.open {
    display: flex;
  }
  .filters-toggle {
    display: block;
  }
}

/*Fotoğraf Gösterme*/

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.photo {
    width: 200px;
    position: relative;
}

.code {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
}


/* Kartlar */
.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card .cap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end left;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.1));
  opacity: 0;
  transition: .2s;
}
.card:hover .cap { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
}
.lightbox .close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

/* İletişim */
.contact {
  display: grid;
  gap: 12px;
}
.contact .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact input,
.contact select,
.contact textarea {
  width: 100%;
  background: #0f0f13;
  border: 1px solid #1e1e24;
  color: #fff;
  border-radius: 10px;
  padding: .7rem;
}

/* Şube ve Harita */
.branch {
  background: #0f0f13;
  border: 1px solid #1e1e24;
  border-radius: 12px;
  padding: 14px;
}
.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1e1e24;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* Reveal Animasyonu */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* Sayfa Geçişi */
#page-transition {
  position: fixed;
  inset: 0;
  background: #0a0a0c;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 100;
}
body.is-leaving #page-transition { opacity: 1; }
body.preload #page-transition { opacity: 1; }
body.preload { overflow: hidden; }
body.preload .site-header,
body.preload main,
body.preload .site-footer {
  opacity: 0;
  transform: translateY(6px);
}
body:not(.preload) .site-header,
body:not(.preload) main,
body:not(.preload) .site-footer {
  transition: opacity .5s ease, transform .5s ease;
}

/* Mobil Header ve Menü */
@media (max-width: 600px) {
  .site-header .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }
  .site-header nav {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .site-header nav a {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #222;
  }
  .brand img {
    height: 48px;
  }
}

/* Mobil Hero Text */
@media (max-width: 600px) {
  .hero-text {
    margin-top: 0;
    padding: 20px 0 30px;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .cta {
    flex-direction: column;
    gap: 10px;
  }
}

/* Mobil Gridler */
@media (max-width: 600px) {
  .grid-3, .grid-2, .clips-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section {
    padding: 32px 0;
  }
}

/* Mobil Footer */
@media (max-width: 600px) {
  .site-footer .container {
    padding: 0.8rem 0;
    font-size: 0.95rem;
  }
}

/* Mobil Form */
@media (max-width: 600px) {
  .contact .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact label {
    font-size: 1rem;
  }
}

/* Mobil Branch ve Map */
@media (max-width: 600px) {
  .branch {
    padding: 10px;
    font-size: 0.95rem;
  }
  .map-wrap iframe {
    height: 200px;
  }
}

/* Mobil Lightbox Close Button */
@media (max-width: 600px) {
  .lightbox .close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

/* Hamburger ikon */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  margin-right: 12px;
  z-index: 30;
}
.nav-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: .3s;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobilde göster */
@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }
  .site-header .nav {
    flex-direction: row;
    align-items: center;
    position: relative;
  }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #121216;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #222;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: none;
    z-index: 20;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav a {
    padding: 16px 18px;
    margin: 0;
    border-bottom: 1px solid #222;
    font-size: 1.1rem;
  }
}

/* iOS tarzı sliding mobil menü */
@media (max-width: 700px) {
  .site-header nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80vw;
    max-width: 320px;
    background: #18181c;
    box-shadow: 2px 0 24px rgba(0,0,0,0.18);
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.7,.3,.3,1);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 80px;
    z-index: 100;
  }
  .site-header nav.open {
    transform: translateX(0);
  }
  .site-header nav a {
    padding: 18px 28px;
    margin: 0;
    border-bottom: 1px solid #222;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 500;
  }
  /* Menü açıldığında arka plan overlay */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99;
    pointer-events: auto;
    transition: opacity .3s;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 0;
    z-index: 101;
  }
  .brand {
    margin-right: auto;
  }
  .site-header .nav {
    flex-direction: row;
    align-items: center;
    position: relative;
  }
}


/* ===================== */
/* Timeline (Tarihten Bugüne) */
/* ===================== */
.timeline-section {
  margin: 48px 0 0;
}
.timeline {
  position: relative;
  margin: 32px 0 0;
  padding-left: 24px;
  border-left: 3px solid white;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.7,.3,.3,1), transform .7s cubic-bezier(.7,.3,.3,1);
}
.timeline-section.show .timeline-item {
  opacity: 1;
  transform: none;
}
.timeline-dot {
  position: absolute;
  left: -13px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.timeline-content {
  background: var(--panel);
  border-radius: 10px;
  padding: 16px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  margin-left: 12px;
  min-width: 180px;
}
.timeline-year {
  font-size: 1.15rem;
  font-weight: 700;
  color: #8a8a8a;
  margin-bottom: 6px;
  display: block;
}
@media (max-width:600px) {
  .timeline {
    padding-left: 12px;
    border-left-width: 2px;
  }
  .timeline-content {
    padding: 12px 12px;
    font-size: 1rem;
  }
  .timeline-dot {
    width: 13px;
    height: 13px;
    left: -8px;
    top: 8px;
  }
}

/* Timeline fotoğrafı */
.timeline-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 10px 0 10px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
@media (max-width:600px) {
  .timeline-photo {
    max-width: 100%;
    margin: 8px 0;
  }
}

/* Hizmetlerimiz kutu fotoğraf oranı */
.svc img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #222;
}
@media (max-width:900px) {
  .svc img {
    height: 140px;
  }
}
@media (max-width:600px) {
  .svc img {
    height: 110px;
  }
}




/* === Portfolyo (DB'den gelen) === */
.portfolio-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(3,1fr);
}
@media (max-width:900px){ .portfolio-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px){ .portfolio-grid{ grid-template-columns: 1fr; } }

figure.pf{
  margin:0;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  background:#000;
  border:1px solid #1e1e24;
  aspect-ratio:4/3;
}
figure.pf img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .3s ease;
  display:block;
}
figure.pf:hover img{ transform: scale(1.03); }
figure.pf figcaption{
  position:absolute; inset:auto 0 0 0;
  padding:10px 12px; color:#fff; font-weight:700; font-size:14px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.55) 36%,rgba(0,0,0,.75));
  transform:translateY(100%); transition:transform .25s ease;
}
figure.pf:hover figcaption{ transform:translateY(0); }



/* === Portfolyo: "Tümü" sabit ebat, 3 sütun === */
.portfolio-grid-all{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width:900px){ .portfolio-grid-all{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px){ .portfolio-grid-all{ grid-template-columns: 1fr; } }

/* Kartlar sabit oran: 4:3 (hepsi aynı yükseklik) */
.portfolio-grid-all .pf{
  margin:0;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #1e1e24;
  background:#000;
  aspect-ratio: 4/3;     /* sabit ebat */
}
.portfolio-grid-all .pf img{
  width:100%;
  height:100%;
  object-fit:cover;      /* kırparak doldurur, oran sabit kalır */
  display:block;
}

/* başlık hover'ı aynı kalsın */
.portfolio-grid-all .pf figcaption{
  position:absolute; inset:auto 0 0 0;
  padding:10px 12px; color:#fff; font-weight:700; font-size:14px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.55) 36%,rgba(0,0,0,.75));
  transform:translateY(100%); transition:transform .25s ease;
}
.portfolio-grid-all .pf:hover figcaption{ transform:translateY(0); }


/* dokunmatiklerde hover animasyonunu azalt */
@media (hover: none) {
  figure.pf:hover img { transform: none; }
  figure.pf figcaption { transform: none; }
}

