/* Hero Section Styling */
.hero-section {
    background-color: #000;
    background-image: url('../images/gallery-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

/* Headline and Subheadline Styling */
.headline {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.headline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.8), rgba(255,255,255,0.1));
}

.subheadline {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px 0 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Responsive Styles for Headings */
@media (max-width: 768px) {
    .headline {
        font-size: 42px;
    }
    
    .subheadline {
        font-size: 16px;
        padding: 5px 15px 15px;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 36px;
    }
    
    .subheadline {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px; /* Adjusted bottom margin for mobile */
        padding-top: 15px; /* Adjusted top padding for mobile */
    }
    
    .hero-section {
        padding: 60px 0 40px; /* Adjusted bottom padding for mobile */
    }

    .gallery-filter-section {
        padding: 30px 0; /* Adjusted padding for mobile */
    }
}

.gallery-filter-section {
    padding: 50px 0 30px;
    background-color: #f9f9f9;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-button {
    background: none;
    border: 1px solid #86868b;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.filter-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-button.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-grid {
    padding: 60px 0;
    background-color: #fff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-category {
    margin-bottom: 80px;
    position: relative;
}

.gallery-category h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.gallery-category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    grid-auto-flow: dense;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #fff;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    min-height: 280px;
    max-height: 380px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    background-color: #f5f5f5;
    transition: transform 0.6s ease;
    margin: 0 auto;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

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

.image-title {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .image-title {
    transform: translateY(0);
}

.gallery-cta {
    background-color: #000;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Ladies haircut section specific styling */
#ladieshaircuts .gallery-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Social Sharing Section */
.light-section {
    background-color: #f9f9f9;
    padding: 70px 0;
    text-align: center;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

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

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background-color: #333;
}

.social-button i {
    margin-right: 10px;
    font-size: 18px;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal-caption {
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 18px;
    max-width: 80%;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-items {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .gallery-category h2 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .headline {
        font-size: 42px;
    }
    
    .gallery-category h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .gallery-items {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .gallery-image {
        min-height: 220px;
    }
    
    .social-sharing {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 50px;
    }
    
    .headline {
        font-size: 32px;
    }
    
    .subheadline {
        font-size: 16px;
    }
    
    .gallery-filter-section {
        padding: 30px 0 20px;
    }
    
    .filter-container {
        gap: 8px;
    }
    
    .filter-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .gallery-grid {
        padding: 40px 0;
    }
    
    .gallery-category {
        margin-bottom: 50px;
    }
    
    .gallery-category h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .gallery-items {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        min-height: 200px;
    }
    
    .light-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
}
