
/* başlık */

header {
    display: flex;
    height: 80px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color:rgb(66, 49, 41);
    position: fixed;
    z-index: 1000; 
}

#logo {
    height: auto;
    width: 50%; 
    font-size: 2rem;
    font-weight: bolder;
    color:rgb(159, 102, 64);
    padding: 0 25px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

nav {
    height: 80px;
    width: 48%; 
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 1rem;
}

/* Navigasyon linklerini sarmalayan yeni kapsayıcı */
.nav-links {
    display: flex; 
    height: 100%;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

.menu {
    padding: 30px 5px;
    height: 100%;
    flex-grow: 1; 
    text-align: center;
    transition: 0.5s;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    position: relative;
}

.menu:hover {
    background-color: rgb(252, 158, 95);
}

.menu > a {
     text-decoration: none;
     color: rgb(159, 102, 64);
     font-size: 1.1rem;
     position: absolute;
     top: 0;
     right: 0;
     bottom: 0;
     left: 0;
     display: flex;
     align-items: center;
     justify-content: center;
}

/* #mobile iconu (masaüstü durumunda gizli) */
#mobile {
    display: none;
}

/* merkez */
main {
    display: flex;
    width: auto;
    min-height: calc(100vh - 49px); /* 'height' yerine 'min-height' KULLANIYORUZ */
    background-image: url(../img/photo-1497032628192-86f99bcd76bc.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

main > .icerik-1 {
    color: wheat;
    background-color: rgba(29, 29, 29, 0.582);
    min-height: calc(200px + 10vh);  
    max-height: calc(500px + 20vh);
    width: 45%;
    text-align: center;
    border: 2px solid rgba(29, 29, 29, 0.582);
    border-radius: 25px;
    padding: 25px;
}

.icerik-1 h3 {
    font-size: 1.9rem;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
}

.icerik-1 p {
    font-size: 1.3rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

footer {
    height: 49px;
    width: 100%;
    background-color:rgb(66, 49, 41);
    color:rgb(159, 102, 64);
    text-align: center;
    font-size: 1rem;
    padding-top: 15px;
}

/* iletişim */
#contact {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: rgb(66, 49, 41);
  border-radius: 10px;
  width: 80%;
  min-height: calc(200px + 10vh);  
  max-height: calc(500px + 20vh);
  transform: translateY(10px);
}

#contact h2 {
  text-align: center;
  margin-bottom: 20px;
  color: rgb(159, 102, 64);
  font-size: 2rem;
}
#contact label {
    display: block;
    color: rgb(159, 102, 64);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#contact input, 
#contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #ccc;
}

#contact button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: rgb(159, 102, 64);
  color:rgb(66, 49, 41);
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

#contact button:hover {
  background-color: rgb(252, 158, 95);
}

#formResponse {
  margin-top: 10px;
  text-align: center;
  color:  rgb(252, 158, 95);
}

form a {
    font-size: 1.5rem;
    color: rgb(159, 102, 64);
}

#icons {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: right;
    padding: 5px 0 0 0;
}

a i:hover{
    color: rgb(252, 158, 95);
}


/* --- Referanslar Sayfası Stilleri --- */

.main-content-wrapper {
    color: wheat;
    background-color: rgba(29, 29, 29, 0.582);
    width: 80%;
    max-width: 1400px;
    margin: 0 auto; /* Sayfayı ortalamak için */
    padding: 40px;
    border-radius: 25px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.3rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #ddd;
}

.title-hr {
    width: 80%;
    max-width: 800px;
    margin: 20px auto 40px auto;
    border-color: rgb(159, 102, 64);
}

.reference-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid yapısı */
    gap: 25px;
    text-align: left;
}

.reference-card {
    background-color: rgba(66, 49, 41, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgb(159, 102, 64, 0.5);
}

.reference-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.reference-card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Resmin orantısını bozmadan alanı kaplamasını sağlar */
    display: block;
}

.reference-card .info {
    padding: 20px;
}

.reference-card h4 {
    font-size: 1.4rem;
    color: rgb(252, 158, 95);
    margin: 0 0 10px 0;
}

