/* ============================================
   DESIGN PORTFOLIO SECTION
   ============================================ */

.design-portfolio {
    padding: 15vh 5vw;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.design-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.design-header h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 100;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8b0000 0%, #ff2c2c 50%, #7a0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.design-header p {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    opacity: 0.6;
    text-transform: uppercase;
}

/* ============================================
   CARD STACK CONTAINER
   ============================================ */

.design-showcase {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.card-stack-container {
    position: relative;
    height: 700px;
    perspective: 2000px;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ============================================
   DESIGN CARDS
   ============================================ */

.design-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90%);
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: none;
}

/* Card States */
.design-card.active {
    z-index: 5;
    transform: translateX(-50%) scale(1) rotateY(0deg);
    opacity: 1;
}

.design-card.prev {
    z-index: 4;
    transform: translateX(-150%) scale(0.8) rotateY(-15deg);
    opacity: 0.3;
    filter: blur(5px);
}

.design-card.next {
    z-index: 4;
    transform: translateX(50%) scale(0.8) rotateY(15deg);
    opacity: 0.3;
    filter: blur(5px);
}

.design-card.hidden-left {
    z-index: 3;
    transform: translateX(-250%) scale(0.6) rotateY(-25deg);
    opacity: 0;
}

.design-card.hidden-right {
    z-index: 3;
    transform: translateX(150%) scale(0.6) rotateY(25deg);
    opacity: 0;
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.design-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 2rem;
    pointer-events: none;
}

.card-number {
    font-size: 8rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    transition: all 0.5s ease;
}

.design-card:hover .card-number {
    color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card-content > * {
    pointer-events: auto;
}

.design-card:hover .card-content {
    transform: translateY(0);
}

.card-content h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #fff;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-tags span {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card-tags span:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */

.card-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 20;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.nav-dot:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

/* .nav-dot.active {
    background: #fff;
    transform: scale(1.2);
} */

.nav-dot.active::before {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
}

/* ============================================
   FLOATING SHAPES
   ============================================ */

.floating-shapes {
    display: none;
}

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

@media (max-width: 1024px) {
    .design-portfolio {
        padding: 12vh 5vw;
    }

    .card-stack-container {
        height: 600px;
    }

    .design-card {
        width: min(700px, 95%);
        height: 450px;
    }
}

@media (max-width: 768px) {
    .design-portfolio {
        padding: 8vh 5vw;
        overflow: hidden;
    }

    .design-header {
        margin-bottom: 2rem;
    }

    .design-header h2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .design-header p {
        font-size: 0.875rem;
    }

    /* Scale the entire card stack container on mobile */
    .card-stack-container {
        height: 500px;
        transform-origin: top center;
        transform: scale(0.85);
        margin: 0 auto;
    }

    .design-card {
        width: min(900px, 90%);
        height: 500px;
    }

    /* Hide description on mobile */
    .card-content p {
        display: none;
    }

    /* Keep prev/next cards visible but scaled */
    .design-card.prev,
    .design-card.next {
        opacity: 0.2;
        pointer-events: none;
        filter: blur(3px);
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    .card-number {
        font-size: 4rem;
    }

    .card-navigation {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    /* Extra small screens - scale down more */
    .card-stack-container {
        height: 450px;
        transform: scale(0.7);
    }

    .design-header h2 {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
    }
}
