/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

.card, .rounded-3 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: .5rem; /* Slightly more rounded corners */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    border-bottom: none;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 2px;
}

.skill-badge {
    background-color: #e9ecef;
    color: #212529;
    padding: 0.5em 0.9em;
    border-radius: 5px;
    font-weight: 600;
}

/* Icon alignment fix */
.section-title svg.bi {
    margin-bottom: .25rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem; /* Space for the timeline line */
    border-left: 2px solid #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -2.6rem; /* Position it on the timeline line */
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d6efd; /* Primary color dot */
    border: 2px solid #f8f9fa;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Ana sayfa card text shadow for readability */
.text-shadow-1 { 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
}

/* Blog Index Card Text Style Fix */
.blog-index .card .card-text {
    font-size: 1rem; /* Enforce standard paragraph size */
    color: #212529 !important; /* Enforce dark color */
}

/* Homepage 'Recent Posts' Card Improvements */
.card-cover {
    position: relative; /* Needed for the pseudo-element overlay */
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Add a gradient overlay for text readability */
.card-cover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: .5rem; /* Match the card's border-radius */
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0) 60%);
    z-index: 1;
}

/* Ensure content is on top of the overlay */
.card-cover .d-flex {
    position: relative;
    z-index: 2;
}

/* Hover effect */
.card-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}