/* Genel Sayfa Ayarları ve Google Fonts importu */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Ana Bölüm Kapsayıcısı */
.energy-section {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif !important;
}

/* Başlıklar */
.energy-section .sub-heading {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif !important;
}

.energy-section .main-heading {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 1.2;
    color: #212529;
    font-family: 'Poppins', sans-serif !important;
}

/* Kartları İçeren Grid Yapısı */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Kartların Temel Stili */
.card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Animasyon için başlangıç durumu */
    opacity: 0;
    transform: translateY(30px);
    
    /* Arka plan ayarları */
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: block;
}

/* Link stillerini sıfırla */
a.card {
    text-decoration: none;
    color: white;
}

a.card:hover,
a.card:focus,
a.card:active,
a.card:visited {
    text-decoration: none;
    color: white;
}

/* Kartların animasyonla görünür olma durumu */
.card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Kart Arka Plan Overlay */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: transform 0.3s ease;
    z-index: 1;
}

.card:hover::before {
    transform: scale(1.1);
}

/* Kart İçeriği (Yazılar ve İkon) */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.icon-container svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke: white;
}

.icon-container img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: 'Poppins', sans-serif !important;
    color: white;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif !important;
}

/* Mobil ve Tablet için Responsive Tasarım */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .energy-section .main-heading {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .energy-section .main-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .energy-section {
        padding: 20px 10px;
    }
}
