/* =============================================
   PROJECT DETAIL — Alumni & Lia showcase sections
   Premium Glassmorphism Edition
   ============================================= */

.project-detail {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* ---------- Header / placeholder text ---------- */
.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.detail-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1rem;
}

/* ---------- Sub-section labels ---------- */
.detail-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin: 3rem 0 1.5rem;
    text-align: center;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Screenshot gallery ---------- */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-gallery img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(240, 168, 48, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.detail-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(240, 168, 48, 0.08);
    border-color: rgba(240, 168, 48, 0.2);
}

/* ---------- Video ---------- */
.project-detail-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.detail-video {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(240, 168, 48, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.detail-video video {
    width: 100%;
    display: block;
}

/* ---------- Carousel ---------- */
.carousels-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(240, 168, 48, 0.08);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 520px;
    background: rgba(6, 8, 15, 0.8);
}

/* Nav arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(240, 168, 48, 0.3);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(240, 168, 48, 0.3);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(240, 168, 48, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(240, 168, 48, 0.4);
    transform: scale(1.3);
}

/* Carousel label */
.carousel-label {
    text-align: center;
    padding: 0.5rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- Maquette gallery ---------- */
.maquette-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.maquette-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(240, 168, 48, 0.06);
    transition: var(--transition);
    cursor: pointer;
}

.maquette-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(240, 168, 48, 0.08);
    border-color: rgba(240, 168, 48, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .detail-header h3 { font-size: 1.4rem; }
    .detail-gallery { grid-template-columns: 1fr; }
    .maquette-gallery { grid-template-columns: repeat(2, 1fr); }
    .carousel-slide img { max-height: 300px; }
    .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
    .carousel-btn.prev { left: 6px; }
    .carousel-btn.next { right: 6px; }
}

/* ---------- Project page (standalone) ---------- */
.project-page {
    padding-top: 8rem;
    min-height: 100vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-light);
    transform: translateX(-4px);
}

/* ---------- Smaller video ---------- */
.detail-video-small {
    max-width: 600px;
    position: relative;
}

.video-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid rgba(240, 168, 48, 0.3);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.video-fullscreen-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-full {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(240, 168, 48, 0.12);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

/* ---------- Video Links Grid ---------- */
.video-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.video-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(240, 168, 48, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.video-link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 168, 48, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.video-link-card:hover {
    border-color: rgba(240, 168, 48, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(240, 168, 48, 0.08);
}

.video-link-card:hover::before {
    opacity: 1;
}

.video-link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4444;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.video-link-card:hover .video-link-icon {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.08);
}

.video-link-title {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.video-link-arrow {
    font-size: 1.3rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}

.video-link-card:hover .video-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .video-links-grid {
        grid-template-columns: 1fr;
    }
}