/* Projects Carousel Styles - ZASTOSOWANO OBECNY STYL */
.projects-carousel {
    margin: auto auto;
    padding: 80px 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    z-index: 2;
    justify-content: center;
}

/* Nagłówek karuzeli - STYL Z ABOUT */
.carousel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.carousel-header h1 {
    font-size: 3.5rem;
    color: white;
    margin: 0;
    font-weight: 600;
    z-index: 1;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: max-content;
    margin-top: 20px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

/* Główna zawartość karuzeli */
.carousel-track {
    position: relative;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(0, 0, 0, 1));
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.6);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    height: auto;
    padding: 2rem;
}

.project-content-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.98);
    animation: subtle-pulse 3s ease-in-out infinite;
    transition: all 0.1s ease-in-out;
    pointer-events: none;
}

.project-content-wrapper::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 10px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.98);
    animation: subtle-pulse 1.5s ease-in-out infinite;
    transition: all 0.1s ease-in-out;
    pointer-events: none;
}

@keyframes subtle-pulse {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    10% {
        opacity: 0.15;
    }
    90% {
        transform: scale(3);
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* Sekcja obrazka */
.project-image-section {
    position: relative;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    transition: transform 0.2s ease-in-out !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    backdrop-filter: unset !important;
    width: 100% !important;
    cursor: crosshair !important;
    margin: auto;
}

.project-image {
    width: 100%;
    object-fit: scale-down;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: all 0.5s ease-in-out;
    aspect-ratio: 16 / 9;
}

.project-image-section:hover {
    transform: scale(1.02);
    border-radius: 12px;
}

.project-image-section:hover .project-badge {
    opacity: 0;
}

.project-badge {
    position: absolute;
    top: 1.8rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(255, 115, 0, 0.9) 0%, rgba(255, 140, 0, 0.8) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.35s ease-in-out;
    opacity: 1;
}

/* Sekcja informacji */
.project-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-date {
    font-weight: 500;
}

.project-technologies {
    font-style: italic;
}

.project-title {
    font-size: 2.2rem;
    margin: 0;
    color: white;
    line-height: 1.2;
    font-weight: 600;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: justify;
}

.project-features {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid rgba(255, 115, 0, 0.8);
    backdrop-filter: blur(10px);
}

.project-features h4 {
    margin: 0 0 1rem 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-features ul {
    margin: 0;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-features li {
    line-height: 1.5;
    text-align: start;
}

.project-actions {
    margin-top: 10px;
}

.project-details-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: max-content;
    backdrop-filter: blur(10px);
}

.project-details-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Kropki nawigacyjne - STYL Z PAGINATION */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.dot.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* CTA sekcja */
.all-projects-cta {
    position: relative;
    text-align: center;
    width: max-content;
    margin: 15px auto;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.all-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.all-projects-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    gap: 1rem;
}

/* Wiadomość o braku projektów */
.no-projects-message {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.no-projects-message h2 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1493px) {
    .project-content-wrapper {
        padding: 1.5rem;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .projects-carousel {
        padding: 15px 1rem;
    }

    .project-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    /* Projects Carousel Mobile */
    .project-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .carousel-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .carousel-header h1 {
        font-size: 2rem;
    }
}

.project-image-topbar {
    background-color: white;
    width: 100%;
    height: 18px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 12px;
    padding-right: 25%;
    gap: 25%
}

.project-window-controls  {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 18px;
}

.project-window-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.project-window-searchbar {
    background-color: rgb(235, 235, 235);
    height: 7px;
    width: 100%;
    border-radius: 8px;
}

.project-image-topbar {
    pointer-events: none;
}

.project-window-controls,
.project-window-searchbar {
    pointer-events: none;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out, transform 1.2s ease-in-out;
    z-index: 1;
    opacity: 0;
    transform: scale(1.05);
    filter: brightness(0.3) blur(8px);
}

.carousel-background.loaded {
    opacity: 1;
    transform: scale(1);
}

.carousel-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

@media (max-width: 1919px) {
    .projects-carousel {
        padding: 80px 100px;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1rem !important;
    }

    .project-features h4 {
        font-size: 1rem;
    }

    .project-features li {
        font-size: 0.9rem;
    }

    .project-details-btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.6rem;
    }

    .all-projects-btn {
        font-size: 0.95rem;
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 1440px) {
    .carousel-header {
        margin-bottom: 1rem;
    }

    .carousel-header h1 {
        font-size: 2.5rem;
    }

    .project-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }

    .projects-carousel {
        padding: 80px 65px;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .project-description {
        font-size: 0.9rem !important;
    }

    .project-features h4 {
        font-size: 0.85rem;
    }

    .project-features li {
        font-size: 0.75rem;
    }

    .project-details-btn {
        font-size: 0.75rem;
        padding: 0.7rem 1.3rem;
    }

    .all-projects-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.7rem;
    }

    .carousel-counter {
        font-size: 0.7rem;
    }
}

@media (max-width: 1024px) {
    .project-content-wrapper {
        padding: 0.7rem 1rem;
    }

    .carousel-header h1 {
        font-size: 2.2rem;
    }

    .projects-carousel {
        padding: 80px 0;
    }

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

    .project-description {
        font-size: 0.7rem !important;
    }

    .project-features h4 {
        font-size: 0.7rem;
    }

    .project-features {
        padding: 0.6rem;
    }

    .project-features ul {
        padding-left: 0.6rem;
    }

    .project-features li {
        font-size: 0.65rem;
    }

    .project-details-btn {
        font-size: 0.65rem;
        padding: 0.6rem 1.1rem;
    }

    .all-projects-btn {
        font-size: 0.75rem;
        padding: 0.6rem 1.3rem;
    }

    .project-info-section {
        gap: 0.5rem;
    }

    .project-actions {
        margin-top: 0;
    }

    .carousel-counter {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .carousel-header h1 {
        font-size: 1.5rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-meta {
        justify-content: space-between;
        font-size: 0.7rem;
    }

    .project-features {
        padding: 0.5rem;
    }

    .dot {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .project-content-wrapper {
        gap: 0.5rem;
    }

    .project-features li {
        font-size: 0.65rem;
    }

    .project-features h4 {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .project-description {
        font-size: 0.7rem !important;
    }

    .project-info-section {
        gap: 0.6rem;
    }

    .project-actions {
        margin-top: 0;
    }

    .carousel-counter {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .carousel-header h1 {
        font-size: 1.2rem;
    }

    .project-title {
        font-size: 0.8rem;
    }

    .project-badge {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
        right: 0.3rem;
        top: 0.8rem;
    }

    .project-meta {
        justify-content: space-between;
        font-size: 0.6rem;
    }

    .project-features {
        padding: 0.5rem;
    }

    .dot {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .project-image-topbar {
        height: 9px;
    }

    .project-window-controls {
        height: 9px;
        gap: 2px;
    }

    .project-window-dot {
        width: 5px;
        height: 5px;
    }

    .project-window-searchbar {
        height: 3px;
    }

    .project-content-wrapper {
        gap: 0.5rem;
    }

    .project-features li {
        font-size: 0.55rem;
    }

    .project-features h4 {
        font-size: 0.6rem;
        margin-bottom: 5px;
    }

    .project-description {
        font-size: 0.6rem !important;
    }

    .project-info-section {
        gap: 0.6rem;
    }

    .project-actions {
        margin-top: 0;
    }

    .carousel-counter {
        font-size: 0.6rem;
    }

    .all-projects-cta {
        margin: 10px auto;
    }

    .carousel-controls {
        margin-top: 10px;
        gap: 0.5rem;
    }

    .carousel-btn {
        height: 32px;
        width: 32px;
    }
}