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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Layout - Full Page Image with Overlays */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Logo Overlay - Top Left */
.logo-overlay {
    position: fixed;
    z-index: 10;
    transition: all 0.05s linear;
}

.logo-overlay img {
    display: block;
    width: auto;
    height: auto;
    transition: max-width 0.05s linear;
}

/* Navigation Overlay - Right Side */
.nav-overlay {
    position: fixed;
    z-index: 10;
    transition: all 0.05s linear;
    --hover-glow-color: 70, 130, 180; /* RGB values for crimson red */
}

.nav-overlay nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.nav-overlay nav a {
    display: block;
    transition: filter 0.3s ease;
}

.nav-overlay nav a:hover {
    filter: drop-shadow(0 0 8px rgba(var(--hover-glow-color), 0.8))
            drop-shadow(0 0 12px rgba(var(--hover-glow-color), 0.6));
}

.nav-overlay nav a img {
    display: block;
    width: auto;
    transition: height 0.05s linear;
}

.nav-overlay nav a.text-link {
    text-decoration: none;
    color: #6b7c7e;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: right;
}

.nav-overlay nav a.text-link:hover,
.nav-overlay nav a.text-link.active {
    color: #4a5c5e;
}

/* Horizontal Lines at Top and Bottom of Image */
.top-line,
.bottom-line {
    position: fixed;
    height: 2px;
    background-color: rgba(107, 124, 126, 0.5);
    z-index: 5;
    transition: all 0.05s linear;
}

/* Footer Overlay - Bottom Right */
.footer-overlay {
    position: fixed;
    z-index: 10;
    transition: all 0.05s linear;
}

.footer-overlay img {
    display: block;
    height: auto;
    width: auto;
    max-width: 200px;
    transition: max-width 0.05s linear;
}

/* Standard Page Layout (non-hero pages) */
.page-body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.page-header {
    position: relative;
    padding: 30px 60px 5px;
}

.page-logo {
    max-width: 280px;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

.page-header-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: rgba(107, 124, 126, 0.5);
}

.page-nav {
    position: absolute;
    right: 60px;
    top: 100%;
    padding-top: 78px;
}

.page-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.page-nav a {
    display: block;
    transition: filter 0.3s ease;
}

.page-nav a:hover {
    filter: drop-shadow(0 0 8px rgba(70, 130, 180, 0.8))
            drop-shadow(0 0 12px rgba(70, 130, 180, 0.6));
}

.page-nav a img {
    height: 16px;
    width: auto;
    display: block;
}

.page-content {
    flex: 1;
    padding: 30px 60px 80px 145px;
}

.page-content h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    margin-left: 0;
    color: #333;
    letter-spacing: -0.5px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    margin-left: 0;
    max-width: 600px;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-right: 300px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* Gallery item clickable */
.gallery-item {
    cursor: pointer;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: rgba(70, 130, 180, 1);
}

.lightbox-fullscreen {
    position: absolute;
    top: 30px;
    right: 100px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-fullscreen:hover {
    color: rgba(70, 130, 180, 1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    line-height: 1;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: rgba(70, 130, 180, 1);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-content {
        padding: 30px 40px 80px 60px;
    }

    .lightbox-content {
        padding: 40px 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-fullscreen {
        top: 20px;
        right: 70px;
        font-size: 26px;
    }
}

.page-footer {
    position: relative;
    padding: 10px 60px 40px;
}

.page-footer-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background-color: rgba(107, 124, 126, 0.5);
}

.page-footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin-left: auto;
}

/* About Page Styles */
.about-content {
    max-width: 900px;
    padding-right: 250px;
}

.about-text {
    line-height: 1.8;
    max-width: 100%;
}

.about-text p {
    margin-bottom: 1.5em;
    margin-left: 2em;
    color: #333;
    font-size: 16px;
}

.about-text h2 {
    margin-top: 2em;
    margin-bottom: 0.4em;
    color: #333;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.about-text h2 + p {
    margin-top: 0.3em;
}

.about-text p:first-child {
    font-size: 18px;
    color: #555;
}

/* Contact Page Styles */
.contact-content {
    max-width: 900px;
    padding-right: 200px;
}

.contact-text {
    line-height: 1.8;
    max-width: 100%;
}

.contact-text p {
    margin-bottom: 1.5em;
    margin-left: 2em;
    color: #333;
    font-size: 16px;
}

.contact-text h2 {
    margin-top: 2em;
    margin-bottom: 0.4em;
    color: #333;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-text h2 + p {
    margin-top: 0.3em;
}

.contact-text p:first-child {
    font-size: 18px;
    color: #555;
}

.contact-info {
    margin-left: 2em;
    margin-top: 1em;
    margin-bottom: 1.5em;
}

.contact-info p {
    margin-left: 0;
    margin-bottom: 0.5em;
}

.contact-info a {
    color: rgba(70, 130, 180, 1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: rgba(70, 130, 180, 0.7);
    text-decoration: underline;
}

/* Home Page Styles */
.home-content {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 40px 40px 0px;
}

.home-hero-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        flex-direction: column;
        gap: 30px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .logo-section h1 {
        font-size: 20px;
    }

    footer {
        text-align: center;
    }

    /* Page header adjustments for mobile */
    .page-header {
        padding: 20px 20px 15px;
        margin-bottom: 0;
    }

    .page-logo {
        max-width: 180px;
    }

    .page-nav {
        position: static;
        right: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .page-nav ul {
        align-items: center;
        gap: 12px;
    }

    .page-nav a img {
        height: 12px;
    }

    /* Page content adjustments for mobile */
    .page-content {
        padding: 20px 20px 60px;
        margin-top: 0;
    }

    .about-content,
    .contact-content {
        padding-right: 20px;
    }

    .about-text p {
        font-size: 15px;
        margin-left: 1em;
    }

    .about-text h2 {
        font-size: 20px;
    }

    .contact-text p {
        font-size: 15px;
        margin-left: 1em;
    }

    .contact-text h2 {
        font-size: 20px;
    }

    .contact-info {
        margin-left: 1em;
    }

    .home-content {
        padding: 20px;
    }

    .home-hero-image {
        max-height: 60vh;
    }

    .page-footer {
        padding: 10px 20px 30px;
    }

    .page-footer-logo {
        max-width: 150px;
    }

    /* Gallery adjustments for mobile */
    .gallery {
        padding-right: 20px;
    }
}

/* Extra small screens (smartphones in portrait) */
@media (max-width: 480px) {
    .page-header {
        padding: 15px 15px 12px;
    }

    .page-logo {
        max-width: 140px;
    }

    .page-nav {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .page-nav ul {
        gap: 10px;
    }

    .page-nav a img {
        height: 10px;
    }

    .page-content {
        padding: 15px 15px 50px;
    }

    .about-content,
    .contact-content {
        padding-right: 15px;
    }

    .about-text p,
    .contact-text p {
        font-size: 14px;
        margin-left: 0.5em;
    }

    .about-text h2,
    .contact-text h2 {
        font-size: 18px;
    }

    .contact-info {
        margin-left: 0.5em;
    }

    .gallery {
        padding-right: 15px;
    }
}
