/* ===============================
   GENEL AYARLAR
=================================*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #000;
    max-width: 100vw;
    overflow-x: hidden;
    background: #f8f8f8 url('../img/arkaplan1.webp') center/cover no-repeat fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

/* ===============================
   HEADER
=================================*/
header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 150px;
    /* Yükseklik geçişi kaldırıldı, sadece renk geçişi korundu */
    transition: background-color 0.3s ease;
    /* GPU sabitleme ile titreşim önleme */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

.header-shrink {
    height: 80px !important;
    transition: background-color 0.3s ease !important;
}

.header-shrink .logo {
    width: 60px !important;
    height: 60px !important;
}

.header-shrink .site-baslik {
    font-size: 0.8rem !important;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    /* GPU sabitleme */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 30%;
    transition: transform 0.3s ease;
    /* Görsel sabitleme */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
}

/* ===============================
   NAVİGASYON
=================================*/
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
    }
}

/* ===============================
   BÖLÜMLER
=================================*/
section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
}

h2 {
    color: #2e8b57;
}

/* ===============================
   GALERİ
=================================*/
.galeri-kutusu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.galeri-kutusu img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeri-kutusu img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ===============================
   İLETİŞİM VE FORM
=================================*/
.iletisim-ve-form {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .iletisim-ve-form {
        flex-direction: column;
    }
}

.iletisim-bilgileri {
    flex: 1 1 300px;
}

.ziyaretci-formu {
    flex: 1 1 400px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ziyaretci-formu input,
.ziyaretci-formu textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #2e8b57;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.ziyaretci-formu input:focus,
.ziyaretci-formu textarea:focus {
    border-color: #3cb371;
}

.ziyaretci-formu button {
    background: #2e8b57;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ziyaretci-formu button:hover {
    background: #246b45;
    transform: scale(1.05);
}

/* ===============================
   FOOTER
=================================*/
footer {
    background: rgba(46, 139, 87, 0.9);
    color: #000;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

.social-icons-footer a {
    margin: 0 10px;
    font-size: 1.5em;
    color: #000;
    transition: color 0.3s ease;
}

.social-icons-footer a:hover {
    color: #90ee90;
}

/* ===============================
   HARİTA
=================================*/
.harita-container {
    max-width: 1000px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.harita-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* ===============================
   WHATSAPP BUTONU
=================================*/
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}
