.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex-grow: 1;
}

/* Header and Navbar */
.site-header {
    height: var(--header-height);
    padding: 0 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #eaeaea;


    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    max-height: 40px;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.nav-logo img:hover {
    transform: scale(1.2);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

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

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

/* --- Hamburger Menu & Mobile Navigation --- */
.hamburger-menu {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
}

.hamburger-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    transition: all 0.3s ease-in-out;
}

/* --- Responsive Styles for Mobile Nav --- */
@media (max-width: 540px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--neutral-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: block;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        z-index: 10002;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger-line {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-dark);
        transition: all 0.3s ease-in-out;
    }

    .hamburger-line:nth-child(1) { top: 10px; }
    .hamburger-line:nth-child(2) { top: 18px; }
    .hamburger-line:nth-child(3) { top: 26px; }

    .hamburger-menu.is-active .hamburger-line:nth-child(1) {
        top: 18px;
        transform: translateX(-50%) rotate(45deg);
    }
    .hamburger-menu.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active .hamburger-line:nth-child(3) {
        top: 18px;
        transform: translateX(-50%) rotate(-45deg);
    }
    body.no-scroll {
        overflow: hidden;
    }
}

/* Footer */
.site-footer {
    padding-top: 3rem;
    background-color: var(--primary-dark);
    color: #a9b3b3;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

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

.footer-about .footer-logo {
    max-height: 150px;
    margin-bottom: 1rem;
}

.footer-links h4, .footer-social h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--neutral-bg);
    padding-left: 5px;
}

.footer-about,
.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links,
.footer-social {
    padding-left: 2.5rem;
    border-left: 1px solid var(--primary-accent);
}

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

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

.social-icons a {
    color: #a9b3b3;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--neutral-bg);
    transform: scale(1.1);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #4a5e5e;
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro-photo {
        max-width: 250px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .footer-logo {
        margin: 0 auto 1rem;
    }

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

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }

    .footer-links,
    .footer-social {
        padding-left: 0;
        border-left: none;
        padding-top: 2rem;
        margin-top: 2rem;
        border-top: 1px solid var(--primary-accent);
    }
}

