.architect-zone-container {
    padding: 40px 0;
}

.color-section {
    margin-bottom: 50px;
}

.color-section h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.color-swatch {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f0f0f0;
}

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

.color-swatch:hover img {
    transform: scale(1.1);
}

.color-swatch .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 8px 5px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-swatch:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox styles (similar to gallery) */
.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.lightbox-content {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2em;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .color-swatch:hover .overlay {
        /* Disable hover effect on touch devices */
        opacity: 0;
        transform: translateY(100%);
    }
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 80px;
    right: 8vw;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.9);
} 