/* Project Pages Shared Styles */
.project-icon-hero {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.project-icon-hero i {
    font-size: 3rem;
    color: var(--wood);
}

.project-content {
    padding: 5rem 0;
    background: var(--light-beige);
}

.content-section,
.motivation-section,
.conclusion-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px var(--shadow);
    margin-bottom: 3rem;
}

.content-section h2,
.motivation-section h2,
.conclusion-section h2 {
    font-size: 2rem;
    color: var(--brown);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--wood);
}

.content-section p,
.motivation-section p,
.conclusion-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.motivation-section {
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.05), rgba(139, 111, 71, 0.05));
    border-left: 5px solid var(--wood);
}

.stats-section {
    margin-bottom: 3rem;
}

.stats-section .section-title {
    margin-bottom: 3rem;
}

.back-link {
    text-align: center;
    margin-top: 4rem;
}

.back-link .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .content-section,
    .motivation-section,
    .conclusion-section {
        padding: 2rem;
    }

    .content-section h2,
    .motivation-section h2,
    .conclusion-section h2 {
        font-size: 1.6rem;
    }

    .content-section p,
    .motivation-section p,
    .conclusion-section p {
        font-size: 1rem;
    }

    .project-icon-hero {
        width: 80px;
        height: 80px;
    }

    .project-icon-hero i {
        font-size: 2.5rem;
    }
}

/* Media Gallery Styles */
.media-gallery {
    background: var(--light-beige);
    padding: 4rem 3rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px var(--shadow);
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 2.2rem;
    color: var(--brown);
    text-align: center;
    margin-bottom: 1rem;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-gray);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    background: var(--white);
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px var(--shadow);
}

.photo-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.photo-item:hover::after {
    opacity: 1;
}

.project-photo-img,
.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.project-photo-img.loaded,
.project-video.loaded {
    display: block;
}

.project-photo-img.loaded + .image-placeholder,
.project-video.loaded + .video-placeholder {
    display: none;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s ease;
    background: var(--white);
}

.video-item:hover {
    box-shadow: 0 15px 50px var(--shadow);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.15), rgba(139, 111, 71, 0.1));
    color: var(--wood);
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.video-title {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--brown);
    font-weight: 600;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-close:hover {
    color: var(--wood);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .media-gallery {
        padding: 2.5rem 2rem;
    }

    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }
}
