/* =========================
    KATEGORİLER (SERVICES)
========================= */
.services {
    /* Clemix Kurumsal Lacivert Gradyan Arka Plan */
    background: linear-gradient(305deg, #0F2A6B 0%, #2a52be 50%, #F57C22 150%);
    padding: 80px 10%;
    
    /* ÜST VE ALT KURUMSAL ÇİZGİLER */
    border-top: 3px solid #F57C22;    /* Üst tarafa logonun altındaki gibi kalın ve net lacivert şerit */
    border-bottom: 3px solid #F57C22; /* Alt tarafa Clemix turuncusu kalın ve net şerit */
    
    position: relative;
    z-index: 10;
    margin-top: -1px; /* Üstteki beyaz alanla arada boşluk kalmasını engeller */
}

/* KATEGORİLER BAŞLIĞI */
.section-title {
    display: block;
    width: 100%;
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff; /* Koyu zeminde okunması için beyaz yapıldı */
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    margin: 20px auto 0;
    background: #F57C22; /* Daha net durması için düz turuncu */
    border-radius: 50px;
    box-shadow: 0 3px 15px rgba(245, 124, 34, 0.4);
}


/* Hizmet Kutuları Grid Sistemi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}











/* ================================================= */
/* CLEMIX MODERN KATEGORİ KARTLARI (SADECE KARTLAR)  */
/* ================================================= */

/* KATEGORİ KUTUSU (Görsele göre daraltıldı) */
.service-box {
    position: relative;
    background: #ffffff00;
    border-radius: 20px;
    /* Padding değerlerini düşürdük: Üst/Alt 15px, Sağ/Sol 15px */
    padding: 15px 15px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* İçeriği merkeze toplar */
    text-decoration: none !important;
    border: 1px solid rgba(15, 42, 107, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    /* Kartın aşırı büyümesini engellemek için genişlik sınırı (opsiyonel) */
    max-width: 300px; 
    margin: 0 auto;
}

/* Hover (Üzerine Gelince) Kart Hareketi */
.service-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: #F57C22; /* Sadece kenarlıkta turuncu vurgu */
}

/* KATEGORİ GÖRSELİ (Kartı dolduracak şekilde büyütüldü) */
.service-image {
    width: 100%;
    /* Yüksekliği artırarak görselin kartta daha çok yer kaplamasını sağlıyoruz */
    height: 320px; 
    background-size: contain; /* Görselin tamamını gösterir, kesmez */
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 10px; /* Yazıyla arasındaki boşluğu azalttık */
    transition: all 0.6s ease;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
    z-index: 2;
}

/* Hover'da Görselin Canlanması */
.service-box:hover .service-image {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 20px 30px rgba(15, 42, 107, 0.15));
}

/* KATEGORİ YAZI ALANI (Daha kompakt hale getirildi) */
.service-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-content h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff; /* Clemix Laciverti */
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Modern Alt Çizgi Animasyonu */
.service-content h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 50px;
    background: #F57C22; /* Clemix Turuncusu */
    transition: width 0.4s ease;
    opacity: 0.7;
}

.service-box:hover .service-content h3::after {
    width: 60px;
    opacity: 1;
}




















/* ================================================================
   KATEGORİLER (SERVICES) MOBİL DÜZENLEME
   ================================================================ */
@media screen and (max-width: 768px) {
    
    /* 1. Bölümün genel boşluğunu daralt */
    .services {
        padding: 50px 5% !important; /* %10 çok fazlaydı, %5'e düşürdük */
    }

    /* 2. Başlığı mobilde küçült */
    .section-title {
        font-size: 28px !important; /* 42px mobilde çok büyük */
        margin-bottom: 30px !important;
    }

    /* 3. EN KRİTİK YER: 4'lü sırayı mobilde 2'li veya 1'li yap */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Kartları yan yana 2 tane yapar */
        gap: 15px !important; /* Kartlar arasındaki boşluğu azalttık */
    }

    /* 4. Kartların içindeki resim ve yazı ayarı */
    .service-box {
        padding: 20px 10px !important;
        border-radius: 15px !important;
    }

    .service-image {
        height: 120px !important; /* Resimleri mobilde biraz küçültüyoruz */
        margin-bottom: 10px !important;
    }

    .service-content h3 {
        font-size: 14px !important; /* Kategori isimlerini küçülttük */
    }
}

/* 480px altı çok küçük telefonlar için tekli sıra */
@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr !important; /* Kartlar alt alta tekli dizilir */
    }
}




/* ================================================================
   KATEGORİLER (SERVICES) EK MOBİL İYİLEŞTİRMELER
   ================================================================ */
@media screen and (max-width: 768px) {
    
    /* 1. Gradyan Arka Planın Mobilde Daha Yumuşak Geçmesi */
    .services {
        /* Mobilde gradyanı biraz daha dik yaparak renk geçişini netleştiriyoruz */
        background: linear-gradient(180deg, #0F2A6B 0%, #2a52be 70%, #F57C22 130%) !important;
        padding: 40px 15px !important;
    }

    /* 2. Kartların Mobilde Daha "Hafif" Durması */
    .service-box {
        /* Mobilde hover (üzerine gelme) olmadığı için kartları 
           varsayılan olarak biraz daha belirgin yapıyoruz */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* 3. Resimlerin Altındaki Gölgeyi Mobilde Hafiflet */
    .service-image {
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)) !important;
        height: 100px !important; /* Küçük ekranlarda taşmayı önler */
    }

    /* 4. Başlık Altındaki Turuncu Çizgi */
    .section-title::after {
        width: 50px !important;
        height: 3px !important;
        margin-top: 10px !important;
    }

    /* 5. Mobilde Tıklama Hissini Artır (Active State) */
    .service-box:active {
        transform: scale(0.95) !important; /* Parmanla basıldığında hafifçe içe çöker */
        background: #f8faff !important;
    }
}