/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/gallery-hero.jpg') center/cover no-repeat;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Filter Buttons */
.gallery-controls {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #d2d2d7;
    background: transparent;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f5f5f7;
}

.filter-btn.active {
    background-color: #000;
    color: white;
    border-color: #000;
}

/* Gallery Grid */
.gallery-grid {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item {
    display: block;
    width: 100%;
    height: 100%;
}

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

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.item-overlay p {
    font-size: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
    opacity: 0.9;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover .item-overlay h3,
.gallery-item:hover .item-overlay p {
    transform: translateY(0);
}

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

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 2rem 0 4rem;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #000;
    color: white;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: #f5f5f7;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.client-logo {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.testimonial-card blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-card cite {
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background-color: #000;
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-btn {
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background-color: #fff;
    color: #000;
}

.cta-btn.primary:hover {
    background-color: #f5f5f7;
}

.cta-btn.secondary {
    border: 1px solid #fff;
    color: #fff;
}

.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 60% 40%;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #666;
}

.modal-meta {
    font-size: 0.875rem;
    color: #888;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-image {
        height: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}