/* ── Page container ────────────────── */
.projects-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 56px 32px;
}

/* ── Back link ─────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.25s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

/* ── Project showcase list ─────────── */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ── Showcase card ─────────────────── */
.showcase-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase-card:not(:last-of-type) {
    margin-bottom: 12px;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ── Hero image area ───────────────── */
.showcase-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pr-hero-dark {
    background: radial-gradient(circle at 50% 40%, #2f7c86 0%, #1f4d57 50%, #0b252b 100%);
}

.pr-hero-light {
    background: radial-gradient(circle at 50% 40%, #2f7c86 0%, #1f4d57 50%, #0b252b 100%);
}

/* ── Custom Carousel Styles ───────── */
.custom-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    padding: 0 60px;
}

.carousel-track {
    position: relative;
    width: 700px;
    height: 400px;
    perspective: 1000px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide:nth-child(1) {
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
}

.carousel-slide:nth-child(2) {
    z-index: 2;
    transform: translateX(40px) scale(0.95);
    opacity: 0.7;
}

.carousel-slide:nth-child(3) {
    z-index: 1;
    transform: translateX(80px) scale(0.9);
    opacity: 0.4;
}

.carousel-slide:nth-child(4),
.carousel-slide:nth-child(5),
.carousel-slide:nth-child(6) {
    opacity: 0;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.carousel-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.left-btn {
    left: 10px;
}

.right-btn {
    right: 10px;
}

/* ── Hero screens container ────────── */
.hero-screens {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    z-index: 1;
    padding: 20px;
    width: 100%;
    height: 100%;
}

/* ── Phone mockups ─────────────────── */
.hero-phone {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    font-family: var(--font);
}

.hero-phone.s-main {
    width: 200px;
    min-height: 280px;
    z-index: 3;
    align-self: center;
}

.hero-phone.s-chat {
    width: 170px;
    min-height: 230px;
    z-index: 2;
    align-self: center;
}

.hero-phone.s-keyboard {
    width: 180px;
    min-height: 260px;
    z-index: 2;
    align-self: center;
}

/* ── Phone internals — Main bot ────── */
.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 4px;
}

.phone-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E8F2FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-close {
    font-size: 1rem;
    color: #999;
    cursor: default;
    line-height: 1;
}

.phone-body {
    padding: 6px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-greeting {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.phone-subtext {
    font-size: 0.55rem;
    color: #666;
    font-weight: 500;
}

.phone-desc {
    font-size: 0.45rem;
    color: #999;
    line-height: 1.5;
    margin-top: 4px;
}

.phone-desc a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.phone-input-area {
    margin-top: 6px;
    padding: 6px 8px;
    background: #F4F4F5;
    border-radius: 8px;
    font-size: 0.5rem;
    color: #444;
    font-weight: 500;
}

.phone-chips {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.phone-chip {
    padding: 4px 6px;
    background: #F0F0F0;
    border-radius: 6px;
    font-size: 0.38rem;
    color: #555;
    line-height: 1.3;
    flex: 1;
}

.phone-chip.accent {
    background: var(--accent-blue);
    color: #fff;
}

.phone-stats {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.phone-stat {
    font-size: 0.4rem;
    color: #777;
    line-height: 1.4;
}

.phone-stat strong {
    font-size: 0.55rem;
    color: #333;
    font-weight: 700;
}

.phone-cta {
    margin-top: 8px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 0;
    font-size: 0.55rem;
    font-weight: 600;
    cursor: default;
    width: 100%;
    transition: background 0.2s;
}

/* ── Chat window phone ─────────────── */
.chat-header {
    background: var(--accent-blue);
    color: #fff;
    padding: 8px 10px 6px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header .chat-title {
    font-size: 0.65rem;
    font-weight: 700;
}

.chat-header small {
    font-size: 0.4rem;
    opacity: 0.8;
}

.chat-header .phone-close {
    position: absolute;
    top: 6px;
    right: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.chat-body {
    padding: 8px 8px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-msg {
    font-size: 0.4rem;
    line-height: 1.5;
    padding: 6px 8px;
    border-radius: 10px;
    max-width: 92%;
}

.chat-msg.bot {
    background: #F0F4FF;
    color: #333;
    align-self: flex-start;
}

.chat-msg.user-msg {
    background: #E8E8E8;
    color: #333;
    align-self: flex-end;
}

.chat-label {
    font-size: 0.35rem;
    color: #aaa;
    margin-top: 2px;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    margin: 4px 6px;
    background: #333;
    border-radius: 14px;
    font-size: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
}

.chat-close-pill {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.chat-bottom {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    gap: 4px;
    border-top: 1px solid #eee;
}

.chat-bottom input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.42rem;
    background: transparent;
    color: #aaa;
    font-family: var(--font);
}

.chat-send-icons {
    display: flex;
    gap: 4px;
    font-size: 0.55rem;
    color: #999;
}

.mic-icon {
    font-size: 0.65rem;
}

/* ── Chat suggestions & keyboard ───── */
.chat-suggestions {
    display: flex;
    gap: 4px;
    padding: 4px 6px;
}

.chat-suggestions span {
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.35rem;
    color: #888;
}

.chat-suggestions span.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.chat-keyboard {
    background: #E8E8EA;
    padding: 4px 3px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-radius: 0 0 14px 14px;
}

.kb-row {
    display: flex;
    justify-content: center;
    gap: 3px;
    font-size: 0.4rem;
    color: #333;
    font-weight: 500;
    letter-spacing: 3px;
}

.kb-row.space-row {
    justify-content: center;
}

.kb-space {
    width: 60%;
    height: 10px;
    background: #fff;
    border-radius: 4px;
}

/* ── Buyback layout ────────────────── */
.buyback-layout {
    gap: 20px;
}

.buyback-phone {
    width: 140px;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(6px);
}

.buyback-phone.left-phone {
    transform: translateY(10px);
}

.buyback-phone.right-phone {
    transform: translateY(-10px);
}

.buyback-screen-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.bb-header-bar {
    width: 50%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.bb-circle-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.bb-circle-outline {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.bb-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.bb-line.w60 {
    width: 60%;
}

.bb-line.w80 {
    width: 80%;
}

.bb-line.w40 {
    width: 40%;
}

.bb-btn {
    margin-top: 4px;
    padding: 5px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.bb-price-block {
    text-align: center;
}

.bb-price-label {
    font-size: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.bb-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Showcase info bar ─────────────── */
.showcase-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(17, 26, 31, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.showcase-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1.4;
    flex: 1;
}

.showcase-arrow {
    flex-shrink: 0;
    color: #aaa;
    transition: transform 0.25s ease, color 0.25s ease;
}

.showcase-card:hover .showcase-arrow {
    transform: translateX(4px);
    color: #fff;
}

/* ── Let's Talk Section ── */
.lets-talk-section {
    padding: 12px 0 12px;
}

.lets-talk-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.lets-talk-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

/* ── Contact info column ───────────── */
.talk-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.talk-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.talk-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.talk-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.talk-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    text-decoration: none;
}

.talk-link:hover {
    color: var(--accent-blue);
}

/* ── Contact form ──────────────────── */
.talk-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.talk-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.talk-form input,
.talk-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.talk-form input::placeholder,
.talk-form textarea::placeholder {
    color: var(--text-muted);
}

.talk-form input:focus,
.talk-form textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.talk-form textarea {
    resize: vertical;
    min-height: 100px;
}

.talk-submit {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.talk-submit:hover {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

/* ── Footer ────────────────────────── */
.projects-footer {
    text-align: center;
    padding: 32px 0 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
}

.projects-footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Responsive ────────────────────────── */
@media (max-width: 700px) {
    .projects-page {
        padding: 24px 20px 0;
    }

    .hero-screens {
        gap: 8px;
        padding: 10px;
    }

    .hero-phone.s-main {
        width: 140px;
        min-height: 200px;
    }

    .hero-phone.s-chat {
        width: 120px;
        min-height: 160px;
    }

    .hero-phone.s-keyboard {
        display: none;
    }

    .buyback-phone {
        width: 110px;
        min-height: 160px;
    }

    .lets-talk-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .showcase-title {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .hero-phone.s-chat {
        display: none;
    }

    .hero-phone.s-main {
        width: 180px;
    }
}