/* =========================================
   CINEMATIC SLIDER (TONY ROBBINS REFERENCE)
   ========================================= */

/* --- SHARED BASE STYLES --- */
.tony-cinematic-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 700px;
    background: #000;
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
    display: flex;
}

/* --- 1. DYNAMIC BACKGROUNDS --- */
.tony-cinematic-slider .slider-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.tony-cinematic-slider .sync-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease, transform 12s linear;
}

.tony-cinematic-slider .sync-bg.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* --- 2. TYPOGRAPHY (Shared) --- */
.tony-cinematic-slider .sync-quote {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* HIDE AUTHOR SECTION - Author info now ONLY shown in bottom navigation */
.tony-cinematic-slider .sync-author {
    display: none !important;
}

.tony-cinematic-slider .author-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tony-cinematic-slider .author-details .name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.tony-cinematic-slider .author-details .role {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* =========================================
   DESKTOP LAYOUT (The "Reference" Look)
   Min-width: 992px
   ========================================= */
@media (min-width: 992px) {
    .tony-cinematic-slider {
        justify-content: flex-end;
        align-items: center;
    }

    .tony-cinematic-slider .bg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0) 30%,
                rgba(0, 0, 0, 0.6) 60%,
                rgba(0, 0, 0, 0.95) 100%);
    }

    .tony-cinematic-slider .content-layer {
        position: relative;
        z-index: 10;
        width: 50%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Changed from center */
        align-items: flex-start;
        padding-top: 8%;
        /* Position quote at top */
        padding-right: 5%;
        padding-left: 20px;
    }

    .tony-cinematic-slider .reviews-wrapper {
        position: relative;
        width: 100%;
        max-width: 800px;
        text-align: left;
        display: grid;
        /* Use Grid to stack items */
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 5vh;
        /* Additional spacing from top */
    }

    .tony-cinematic-slider .sync-review {
        grid-area: 1 / 1;
        /* Stack all reviews in same cell */
        width: 100%;
        opacity: 0;
        pointer-events: none;
        transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
        transform: translateY(20px);
        /* Slight slide up effect instead of centering */
    }

    .tony-cinematic-slider .sync-review.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .tony-cinematic-slider .sync-quote {
        font-size: clamp(1.8rem, 2.5vw, 2.8rem);
        /* Reduced further for balance */
        line-height: 1.25;
        /* Increased for elegance */
        margin-bottom: 20px;
    }

    .tony-cinematic-slider .sync-author {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease 0.2s;
        justify-content: flex-start;
    }

    .tony-cinematic-slider .sync-review.active .sync-author {
        opacity: 1;
        transform: translateY(0);
    }

    /* NAVIGATION: LARGE AVATARS LIKE TONY */
    .tony-cinematic-slider .sync-controls {
        position: absolute;
        bottom: 80px;
        /* Increased from 60px to match Tony's spacing */
        left: 50%;
        width: 45%;
        padding-left: 20px;
        z-index: 20;
        display: flex;
        justify-content: flex-start;
    }

    .tony-cinematic-slider .avatar-carousel {
        display: flex;
        gap: 50px;
        /* Increased spacing */
    }

    .tony-cinematic-slider .avatar-nav-img {
        width: 120px;
        /* TRIPLED from 45px */
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid transparent;
        transition: all 0.3s ease;
        filter: grayscale(100%);
        margin-bottom: 12px;
    }

    .tony-cinematic-slider .avatar-nav-item.active .avatar-nav-img {
        border-color: #fff;
        transform: scale(1.15);
        filter: grayscale(0%);
        box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    }

    .tony-cinematic-slider .avatar-nav-info {
        text-align: center;
        max-width: 220px;
        /* Wider for multi-line descriptions */
    }

    .tony-cinematic-slider .avatar-nav-name {
        display: block;
        font-size: 1rem;
        /* Increased from 0.7rem */
        font-weight: 700;
        text-transform: none;
        /* Remove UPPERCASE */
        letter-spacing: -0.01em;
        margin-bottom: 6px;
    }

    .tony-cinematic-slider .avatar-nav-role {
        display: block;
        /* SHOW descriptions */
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.8);
    }
}

/* =========================================
   MOBILE LAYOUT (Centered Stack)
   Max-width: 991px
   ========================================= */
@media (max-width: 991px) {
    .tony-cinematic-slider {
        justify-content: center;
        align-items: center;
    }

    .tony-cinematic-slider .bg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 90%);
    }

    .tony-cinematic-slider .content-layer {
        position: relative;
        z-index: 10;
        width: 100%;
        padding: 0 20px;
        display: flex;
        justify-content: center;
    }

    .tony-cinematic-slider .reviews-wrapper {
        width: 100%;
        text-align: center;
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        height: auto;
        /* Remove fixed height */
        padding-bottom: 120px;
        /* Reserve space for controls */
    }

    .tony-cinematic-slider .sync-review {
        grid-area: 1 / 1;
        /* Stack reviews */
        position: relative;
        width: 100%;
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s ease;
        transform: translateY(20px);
    }

    .tony-cinematic-slider .sync-review.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .tony-cinematic-slider .sync-quote {
        font-size: 1.5rem;
        /* Slightly reduced to prevent huge overflow */
        line-height: 1.25;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .tony-cinematic-slider .sync-author {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease 0.2s;
    }

    .tony-cinematic-slider .sync-review.active .sync-author {
        opacity: 1;
        transform: translateY(0);
    }

    .tony-cinematic-slider .sync-controls {
        position: absolute;
        bottom: 30px;
        left: 0;
        width: 100%;
        z-index: 20;
        display: flex;
        justify-content: center;
    }

    /* Mobile: Smaller avatars, hidden descriptions */
    .tony-cinematic-slider .avatar-carousel {
        display: flex;
        gap: 10px;
        /* Tighter gap for small screens */
        align-items: flex-start;
        justify-content: center;
        /* Center items */
    }

    .tony-cinematic-slider .avatar-nav-img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        filter: grayscale(100%);
        margin-bottom: 5px;
    }

    .tony-cinematic-slider .avatar-nav-item.active .avatar-nav-img {
        border-color: #fff;
        transform: scale(1.1);
        filter: grayscale(0%);
    }

    .tony-cinematic-slider .avatar-nav-name {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
    }

    .tony-cinematic-slider .avatar-nav-info {
        text-align: center;
    }

    .tony-cinematic-slider .avatar-nav-role {
        display: block;
        /* Show descriptions on mobile */
        font-size: 0.65rem;
        font-weight: 400;
        line-height: 1.3;
        margin-top: 4px;
        color: rgba(255, 255, 255, 0.8);
        max-width: 90px;
        /* Tighter width for 3 items */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        /* Limit to 3 lines */
        -webkit-box-orient: vertical;
    }
}

/* --- SHARED NAVIGATION STYLES --- */
.tony-cinematic-slider .avatar-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.tony-cinematic-slider .avatar-nav-item:hover,
.tony-cinematic-slider .avatar-nav-item.active {
    opacity: 1;
}