/* === Featured Projects === */

.featured-projects {
    padding: 5rem 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #0e0e0e, #1b1b1b);
    position: relative;
    z-index: 3;
}

.featured-header p {
    font-size: 1rem;
    color: white;
}

.featured-header h2 {
    color: gray;
    font-size: 2rem;
    margin: 1rem 0;
}

.feature-subheading {
    color: white;
}

.featured-tabs {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 3;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: #1d1d1d;
    color: #ccc;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2fbcf3, #1e9fd8);
    color: #000;
}


/* === Featured Content Layout === */

.featured-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}


/* === Vertical & Agent Videos - TikTok Style Frames === */

.featured-content.default-layout .video-wrapper {
    width: 18vw;
    /* thin vertical frame */
    height: 80vh;
    /* full height */
    border-radius: 20px;
    background: #000;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgba(77, 201, 255, 0.15);
}

.featured-content.default-layout .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}


/* === Horizontal Videos - Dual Column Layout === */

.featured-content.dual-column-layout {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 2rem;
}

.dual-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dual-column .video-wrapper {
    width: 40vw;
    /* big rectangle on desktop */
    height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgba(30, 159, 216, 0.1);
}

.dual-column .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Placeholders */

.placeholder {
    width: 90%;
    height: 40vh;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}


/* === Responsive Layouts === */

@media (max-width: 1024px) {
    .dual-column .video-wrapper {
        width: 45vw;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    /* Stack all videos vertically */
    .featured-content {
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem !important;
    }
    /* Vertical / Agent videos - taller like TikTok */
    .featured-content.default-layout .video-wrapper {
        width: 90%;
        height: 70vh;
        margin: 0 auto;
    }
    /* Horizontal videos - slightly smaller rectangles */
    .dual-column {
        width: 100%;
        gap: 1.5rem;
    }
    .dual-column .video-wrapper {
        width: 95%;
        height: 45vh;
    }
    .featured-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .featured-header h2 {
        font-size: 1.2rem;
    }
    .featured-header p {
        font-size: 0.9rem;
    }
    /* Vertical / Agent videos - take most of screen height */
    .featured-content.default-layout .video-wrapper {
        width: 95%;
        height: 75vh;
        margin: 0 auto;
    }
    /* Horizontal videos - keep rectangular but large enough */
    .dual-column .video-wrapper {
        width: 95%;
        height: 50vh;
    }
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}