/* Project Gallery Styles */
.projects-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #83AB46, #1B361F);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
    padding: 30px;
    background: linear-gradient(135deg, #83AB46 0%, #1B361F 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flag {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.location h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.location p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.project-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.project-gallery {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.project-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.detail-item i {
    font-size: 1.2rem;
    color: #83AB46;
    width: 20px;
    text-align: center;
}

.detail-item span {
    font-weight: 500;
    color: #2c3e50;
}

/* Country-specific gradient colors */
.project-card[data-country=\"colombia\"] .project-header {
    background: linear-gradient(135deg, #83AB46 0%, #1B361F 100%);
}

.project-card[data-country=\"newzealand\"] .project-header {
    background: linear-gradient(135deg, #83AB46 0%, #6d8f3a 100%);
}

.project-card[data-country=\"oman\"] .project-header {
    background: linear-gradient(135deg, #9bc158 0%, #1B361F 100%);
}

.project-card[data-country=\"singapore\"] .project-header {
    background: linear-gradient(135deg, #6d8f3a 0%, #1B361F 100%);
}

.project-card[data-country=\"taiwan\"] .project-header {
    background: linear-gradient(135deg, #83AB46 0%, #4a6b2e 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-card {
        margin: 0 20px;
    }
    
    .project-header {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .project-stats {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .country-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .flag {
        font-size: 2.5rem;
    }
    
    .project-gallery {
        height: 300px;
    }
    
    .gallery-nav {
        padding: 10px 20px;
        gap: 15px;
    }
    
    .nav-btn {
        font-size: 1.2rem;
        padding: 3px 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .project-details {
        padding: 20px;
        gap: 15px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .gallery-nav {
        bottom: 10px;
        padding: 8px 15px;
    }
}