/* ==========================================================================
   YEUM ATELIER RESIDENTIAL SUBPAGE STYLES
   High-End Architectural & Interior Design Aesthetics
   ========================================================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #121316;
}
::-webkit-scrollbar-thumb {
    background: #2a2d35;
    border-radius: 4px;
    border: 2px solid #121316;
}
::-webkit-scrollbar-thumb:hover {
    background: #c5a880;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #c5a880;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

body:hover .custom-cursor,
body:hover .custom-cursor-follower {
    opacity: 1;
}

/* Header & Nav Link Underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c5a880;
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Project Card Effects */
.project-card {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(197, 168, 128, 0.08);
}

/* List View Styling */
.projects-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.projects-list-view .project-card {
    flex-direction: row !important;
    max-height: 220px;
}

.projects-list-view .project-card .relative.aspect-\[4\/3\] {
    width: 320px !important;
    min-width: 320px !important;
    aspect-ratio: auto !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .projects-list-view .project-card {
        flex-direction: column !important;
        max-height: none;
    }
    .projects-list-view .project-card .relative.aspect-\[4\/3\] {
        width: 100% !important;
        min-width: 100% !important;
        aspect-ratio: 4/3 !important;
    }
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Open Animations */
#project-modal.active {
    opacity: 1;
}

#project-modal.active .modal-content {
    transform: scale(1);
}
