﻿*{
    transition: background 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    box-sizing: border-box;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    left: 50%;
    transform-origin: center center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, filter;
    width: 330px;
}
@media (max-width: 1099px) {
    .carousel-item {
        width: 100% !important;
    }
}


.carousel-item.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: brightness(1);
    z-index: 10;
    pointer-events: auto;
}


.carousel-item.prev {
    transform: translateX(calc(-50% - 420px)) scale(0.85);
    opacity: 0.6;
    filter: brightness(0.5);
    z-index: 5;
    pointer-events: auto;
    visibility: visible;
}


.carousel-item.next {
    transform: translateX(calc(-50% + 420px)) scale(0.85);
    opacity: 0.6;
    filter: brightness(0.5);
    z-index: 5;
    pointer-events: auto;
    visibility: visible;
}


.carousel-item.side-prev {
    opacity: 0.4;
    filter: brightness(0.4);
    z-index: 3;
    pointer-events: auto;
    visibility: visible;
}

.carousel-item.side-prev[data-position="-2"] {
    transform: translateX(calc(-50% - 600px)) scale(0.75);
}

.carousel-item.side-prev[data-position="-3"] {
    transform: translateX(calc(-50% - 920px)) scale(0.65);
}


.carousel-item.side-next {
    opacity: 0.4;
    filter: brightness(0.4);
    z-index: 3;
    pointer-events: auto;
    visibility: visible;
}

.carousel-item.side-next[data-position="2"] {
    transform: translateX(calc(-50% + 600px)) scale(0.75);
}

.carousel-item.side-next[data-position="3"] {
    transform: translateX(calc(-50% + 920px)) scale(0.65);
}


.carousel-item.hidden {
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
    filter: brightness(0.3);
    z-index: 1;
    pointer-events: none;
    visibility: hidden;
}


.carousel-item.initial-load {
    transform: translateX(-50%) translateY(100px) scale(0.7) !important;
    opacity: 0 !important;
}


.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    user-select: none;
    padding: 0 0 6px 0;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0px;
    top: 20px;
}

.carousel-next {
    right: 0px;
    top: 20px;
}


