/* Global Projects Section */
.global-projects {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.global-projects .section-header h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.global-projects-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.global-projects-content p {
    color: #666;
    line-height: 1.6;
    font-size: 18px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.project-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    left:0;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.project-overlay p {
    font-size: 16px;
    color: #eee;
    margin: 0;
}

.explore-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.explore-btn:hover {
    background: #c0392b;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        padding-bottom: 100%; /* Square aspect ratio on mobile */
    }
}