/* ===== SUCCESS SECTION ===== */

.success-section {
    width: 100%;
    background: linear-gradient(180deg, transparent, rgba(180, 75, 255, 0.02), transparent);
    padding: 0;
    margin: 0;
}

.success-header {
    text-align: center;
    padding: 60px 5% 50px 5%;
}

.success-header .section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    margin: 0 auto 12px;
    color: #FFFFFF;
}

.success-header .section-description {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    margin: 0 auto;
    max-width: 85%;
    color: rgba(255, 255, 255, 0.75);
}

.success-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 5%;
    margin-bottom: 60px;
}

.success-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.success-card:hover {
    border-color: rgba(180, 75, 255, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(180, 75, 255, 0.4);
}

.card-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.client-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.client-logo {
    width: 120px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.client-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.client-industry {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #B44BFF;
    font-weight: 600;
    margin: 0;
}

.card-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.card-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(180, 75, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.metric-value {
    font-size: 0.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #B44BFF, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.metric-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: rgba(229, 229, 229, 0.6);
    margin: 0;
}

.card-right {
    display: flex;
    justify-content: center;
}

.view-project-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(180, 75, 255, 0.1);
    border: 2px solid rgba(180, 75, 255, 0.3);
    border-radius: 12px;
    color: #FF69B4;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.view-project-badge:hover {
    background: rgba(180, 75, 255, 0.2);
    border-color: rgba(180, 75, 255, 0.6);
    transform: translateY(-4px);
}

.view-project-badge i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-project-badge:hover i {
    transform: translateX(4px);
}

/* ===== PORTFOLIO MODAL ===== */

.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden;
}

.portfolio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    z-index: 9999;
}

.modal-wrapper {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(180, 75, 255, 0.2);
    border: 2px solid rgba(180, 75, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10005;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close:hover {
    background: rgba(180, 75, 255, 0.4);
    border-color: rgba(180, 75, 255, 0.9);
    transform: rotate(90deg) scale(1.1);
}

/* ===== CAROUSEL ===== */

.modal-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(10, 5, 20, 0.9));
    border: 2px solid rgba(180, 75, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(180, 75, 255, 0.2);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.slide-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* ===== CAROUSEL NAVIGATION ===== */

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10002;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    background: rgba(180, 75, 255, 0.2);
    border: 2px solid rgba(180, 75, 255, 0.5);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
}

.carousel-btn:hover {
    background: rgba(180, 75, 255, 0.4);
    border-color: rgba(180, 75, 255, 0.8);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.slide-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(180, 75, 255, 0.3);
}

.dot.active {
    background: #FF69B4;
    border-color: #FF69B4;
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: rgba(255, 105, 180, 0.8);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .success-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .success-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .success-card {
        padding: 20px;
    }

    .modal-wrapper {
        width: 95%;
        height: 70vh;
        max-height: 500px;
    }

    .modal-close {
        top: -45px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .carousel-slide {
        padding: 30px 20px;
    }

    .carousel-nav {
        bottom: 15px;
        gap: 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .success-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 3%;
    }

    .success-card {
        padding: 16px;
    }

    .client-logo {
        width: 100px;
    }

    .card-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-wrapper {
        width: 98%;
        height: 65vh;
        max-height: 450px;
    }

    .modal-close {
        top: -40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-slide {
        padding: 20px 10px;
    }

    .carousel-nav {
        bottom: 10px;
        gap: 10px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 18px;
    }
}
