/* ==========================================================================
   Portfolio Details (Project Showcase Landing Page) - UP Agenzia Web
   ========================================================================== */

.project-showcase-page {
    background: #ffffff;
    padding-bottom: 90px;
}

/* Hero Section */
.project-hero-section {
    padding: 70px 0 50px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #edf2f7;
    position: relative;
}

.project-hero-heading {
    max-width: 900px;
    margin: 0 auto 35px;
    text-align: center;
}

.project-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.25);
    border-radius: 50px;
    color: #ff5722;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.project-hero-heading h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    color: #120a21;
    margin-bottom: 16px;
}

.project-hero-heading p {
    font-size: 18px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 auto 25px;
}

/* Quick Meta Bar */
.project-meta-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 30px;
    box-shadow: 0 10px 30px rgba(18, 10, 33, 0.04);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 45px;
}

.project-meta-item {
    text-align: left;
}

.project-meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.project-meta-value {
    font-size: 15px;
    font-weight: 800;
    color: #120a21;
}

/* Device Switcher Controls */
.device-switcher-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.device-switcher-nav {
    display: inline-flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.device-switch-btn {
    padding: 10px 22px;
    border-radius: 40px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.device-switch-btn:hover {
    color: #ff5722;
}

.device-switch-btn.active {
    background: #120a21;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(18, 10, 33, 0.15);
}

/* Device Simulator Frames */
.device-preview-container {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

/* Browser / Desktop Mockup */
.browser-mockup-frame {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(18, 10, 33, 0.12);
    transition: all 0.4s ease;
}

.browser-header-bar {
    background: #f1f5f9;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.browser-dots .dot-red { background: #ef4444; }
.browser-dots .dot-yellow { background: #f59e0b; }
.browser-dots .dot-green { background: #10b981; }

.browser-url-input {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    max-width: 500px;
}

.browser-body {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.browser-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* Smartphone Mockup Frame */
.smartphone-mockup-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.smartphone-frame {
    width: 340px;
    background: #120a21;
    border: 10px solid #1e1b2e;
    border-radius: 46px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(18, 10, 33, 0.25);
    position: relative;
    transition: all 0.4s ease;
}

.smartphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #120a21;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smartphone-camera {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000000;
}

.smartphone-screen {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.smartphone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Side-by-side View */
.sidebyside-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 30px;
}

.sidebyside-desktop {
    flex: 1;
    max-width: 780px;
}

.sidebyside-mobile {
    width: 260px;
    margin-left: -70px;
    z-index: 4;
    box-shadow: -15px 20px 50px rgba(0, 0, 0, 0.3);
}

/* Showcase Section */
.project-content-section {
    padding: 85px 0 70px;
    background: #ffffff;
}

/* Dual Card: Challenge vs Solution */
.challenge-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.cs-card {
    border-radius: 20px;
    padding: 38px 32px;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.cs-card.challenge {
    background: #fff8f5;
    border-color: #ffd8cc;
}

.cs-card.solution {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cs-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.cs-card.challenge .cs-card-icon {
    background: #ffe4db;
    color: #ff5722;
}

.cs-card.solution .cs-card-icon {
    background: #dcfce7;
    color: #15803d;
}

.cs-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #120a21;
    margin-bottom: 14px;
}

.cs-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Results / Metrics Strip */
.project-kpi-section {
    background: #120a21;
    border-radius: 24px;
    padding: 50px 35px;
    color: #ffffff;
    margin-bottom: 70px;
    box-shadow: 0 20px 50px rgba(18, 10, 33, 0.15);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.kpi-item-num {
    font-size: 46px;
    font-weight: 800;
    color: #ff5722;
    line-height: 1;
    margin-bottom: 8px;
}

.kpi-item-label {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vitrine Features */
.vitrine-features-section {
    margin-bottom: 70px;
}

.vitrine-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.vitrine-feature-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vitrine-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.vf-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    color: #ff5722;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
}

.vitrine-feature-box h4 {
    font-size: 19px;
    font-weight: 700;
    color: #120a21;
    margin-bottom: 10px;
}

.vitrine-feature-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Tech Stack Section */
.tech-stack-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 30px;
    margin-bottom: 70px;
}

.tech-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tech-badge-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tech-badge-item i {
    color: #ff5722;
}

/* Client Testimonial Box */
.project-testimonial-box {
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    border: 1px solid #ffede6;
    border-radius: 24px;
    padding: 45px 40px;
    margin-bottom: 70px;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.05);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 16px;
}

.project-testimonial-box blockquote {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    color: #120a21;
    margin: 0 0 20px;
    font-style: italic;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ff5722;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.author-name-title h5 {
    font-size: 16px;
    font-weight: 800;
    color: #120a21;
    margin: 0;
}

.author-name-title span {
    font-size: 13px;
    color: #64748b;
}

/* Related Projects */
.related-projects-section {
    padding-top: 20px;
}

/* Bottom CTA Banner */
.project-cta-banner {
    background: linear-gradient(135deg, #120a21 0%, #1e123a 100%);
    border-radius: 24px;
    padding: 60px 45px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(18, 10, 33, 0.2);
    margin-top: 50px;
}

.project-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.25) 0%, rgba(255, 87, 34, 0) 70%);
    pointer-events: none;
}

.project-cta-banner h3 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-cta-banner p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 620px;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .project-hero-heading h1 {
        font-size: 30px;
    }
    .sidebyside-container {
        flex-direction: column;
    }
    .sidebyside-mobile {
        margin-left: 0;
        margin-top: -30px;
    }
    .project-cta-banner {
        padding: 40px 25px;
        text-align: center;
    }
    .project-cta-banner .cta-actions {
        margin-top: 25px;
        justify-content: center;
    }
    .project-cta-banner p {
        margin: 0 auto;
    }
}
