:root{
  --inkwell:#0F1526;   /* INKWELL */
  --lunar:#1B2038;     /* LUNAR ECLIPSE */
  --creme:#F3C98B;     /* CREME BRULEE */
  --shadow: rgba(0,0,0,.12);
  --header-h: 120px;     /* masaüstü header yüksekliği */
  --header-h-sm: 86px;  /* mobil header yüksekliği */
}

.container{ max-width:1200px; margin:0 auto; padding:0 20px; }

/* Header */
#header{
  position:fixed; inset:0 0 auto 0;
  background:#fff; color:#0F1526;
  box-shadow:0 6px 20px rgba(0,0,0,.12);
  z-index:1000;
}
.projects-main{ padding-top:120px; }

.navbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.nav-left{ display:flex; align-items:center; gap:12px; }
.brand-logo{ height:56px; max-height:64px; width:auto; object-fit:contain; }
@media (max-width:480px){ .brand-logo{ height:48px; max-height:56px; } }

/* Linkleri sağa yapıştır (diğer sayfalarla aynı) */
.nav-right{ margin-left:auto !important; display:flex; align-items:center; }
.nav-links{ display:flex; list-style:none; gap:24px; margin:0; padding:0; justify-content:flex-end; }
.nav-links a{
  color:#0F1526; text-decoration:none; font-weight:600; letter-spacing:.3px;
  position:relative; padding:6px 2px; transition:color .2s ease;
}
.nav-links a:hover{ color:var(--creme); }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--creme);
  transition:width .25s ease;
}
.nav-links a:hover::after{ width:100%; }

/* Hamburger (mobil) — temel çizgiler eklendi */
.menu-toggle{
  display:none; width:44px; height:36px; border:0; background:transparent; cursor:pointer;
  position:relative; z-index:2001; color:#0F1526;
}
.menu-toggle span{
  position:absolute; left:8px; right:8px; height:2px; background:currentColor;
  transition:transform .3s ease, opacity .2s ease;
}
.menu-toggle span:nth-child(1){ top:10px; }
.menu-toggle span:nth-child(2){ top:17px; }
.menu-toggle span:nth-child(3){ top:24px; }

/* Mobil panel */
.mobile-menu{
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(78vw, 320px);
  background:linear-gradient(135deg, var(--inkwell), var(--lunar));
  color:#fff;
  z-index: 2000;
  transform: translateX(100%);
  visibility: hidden; opacity: 0;
  transition: transform .35s ease, opacity .2s ease, visibility 0s linear .35s;
  padding:80px 22px 24px;
}
.mobile-menu.open{
  transform:translateX(0); visibility: visible; opacity: 1;
  transition: transform .35s ease, opacity .2s ease;
}
.mobile-menu nav{ display:flex; flex-direction:column; gap:18px; }
.mobile-menu a{ color:#fff; text-decoration:none; font-weight:600; font-size:1rem; padding:10px 6px; border-radius:8px; }
.mobile-menu a:hover{ background:rgba(255,255,255,.10); color:#F9E4C5; }
.mobile-close{
  position:absolute; top:16px; right:16px; width:40px; height:40px; border-radius:10px;
  background:rgba(255,255,255,.14); color:#fff; border:0; cursor:pointer; font-size:26px; line-height:40px; text-align:center;
}
.mobile-close:hover{ transform:scale(1.05); background:rgba(255,255,255,.22); }

/* Açıkken hamburger 'X' animasyonu */
.mobile-open .menu-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.mobile-open .menu-toggle span:nth-child(2){ opacity:0; }
.mobile-open .menu-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Hamburger görünürlüğü: 992 altı */
@media (max-width: 992px){
  .nav-links{ display:none !important; }
  .menu-toggle{ display:inline-flex !important; align-items:center; justify-content:center; }
}

/* Kahraman */
.projects-hero{
  background:linear-gradient(135deg, var(--inkwell), var(--lunar));
  color:#fff; padding:70px 0;
}
.projects-hero h1{ font-family:'Playfair Display',serif; font-size:40px; margin-bottom:8px; }
.projects-hero p{ opacity:.95; }

/* Galeri */
.projects-grid{ background:#fff; padding:32px 0 60px; }
.gallery{
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
  margin:10 auto; width: 100%; max-width: 1200px;
}
@media (max-width: 1200px){ .gallery{ grid-template-columns:repeat(3,1fr); } }
@media (max-width: 900px){ .gallery{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 576px){ .gallery{ grid-template-columns:1fr; } }

.project-card{
  position:relative; overflow:hidden; border-radius:14px;
  box-shadow:0 10px 24px var(--shadow); isolation:isolate;
  justify-items:center;
}

/* Yükseklik garantisi + responsive */
.project-media{
  position:relative; width:100%; height:auto;
  aspect-ratio:3/2;              /* modern tarayıcı */
  background:#1B2038; overflow:hidden;
}
.project-media::before{ content:""; display:block; padding-top:66.666%; } /* fallback */

/* Görsel yerleşimi */
.project-media img{
  position:absolute; align-items: center; inset:0; width:100%; height:100%;
  object-fit:cover; transition: transform .6s ease, opacity .2s ease;
  background:#1B2038; object-position: center;
}
.project-card:hover .project-media img{ transform: scale(1.06); }

/* Hover açıklaması */
.project-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:6px;
  color:#fff; padding:16px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  opacity:0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.project-card:hover .project-overlay{ opacity:1; transform: translateY(0); }

.project-overlay h3{ margin:0; font-size:1.1rem; font-weight:800; letter-spacing:.2px; }
.project-overlay p{ margin:0; font-size:.95rem; opacity:.95; }

/* Tüm kartı tıklanabilir kılmak için görünmez link */
.card-link{ position:absolute; inset:0; text-indent:-9999px; }
/* Larger logo without overflow */
header .brand-logo{ height: 150px !important; max-height: 100% !important; width: auto !important; object-fit: contain !important; display: block; }
@media (max-width:480px){header{ height: var(--header-h-sm) !important; } header .brand-logo{ height: calc(100% - 6px) !important; max-height:72px; } }
