﻿/* ===========================================================
   PROJECT CARDS
   =========================================================== */
/* ===========================================================
   SWIPER MOBILE FIX (ZORUNLU)
   =========================================================== */
.swiper-container {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow:visible;
}

.swiper-wrapper {
    display: flex !important;
}

.swiper-slide {
    width: 504px !important;
    margin-right: 19px !important;
}


    /* ===========================================================
   KART BOYUT KİLİDİ (Swiper’ın genişliğini ezmeyi durdurur)
   =========================================================== */
.cards-overlap {
    /*padding: 56px 0 40px;*/
    margin-top: 40px;
    margin-bottom: 122px;
}

/* 1) DIŞ CARD (504 × 452) */
.card-container {
    width: 504px !important;
    height: 452px !important;
    padding: 12px 12px 24px 12px !important;
    border-radius: 44px !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 21px !important;
    box-shadow: 0px 4px 55px rgba(0, 0, 0, 0.15) !important;
}

/* 2) İÇ CARD (480 × 375) */
.card {
    width: 480px !important;
    height: 375px !important;
    border-radius: 40px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    position: relative !important;
    background: transparent !important;
}

.card-img-top {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 40px !important;
}

.card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    text-align: center;
    background: #00000057;
}

.card-text {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    line-height: 16.46px;
    color: rgba(255, 255, 255, 0.75) !important;
    /* Figma ile birebir */

    margin-bottom: 1rem !important;
    letter-spacing: 0%;
    text-align: left;
}

.fake-button {
    max-width: fit-content;
    display: block;
    /* İçini ortalayacak flex konteyner */
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    padding: 6px 12px;
    /* Buton hissi veren iç boşluk */
    border-radius: 12px;
    /* Yuvarlak köşeler */
    background-color: rgba(255, 255, 255, 0.2);
    /* Yarı saydam beyaz zemin */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* İnce beyaz sınır */
    color: #E1E3EA;
    font-family: 'Inter', sans-serif;
    /* Tüm sayfada tanımlı Inter çalışır */
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    line-height: 20px;
    letter-spacing: 0%;
    /* 2) Başlığın (fake-button) overlay’in üstünden hep aynı konumda başlaması için: */
    margin-top: auto;
    /* Varsayılan h5 marjinini sıfırla */
    margin-bottom: 12px;
    /* Alt metinle araya 12px boşluk bırak */
}

.swiper-slide:nth-child(3) .card-img-top {
    filter: brightness(1.5);
}

.card-container.shadow {
    box-shadow: 0px 4px 55px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 699px) {

    /* 🔥 Bootstrap container padding fix */
    #projects .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .cards-overlap {
        margin-top: 0;
        margin-bottom: 0;
    }

    /* === Swiper === */
    .swiper-container {
        overflow: visible !important;
    }

    .swiper-wrapper {
        display: flex;
    }

    .swiper-slide {
        width: 328px !important;
        max-width: 328px !important;
        flex-shrink: 0 !important;
        margin-right: 16px !important;
    }

    /* === Mobil kart dış kap (Figma 328×303) === */
    .card-container {
        width: 328px !important;
        height: 303px !important;
        padding: 12px !important;
        border-radius: 32px !important;
        margin: 38px auto 51px auto !important;
        background: #fff;
        box-shadow: 0px 6px 20px rgba(0,0,0,0.10);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* === Kart === */
    .card {
        position: relative;
        width: 304px !important;
        height: 231px !important;
        border-radius: 24px !important;
        overflow: hidden;
        margin-bottom: 16px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* === Görsel === */
    .card-img-top {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 24px !important;
    }

    /* === 50% siyah overlay === */
    .card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: #00000080;
        z-index: 2;
    }

    /* === Kategori badge === */
    .card-title.fake-button {
        position: absolute !important;
        top: 14px !important;
        left: 14px !important;
        z-index: 20 !important;
        padding: 6px 16px !important;
        border-radius: 24px !important;
        font-family: "Inter", sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        color: #E1E3EA !important;
        background: rgba(255,255,255,0.20) !important;
        background-clip: padding-box;
    }

        .card-title.fake-button::before {
            content: "";
            position: absolute;
            inset: 0;
            padding: 1px;
            border-radius: 24px;
            background: linear-gradient( 180deg, rgba(255,255,255,0.30) 0%, #666666 100% );
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
        }

    /* === 3. slide brightness fix === */
    .swiper-slide:nth-child(3) .card-img-top {
        filter: brightness(2);
    }

    /* === Açıklama gizle === */
    .card-text {
        display: none !important;
    }

    .card-body {
        padding: 0 !important;
        background: transparent !important;
    }

    /* === Alt buton alanı === */
    .card-container > .text-center {
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: -35px !important;
    }

    .overlay-button {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #000 !important;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .overlay-button img {
            width: 14px !important;
            height: 14px !important;
        }
        .footer-slogan{
            margin-top:0 !important;
        }
}

/* ======================
   TABLET BREAKPOINT
   ====================== */
@media (min-width: 700px) and (max-width: 1200px) {

    /* Swiper düzgün kayabilsin */
    .swiper-container {
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        padding-left: 24px;
    }

    .swiper-wrapper {
        display: flex !important;
        position: relative !important;
        /* ✔ relative yerine static */
    }

    .swiper-slide {
        width:376px !important;
        flex-shrink: 0 !important;
    }

    /* === Dış Kart (376 × 387) === */
    .card-container {
        width: 376px !important;
        height: 387px !important;
        padding: 12px 12px 24px 12px !important;
        border-radius: 44px !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 21px !important;
        box-shadow: 0px 4px 55px rgba(0, 0, 0, 0.15) !important;
        margin-bottom: 80px !important;
    }

    /* === İç Kart (352 × 310) === */
    .card {
        width: 352px !important;
        height: 310px !important;
        border-radius: 40px !important;
        overflow: hidden !important;
        margin: 0 auto !important;
        position: relative !important;
        background: transparent !important;
    }

    .card-img-top {
        width: 352px !important;
        height: 310px !important;
        object-fit: cover !important;
        border-radius: 40px !important;
    }

    /* Overlay body */
    .card-body {
        position: absolute !important;
        bottom: 0;
        width: 100%;
        padding: 12px 16px !important;
        background: #00000055 !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cards-overlap {
        max-width: 500px;
    }

    .card-text {
        font-size: 14px !important;
        line-height: 16px !important;
        margin-bottom: 6px !important;
    }

    /* Buton */
    .fake-button {
        font-size: 14px !important;
        padding: 6px 12px !important;
        margin-bottom: 12px !important;
    }
}
