/* ============================================================================
   FULL-SCREEN CINEMATIC CAROUSEL
   Modern, responsive, beautiful full-screen slider for projects
   ============================================================================ */

/* ============================================================================
   SECTION & HEADER
   ============================================================================ */

.fullscreen-carousel-section {
    position: relative;
    width: 100%;
    background: #0f172a;
    color: white;
}

[data-theme="light"] .fullscreen-carousel-section {
    background: #f8fafc;
    color: #0f172a;
}

/* Section Header */
.fullscreen-carousel-header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.fullscreen-carousel-header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.fullscreen-carousel-header__badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.fullscreen-carousel-header__title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .fullscreen-carousel-header__title {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fullscreen-carousel-header__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

[data-theme="light"] .fullscreen-carousel-header__subtitle {
    color: rgba(51, 65, 85, 0.8);
}

/* ============================================================================
   FULL-SCREEN CAROUSEL
   ============================================================================ */

.fullscreen-carousel {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: #1e293b;
}

[data-theme="light"] .fullscreen-carousel {
    background: #e2e8f0;
}

/* Slides Container */
.fullscreen-carousel__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.fullscreen-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.fullscreen-carousel__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Image Wrapper */
.fullscreen-carousel__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Full-Screen Image */
.fullscreen-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Enhanced image quality and visibility */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
    -webkit-filter: brightness(1.05) contrast(1.1) saturate(1.15);
}

.fullscreen-carousel__slide.active .fullscreen-carousel__image {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
    -webkit-filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

/* Placeholder */
.fullscreen-carousel__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #64748b;
}

/* Gradient Overlay */
.fullscreen-carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.15) 0%,
        rgba(15, 23, 42, 0.25) 30%,
        rgba(15, 23, 42, 0.4) 60%,
        rgba(15, 23, 42, 0.75) 85%,
        rgba(15, 23, 42, 0.9) 100%
    );
    z-index: 3;
    /* Enhanced overlay for better image visibility */
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

[data-theme="light"] .fullscreen-carousel__overlay {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0.6) 85%,
        rgba(255, 255, 255, 0.8) 100%
    );
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

/* ============================================================================
   CONTENT OVERLAY
   ============================================================================ */

.fullscreen-carousel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 4rem 0;
}

.fullscreen-carousel__content-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Badges */
.fullscreen-carousel__badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.fullscreen-carousel__type-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(251, 191, 36, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fullscreen-carousel__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    backdrop-filter: blur(12px);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fullscreen-carousel__status-badge svg {
    width: 16px;
    height: 16px;
}

.fullscreen-carousel__status-badge--completed {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

.fullscreen-carousel__status-badge--in-progress {
    background: rgba(59, 130, 246, 0.95);
    color: white;
}

/* Title */
.fullscreen-carousel__title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

[data-theme="light"] .fullscreen-carousel__title {
    color: #0f172a;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* Description */
.fullscreen-carousel__description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.95);
    margin: 0 0 2rem;
    max-width: 700px;
}

[data-theme="light"] .fullscreen-carousel__description {
    color: rgba(51, 65, 85, 0.9);
}

/* Meta Information */
.fullscreen-carousel__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.fullscreen-carousel__meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

[data-theme="light"] .fullscreen-carousel__meta-item {
    color: rgba(51, 65, 85, 0.9);
}

.fullscreen-carousel__meta-item svg {
    width: 22px;
    height: 22px;
    color: #fbbf24;
    flex-shrink: 0;
}

/* CTA Button */
.fullscreen-carousel__cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fullscreen-carousel__cta:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.fullscreen-carousel__cta svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.fullscreen-carousel__cta:hover svg {
    transform: translateX(4px);
}

/* ============================================================================
   NAVIGATION CONTROLS
   ============================================================================ */

.fullscreen-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 4rem;
    height: 4rem;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0.7;
}

[data-theme="light"] .fullscreen-carousel__nav {
    background: rgba(255, 255, 255, 0.2);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

.fullscreen-carousel__nav--prev {
    left: 2rem;
}

.fullscreen-carousel__nav--next {
    right: 2rem;
}

.fullscreen-carousel__nav:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 16px 48px rgba(251, 191, 36, 0.3);
    opacity: 1;
}

[data-theme="light"] .fullscreen-carousel__nav:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.5);
}

