/* Featured Work Slider Styles */
/* ============================== */

/* Color Variables */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --dark-bg: #0a0a0a;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(255, 107, 53, 0.2);
    --transition-speed: 0.3s;
}

/* Featured Work Section */
.featured-work-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 3rem 2rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.featured-work-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Section Header */
.featured-work-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.featured-work-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.featured-work-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--gray-text);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Slider Wrapper - Main Container */
.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Carousel Container */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    max-width: 1200px;
    position: relative;
    overflow: visible;
}

/* Preview Cards */
.preview-card {
    flex: 0 0 auto;
    width: 380px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    filter: blur(4px);
    opacity: 0.6;
    transform: scale(0.9);
}

.preview-card:hover {
    filter: blur(2px);
    opacity: 0.85;
    transform: scale(0.95);
}

.preview-card-prev {
    animation: previewCardSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.preview-card-next {
    animation: previewCardSlideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

/* Preview card update animations */
.preview-card-prev.updating {
    animation: previewCardSlideOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, 
               previewCardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}

.preview-card-next.updating {
    animation: previewCardSlideOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               previewCardSlideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}

/* Preview card click animation */
.preview-card:active {
    animation: previewCardClick 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--primary-color);
    opacity: 1;
    transition: opacity var(--transition-speed) ease-in-out;
    pointer-events: none;
}

.preview-video:not(:empty) ~ .preview-placeholder {
    opacity: 0;
}

/* Video Container */
.video-container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
    border: 1px solid var(--border-color);
    animation: fadeInScale 0.6s ease-out 0.2s both;
    z-index: 10;
    transition: all var(--transition-speed) ease-in-out;
}

/* Desktop only - clickable video container */
@media (min-width: 768px) {
    .video-container {
        cursor: pointer;
        pointer-events: auto;
    }

    .video-container:hover {
        box-shadow: 0 25px 70px rgba(255, 107, 53, 0.25);
        border-color: var(--primary-color);
    }
}

/* Mobile - video card not clickable, but video controls are */
@media (max-width: 767px) {
    .video-container {
        cursor: default;
        pointer-events: none;
    }

    /* Allow video element to receive pointer events for controls */
    .featured-video {
        pointer-events: auto;
    }
}

.featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
}

.featured-video.loaded {
    opacity: 1;
}

/* Video Placeholder */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--primary-color);
    opacity: 1;
    transition: opacity var(--transition-speed) ease-in-out;
    pointer-events: none;
}

.featured-video.loaded ~ .video-placeholder {
    opacity: 0;
}

/* Navigation Arrows */
.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease-in-out;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    font-size: 0;
    padding: 0;
    
    /* Soft shadow */
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.slider-arrow:hover {
    background: rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slider-arrow-left {
    animation: fadeInLeft 0.6s ease-out 0.1s both;
}

.slider-arrow-right {
    animation: fadeInRight 0.6s ease-out 0.1s both;
}

/* Slider Info Section */
.slider-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.video-info {
    flex: 1;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.video-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* View More Work Button */
.view-more-work-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.05) 100%);
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    position: relative;
    overflow: hidden;
}

.view-more-work-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(247, 147, 30, 0.1) 100%);
    transition: left var(--transition-speed) ease-in-out;
    z-index: -1;
}

.view-more-work-btn:hover::before {
    left: 0;
}

.view-more-work-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 147, 30, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
    transform: translateX(4px);
}

.view-more-work-btn:active {
    transform: translateX(2px);
}

.view-more-work-btn .btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-speed) ease-in-out;
    stroke: var(--primary-color);
}

.view-more-work-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Video Buttons Container */
.video-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Watch Video Button - Hidden on Desktop, Visible on Mobile */
.watch-video-btn {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(247, 147, 30, 0.1) 100%);
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    position: relative;
    overflow: hidden;
}

.watch-video-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3) 0%, rgba(247, 147, 30, 0.15) 100%);
    transition: left var(--transition-speed) ease-in-out;
    z-index: -1;
}

.watch-video-btn:hover::before {
    left: 0;
}

.watch-video-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(247, 147, 30, 0.15) 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    transform: translateX(4px);
}

.watch-video-btn:active {
    transform: translateX(2px);
}

.watch-video-btn .btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-speed) ease-in-out;
    stroke: var(--primary-color);
}

.watch-video-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Slider Indicators (Dots) */
.slider-indicators {
    display: none;
    gap: 0.75rem;
    justify-content: flex-end;
}

.indicator {
    display: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
}

.indicator:hover {
    background: rgba(255, 107, 53, 0.4);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
    transform: scale(1.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes scalePopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes previewCardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
        filter: blur(8px);
    }
    50% {
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(4px);
    }
}