.reference-card p {
    font-size: 1rem;
    color: #e2e2e2;
    line-height: 1.6;
}

.no-references {
    padding: 50px;
    font-size: 1.2rem;
}

/* --- İletişim Formu Geri Bildirim Mesajı Stilleri (Temaya Uygun) --- */

#formResponse {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600; /* Yazıyı biraz daha kalın yapalım */
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    border-style: solid;
    border-width: 2px;
    transition: opacity 0.5s ease;
}

/* Başarılı gönderim için sitenin sıcak, açık rengi */
#formResponse.success {
    background-color: rgba(252, 158, 95, 0.15); /* Vurgu renginin çok açık ve transparan hali */
    color: #f3d9c4; /* Buğday rengine yakın açık bir renk */
    border-color: rgb(252, 158, 95); /* Vurgu rengiyle çerçeve */
}

/* Hatalı gönderim için dikkat çekici ama temaya uygun bir ton */
#formResponse.error {
    background-color: rgba(199, 84, 84, 0.15); /* Kırmızımsı bir tonun transparan hali */
    color: #f5caca; /* Pembeye çalan açık bir renk */
    border-color: #c75454; /* Kırmızımsı çerçevenin rengi */
}

/* --- Lightbox / Modal Stilleri --- */

/* Tıklanabilir olduğunu belirtmek için resimlere cursor ekle */
.reference-card img {
    cursor: pointer;
}

/* Modal Arka Planı */
.modal {
  display: none; /* Varsayılan olarak gizli */
  position: fixed; 
  z-index: 2000; /* Her şeyin üstünde olmalı */
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9); /* Siyah, %90 transparan */
}

/* Modal İçeriği (Resim) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1300px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* Modal Başlığı */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Animasyon */
@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* Kapatma Butonu */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* --- Hamburger İkonu Garanti Düzeltmeleri --- */

#mobile a {
    color: rgb(159, 102, 64); /* Rengi her zaman bu olsun */
    text-decoration: none; /* Alt çizgiyi kaldır */
    padding: 10px; /* Tıklama alanını büyüt */
    display: block; /* padding'in doğru çalışması için */
}

/* --- Referanslar Sayfası Layout Düzeltmesi --- */

/* Body'ye referanslar sayfası için özel bir class ekleyeceğiz */
/* Bu sayede sadece bu sayfada geçerli olacak bir kural yazabiliriz */
body.referanslar-sayfasi main {
    display: block; /* Flexbox'ı iptal et, normal akışına dönsün */
    padding-top: 100px; /* Header için boşluk bırak (mobil için media query bunu ezecek) */
}

.footer-separator {
    margin: 0 10px;
    color: #888; /* Rengi kendi sitenize göre ayarlayın */
}

.footer-bottom a {
    color: #555; /* Rengi kendi sitenize göre ayarlayın */
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* =============================================== */
/* === UZUN İÇERİKLİ SAYFALAR İÇİN DÜZELTME === */
/* =============================================== */

/* Eğer body'de 'sayfa-uzun-icerik' class'ı varsa, main etiketini farklı davranması için ayarla */
body.sayfa-uzun-icerik main {
    /* Flexbox'ın dikey ortalama özelliğini iptal et, içeriği yukarı yasla */
    align-items: flex-start;
    
    /* Arka plan resminin tüm uzun içerik boyunca devam etmesini sağla */
    background-attachment: fixed; /* Bu, kaydırma sırasında arka planın sabit kalmasını sağlar */
    
    /* Gerekirse, iç kutunun kendi kendine büyümesine izin ver */
    height: auto;
}

/* Ayrıca, bu sayfalardaki içerik kutusunun maksimum yüksekliğini kaldıralım ki istediği kadar uzayabilsin */
body.sayfa-uzun-icerik main > .icerik-1 {
    max-height: none; /* max-height limitini kaldır */
    margin-top: 20px; /* Üstten biraz boşluk verelim */
    margin-bottom: 50px; /* Alttan footer'a yapışmaması için boşluk verelim */
}