:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --accent-hover: #c0392b;
    --text-color: #333;
    --text-light: #ecf0f1;
    --bg-light: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
    --container-width: 1200px;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 70px;
    margin-right: 1rem;
}

/* Gallery Specific Styles */
.gallery-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://via.placeholder.com/1920x600');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    margin-bottom: 2rem;
}

.gallery-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Gallery Filter */
.gallery-filter {
    padding: 1rem 0 2rem;
    background-color: var(--bg-light);
}

.gallery-filter .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    padding: 0 0.5rem;
    border: 1px solid #ddd;
}

.search-box input {
    border: none;
    padding: 0.5rem 1rem;
    outline: none;
    width: 200px;
}

.search-box button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

.search-box button:hover {
    color: var(--secondary-color);
}

/* Gallery Grid */
.gallery-grid {
    padding: 3rem 0;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: white;
    transition: transform 0.3s;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.overlay-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.view-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: var(--accent-hover);
}

.gallery-info {
    padding: 1rem;
}

.gallery-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.gallery-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
}

.modal-image-container {
    position: relative;
    height: 60vh;
    background-color: black;
}

#modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.modal-info {
    padding: 1.5rem;
    background-color: white;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-info #modal-date {
    color: #777;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Active nav link */
nav ul li a.active {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-filter .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .search-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .search-box input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-image-container {
        height: 50vh;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        padding: 4rem 1rem;
    }
    
    .gallery-hero h1 {
        font-size: 1.8rem;
    }
    
    .gallery-items {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-image-container {
        height: 40vh;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

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

.gallery-item {
    animation: fadeIn 0.5s ease forwards;
}

.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.3s; }
.gallery-item:nth-child(5) { animation-delay: 0.4s; }
.gallery-item:nth-child(6) { animation-delay: 0.5s; }
.gallery-item:nth-child(7) { animation-delay: 0.6s; }
.gallery-item:nth-child(8) { animation-delay: 0.7s; }

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p i {
    margin-right: 10px;
    color: #3498db;
}

.footer-section address {
    font-style: normal;
  }
  
  .footer-section address a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
  }

  .footer-section address a:hover {
    color: var(--secondary-color);
  }

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #34495e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: #3498db;
    transform: translateY(-5px);
}

.copyright {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    width: 100%;
    color: #bdc3c7;
}
