/* Project Detail Page Styles */

/* Match website background color */
body {
    background: #FFFDF5;
}

/* Make navbar transparent like home page */
.header.header-black {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: none;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-black .logo img {
    opacity: 1;
}

.header-black .nav-link {
    color: #1a1a1a !important;
    background: rgba(0, 0, 0, 0.05);
}

.header-black .nav-link:hover {
    background: rgba(0, 0, 0, 0.1);
}

.header-black .cta-button {
    color: #1a1a1a !important;
    background: rgba(0, 0, 0, 0.08);
}

.header-black .cta-button:hover {
    background: rgba(0, 0, 0, 0.12);
}

.header-black .language-switcher {
    color: #1a1a1a !important;
    background: rgba(0, 0, 0, 0.08);
}

.header-black .language-switcher:hover {
    background: rgba(0, 0, 0, 0.12);
}

.header-black .mobile-menu-toggle {
    color: #1a1a1a !important;
}

/* Hero Section - Modern Design */
.project-detail-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFFDF5;
    padding-top: 120px;
    padding-bottom: 80px;
}

.project-detail-hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1400px;
    height: 75%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.project-detail-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1400px;
    height: 75%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    z-index: 2;
}

.project-detail-hero-content {
    width: 100%;
    color: #fff;
}

.project-detail-category {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.project-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Back Button - Positioned below navbar */
.back-button {
    position: fixed;
    top: 140px;
    left: 2rem;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: #fff;
    transform: translateX(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.12);
}

.back-button i {
    font-size: 1rem;
}

/* Description Section */
.project-description-section {
    padding: 8rem 3rem;
    background: #FFFDF5;
}

.project-description-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.project-description-text {
    font-size: 1.35rem;
    line-height: 2;
    color: #2c2c2c;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    text-align: center;
}

/* Gallery Section */
.project-gallery-section {
    padding: 5rem 3rem 8rem;
    background: #FFFDF5;
}

.project-gallery-container {
    max-width: 1800px;
    margin: 0 auto;
}

.project-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 5rem;
    color: #1a1a1a;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.project-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.project-gallery-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-gallery-item:hover .project-gallery-image {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Related Projects Section */
.related-projects-section {
    padding: 6rem 3rem 8rem;
    background: #FFFDF5;
}

.related-projects-container {
    max-width: 1600px;
    margin: 0 auto;
}

.related-projects-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    color: #1a1a1a;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.related-project-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
    display: block;
}

.related-project-card:hover {
    transform: translateY(-12px);
}

.related-project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.related-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-project-card:hover .related-project-image {
    transform: scale(1.08);
}

.related-project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0.5rem 0;
    color: #1a1a1a;
}

.related-project-category {
    font-size: 0.875rem;
    color: #666;
    text-transform: capitalize;
    letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .project-detail-hero {
        height: 70vh;
        min-height: 500px;
        padding-top: 60px;
    }

    .project-detail-hero-overlay {
        padding: 3rem 1.5rem;
    }

    .project-detail-title {
        font-size: 2.5rem;
    }

    .back-button {
        position: fixed;
        top: 70px;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        z-index: 999;
    }

    .project-description-section {
        padding: 4rem 1.5rem;
    }

    .project-description-container {
        padding: 2rem 1.5rem;
    }

    .project-description-text {
        font-size: 1.1rem;
        text-align: left;
        line-height: 1.8;
    }

    .project-gallery-section {
        padding: 3rem 1rem 5rem;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .related-projects-section {
        padding: 4rem 1.5rem;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .project-gallery-grid {
        gap: 2rem;
    }
}