.fullscreen-carousel__nav:active {
    transform: translateY(-50%) scale(1.05);
}

.fullscreen-carousel__nav svg {
    width: 2rem;
    height: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================================================
   SLIDE INDICATORS
   ============================================================================ */

.fullscreen-carousel__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .fullscreen-carousel__indicators {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 0, 0, 0.1);
}

.fullscreen-carousel__indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

[data-theme="light"] .fullscreen-carousel__indicator {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0.15);
}

.fullscreen-carousel__indicator.active {
    background: #fbbf24;
    border-color: #fbbf24;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.fullscreen-carousel__indicator:hover {
    background: rgba(251, 191, 36, 0.7);
    border-color: rgba(251, 191, 36, 0.8);
    transform: scale(1.2);
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.fullscreen-carousel-cta {
    padding: 3rem 0;
    text-align: center;
}

.fullscreen-carousel-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.fullscreen-carousel-cta__button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.fullscreen-carousel-cta__button svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.fullscreen-carousel-cta__button:hover svg {
    transform: translateX(4px);
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.fullscreen-carousel-empty {
    padding: 6rem 0;
    text-align: center;
}

.fullscreen-carousel-empty__container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.fullscreen-carousel-empty__icon {
    margin: 0 auto 2rem;
    color: rgba(148, 163, 184, 0.5);
}

.fullscreen-carousel-empty__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: white;
}

[data-theme="light"] .fullscreen-carousel-empty__title {
    color: #0f172a;
}

.fullscreen-carousel-empty__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.8);
    margin: 0 0 2rem;
}

[data-theme="light"] .fullscreen-carousel-empty__description {
    color: rgba(51, 65, 85, 0.8);
}

.fullscreen-carousel-empty__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.fullscreen-carousel-empty__cta:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

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

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .fullscreen-carousel-header {
        padding: 3rem 0 1.5rem;
    }

    .fullscreen-carousel-header__title {
        font-size: 2.5rem;
    }

    .fullscreen-carousel-header__subtitle {
        font-size: 1rem;
    }

    .fullscreen-carousel {
        height: 75vh;
        min-height: 500px;
    }

    .fullscreen-carousel__content {
        padding: 3rem 0;
    }

    .fullscreen-carousel__content-inner {
        padding: 0 2rem;
    }

    .fullscreen-carousel__title {
        font-size: 2.5rem;
    }

    .fullscreen-carousel__description {
        font-size: 1.125rem;
    }

    .fullscreen-carousel__nav {
        width: 3.5rem;
        height: 3.5rem;
    }

    .fullscreen-carousel__nav svg {
        width: 1.75rem;
        height: 1.75rem;
    }

    .fullscreen-carousel__nav--prev {
        left: 1.5rem;
    }

    .fullscreen-carousel__nav--next {
        right: 1.5rem;
    }
}

