/* Our Work Page Styles */

/* Page Title Section */
.page-title-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 0; /* Remove bottom margin to allow gallery to be flush */
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #001a4d;
}

/* Animation for title */
.animate-zoom-in {
    animation: zoomIn 0.5s ease-in-out;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Masonry Gallery */
.our-work-gallery {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #ffffff;
}

.masonry-gallery {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    column-count: 4;
    column-gap: 20px;
    background-color: #ffffff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    transition: all 0.4s ease;
    break-inside: avoid;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: all 0.4s ease;
    display: block;
    border-radius: 8px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1);
    border-radius: 7px;
}

.gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Estilos modernos para la galería */
.masonry-gallery {
    margin-bottom: 0;
    min-height: 200px;
}

/* Asegurar altura uniforme al final */
.our-work-gallery {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    border-bottom: none;
}


/* Social Media Section */
.social-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    margin-top: 0;
}

.social-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-primary, #002674);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #001a4d;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* Animation for social section */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Final Section Styling */
.gallery-end-section {
    width: 100%;
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

.gallery-end-section h3 {
    font-size: 28px;
    color: #001a4d;
    margin-bottom: 25px;
    font-weight: 600;
}

.gallery-end-cta {
    display: inline-block;
    padding: 15px 35px;
    background-color: #001a4d;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-end-cta:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Asegurar que las imágenes tengan un tamaño uniforme */
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .masonry-gallery {
        column-count: 3;
        column-gap: 15px;
        padding: 15px;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 1200px) {
    .masonry-gallery {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
        column-gap: 15px;
        padding: 15px;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .masonry-gallery {
        column-count: 2;
        column-gap: 10px;
        padding: 10px;
    }
    
    .gallery-item {
        margin-bottom: 10px;
        border-radius: 6px;
    }
    
    .gallery-item-inner {
        border-radius: 6px;
    }
    
    .gallery-item img {
        border-radius: 5px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-title-section {
        padding: 40px 0;
    }
    
    .masonry-gallery {
        column-count: 2;
        padding: 10px;
        column-gap: 10px;
    }
    
    .gallery-item {
        margin-bottom: 10px;
    }
}
