/**
 * Livro - Media Components Stylesheet
 * Contains styles for media elements: slideshow, videos, images
 */

/* Lottie */
#lottie-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Video Container Styling */
.video-background {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Features Video Section */
.features-video {
    padding: 5rem 0;
    background-color: var(--livro-pearl);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 16:9 Aspect Ratio for responsive video */
.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Add a nice hover effect */
.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Image styling */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded-image {
    border-radius: 8px;
}

.circle-image {
    border-radius: 50%;
}

.shadow-image {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Image gallery styles */
.gallery-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-row img {
    width: calc(50% - 0.5rem);
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-row img:hover {
    transform: scale(1.05);
}

/* Office gallery specific styles */
.office-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Team photo styling */
.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--livro-cyan);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Client logo styling */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
}

.client-logo {
    height: 80px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.client-logo:hover {
    opacity: 1;
}

.client-logo img {
    height: 100%;
    width: auto;
}

/* Integration logos */
.integration-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.integration-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.integration-logo:hover img {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-row img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 220px;
    }
    
    .features-video {
        padding: 3rem 0;
    }
    
    .video-container {
        max-width: 100%;
    }
    
    .gallery-row img {
        height: 150px;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .client-logos {
        gap: 3rem;
    }
    
    .client-logo {
        height: 60px;
    }
    
    .integration-logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 150px;
    }
    
    .gallery-row {
        flex-direction: column;
    }
    
    .gallery-row img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .client-logo {
        height: 50px;
    }
    
    .integration-logos {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .integration-logo img {
        height: 45px;
    }
}