/* ---------- Project Page Styles ---------- */
.project-shell {
    max-width: 1100px;
    margin: 7rem auto 0;
    padding: 2rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.project-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.project-header h1 {
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-tags .tag {
    border-radius: 999px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.media-box {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.media-box img,
.media-box video {
    width: 100%;
    height: auto;
    display: block;
}

.project-content {
    padding: 0 0.5rem;
}

.project-content p {
    line-height: 1.65;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-weight: 500;
    margin-right: 0.6rem;
    margin-top: 1.5rem;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.back-link {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.back-link:hover,
.project-links a:hover {
    opacity: 1;
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Carousel ---------- */
.project-carousel {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: auto;
    overflow: hidden;
    border-radius: 24px;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 24px;
    object-fit: contain
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    padding: 0;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

/* Show arrows on hover for desktop */
@media (hover: hover) and (pointer: fine) {
    .project-carousel:hover .carousel-prev,
    .project-carousel:hover .carousel-next {
        opacity: 1;
    }
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
}

.indicator {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.indicator.active {
    background: #fff;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .project-shell {
        margin: 6rem 1rem 0;
        padding: 1.5rem;
    }

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

    .project-header h1 {
        font-size: 1.75rem;
    }

    .carousel-prev,
    .carousel-next {
        opacity: 1;
    }
}