/* Mobile (640px - 767px) */
@media (max-width: 767px) {
    .fullscreen-carousel-header {
        padding: 2rem 0 1rem;
    }

    .fullscreen-carousel-header__container {
        padding: 0 1.5rem;
    }

    .fullscreen-carousel-header__title {
        font-size: 2rem;
    }

    .fullscreen-carousel-header__subtitle {
        font-size: 0.9375rem;
    }

    .fullscreen-carousel {
        height: 70vh;
        min-height: 450px;
    }

    .fullscreen-carousel__content {
        padding: 2rem 0;
    }

    .fullscreen-carousel__content-inner {
        padding: 0 1.5rem;
    }

    .fullscreen-carousel__badges {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fullscreen-carousel__title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .fullscreen-carousel__description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .fullscreen-carousel__meta {
        gap: 1.5rem;
    }

    .fullscreen-carousel__meta-item {
        font-size: 0.875rem;
    }

    .fullscreen-carousel__meta-item svg {
        width: 18px;
        height: 18px;
    }

    .fullscreen-carousel__cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .fullscreen-carousel__cta svg {
        width: 20px;
        height: 20px;
    }

    .fullscreen-carousel__nav {
        width: 3rem;
        height: 3rem;
    }

    .fullscreen-carousel__nav svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .fullscreen-carousel__nav--prev {
        left: 1rem;
    }

    .fullscreen-carousel__nav--next {
        right: 1rem;
    }

    .fullscreen-carousel__indicators {
        bottom: 1.5rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .fullscreen-carousel__indicator {
        width: 10px;
        height: 10px;
    }
}

/* Small Mobile (< 640px) */
@media (max-width: 639px) {
    .fullscreen-carousel-header__title {
        font-size: 1.75rem;
    }

    .fullscreen-carousel-header__subtitle {
        font-size: 0.875rem;
    }

    .fullscreen-carousel {
        height: 65vh;
        min-height: 400px;
    }

    .fullscreen-carousel__content {
        padding: 1.5rem 0;
    }

    .fullscreen-carousel__content-inner {
        padding: 0 1rem;
    }

    .fullscreen-carousel__type-badge,
    .fullscreen-carousel__status-badge {
        padding: 0.375rem 1rem;
        font-size: 0.6875rem;
    }

    .fullscreen-carousel__title {
        font-size: 1.5rem;
    }

    .fullscreen-carousel__description {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .fullscreen-carousel__meta {
        gap: 1rem;
    }

    .fullscreen-carousel__meta-item {
        font-size: 0.8125rem;
    }

    .fullscreen-carousel__meta-item svg {
        width: 16px;
        height: 16px;
    }

    .fullscreen-carousel__cta {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }

    .fullscreen-carousel__nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .fullscreen-carousel__nav svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .fullscreen-carousel__nav--prev {
        left: 0.75rem;
    }

    .fullscreen-carousel__nav--next {
        right: 0.75rem;
    }

    .fullscreen-carousel-cta {
        padding: 2rem 0;
    }

    .fullscreen-carousel-cta__button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================================================
   ENHANCED IMAGE VISIBILITY
   ============================================================================ */

/* Image hover effects for better visibility */
.fullscreen-carousel__slide:hover .fullscreen-carousel__image {
    filter: brightness(1.15) contrast(1.2) saturate(1.25);
    -webkit-filter: brightness(1.15) contrast(1.2) saturate(1.25);
    transform: scale(1.02);
}

/* Enhanced image loading states */
.fullscreen-carousel__image {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.1) 0%,
        rgba(15, 23, 42, 0.2) 50%,
        rgba(15, 23, 42, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: imageShimmer 2s infinite;
}

.fullscreen-carousel__image[src] {
    animation: none;
    background: none;
}

@keyframes imageShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* High-resolution display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fullscreen-carousel__image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        filter: brightness(1.08) contrast(1.12) saturate(1.18);
        -webkit-filter: brightness(1.08) contrast(1.12) saturate(1.18);
    }
}

/* Enhanced mobile image visibility */
@media (max-width: 767px) {
    .fullscreen-carousel__image {
        filter: brightness(1.1) contrast(1.15) saturate(1.2);
        -webkit-filter: brightness(1.1) contrast(1.15) saturate(1.2);
    }
    
    .fullscreen-carousel__slide.active .fullscreen-carousel__image {
        filter: brightness(1.15) contrast(1.2) saturate(1.25);
        -webkit-filter: brightness(1.15) contrast(1.2) saturate(1.25);
    }
}

/* Focus states for better accessibility */
.fullscreen-carousel__slide:focus-within .fullscreen-carousel__image {
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
    -webkit-filter: brightness(1.1) contrast(1.15) saturate(1.2);
    outline: 3px solid rgba(14, 165, 233, 0.6);
    outline-offset: 4px;
}

/* ============================================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================================ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fullscreen-carousel__slide,
    .fullscreen-carousel__image,
    .fullscreen-carousel__nav,
    .fullscreen-carousel__indicator,
    .fullscreen-carousel__cta,
    .fullscreen-carousel-cta__button {
        transition: none !important;
        animation: none !important;
    }

    .fullscreen-carousel__slide.active .fullscreen-carousel__image {
        transform: none !important;
    }
    
    .fullscreen-carousel__slide:hover .fullscreen-carousel__image {
        transform: none !important;
    }
    
    .fullscreen-carousel__image {
        animation: none !important;
        background: none !important;
    }
}

/* Focus Visible States */
.fullscreen-carousel__nav:focus-visible,
.fullscreen-carousel__indicator:focus-visible,
.fullscreen-carousel__cta:focus-visible,
.fullscreen-carousel-cta__button:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 4px;
}

/* Loading State */
.fullscreen-carousel.loading {
    pointer-events: none;
    opacity: 0.7;
}

.fullscreen-carousel.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
    z-index: 100;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
