/* Gallery Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --text-color: #444;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset for gallery pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    line-height: 1.3;
    color: var(--dark-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
}

.logo {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover:after {
    width: 100%;
}

/* Gallery Header */
.gallery-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0 5%;
    margin-top: 60px;
}

.gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.gallery-header-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
}

.gallery-header-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.gallery-header-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Gallery Grid */
.gallery-section {
    padding: 80px 5%;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-color);
    font-size: 18px;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 16px;
    transition: var(--transition);
}

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

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);  
}

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

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

.overlay h3 {
    color: white;
    margin-bottom: 10px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 5%;
}

.back-btn i {
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 5%;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 992px) {
    .gallery-header-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 5%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .gallery-filter {
        flex-wrap: wrap;
    }
    
    .gallery-header-content h1 {
        font-size: 28px;
    }
    
    .gallery-header {
        height: 40vh;
    }
}