/* Vertical Portfolio Carousel Styles */
.vertical-portfolio-carousel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #1C1A1E;
    padding: 110px 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

/* Section Title */
.section-title-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.section-title span {
    width: fit-content;
    font-size: 16px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 16px;
    color: #aaa;
    margin-top: 10px;
}

/* Cards Container - 3D Perspective */
.vp-cards-container {
    position: relative;
    height: 600px;
    margin: 0 auto;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Portfolio Card Base */
.vp-carousel-card {
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, opacity, filter;
}

.vp-card-inner {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.vp-carousel-card:hover .vp-card-inner {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Card Image */
.vp-card-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 24px;
}

.vp-card-image img {
    transition: transform 0.6s ease;
}

.vp-carousel-card:hover .vp-card-image img {
    transform: scale(1.05);
}

/* Card Info */
.vp-card-info {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    gap: 20px;
}

.vp-info-content {
    flex: 1;
    min-width: 0;
}

.vp-card-info .category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8b8b8b;
    margin-bottom: 8px;
}

.vp-card-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.vp-carousel-card:hover .vp-card-info h3 {
    color: #8b8b8b;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    max-width: 40%;
}

.tech-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #999;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.vp-carousel-card:hover .tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #bbb;
}

.view-project {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    /* Removed backdrop-filter to prevent blur issues */
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform, background-color;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 2;
}

.view-project svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.vp-carousel-card:hover .view-project {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    /* Use translateZ for GPU acceleration and slight translateY for lift effect */
    transform: translateZ(0) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vp-carousel-card:hover .view-project svg {
    transform: translate(2px, -2px);
}

/* 3D Card Positions */
.vp-carousel-card.active {
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    opacity: 1;
    z-index: 5;
}

.vp-carousel-card.prev {
    transform: translate(-50%, -50%) translateY(-180px) translateZ(-200px) rotateX(15deg) scale(0.8);
    opacity: 0.3;
    z-index: 3;
    pointer-events: none;
    filter: brightness(0.4);
}

.vp-carousel-card.next {
    transform: translate(-50%, -50%) translateY(180px) translateZ(-200px) rotateX(-15deg) scale(0.8);
    opacity: 0.3;
    z-index: 3;
    pointer-events: none;
    filter: brightness(0.4);
}

.vp-carousel-card.far-prev {
    transform: translate(-50%, -50%) translateY(-300px) translateZ(-400px) rotateX(20deg) scale(0.7);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    filter: brightness(0.3);
}

.vp-carousel-card.far-next {
    transform: translate(-50%, -50%) translateY(300px) translateZ(-400px) rotateX(-20deg) scale(0.7);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    filter: brightness(0.3);
}

.vp-carousel-card.hidden {
    transform: translate(-50%, -50%) translateY(400px) translateZ(-600px) scale(0.6);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dots .dot:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background: #6366f1;
    width: 32px;
    border-radius: 6px;
}

/* View All Button */
.vp-view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.vp-view-all-wrapper .primary-btn3 {
    background-color: #262527;
    padding: 20px 35px;
    color: var(--white-color);
    border-radius: 100px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.vp-view-all-wrapper .primary-btn3:hover {
    background-color: #363538;
}

.vp-view-all-wrapper .primary-btn3 svg {
    stroke: var(--white-color);
    transition: transform 0.3s ease;
}

.vp-view-all-wrapper .primary-btn3:hover svg {
    transform: translate(2px, -2px);
}

.vp-view-all-wrapper .primary-btn3 span {
    display: none;
}

/* Removed scroll hint - no longer needed */

/* Dark Mode Support - Already dark by default */
body.dark .vertical-portfolio-carousel {
    background-color: #1C1A1E;
}

body.dark .section-title h2 {
    color: #fff;
}

body.dark .section-title .sub-title {
    color: #aaa;
}

/* Dark mode styles - card backgrounds removed for new design */

body.dark .vp-card-info h3 {
    color: #fff;
}

body.dark .tech-tag {
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .view-project {
    color: #fff;
}

body.dark .carousel-dots .dot {
    background: rgba(255, 255, 255, 0.2);
}

body.dark .carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Scroll hint removed */

/* Responsive Design */
@media (max-width: 1024px) {
    .vp-cards-container {
        max-width: 700px;
    }

    .vp-carousel-card {
        max-width: 650px;
    }

    .vp-card-image {
        height: 380px;
    }
}

@media (max-width: 1199px) {
    .vertical-portfolio-carousel {
        padding: 90px 0;
    }
}

@media (max-width: 768px) {
    .vertical-portfolio-carousel {
        min-height: 80vh;
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 36px;
    }

    .vp-cards-container {
        height: 500px;
        max-width: 100%;
    }

    .vp-carousel-card {
        max-width: 100%;
    }

    .vp-card-image {
        height: 300px;
    }

    .vp-card-info {
        padding: 5px;
    }

    .vp-card-info h3 {
        font-size: 20px;
    }

    .vp-carousel-card .tech-tags,
    .tech-tags {
        /* Hide tech tags on mobile for cleaner interface */
        display: none !important;
    }

    /* .tech-tag styles removed - tech tags are hidden on mobile */

    .vp-card-info {
        flex-direction: column;
        gap: 10px;
    }

    .view-project {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .vp-carousel-card.prev {
        transform: translate(-50%, -50%) translateY(-140px) translateZ(-150px) rotateX(10deg) scale(0.85);
        opacity: 0.3;
        filter: brightness(0.4);
    }

    .vp-carousel-card.next {
        transform: translate(-50%, -50%) translateY(140px) translateZ(-150px) rotateX(-10deg) scale(0.85);
        opacity: 0.3;
        filter: brightness(0.4);
    }

    .carousel-dots {
        margin-top: 40px;
    }

    .scroll-hint {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 28px;
    }

    .vp-cards-container {
        height: 450px;
    }

    .vp-card-image {
        height: 250px;
    }

    .vp-card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Ensure tech tags are hidden on small mobile screens */
    .vp-carousel-card .tech-tags,
    .tech-tags {
        display: none !important;
    }

    .view-project {
        align-self: flex-end;
    }
}