/* ==========================================================================
   PORTFOLIO PAGE DEDICATED STYLESHEET (Cache-Safe & Standalone)
   ========================================================================== */
.portfolio-hero-live {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #0f172a;
    padding: 135px 0 70px;
    isolation: isolate;
}

.hero-multicolor-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.28;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.blob-indigo { width: 520px; height: 520px; background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%); top: -15%; left: -5%; animation: floatBlob1 14s ease-in-out infinite alternate; }
.blob-pink { width: 460px; height: 460px; background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%); top: 10%; right: -8%; animation: floatBlob2 16s ease-in-out infinite alternate; }
.blob-cyan { width: 440px; height: 440px; background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%); bottom: -10%; left: 25%; animation: floatBlob3 18s ease-in-out infinite alternate; }
.blob-purple { width: 400px; height: 400px; background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%); top: 35%; right: 20%; animation: floatBlob4 15s ease-in-out infinite alternate; }
.blob-amber { width: 340px; height: 340px; background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0) 70%); top: -5%; left: 40%; animation: floatBlob5 13s ease-in-out infinite alternate; opacity: 0.22; }

.mesh-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.55;
    pointer-events: none;
}

@keyframes floatBlob1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 45px) scale(1.12); } }
@keyframes floatBlob2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-50px, 60px) scale(0.92); } }
@keyframes floatBlob3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(45px, -50px) scale(1.15); } }
@keyframes floatBlob4 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-40px, -40px) scale(1.08); } }
@keyframes floatBlob5 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, -30px) scale(0.95); } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes pulseBlue { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { box-shadow: 0 0 0 7px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid #e0e7ff;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.1);
    color: #4338ca;
    font-weight: 700;
    font-size: 0.84rem;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2s infinite;
}

.hero-headline-live {
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 18px;
}

.gradient-text-live {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead-live {
    font-size: clamp(1.02rem, 1.8vw, 1.15rem);
    line-height: 1.68;
    color: #475569;
    margin-bottom: 24px;
}

.hero-connect-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.btn-connect-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 0.96rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-connect-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45); color: #ffffff !important; }

.btn-connect-whatsapp {
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 13px 26px;
    font-weight: 700;
    font-size: 0.96rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.28);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-connect-whatsapp:hover { background: #1eb956; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.38); color: #ffffff !important; }

.btn-connect-call {
    background: #ffffff;
    color: #0f172a !important;
    border-radius: 50px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-connect-call:hover { background: #f8fafc; border-color: #6366f1; color: #4f46e5 !important; transform: translateY(-2px); }

.hero-trust-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.trust-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 0.82rem;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-live-terminal {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 26px;
    box-shadow: 0 25px 65px -15px rgba(99, 102, 241, 0.16), 0 10px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.terminal-head {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.terminal-dots { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.tdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.tdot-red { background: #ef4444; }
.tdot-yellow { background: #f59e0b; }
.tdot-green { background: #10b981; }

.terminal-address {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    color: #475569;
    flex: 1;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 4px;
}

.terminal-address span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.terminal-status-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.terminal-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.terminal-kpi-item { text-align: center; }
.kpi-num { display: block; font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.kpi-label { display: block; font-size: 0.7rem; color: #64748b; font-weight: 600; text-transform: uppercase; margin-top: 2px; }

.terminal-stream-container {
    max-height: 360px;
    overflow-y: auto;
    padding: 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.terminal-stream-container::-webkit-scrollbar { width: 5px; }
.terminal-stream-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.live-result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px 16px;
    margin-bottom: 11px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.live-result-card:hover { border-color: #a5b4fc; box-shadow: 0 8px 22px rgba(99, 102, 241, 0.12); transform: translateY(-2px); }

.live-platform-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.live-platform-tag.meta { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.live-platform-tag.google { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.live-platform-tag.instagram { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }

.live-active-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: #059669; background: #f0fdf4; padding: 2px 8px; border-radius: 12px; }
.pulse-dot-sm { width: 6px; height: 6px; background: #10b981; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: pulseGreen 1.8s infinite; }
.live-campaign-name { font-weight: 700; font-size: 0.92rem; color: #0f172a; line-height: 1.35; }
.live-metrics-row { padding-top: 6px; border-top: 1px dashed #f1f5f9; }
.live-metric-val { font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.live-metric-sub { font-size: 0.68rem; color: #64748b; font-weight: 600; text-transform: uppercase; }

.terminal-foot { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 11px 18px; font-size: 0.8rem; color: #475569; }
.live-ping-dot { width: 8px; height: 8px; background: #3b82f6; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); animation: pulseBlue 2s infinite; }
.terminal-foot-link { color: #4f46e5; font-weight: 700; text-decoration: none; font-size: 0.78rem; display: inline-flex; align-items: center; gap: 4px; transition: all 0.2s; }
.terminal-foot-link:hover { color: #3730a3; transform: translateX(2px); }

.portfolio-filter-section-light {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
    position: sticky;
    top: 70px;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.portfolio-filter-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.portfolio-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}

.portfolio-filter-btn:hover { color: #4338ca; border-color: #a5b4fc; background: #f5f3ff; transform: translateY(-1px); }
.portfolio-filter-btn.active { background: #4f46e5; color: #ffffff; border-color: #4f46e5; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3); }
.portfolio-filter-btn .filter-count { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; background: #f1f5f9; color: #475569; }
.portfolio-filter-btn.active .filter-count { background: rgba(255, 255, 255, 0.25); color: #ffffff; }

.portfolio-gallery-section-light { padding: 70px 0 90px; background: #ffffff; }

.portfolio-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    position: relative;
}

.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 22px 45px -12px rgba(99, 102, 241, 0.15); border-color: #c7d2fe; }

.card-window-head { background: #f8fafc; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e8f0; }
.window-dots { display: flex; align-items: center; gap: 6px; }
.window-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }
.window-title-tag { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }

.portfolio-thumb-wrap { position: relative; overflow: hidden; background: #f8fafc; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.portfolio-thumb-img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.45s ease; }
.portfolio-card:hover .portfolio-thumb-img { transform: scale(1.05); }

.portfolio-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
}

.portfolio-card:hover .portfolio-thumb-overlay { opacity: 1; }

.btn-inspect-pill {
    padding: 8px 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.portfolio-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.portfolio-meta-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.badge-platform { font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; display: inline-flex; align-items: center; gap: 5px; }
.badge-platform.meta { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-platform.google { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }
.badge-platform.insta { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.portfolio-industry-tag { font-size: 0.78rem; font-weight: 600; color: #64748b; }
.portfolio-card-title { font-size: 1.15rem; font-weight: 700; color: #0f172a; line-height: 1.35; margin-bottom: 12px; }
.portfolio-card-desc { font-size: 0.9rem; color: #475569; line-height: 1.55; margin-bottom: 18px; flex-grow: 1; }

.portfolio-kpi-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 10px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 18px; text-align: center; }
.portfolio-kpi-chip { display: flex; flex-direction: column; align-items: center; }
.portfolio-kpi-val { font-size: 0.95rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.portfolio-kpi-lbl { font-size: 0.72rem; font-weight: 600; color: #64748b; margin-top: 2px; text-transform: uppercase; }

.btn-card-action {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-card-action:hover { background: #4f46e5; color: #ffffff; border-color: #4f46e5; }

.portfolio-lightbox-modal .modal-content { background: #ffffff; color: #0f172a; border-radius: 24px; border: 1px solid #e2e8f0; box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2); overflow: hidden; }
.portfolio-lightbox-modal .modal-header { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.modal-case-title { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.3; color: #0f172a; }
.proof-display-stage { background: #f8fafc; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.stage-window-topbar { background: #f1f5f9; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e8f0; }
.stage-dots { display: flex; align-items: center; gap: 7px; }
.stage-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.stage-dot.red { background: #ef4444; }
.stage-dot.yellow { background: #f59e0b; }
.stage-dot.green { background: #10b981; }
.stage-title-text { font-size: 0.8rem; font-weight: 600; color: #475569; letter-spacing: 0.4px; }
.btn-open-fullres { font-size: 0.78rem; font-weight: 600; color: #475569; background: #ffffff; border: 1px solid #cbd5e1; padding: 4px 12px; border-radius: 20px; text-decoration: none; transition: all 0.2s ease; }
.btn-open-fullres:hover { color: #4338ca; background: #f5f3ff; border-color: #a5b4fc; }
.stage-img-container { background: #ffffff; padding: 16px; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.stage-screenshot-img { max-height: 68vh; width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); object-fit: contain; }

.modal-kpi-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 14px; text-align: center; transition: all 0.25s ease; height: 100%; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); }
.modal-kpi-top { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.modal-kpi-val { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.modal-kpi-sub { font-size: 0.72rem; color: #64748b; margin-bottom: 0; }
.modal-strategy-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; }
.modal-strategy-text { font-size: 0.95rem; line-height: 1.65; color: #334155; }
.modal-cta-banner-light { background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%); border: 1px solid #c7d2fe; }

.portfolio-comparison-section-light { padding: 80px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.comparison-card { background: #ffffff; border-radius: 18px; padding: 32px 26px; border: 1px solid #e2e8f0; height: 100%; transition: all 0.3s ease; }
.comparison-card.highlight-light { background: #f5f3ff; border: 2px solid #818cf8; box-shadow: 0 15px 35px rgba(99, 102, 241, 0.12); position: relative; }
.comparison-card.highlight-light::before { content: "HIGH-CONVERTING ARCHITECTURE"; position: absolute; top: -12px; left: 26px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #ffffff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.8px; padding: 3px 12px; border-radius: 20px; }
.comparison-list { list-style: none; padding: 0; margin: 20px 0 0; }
.comparison-list li { padding: 10px 0; font-size: 0.95rem; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px dashed #e2e8f0; color: #334155; }

@media (max-width: 991px) {
    .portfolio-hero-live { padding: 110px 0 50px; text-align: center; }
    .hero-live-badge, .hero-connect-actions, .hero-trust-bar { justify-content: center; }
    .hero-showcase-col { margin-top: 25px; }
}

@media (max-width: 767px) {
    .hero-trust-bar, .hero-live-badge, .btn-connect-primary { display: none !important; }
    .hero-headline-live { font-size: clamp(1.62rem, 6.8vw, 2rem) !important; line-height: 1.22 !important; letter-spacing: -0.025em !important; margin-bottom: 14px !important; }
    .portfolio-filter-section-light { top: 60px; padding: 16px 0; }
    .portfolio-filter-nav { gap: 8px; }
    .portfolio-filter-btn { padding: 8px 16px; font-size: 0.82rem; }
    .portfolio-gallery-section-light { padding: 50px 0 70px; }
}

@media (max-width: 575px) {
    .terminal-kpi-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .btn-connect-primary, .btn-connect-whatsapp, .btn-connect-call { width: 100%; justify-content: center; }
}
