/* ===== PROJECT DETAIL PAGE STYLES ===== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Project Details Section */
.project-details-section {
    padding: 40px 0;
    background: var(--white);
}

.project-title-section {
    text-align: center;
    margin-bottom: 40px;
}

.project-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

/* Project Info Grid */
.project-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

/* Project Description Section */
.project-description-section {
    padding: 40px 0;
    background: var(--light-gray);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 30px 0;
    text-align: center;
}

.project-description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Media Gallery Section */
.media-gallery-section {
    padding: 60px 0;
    background: var(--white);
}

.media-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.media-carousel {
    display: flex;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.media-item {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.media-image,
.media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-zoom-btn,
.video-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-zoom-btn:hover,
.video-play-btn:hover {
    background: #1e293b;
    color: white;
    transform: scale(1.1);
}

/* Navigation Controls */
.media-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.media-nav-btn:hover {
    background: #1e293b;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.media-prev {
    right: 20px;
}

.media-next {
    left: 20px;
}

/* Media Indicators */
.media-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #1e293b;
    transform: scale(1.2);
}

/* Back to Projects Section */
.back-to-projects-section {
    padding: 40px 0;
    background: var(--light-gray);
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #0d2a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 61, 111, 0.3);
}

/* Media Modal */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.media-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #1e293b;
    font-size: 18px;
    cursor: pointer;
    z-index: 1002;
}

.modal-media img,
.modal-media video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .project-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-main-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .project-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .project-details-section {
        padding: 60px 0;
    }
    
    .project-description-section {
        padding: 60px 0;
    }
    
    .media-gallery-section {
        padding: 80px 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .project-main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-description-text {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .media-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .media-prev {
        right: 10px;
    }
    
    .media-next {
        left: 10px;
    }
    
    .modal-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Touch Support */
@media (hover: none) {
    .media-overlay {
        opacity: 1;
    }
    
    .media-nav-btn:hover {
        background: rgba(255, 255, 255, 0.9);
        color: #1e293b;
        transform: translateY(-50%);
    }
}