@media (max-width: 999px) {
    .carousel-container {
        padding: 40px 50px;
    }
    
    .carousel-item.prev {
        transform: translateX(calc(-30% - 280px)) scale(0.7);
        opacity: 0.5;
        visibility: visible;
    }
    
    .carousel-item.next {
        transform: translateX(calc(-70% + 280px)) scale(0.7);
        opacity: 0.5;
        visibility: visible;
    }
    
    .carousel-nav {
        width: 80px;
        height: 80px;
        font-size: 50px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}


@media (min-width: 1000px) and (max-width: 1399px) {
    .carousel-container {
        padding: 40px 60px;
    }
    
    .carousel-item.prev {
        transform: translateX(calc(-30% - 320px)) scale(0.75);
        opacity: 0.55;
        visibility: visible;
    }
    
    .carousel-item.next {
        transform: translateX(calc(-70% + 320px)) scale(0.75);
        opacity: 0.55;
        visibility: visible;
    }
}


@media (min-width: 1300px) {
    .carousel-container {
        padding: 40px 80px;
    }
    
    .carousel-item.active {
        transform: translateX(-50%) scale(1);
    }
    
    .carousel-item.prev {
        transform: translateX(calc(-50% - 320px)) scale(0.85);
        opacity: 0.6;
        filter: brightness(0.5);
        visibility: visible;
    }
    
    .carousel-item.next {
        transform: translateX(calc(-50% + 320px)) scale(0.85);
        opacity: 0.6;
        filter: brightness(0.5);
        visibility: visible;
    }
    
    .carousel-nav {
        width: 46px;
        height: 46px;
        font-size: 32px;
    }
    
    .carousel-prev {
        left: 20px;
    }
    
    .carousel-next {
        right: 20px;
    }
}
@media (min-width: 1787px) {
    .carousel-item.prev {
        transform: translateX(calc(-50% - 300px)) scale(0.8);
    }
    .carousel-item.next {
        transform: translateX(calc(-50% + 300px)) scale(0.8);
    }
    .carousel-item.side-prev[data-position="-2"] {
        transform: translateX(calc(-50% - 530px)) scale(0.6);
    }
    .carousel-item.side-next[data-position="2"] {
        transform: translateX(calc(-50% + 530px)) scale(0.6);
    }
}
@media (min-width: 1900px) {
    .carousel-item.prev {
        transform: translateX(calc(-50% - 280px)) scale(0.8);
    }
    .carousel-item.next {
        transform: translateX(calc(-50% + 280px)) scale(0.8);
    }
    .carousel-item.side-prev[data-position="-2"] {
        transform: translateX(calc(-50% - 530px)) scale(0.7);
    }
    .carousel-item.side-next[data-position="2"] {
        transform: translateX(calc(-50% + 530px)) scale(0.7);
    }
}
@media (min-width: 2200px) {
    .carousel-item.prev {
        transform: translateX(calc(-50% - 330px)) scale(0.9);
    }
    .carousel-item.next {
        transform: translateX(calc(-50% + 330px)) scale(0.9);
    }
    .carousel-item.side-prev[data-position="-2"] {
        transform: translateX(calc(-50% - 625px)) scale(0.8);
    }
    .carousel-item.side-next[data-position="2"] {
        transform: translateX(calc(-50% + 625px)) scale(0.8);
    }
}
@media (min-width: 2447px) {
    .carousel-item.prev {
        transform: translateX(calc(-50% - 300px)) scale(0.8);
    }
    .carousel-item.next {
        transform: translateX(calc(-50% + 300px)) scale(0.8);
    }
    .carousel-item.side-prev[data-position="-2"] {
        transform: translateX(calc(-50% - 540px)) scale(0.65);
    }
    .carousel-item.side-next[data-position="2"] {
        transform: translateX(calc(-50% + 540px)) scale(0.65);
    }
    .carousel-item.side-prev[data-position="-3"] {
        transform: translateX(calc(-50% - 745px)) scale(0.55);
    }
    .carousel-item.side-next[data-position="3"] {
        transform: translateX(calc(-50% + 745px)) scale(0.55);
    }
}
@media (min-width: 2600px) {
    .carousel-item.prev {
        transform: translateX(calc(-50% - 320px)) scale(0.8);
    }
    .carousel-item.next {
        transform: translateX(calc(-50% + 320px)) scale(0.8);
    }
    .carousel-item.side-prev[data-position="-2"] {
        transform: translateX(calc(-50% - 580px)) scale(0.7);
    }
    .carousel-item.side-next[data-position="2"] {
        transform: translateX(calc(-50% + 580px)) scale(0.7);
    }
    .carousel-item.side-prev[data-position="-3"] {
        transform: translateX(calc(-50% - 805px)) scale(0.6);
    }
    .carousel-item.side-next[data-position="3"] {
        transform: translateX(calc(-50% + 805px)) scale(0.6);
    }
}
@media (min-width: 2800px) {
    .carousel-item.prev {
        transform: translateX(calc(-50% - 330px)) scale(0.9);
    }
    .carousel-item.next {
        transform: translateX(calc(-50% + 330px)) scale(0.9);
    }
    .carousel-item.side-prev[data-position="-2"] {
        transform: translateX(calc(-50% - 620px)) scale(0.8);
    }
    .carousel-item.side-next[data-position="2"] {
        transform: translateX(calc(-50% + 620px)) scale(0.8);
    }
    .carousel-item.side-prev[data-position="-3"] {
        transform: translateX(calc(-50% - 880px)) scale(0.7);
    }
    .carousel-item.side-next[data-position="3"] {
        transform: translateX(calc(-50% + 880px)) scale(0.7);
    }
}
@media (min-width: 3000px) {
    .carousel-item.prev {
        transform: translateX(calc(-50% - 340px)) scale(0.9);
    }
    .carousel-item.next {
        transform: translateX(calc(-50% + 340px)) scale(0.9);
    }
    .carousel-item.side-prev[data-position="-2"] {
        transform: translateX(calc(-50% - 640px)) scale(0.8);
    }
    .carousel-item.side-next[data-position="2"] {
        transform: translateX(calc(-50% + 640px)) scale(0.8);
    }
    .carousel-item.side-prev[data-position="-3"] {
        transform: translateX(calc(-50% - 900px)) scale(0.7);
    }
    .carousel-item.side-next[data-position="3"] {
        transform: translateX(calc(-50% + 900px)) scale(0.7);
    }
}

.project-gallery {
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    flex-wrap: nowrap !important;
    scroll-behavior: auto !important;
}


.project-gallery::-webkit-scrollbar {
    display: none !important;
}
