/* Added smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.07rem;
    color: #333 !important;
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #000 !important;
}

.model-viewer-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 0 !important;
}

.model-viewer {
    width: 100%;
    height: 600px;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

.gallery-section {
    background-color: #ffffff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

#modalImage {
    max-height: 70vh;
    object-fit: contain;
}

.modal-second-image {
    position: absolute;
    bottom: 20px;
    right: 20px;
    max-width: 25%;
    max-height: 25%;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Added styling for description text in lightbox */
.modal-description {
    font-size: 1rem;
    color: #555 !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    display: block !important;
    text-align: left;
    font-weight: 400;
}

@media (max-width: 768px) {
    .model-viewer {
        height: 400px;
    }

    .modal-second-image {
        max-width: 35%;
        max-height: 35%;
        bottom: 15px;
        right: 15px;
    }
}

/* Added footer styles with dark background to contrast with light header */
.footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer h5 {
    color: #adb5bd;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff;
}

.footer .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .model-viewer {
        height: 400px;
    }

    .modal-second-image {
        max-width: 35%;
        max-height: 35%;
        bottom: 15px;
        right: 15px;
    }

    .footer .list-inline-item {
        display: block;
        margin-bottom: 0.5rem;
    }
}
