/* 
   TRUE MEDIA Website - Visual Gallery Layout
   Enhanced CSS for image-focused design
*/

/* Hero Section with Image Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--accent-color);
    z-index: 2;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
}

/* Studio Showcase Grid */
.studio-showcase {
    padding: 80px 0;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.studio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 300px;
}

.studio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.studio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.studio-item:hover img {
    transform: scale(1.05);
}

.studio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--accent-color);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.studio-item:hover .studio-info {
    transform: translateY(-10px);
}

.studio-info h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.studio-info p {
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Studio Filter Navigation */
.studio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

/* Visual Feature Blocks */
.feature-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-block {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.feature-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--accent-color);
}

.feature-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Testimonial Section with Background Images */
.testimonials {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/studio/main-studio/StudioMainFromDoor1.JPG') no-repeat center center/cover;
    color: var(--accent-color);
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    padding: 0 20px;
}

.testimonial-content {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid var(--accent-color);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: var(--accent-color);
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-prev, .lightbox-next {
    font-size: 40px;
    color: var(--accent-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }
    
    .studio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .feature-blocks {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .studio-item {
        height: 250px;
    }
    
    .feature-block {
        height: 300px;
    }
}
