/* =========================================
   PORTAFOLIO UI/UX — MOCKUPS IPHONE
   ========================================= */
.portfolio-section {
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(112, 0, 223, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.ux-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto 3.5rem;
}

.ux-pillar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.ux-pillar:hover {
    border-color: rgba(112, 0, 223, 0.35);
    transform: translateY(-3px);
}

.ux-pillar-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: rgba(112, 0, 223, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8b4fe;
}

.ux-pillar h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.ux-pillar p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.portfolio-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    perspective: 2000px;
    padding: 1rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.phone-device {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
}

.phone-device:nth-child(2) {
    margin-top: 2rem;
}

.phone-device:nth-child(3) {
    margin-top: 0.5rem;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    border-radius: 46px;
    background: linear-gradient(145deg, #2a2a35 0%, #0d0d12 100%);
    padding: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 30px 60px -20px rgba(0, 0, 0, 0.7),
        0 0 40px -10px rgba(112, 0, 223, 0.2);
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    background: #030014;
}

.phone-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    z-index: 15;
    pointer-events: none;
    border-radius: 38px;
}

.phone-label {
    text-align: center;
    margin-top: 1.25rem;
}

.phone-label h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.phone-label span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--secondary-glow);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- App: SHK Access --- */
.app-access {
    height: 100%;
    background: linear-gradient(180deg, #0f0a1a 0%, #030014 100%);
    color: #fff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
}

.app-access-header {
    padding: 52px 18px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-access-header .greeting {
    font-size: 10px;
    color: #94a3b8;
}

.app-access-header strong {
    display: block;
    font-size: 16px;
    margin-top: 2px;
}

.app-access-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7000df, #00c6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.app-credential-card {
    margin: 0 16px 14px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(112, 0, 223, 0.45) 0%, rgba(0, 198, 255, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.app-credential-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.app-credential-card .badge {
    display: inline-block;
    background: rgba(0, 210, 106, 0.2);
    color: #00d26a;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.app-credential-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.app-credential-card .role {
    font-size: 10px;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.app-qr {
    width: 72px;
    height: 72px;
    background:
        linear-gradient(90deg, #fff 2px, transparent 2px) 0 0 / 8px 8px,
        linear-gradient(#fff 2px, transparent 2px) 0 0 / 8px 8px;
    opacity: 0.85;
    border-radius: 8px;
    margin-bottom: 8px;
}

.app-credential-card .expires {
    font-size: 9px;
    color: #94a3b8;
}

.app-access-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 14px;
}

.app-stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px;
}

.app-stat-box .num {
    font-size: 18px;
    font-weight: 700;
    color: #00c6ff;
}

.app-stat-box .lbl {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
}

.app-bottom-nav {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    padding: 12px 8px 28px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-nav-item {
    text-align: center;
    font-size: 8px;
    color: #64748b;
}

.app-nav-item.active {
    color: #00c6ff;
}

.app-nav-item .icon {
    width: 22px;
    height: 22px;
    margin: 0 auto 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.app-nav-item.active .icon {
    background: rgba(0, 198, 255, 0.2);
}

/* --- App: SHK Vision --- */
.app-vision {
    height: 100%;
    background: #050510;
    color: #fff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
}

.app-vision-top {
    padding: 48px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-vision-top h3 {
    font-size: 15px;
}

.app-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: #ef4444;
    font-weight: 600;
}

.app-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.app-main-feed {
    margin: 0 16px 12px;
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d1117 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.app-main-feed::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 198, 255, 0.03) 2px, rgba(0, 198, 255, 0.03) 4px);
}

.app-feed-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
}

.app-cam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px 12px;
}

.app-cam-thumb {
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 8px;
    font-size: 9px;
    color: #94a3b8;
}

.app-cam-thumb.active {
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.15);
}

.app-alert-banner {
    margin: 0 16px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 9px;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- App: SHK Pulse (IA) --- */
.app-pulse {
    height: 100%;
    background: linear-gradient(180deg, #0a0614 0%, #030014 100%);
    color: #fff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
}

.app-pulse-header {
    padding: 50px 16px 14px;
}

.app-pulse-header h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.app-pulse-header p {
    font-size: 10px;
    color: #94a3b8;
}

.app-pulse-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 14px;
}

.app-pulse-stat {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-pulse-stat.purple {
    background: linear-gradient(135deg, rgba(112, 0, 223, 0.25), transparent);
    border-color: rgba(112, 0, 223, 0.3);
}

.app-pulse-stat .val {
    font-size: 20px;
    font-weight: 700;
}

.app-pulse-stat .val span {
    font-size: 11px;
    color: #00d26a;
}

.app-pulse-stat .lbl {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
}

.app-pulse-chat {
    margin: 0 16px;
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-chat-bubble {
    max-width: 85%;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 9px;
    line-height: 1.45;
}

.app-chat-bubble.bot {
    background: rgba(255, 255, 255, 0.07);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.app-chat-bubble.user {
    background: linear-gradient(135deg, rgba(112, 0, 223, 0.5), rgba(91, 33, 182, 0.4));
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.app-pulse-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px 28px;
}

.app-pulse-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(112, 0, 223, 0.2);
    border: 1px solid rgba(112, 0, 223, 0.35);
    color: #d8b4fe;
}

.ux-design-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 3rem auto 2rem;
}

.ux-design-step {
    text-align: center;
    position: relative;
}

.ux-design-step-num {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(112, 0, 223, 0.2);
    border: 1px solid rgba(112, 0, 223, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #d8b4fe;
}

.ux-design-step h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.ux-design-step p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

.portfolio-cta p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.portfolio-link-secondary {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-glow);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: opacity 0.2s;
}

.portfolio-link-secondary:hover {
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .ux-pillars {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .portfolio-showcase {
        gap: 2rem;
    }

    .phone-device:nth-child(2),
    .phone-device:nth-child(3) {
        margin-top: 0;
    }

    .ux-design-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .portfolio-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--text-muted);
        letter-spacing: 1px;
    }

    .portfolio-showcase {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        gap: 1.5rem;
        padding: 0.5rem 1.25rem 1.5rem;
        margin: 0 -1.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio-showcase::-webkit-scrollbar {
        display: none;
    }

    .phone-device {
        scroll-snap-align: center;
        width: 260px;
    }

    .phone-frame {
        width: 260px;
        height: 540px;
    }

    .ux-design-process {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
}
