/* Tamamlanan Projelerimiz - Modern Madencilik Web Sitesi */
.project-grid-section {
    padding: 90px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    
}

.project-grid-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 1;
}

.project-grid-section .container {
    position: relative;
    z-index: 2;
}

.project-grid-section .section-head {
    margin-bottom: 50px;
}

.project-grid-section .section-head .title {
    color: #2e3c54;
    font-size: 36px;
    font-weight: 700;
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.project-grid-section .section-head .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, #2e3c54, #e6772e);
    display: block;
}

/* Optional subtitle */
.project-grid-section .section-head p {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

/* Equal height adjustments */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-col {
    display: flex;
    margin-bottom: 30px;
}

.equal-height-col > div {
    width: 100%;
}

/* Project Box Styles */
.project-box {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid #2e3c54;
    position: relative;
}

.project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.project-year {
    background: linear-gradient(135deg, #2e3c54, #364a67);
    color: #fff;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    position: relative;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Special style for ongoing projects */
.project-box .project-year:contains("Devam Ediyor") {
    background: linear-gradient(135deg, #e6772e, #f39c63);
}

.project-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.project-title {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
}

/* Corner accent */
.project-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent #e6772e transparent transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-box:hover::after {
    opacity: 1;
    border-width: 0 40px 40px 0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.project-grid-section .wow {
    animation-name: fadeInUp;
    animation-fill-mode: both;
}

/* Project counter */
.project-content::before {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(46, 60, 84, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(46, 60, 84, 0.3);
    transition: all 0.3s ease;
}

.project-box:hover .project-content::before {
    background: rgba(230, 119, 46, 0.1);
    color: rgba(230, 119, 46, 0.5);
}

/* Special style for first project box */
.equal-height-row .equal-height-col:first-child .project-box {
    border-top: 4px solid #e6772e;
}



.equal-height-row .equal-height-col:first-child .project-box::after {
    border-color: transparent #2e3c54 transparent transparent;
}

/* Responsive Adjustments */
@media only screen and (max-width: 1200px) {
    .project-grid-section .section-head .title {
        font-size: 32px;
    }
    
    .project-title {
        font-size: 15px;
    }
}

@media only screen and (max-width: 991px) {
    .project-grid-section {
        padding: 70px 0;
    }
    
    .project-grid-section .section-head .title {
        font-size: 28px;
    }
    
    .project-title {
        font-size: 15px;
    }
    
    .project-description {
        font-size: 13px;
    }
}

@media only screen and (max-width: 767px) {
    .project-grid-section {
        padding: 60px 0;
    }

    .project-grid-section .section-head .title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .project-year {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .project-content {
        padding: 20px 15px;
    }
}

@media only screen and (max-width: 575px) {
    .project-grid-section .section-head .title {
        font-size: 24px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 14px;
    }
    
    .project-box::after {
        border-width: 0 25px 25px 0;
    }
    
    .project-box:hover::after {
        border-width: 0 30px 30px 0;
    }
}