/* ========================================
   3D RENDERS PAGE STYLES
   ======================================== */

/* .renders-bg, .bg-blob removed — using shared surreal-light-bg.css instead */


/* Hero Section */
.renders-hero {
    padding: 10rem 0 4rem;
    text-align: center;
}

.renders-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b00 0%, #8b00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.renders-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Renders Grid */
.renders-grid {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.render-card {
    background: rgba(255,255,255,0.5);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.render-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.render-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124,92,250,0.25);
    box-shadow: 0 16px 48px rgba(124,92,250,0.12);
}

.render-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.render-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.render-card:hover .render-img {
    transform: scale(1.1);
}

.render-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.render-tag {
    background: rgba(255, 107, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.render-content {
    padding: 2rem;
}

.render-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1815;
}

.render-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.render-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-pill {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7a7570;
}

.render-actions {
    display: flex;
    gap: 1rem;
}

.btn-render {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    background: #7c5cfa;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: background 0.25s, transform 0.25s;
}

.btn-render:hover {
    background: #6a4de0;
    transform: translateY(-2px);
}

/* Project Detail Section */
.project-detail {
    padding: 6rem 0;
}

.detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.detail-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b00 0%, #8b00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-subtitle {
    font-size: 1rem;
    color: #7a7570;
}

/* Video Container */
.video-container {
    margin-bottom: 4rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Detail Content */
.detail-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.detail-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #1a1815;
}

.detail-content p {
    color: #504c47;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    background: rgba(255,255,255,0.45);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(124,92,250,0.2);
    background: rgba(124,92,250,0.04);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1815;
}

.feature-item p {
    color: #7a7570;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Detail Gallery */
.detail-gallery {
    margin-bottom: 4rem;
}

.detail-gallery h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Tech Stack */
.tech-stack {
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #1a1815;
}

.tech-pills-large {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-pill-large {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #1a1815;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-pill-large:hover {
    background: rgba(124,92,250,0.08);
    border-color: rgba(124,92,250,0.35);
    transform: translateY(-2px);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .renders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Video Thumbnail ── */
.video-thumbnail {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: none; border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── Gallery Navigation ── */
.gallery-wrapper { position: relative; margin-bottom: 2rem; }

.gallery-display {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: #e0ddd8;
}

.main-gallery-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.thumb {
    width: 120px; height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumb:hover { opacity: 0.9; transform: scale(1.05); }
.thumb.active { opacity: 1; border-color: #7c5cfa; }

/* ── Card Carousel Navigation ── */
.card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(124,92,250,0.8);
    color: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.render-image-wrapper:hover .card-nav { opacity: 1; }
.card-nav:hover { background: rgba(124,92,250,1); transform: translateY(-50%) scale(1.1); }
.card-nav.card-prev { left: 1rem; }
.card-nav.card-next { right: 1rem; }

.card-thumbnails {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem 0;
}

.card-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-dot:hover { background: rgba(124,92,250,0.6); transform: scale(1.2); }
.card-dot.active { background: #7c5cfa; width: 24px; border-radius: 5px; }

/* ── Card Nav Controls (centred bar) ── */
.card-nav-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(240,237,232,0.85);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
}

.render-image-wrapper:hover .card-nav-controls { opacity: 1; }
.card-nav-controls .card-nav { position: static; transform: none; opacity: 1; width: 35px; height: 35px; }
.card-nav-controls .card-nav:hover { transform: scale(1.1); }
.card-nav-controls .card-thumbnails { padding: 0; margin: 0; }