@keyframes previewCardSlideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
        filter: blur(8px);
    }
    50% {
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(4px);
    }
}

@keyframes previewCardSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(4px);
    }
    to {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
        filter: blur(8px);
    }
}

@keyframes previewCardSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(4px);
    }
    to {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
        filter: blur(8px);
    }
}

@keyframes previewCardClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
    }
}

/* Video Fade Transition */
.featured-video.fade-out {
    animation: fadeOut 0.4s ease-in-out forwards;
}

.featured-video.fade-in {
    animation: fadeIn 0.4s ease-in-out forwards;
}

/* Slide In Animations */
.featured-video.slide-in-left {
    animation: slideOutLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, slideInFromLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}

.featured-video.slide-in-right {
    animation: slideOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, slideInFromRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}

.video-title.slide-in-left {
    animation: slideOutLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, textSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}

.video-title.slide-in-right {
    animation: slideOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, textSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}

.video-description.slide-in-left {
    animation: slideOutLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, textSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.video-description.slide-in-right {
    animation: slideOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, textSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-80px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(80px);
    }
}

/* ==================== */
/* RESPONSIVE DESIGN   */
/* ==================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .featured-work-section {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .featured-work-title {
        font-size: 2.5rem;
    }

    .featured-work-subtitle {
        font-size: 1rem;
    }

    .slider-wrapper {
        gap: 1rem;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
    }

    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }

    .preview-card {
        width: 280px;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .video-description {
        font-size: 0.95rem;
    }

    .slider-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .slider-indicators {
        justify-content: flex-start;
        width: 100%;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .view-more-work-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }

    .view-more-work-btn .btn-arrow {
        width: 16px;
        height: 16px;
    }

    .watch-video-btn {
        display: inline-flex;
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }

    .watch-video-btn .btn-arrow {
        width: 16px;
        height: 16px;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    .featured-work-section {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .featured-work-header {
        margin-bottom: 2rem;
    }

    .featured-work-title {
        font-size: 2rem;
    }

    .featured-work-subtitle {
        font-size: 0.95rem;
    }

    /* Show arrows on mobile */
    .slider-arrow {
        display: flex;
        width: 48px;
        height: 48px;
        position: absolute;
        z-index: 20;
    }

    .slider-arrow-left {
        top: 50%;
        left: 0.5rem;
        transform: translateY(-50%);
    }

    .slider-arrow-right {
        top: 50%;
        right: 0.5rem;
        transform: translateY(-50%);
    }

    .carousel-container {
        gap: 0.5rem;
        position: relative;
        width: 100%;
    }

    .preview-card {
        width: 80px;
        display: none;
    }

    .video-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .slider-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .video-title {
        font-size: 1.3rem;
    }

    .video-description {
        font-size: 0.9rem;
    }

    .slider-indicators {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .indicator {
        width: 4px;
        height: 4px;
    }

    .view-more-work-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.1rem;
    }

    .view-more-work-btn .btn-arrow {
        width: 15px;
        height: 15px;
    }

    .watch-video-btn {
        display: inline-flex;
        font-size: 0.85rem;
        padding: 0.6rem 1.1rem;
    }

    .watch-video-btn .btn-arrow {
        width: 15px;
        height: 15px;
    }

    .video-buttons {
        gap: 0.75rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .indicator {
        width: 3px;
        height: 3px;
    }
    .featured-work-section {
        padding: 1.5rem 0.75rem;
    }

    .featured-work-title {
        font-size: 1.75rem;
    }

    .featured-work-subtitle {
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
    }

    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .slider-arrow-left {
        left: 0.25rem;
    }

    .slider-arrow-right {
        right: 0.25rem;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .video-description {
        font-size: 0.85rem;
    }

    .view-more-work-btn {
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
    }

    .view-more-work-btn .btn-arrow {
        width: 14px;
        height: 14px;
    }

    .watch-video-btn {
        display: inline-flex;
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
    }

    .watch-video-btn .btn-arrow {
        width: 14px;
        height: 14px;
    }

    .video-buttons {
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
    }

    .watch-video-btn,
    .view-more-work-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .slider-arrow {
        width: 56px;
        height: 56px;
        min-height: 48px;
        min-width: 48px;
    }

    .slider-arrow svg {
        width: 28px;
        height: 28px;
    }

    .indicator {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
        border-radius: 50%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .featured-work-section {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

/* Light Mode Support (if needed) */
@media (prefers-color-scheme: light) {
    .featured-work-section {
        background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    }

    .featured-work-title,
    .video-title {
        color: #1a1a1a;
    }

    .featured-work-subtitle,
    .video-description {
        color: #666666;
    }
}
