/* ==========================================
   PROJECT DETAIL PAGE STYLES
   ========================================== */

/* Reset */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* === IMAGE CAROUSEL SECTION === */
.project-carousel-section {
    width: 100%;
    height: 430px;
    margin-top: 100px;
    position: relative;
    background: #000;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav-btn svg {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-nav-btn:hover svg {
    color: #dc2626;
    transform: scale(1.1);
}

.carousel-prev {
    left: 56px;
}

.carousel-next {
    right: 56px;
}

/* === PROJECT INFORMATION SECTION === */
.project-info-section {
    width: 100%;
    padding: 50px 0;
    background: white;
}

.project-info-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 3rem;
    align-items: start;
}

/* Left Content */
.project-info-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.project-logo {
    flex-shrink: 0;
    width: 122px;
    height: 122px;
}

.project-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.project-title-wrapper {
    flex: 1;
    padding-top: 23px;
}

.project-name {
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #71717a;
    margin: 0 0 4px 0;
    line-height: 44px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.location-icon {
    width: 20px;
    height: 20px;
    color: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.project-location span {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
}

.project-description {
    margin-top: 10px;
}

.project-description p {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #000;
    text-align: justify;
    margin: 0;
}

/* Social Share Icons */
.project-social {
    display: flex;
    gap: 18px;
    align-items: center;
}

.project-social-icon {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.project-social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.project-social-icon:hover img {
    transform: scale(1.15);
    filter: brightness(0.8);
}

/* Right Content - Project Map & Image */
.project-info-map {
    width: 100%;
    aspect-ratio: 1 / 1; /* Make it square */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-info-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.project-info-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Make it square */
    border-radius: 20px;
    overflow: hidden;
}

.project-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .project-carousel-section {
        height: 400px;
    }

    .carousel-prev {
        left: 24px;
    }

    .carousel-next {
        right: 24px;
    }

    .project-info-container {
        padding: 0 40px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-info-map,
    .project-info-image {
        aspect-ratio: 1 / 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .project-name {
        font-size: 32px;
        line-height: 38px;
    }

    .project-location span {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .project-carousel-section {
        height: 350px;
        margin-top: 80px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-btn svg {
        width: 32px;
        height: 32px;
    }

    .carousel-prev {
        left: 16px;
    }

    .carousel-next {
        right: 16px;
    }

    .project-info-section {
        padding: 40px 0;
    }

    .project-info-container {
        padding: 0 24px;
        gap: 30px;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-logo {
        width: 100px;
        height: 100px;
    }

    .project-title-wrapper {
        padding-top: 0;
    }

    .project-name {
        font-size: 28px;
        line-height: 34px;
    }

    .project-location {
        justify-content: center;
    }

    .project-location span {
        font-size: 16px;
    }

    .project-description p {
        font-size: 15px;
        text-align: left;
    }

    .project-social {
        justify-content: center;
    }

    .project-info-map,
    .project-info-image {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .project-carousel-section {
        height: 280px;
    }

    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-nav-btn svg {
        width: 24px;
        height: 24px;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }

    .project-info-section {
        padding: 30px 0;
    }

    .project-info-container {
        padding: 0 16px;
        gap: 24px;
    }

    .project-logo {
        width: 80px;
        height: 80px;
    }

    .project-name {
        font-size: 24px;
        line-height: 30px;
    }

    .location-icon {
        width: 16px;
        height: 16px;
    }

    .project-location span {
        font-size: 14px;
    }

    .project-description p {
        font-size: 14px;
        line-height: 1.5;
    }

    .project-social-icon {
        width: 28px;
        height: 28px;
    }

    .project-info-map,
    .project-info-image {
        aspect-ratio: 1 / 1;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-info-content {
    animation: fadeInUp 0.6s ease forwards;
}

.project-info-map,
.project-info-image {
    animation: fadeInUp 0.8s ease forwards;
}
