:root {
    --primary-color: #ffffff;
    --secondary-color: #333333;
    --text-color: #4a4a4a;
    --background-color: #f5f5f5;
    --accent-color: #e0e0e0;
    --light-accent: #666666;
    --dark-accent: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px; /* Height of fixed header */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

main {
    width: 100%;
    position: relative;
    overflow: hidden;
}

section {
    margin-top: 2rem;
    width: 100%;
}

.hero {
    margin-top: -80px; /* Compensate for header padding */
}

/* Header Styles */
.top-bar {
    background-color: var(--dark-accent);
    padding: 0.5rem 2rem;
    color: var(--light-accent);
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links a {
    color: var(--light-accent);
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

header {
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 2rem;
    position: relative;
}

.logo {
    grid-column: 1;
    text-align: left;
    padding: 0.5rem 0 0.5rem 0;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo h1 {
    line-height: 1;
    margin-bottom: 0.2rem;
}

.logo .subtitle {
    margin-left: 0.15rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .logo {
        margin-left: 1rem;
    }
    
    .logo .subtitle {
        margin-left: 0.1rem;
        font-size: 0.8rem;
    }
}

.nav-links {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    padding-right: 2rem;
    margin-right: 0;
    position: absolute;
    right: 0;
}

@media (max-width: 768px) {
    .nav-links {
        position: static;
        padding-right: 0;
        margin-right: 0;
        justify-content: center;
        width: 100%;
    }
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: none;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    nav {
        grid-template-columns: 1fr auto;
        padding: 0.5rem 1rem;
        gap: 1rem;
    }
    
    .logo {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 44px;
        padding: 0.25rem 0 0.25rem 0;
        margin-left: 1.5rem;
        gap: 0.15rem;
    }

    .menu-toggle {
        padding-right: 2rem;
        position: absolute;
        right: 0;
    }

    header {
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        grid-column: 2;
    }
    
    .nav-links {
        grid-column: 1 / -1;
    }

    @media (max-width: 768px) {
        .logo h1 {
            font-size: 1.4rem;
            margin-bottom: 2px;
        }

        .logo .subtitle {
            font-size: 0.75rem;
        }

        .menu-toggle {
            margin: -0.25rem -0.5rem -0.25rem 0;
        }
    }

    /* Extra small devices */
    @media (max-width: 360px) {
        .logo h1 {
            font-size: 1.2rem;
        }

        .logo .subtitle {
            font-size: 0.7rem;
        }

        nav {
            padding: 0.5rem;
        }

        .menu-toggle {
            margin: -0.25rem -0.25rem -0.25rem 0;
        }
    }
    
    .logo h1 {
        margin: 0;
        line-height: 1.2;
    }
    
    .logo .subtitle {
        margin: 0;
        line-height: 1.2;
    }
}

.logo {
    text-align: left;
    flex: 1;
    padding-right: 1rem;
}
.logo h1 {
    font-size: 2.5rem; /* Increase the font size */
    font-weight: bold; /* Make the text bold */
    color: var(--accent-color); /* Ensure it stands out */
}
.hero-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.center-image {
    max-width: 300%;
    height: 93%;
    margin-top: 1rem;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 2;
    justify-content: flex-end;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../images/pub-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: -80px; /* Compensate for header height */
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

.contact-section,
.about-section,
.gallery-section {
    padding-top: 2rem;
    margin-top: 0;
}

.footer-content {
    padding-top: 2rem;
}

.hero-content {
    padding: 2rem;
    background-color: rgba(0,0,0,0.6);
    border: 2px solid var(--accent-color);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: 'Times New Roman', serif;
}

.hero-content p {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 70px);
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Welcome Text Section */
.welcome-text {
    padding: 4rem 2rem;
    background-color: var(--dark-accent);
    text-align: center;
}

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

.welcome-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-accent);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
    }
}

.feature-card {
    background-color: var(--primary-color);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--light-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 3rem 2rem 1rem;
    border-top: 2px solid var(--accent-color);
}

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

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section.social .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-section.social .social-icons a {
    color: var(--light-accent);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section.social .social-icons {
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero {
        height: auto;
        padding: 2rem 1rem;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Gallery Styles */
.page-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background-color: var(--dark-accent);
    margin-top: -80px;
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: var(--secondary-color);
}

.gallery-section {
    padding: 6rem 2rem 4rem;
    margin-top: -80px;
}

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

.contact-grid {
    padding-top: 6rem;
    margin-top: -80px;
}

.about-content {
    padding-top: 6rem;
    margin-top: -80px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: var(--text-color);
    font-size: 2rem;
}

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

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

/* Lightbox Customization */
.lb-data .lb-caption {
    font-family: 'Georgia', serif;
    color: var(--text-color);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-filter {
        width: 200px;
        text-align: center;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--text-color);
}

.contact-form button {
    padding: 0.8rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #a93122;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.social-icons {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    align-items: center; /* Center the icons vertically */
    gap: 1rem; /* Add space between the icons */
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-color);
        padding: 0.5rem;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        text-align: center;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-links li a {
        display: block;
        padding: 0.8rem 1rem;
    }

    header {
        position: relative;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo .subtitle {
        font-size: 0.9rem;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    text-align: left;
    flex: 1;
    padding-left: 0;
}

.logo a {
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-align: left;
    margin: 0;
    padding-left: 0.2rem;
    line-height: 1;
}

.logo .subtitle {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: left;
    margin: 0;
    padding-left: 0.4rem;
    letter-spacing: 0.02em;
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 2;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Height of fixed header */
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .subtitle {
        font-size: 0.8rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-color);
        padding: 0.5rem;
        z-index: 1001;
        border: none;
        background: none;
        outline: none;
        position: relative;
        margin-left: auto;
        width: 44px;
        height: 44px;
    }

    .menu-toggle i {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px; /* Match header height */
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        text-align: center;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links li {
        margin: 0;
        opacity: 0;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--accent-color);
        font-size: 1.1rem;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    @keyframes slideDown {
        0% {
            transform: translateY(-10px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes navItemFade {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Touch feedback */
    .nav-links li a {
        position: relative;
        overflow: hidden;
    }

    .nav-links li a:active {
        background-color: var(--accent-color);
    }

    /* Menu toggle button feedback */
    .menu-toggle:active {
        transform: scale(0.95);
    }

    /* Menu icon transition */
    .menu-toggle i {
        transition: transform 0.3s ease;
    }

    .menu-toggle[aria-expanded="true"] i {
        transform: rotate(90deg);
    }

    /* Smooth transitions */
    .nav-links li a {
        transition: background-color 0.2s ease;
    }

    /* Better touch targets */
    .nav-links li a,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

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

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

.nav-links li a.active {
    color: var(--accent-color);
}

.nav-links li a.active::after {
    width: 100%;
    background-color: var(--accent-color);
}

<script>
    const mobileMenu = document.getElementById('mobile-menu');
    const navLinks = document.querySelector('.nav-links');

    mobileMenu.addEventListener('click', () => {
        navLinks.classList.toggle('active');
    });
</script>
