/* ==========================================
   PT MODERNLAND REALTY - PROJECT PAGE STYLES
   ========================================== */

/* === PROJECT CONTENT SECTION === */
.project-content {
    max-width: 1296px;
    margin: 0 auto;
    padding: 100px 2rem;
}

.project-container {
    display: grid;
    grid-template-columns: 384px 1fr;
    gap: 3rem;
    align-items: start;
}

/* === SIDEBAR NAVIGATION === */
.project-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    max-width: 384px;
}

.category-item {
    padding: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85%;
    height: 1px;
    background: #000;
}

.category-title {
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    transition: all 0.3s ease;
}

.category-item:hover .category-title {
    color: #dc2626;
}

.category-item:hover {
    padding-left: 0.5rem;
}

.category-item.category-active .category-title {
    color: #dc2626;
    font-weight: 600;
}

/* === RIGHT CONTENT - PROJECT SECTION === */
.project-main {
    width: 100%;
    padding-top: 0;
}

.project-section-header {
    margin-bottom: 3rem;
    margin-top: 0;
}

.project-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.project-section-underline {
    width: 56px;
    height: 3px;
    background: #dc2626;
}

/* === PROJECT GRID === */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* === PROJECT CARD === */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: -4px 8px 20px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.4s ease;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: -4px 8px 20px 0px rgba(0, 0, 0, 0.12);
}

.project-card.hidden {
    display: none;
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 357px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: background 0.4s ease;
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.project-card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    z-index: 10;
    transition: all 0.4s ease;
}

.project-card:hover .project-card-title {
    transform: translate(-50%, -50%) scale(1.05);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* === FADE OUT ANIMATION === */
.project-card.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .project-content {
        padding: 80px 2rem;
    }

    .project-container {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .project-content {
        padding: 60px 1rem;
    }

    .project-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-sidebar {
        position: static;
        top: auto;
        order: 1;
        margin-top: 0;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .project-main {
        order: 2;
    }

    .category-item {
        padding: 0.875rem 1rem;
        border-radius: 6px;
    }

    .category-item::after {
        display: none;
    }

    .category-divider {
        display: none;
    }

    .category-item.category-active {
        background: rgba(220, 38, 38, 0.1);
    }

    .category-item:hover {
        padding-left: 1rem;
        background: rgba(220, 38, 38, 0.05);
    }

    .category-title {
        font-size: 0.9375rem;
    }

    .project-section-title {
        font-size: 1.125rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card-image {
        height: 280px;
    }

    .project-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .project-content {
        padding: 40px 1rem;
    }

    .category-item {
        padding: 0.875rem 1rem;
    }

    .category-title {
        font-size: 0.875rem;
    }

    .project-card-image {
        height: 240px;
    }

    .project-card-title {
        font-size: 1.125rem;
    }
}
