/* =================================
   GLOBAL STYLES
   YSA Soğutma Yeni Kurumsal Renkler:
   - Koyu Mavi (Ana): #252b69
   - Orta Mavi (Hover): #24488b
   - Açık Mavi (Vurgu): #2190ca
   ================================= */

/* --- Temel Ayarlar --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    color: #252b69; /* Ana Renk */
    line-height: 1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { color: #2190ca; } /* Vurgu Rengi (Referans adları için) */

p { margin-bottom: 1.2rem; }
a { text-decoration: none; color: #2190ca; } /* Vurgu Rengi */
img { max-width: 100%; height: auto; }

/* --- Utility Sınıfları --- */
.text-center { text-align: center; }
.text-primary { color: #252b69; }
.text-secondary { color: #2190ca; }

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2190ca; /* Vurgu Rengi */
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
    background-color: #24488b; /* Orta Mavi (Hover) */
    transform: scale(1.05);
}
.btn-primary { background-color: #252b69; color: #fff; } /* Ana Renk */
.btn-primary:hover { background-color: #24488b; } /* Orta Mavi (Hover) */

/* --- Header (Navigasyon) --- */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.navbar .logo { max-height: 60px; }
.navbar .nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
.navbar .nav-links li { margin-left: 25px; }
.navbar .nav-links a {
    color: #252b69; /* Ana Renk */
    font-weight: 500;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #2190ca; /* Vurgu Rengi */
    border-bottom: 2px solid #2190ca; /* Vurgu Rengi */
}

/* --- Hero Section (Anasayfa) --- */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(37, 43, 105, 0.7), rgba(36, 72, 139, 0.8)), url('img/hero-background.jpg') no-repeat center center/cover; /* Yeni Mavi Gradient */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* --- Services Grid (Anasayfa & Hizmetler) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}
.service-box {
    background: #f9f9f9;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.service-box img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.service-box h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* --- Why Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}
.why-us-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}
.why-us-item h3 {
    color: #2190ca; /* Vurgu Rengi */
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.why-us-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* --- References Detailed Section --- */
.references-detailed-section {
    padding: 50px 0;
    background-color: #f9f9f9; 
}
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    margin-top: 2rem;
}
.reference-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.07);
}
.reference-card .reference-logo {
    height: 90px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.reference-card .reference-logo img {
    max-height: 100%;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.reference-card:hover .reference-logo img {
    filter: grayscale(0%);
    opacity: 1;
}
.reference-card h4 {
    color: #2190ca; /* Vurgu Rengi */
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.reference-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- About Page --- */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.about-content .about-text { flex: 2; }
.about-content .about-image { flex: 1; text-align: center; padding-top: 10px; }
.about-content .about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Blog Page Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}
.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.blog-card .blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card:hover .blog-image img {
    transform: scale(1.05);
}
.blog-card .blog-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.blog-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
    min-height: 3rem; 
}
.blog-card h3 a {
    color: #252b69; /* Ana Renk */
    transition: color 0.3s ease;
}
.blog-card h3 a:hover {
    color: #2190ca; /* Vurgu Rengi */
}
.blog-card .blog-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}
.blog-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}
.blog-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* --- Single Blog Post --- */
.single-blog-content img {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- YENİ EKLENEN GALERİ STİLLERİ --- */
/* --- Home Gallery --- */
.home-gallery {
    padding: 40px 0;
    text-align: center;
    background-color: #fff;
}
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Masaüstünde 4 sütun */
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}
.home-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px; /* Anasayfa için sabit yükseklik */
}
.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.home-gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- Full Gallery Page --- */
.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Mobil uyumlu ızgara */
    gap: 20px;
    margin-top: 2rem;
}
.full-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    height: 280px; /* Galeri sayfası için yükseklik */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.full-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.full-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* --- GALERİ STİLLERİ BİTİŞİ --- */


/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}
.contact-info h3 {
    border-bottom: 2px solid #2190ca; /* Vurgu Rengi */
    padding-bottom: 10px;
    display: inline-block;
}
.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
}
.google-form-embed {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}
.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    margin-top: 2rem;
}

