/* --- PROJECT MODAL --- */
.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.project-modal-content {
    background-color: #fff;
    max-width: 1000px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    color: #333;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.project-modal-close:hover {
    background: var(--primary-gold);
    color: #fff;
    transform: rotate(90deg);
}

.project-modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 850px) {
    .project-modal-body {
        grid-template-columns: 1fr;
    }
}

.project-modal-img-wrapper {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

@media (max-width: 850px) {
    .project-modal-img-wrapper {
        min-height: 300px;
    }
}

.project-modal-carousel {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    min-height: 500px;
}

@media (max-width: 850px) {
    .project-modal-carousel {
        min-height: 300px;
    }
}

.project-modal-carousel .carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.project-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 5;
    transition: all 0.2s;
}

.project-carousel-btn:hover {
    background: var(--primary-gold);
    color: #fff;
}

.project-carousel-prev { left: 15px; }
.project-carousel-next { right: 15px; }

.project-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.project-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.project-carousel-dots .dot.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

.project-modal-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: 80vh;
    overflow-y: auto;
}

.project-modal-info h2 {
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin: 0;
    font-weight: 800;
}

.project-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 15px;
}

.project-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-detail-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    width: 25px;
}

.project-detail-content {
    display: flex;
    flex-direction: column;
}

.project-detail-item label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-detail-item span {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.project-modal-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}