/* Common styles shared across all pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    background-color: rgb(250, 250, 249);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 50;
    background: linear-gradient(to bottom, rgb(0, 0, 0), rgba(24, 24, 24, 0.9), transparent);
}

.nav-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.nav-content {
    display: flex;
    flex-direction: column;
    height: 10rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.logo-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.875rem;
    font-weight: bold;
}

.mobile-menu-button {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.desktop-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -5.5rem;
    margin-left: 30rem;
}

.menu-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.menu-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.menu-link:hover {
    color: rgb(214, 211, 209);
    background-color: rgba(68, 64, 60, 0.3);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 6rem;
    left: 0;
    right: 0;
    background-color: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.5rem;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu:not(.hidden) {
    display: block;
}

.mobile-menu .menu-link {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-prev:hover,
.modal-next:hover {
    color: rgb(214, 211, 209);
}

.modal-close {
    top: 1rem;
    right: 1rem;
}

.modal-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.modal-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Footer */
footer {
    background-color: rgb(0, 0, 0);
    color: white;
    position: relative;
    z-index: 20;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgb(214, 211, 209);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section i {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgb(87, 83, 78);
    text-align: center;
    padding: 1rem;
    color: rgb(214, 211, 209);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 6rem;
    }

    .logo-link {
        margin: 0;
    }

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

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .modal-prev,
    .modal-next {
        padding: 0.5rem;
    }

    .modal-prev {
        left: 0;
    }

    .modal-next {
        right: 0;
    }
}