/* --- Footer --- */
.footer {
    background-color: #252b69; /* Ana Renk (Koyu Mavi) */
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer h4 {
    color: #fff;
    border-bottom: 1px solid #2190ca; /* Vurgu Rengi */
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.footer p, .footer li { font-size: 0.95rem; color: #eee; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #eee; transition: color 0.3s ease; }
.footer ul li a:hover { color: #2190ca; } /* Vurgu Rengi */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #24488b; /* Orta Mavi */
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Mobil Uyum (Responsive) --- */
@media(max-width: 992px) {
    /* Tablet için anasayfa galerisi 2x2 */
    .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media(max-width: 768px) {
    .navbar .container { flex-direction: column; }
    .navbar .nav-links { margin-top: 15px; width: 100%; justify-content: center; }
    .navbar .nav-links li { margin: 0 10px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .about-content { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    /* Blog grid mobil için alt alta */
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 576px) {
    /* Mobil için anasayfa galerisi tek sütun */
    .home-gallery-grid {
        grid-template-columns: 1fr; 
    }
}



/* =================================
   FLOATING BUTTONS (WhatsApp & Call)
   ================================= */

.floating-buttons {
    position: fixed;        /* Sayfada sabit kalır */
    bottom: 25px;           /* Alttan boşluk */
    right: 25px;            /* Sağdan boşluk */
    display: flex;
    flex-direction: column; /* Butonları alt alta sıralar */
    gap: 15px;              /* Butonlar arası boşluk */
    z-index: 1001;          /* Diğer her şeyin üstünde görünür */
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;     /* Yuvarlak yapar */
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none; /* Link alt çizgisini kaldırır */
}

.float-btn:hover {
    transform: scale(1.1); /* Üzerine gelince hafifçe büyür */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* WhatsApp Butonu (Marka Rengi) */
.whatsapp-btn {
    background-color: #25D366;
}

/* Hemen Ara Butonu (Sitenizin Ana Rengi) */
.call-btn {
    background-color: #24488b; 
}

/* Butonların içindeki ikon boyutu */
.float-btn img {
    width: 35;
    height: 35px;
    fill: #ffffff; /* İkon rengi beyaz */
}



/* =================================
   MOBİL UYUM (RESPONSIVE) & HAMBURGER MENÜ
   ================================= */

/* Varsayılan Hamburger Stili (Gizli) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #252b69; /* Ana Renk */
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Mobil Ekran Ayarları (768px ve altı) --- */
@media screen and (max-width: 768px) {
    
    body {
        overflow-x: hidden; /* Yanlara taşmayı engelle */
    }

    /* GÜNCELLEME BURADA YAPILDI */
    /* NAVBAR KONUMLANDIRMA - Tam Genişlik */
    .navbar .container {
        display: flex; /* Flexbox kullan */
        flex-direction: row; /* Yan yana sırala */
        justify-content: space-between; /* Biri en sağa, biri en sola it */
        align-items: center; /* Dikeyde ortala */
        width: 100%; /* Kapsayıcıyı ekranın tamamına yay */
        padding: 0 20px; /* Soldan ve sağdan 20px boşluk bırak (Kenara yapışmasın) */
        box-sizing: border-box; /* Padding ekleyince taşma yapmasını engelle */
    }

    /* Hamburger ikonunu görünür yap ve hizala */
    .hamburger {
        display: block;
        z-index: 1002; /* Menünün üzerinde görünsün */
        margin-left: auto; /* Ekstra güvenlik: Kendini en sağa it */
    }

    /* Menü Linklerini Gizle ve Sağdan Açılır Yap */
    .navbar .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: #252b69;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1001;
        margin: 0;
        padding: 0;
    }

    /* Menüdeki link stilleri */
    .navbar .nav-links li {
        opacity: 0;
        margin: 25px 0;
    }

    .navbar .nav-links a {
        color: #fff;
        font-size: 1.3rem;
    }

    .navbar .nav-links a:hover {
        color: #2190ca;
    }

    /* JS ile eklenecek sınıf: Menüyü görünür yapar */
    .nav-active {
        transform: translateX(0%) !important;
    }

    /* Linklerin geliş animasyonu */
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }

    /* Hamburger İkonu Animasyonu */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: #fff;
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: #fff;
    }

    /* Mobil Izgara Ayarları */
    .home-gallery-grid, 
    .blog-grid, 
    .services-grid, 
    .contact-grid,
    .about-content {
        grid-template-columns: 1fr; /* Tek sütun yap */
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 20px; /* Görsel ile metin arasına boşluk */
    }
}