﻿/* ═══════════════════════════════════════════════
   PROJECTS PAGE — CATEGORY TAB NAVIGATION
   ═══════════════════════════════════════════════ */

/* ── Tab Bar Container ── */
.projects-tab-bar {
    position: sticky;
    top: 70px;
    z-index: 90;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.projects-tab-bar .container {
    position: relative;
}

.projects-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

/* ── Individual Tab ── */
.project-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    transition: color 0.25s ease;
    position: relative;
    user-select: none;
}

.project-tab:hover {
    color: #1e3a5f;
}

.project-tab.active {
    color: #2563eb;
    font-weight: 600;
}

.project-tab-icon {
    font-size: 18px;
    line-height: 1;
}

/* ── Sliding Underline Indicator ── */
.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 3px 3px 0 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width;
}

/* ═══════════════════════════════════════════════
   PROJECT SECTION ANIMATIONS
   ═══════════════════════════════════════════════ */

/* Container for animated project sections */
#projectsContainer {
    position: relative;
    overflow: hidden;
}

/* Each project section transition states */
.project-detail-section {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-detail-section.tab-hidden {
    display: none !important;
}

.project-detail-section.tab-fade-out {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.project-detail-section.tab-fade-in {
    animation: projectFadeIn 0.4s ease forwards;
}

@keyframes projectFadeIn {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── "Coming Soon" Placeholder ── */
.projects-empty-state {
    display: none;
    text-align: center;
    padding: 100px 20px;
    animation: projectFadeIn 0.45s ease forwards;
}

.projects-empty-state.visible {
    display: block;
}

.projects-empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.projects-empty-state h3 {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.projects-empty-state p {
    font-size: 17px;
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .projects-tab-bar {
        top: 60px;
    }

    .projects-tabs-wrapper {
        justify-content: flex-start;
        padding: 0 8px;
    }

    .project-tab {
        padding: 14px 18px;
        font-size: 13px;
        gap: 5px;
    }

    .project-tab-icon {
        font-size: 15px;
    }

    .projects-empty-state {
        padding: 60px 20px;
    }

    .projects-empty-icon {
        font-size: 42px;
    }

    .projects-empty-state h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .project-tab {
        padding: 12px 14px;
        font-size: 12px;
    }
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESIDENTIAL â€” VIDEO WRAPPER & PREMIUM OVERLAYS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Video container */
.resi-video-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    background: #0a121e;
    line-height: 0;   /* collapse inline-block gap */
    /* Subtle border glow */
    outline: 2px solid rgba(37,99,235,0.15);
    outline-offset: 0;
    transition: outline-color 0.3s ease, box-shadow 0.3s ease;
}

.resi-video-wrap:hover {
    outline-color: rgba(37,99,235,0.38);
    box-shadow: 0 28px 60px rgba(0,0,0,0.24), 0 0 0 4px rgba(37,99,235,0.12);
}

/* Ensure video fills wrap with no gap */
.resi-video-wrap .resi-project-video {
    width: 100% !important;
    height: auto;
    display: block;
    border-radius: 0;   /* wrap handles radius */
    box-shadow: none !important;
    transition: opacity 0.4s ease;
}

/* LIVE badge â€” top-left */
.resi-video-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10,18,30,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.18);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* Pulsing red dot */
.resi-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    animation: resiDotPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes resiDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Play hint circle â€” centred, appears on hover */
.resi-video-play-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9;
}

.resi-video-play-hint svg {
    width: 68px;
    height: 68px;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
    transition: transform 0.25s ease;
}

.resi-video-wrap:hover .resi-video-play-hint {
    opacity: 1;
}

.resi-video-wrap:hover .resi-video-play-hint svg {
    transform: scale(1.08);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 768px) {
    .resi-video-badge {
        font-size: 10px;
        padding: 4px 9px;
        top: 10px;
        left: 10px;
    }

    .resi-video-play-hint svg {
        width: 52px;
        height: 52px;
    }

    .resi-video-wrap {
        border-radius: 14px;
    }
}