@media (min-width: 1080px) {
    .header .logo img {
        max-height: 64px;
    }
    .hero > img {
        left: auto !important;
        right: 0 !important;
        width: auto !important; /* Prevents image from stretching/centering */
        min-width: 100% !important;
        object-fit: cover !important;
        object-position: right center !important;
    }
}
@media (max-width: 1079px) {
    .hero > img {
        object-position: 85% center !important;
    }
}
@media (max-width: 991px) {
    /* Hover ile açılan o overlay kutusunun sınıfı neyse (örn: .portfolio-info) */
    .portfolio-content .portfolio-info {
        position: relative !important; /* Resmin üzerine değil, altına gelsin */
        opacity: 1 !important;        /* Her zaman görünür olsun */
        visibility: visible !important;
        transform: none !important;    /* Varsa kayma animasyonlarını sıfırla */
        background: #fff !important;   /* Arka planı düz renk yap ki okunabilsin */
        color: #333 !important;
        padding: 15px 10px !important;
    }

    /* Resmin üzerine binen o koyu katmanı (overlay) mobilde gizleyebiliriz */
    .portfolio-content::before {
        display: none !important;
    }
    .scroll-top {
         bottom: 80px !important; /* Mobil barın (65px) hemen üzerine taşıdık */
     }
}

/* Genel Buton Ayarları */
.cta-btn {
    padding: 14px 32px;
    border-radius: 50px; /* Modern, yuvarlak hatlar */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

/* WhatsApp Yeşili Buton */
.wa-btn {
    background-color: #25D366 !important;
    color: #fff !important;
    border: 2px solid #25D366 !important;
}

.wa-btn:hover {
    background-color: #128c7e !important; /* Hafif koyu yeşil hover */
    border-color: #128c7e !important;
    transform: translateY(-3px); /* Hafif yukarı zıplama efekti */
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.wa-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Bilgi Formu Butonu (Beyaz Kenarlıklı) */
.form-btn {
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}

.form-btn:hover {
    background-color: transparent !important;
    color: #fff !important;

    transform: translateY(-3px);
}

.form-btn i {
    margin-right: 10px;
}

.step-item {
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 15px;
    background: #fff;
    height: 100%;
    transition: 0.3s;
    position: relative;
}

.step-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #243b5c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/*!* Genel Ayarlar *!*/
/*html { scroll-behavior: smooth; }*/

/* Mobil Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    display: flex;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.sticky-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}
.corporate-bg { background-color: #243b5c; }
.wa-bg { background-color: #25d366; }
.sticky-item i { font-size: 20px; margin-bottom: 2px; }

/* Desktop WhatsApp */
.desktop-wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.desktop-wa-float a {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.wa-tooltip {
    position: absolute;
    right: 75px;
    bottom: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    opacity: 0;
    animation: fadeIn 0.5s forwards 3s; /* 3sn sonra başlar */
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* Form Buton Stili */
.btn-submit {
    background: #243b5c;
    color: #white;
    border: 0;
    padding: 12px 40px;
    transition: 0.4s;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
}
.btn-submit:hover { background: #1a2a44; }

/* Mevcut yukarı çık butonunun yerini değiştiriyoruz */
.scroll-top {
    right: 30px !important;
    bottom: 105px !important; /* WhatsApp butonunun (60px) + boşluğun üzerine taşıdık */
    background-color: rgba(36, 59, 92, 0.7) !important; /* Senin lacivert renginle uyumlu ve hafif şeffaf */
    transition: 0.3s;
}

.scroll-top:hover {
    background-color: #243b5c !important; /* Üzerine gelince tam renk */
}

/* Form alanlarını netleştirme */
.contact .php-email-form input,
.contact .php-email-form select,
.contact .php-email-form textarea {
    color: #444 !important; /* Yazı rengini koyulaştırır */
    background-color: #fff !important; /* İçini beyaz yapar */
    border: 1px solid #ccc !important; /* Belirgin bir çerçeve ekler */
    opacity: 1 !important; /* Şeffaflık varsa kaldırır */
    visibility: visible !important;
}

/* Placeholder (İpucu yazısı) renkleri */
.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
    color: #888 !important;
}

/* Arka plandaki dünya haritası üzerini kapatıyorsa */
.contact .container {
    position: relative;
    z-index: 2; /* Formu haritanın üstüne çıkarır */
}

#contact form {
    position: relative;
    z-index: 10; /* Formu en üste taşır */
}

                        /* SSS */
.sss-container {
    padding: 10px 0;
}

.sss-item {
    background-color: #fff;
    border: 1px solid #e5eaf0; /* Belirgin olmayan ince bir çerçeve */
    border-radius: 8px;
    margin-bottom: 8px; /* Aradaki büyük boşluğu kapattık */
    transition: all 0.3s ease;
}

.sss-item:hover {
    border-color: #243b5c; /* Senin lacivertinle vurgu */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sss-header {
    padding: 16px 20px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 17px; /* Bir tık küçülterek daha zarif yaptık */
    font-weight: 600;
    color: #243b5c;
    text-align: center;
}

.sss-icon {
    font-size: 1rem;
    transition: 0.4s;
    color: #243b5c;
    opacity: 0.5;
}

/* İçerik Alanı */
.sss-content {
    padding: 0 20px 16px 20px;
    display: none;
}

.sss-content p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Aktif Durum */
.sss-item.sss-active {
    border-color: #243b5c;
}

.sss-item.sss-active .sss-icon {
    transform: rotate(180deg); /* Oku aşağıdan yukarıya çevirdik */
    opacity: 1;
}

.sss-item.sss-active .sss-content {
    display: block;
}

@media (max-width: 575px) {
    /* 1. Ana Kapsayıcıyı Sınırla */
    .portfolio-item {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: hidden !important; /* Dışarı taşan her şeyi gizle/kes */
    }

    /* 2. Kartın Kenar Boşluklarını Ayarla */
    .portfolio-content {
        margin: 0 auto 25px auto !important; /* Kartı ortala ve altına boşluk bırak */
        width: 100% !important;
        display: block !important;
    }

    /* 3. İçerik Alanını Kutunun İçine Hapset */
    .portfolio-info {
        padding: 15px !important;
        word-wrap: break-word !important; /* Uzun kelimeleri/cümleleri alt satıra zorla */
    }

    /* 4. O Taşmaya Sebep Olan Esnek Yapıyı (Badges) Düzelt */
    .portfolio-info .d-flex {
        display: flex !important;
        flex-wrap: wrap !important; /* Sığmayan etiketleri alt satıra at */
        gap: 6px !important; /* Aralarına nefes alacak boşluk koy */
        justify-content: flex-start !important;
    }

    /* 5. Alt Kısımdaki Fiyat ve Buton Alanı */
    .portfolio-info .d-flex.justify-content-between {
        flex-wrap: nowrap !important; /* Fiyat ve Buton yan yana kalsın */
        align-items: center !important;
    }
}