/* ==========================================================================
   Design System & Bento UI do Portfólio ForgeStack
   Inspirado no design limpo, suave e moderno do StayCloud (StayCloud style)
   Com Background Rico (Tech Dot Grid + Aurora Mesh Glow)
   Suporta Modo Claro Sofisticado e Modo Escuro para comparação em tempo real.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variáveis de Cores - Modo Claro por Padrão (Estilo StayCloud)
   -------------------------------------------------------------------------- */
:root {
    /* Fundo suave e repousante (off-white/gelo), nunca branco 100% chapado */
    --bg-page: #f6f8fb;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f4f9;
    --bg-surface-hover: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.85);
    
    --border-color: rgba(226, 232, 240, 0.9);
    --border-color-hover: rgba(203, 213, 225, 1);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Acentos e Gradientes Suaves */
    --accent-blue: #0284c7;
    --accent-cyan: #0ea5e9;
    --accent-orange: #ea580c;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #ea580c 100%);
    --accent-gradient-text: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
    
    /* Sombras Macias e Elegantes */
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 16px 36px -6px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    
    /* Tema FireGuard360 (Fogo/Técnico) */
    --fire-bg: #fff5f5;
    --fire-border: rgba(239, 68, 68, 0.22);
    --fire-color: #dc2626;
    --fire-glow: rgba(239, 68, 68, 0.15);
    
    /* Tema NotificApp (Roxo Moderno / Púrpura) */
    --notif-bg: #faf5ff;
    --notif-border: rgba(139, 92, 246, 0.25);
    --notif-border-hover: rgba(139, 92, 246, 0.6);
    --notif-color: #7c3aed;
    --notif-glow: rgba(139, 92, 246, 0.18);
    --notif-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6366f1 100%);
    
    --custom-bg: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --custom-border: rgba(2, 132, 199, 0.25);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------------
   2. Variáveis de Cores - Modo Escuro (Para comparação instantânea)
   -------------------------------------------------------------------------- */
body.theme-dark {
    --bg-page: #080a10;
    --bg-surface: rgba(15, 18, 28, 0.88);
    --bg-surface-subtle: rgba(255, 255, 255, 0.035);
    --bg-surface-hover: rgba(24, 28, 42, 0.95);
    --bg-nav: rgba(14, 16, 26, 0.85);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.22);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-blue: #38bdf8;
    --accent-cyan: #00d2ff;
    --accent-orange: #ff7b00;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #0052d4 50%, #ff7b00 100%);
    --accent-gradient-text: linear-gradient(135deg, #ffffff 40%, #00d2ff 100%);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.7);
    
    --fire-bg: linear-gradient(155deg, rgba(28, 12, 14, 0.88) 0%, rgba(14, 10, 14, 0.92) 100%);
    --fire-border: rgba(239, 68, 68, 0.28);
    --fire-color: #ef4444;
    --fire-glow: rgba(239, 68, 68, 0.25);
    
    --notif-bg: linear-gradient(155deg, rgba(30, 15, 50, 0.88) 0%, rgba(15, 10, 28, 0.92) 100%);
    --notif-border: rgba(168, 85, 247, 0.32);
    --notif-border-hover: rgba(168, 85, 247, 0.65);
    --notif-color: #c084fc;
    --notif-glow: rgba(168, 85, 247, 0.3);
    --notif-gradient: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #6366f1 100%);
    
    --custom-bg: linear-gradient(145deg, rgba(16, 20, 32, 0.88) 0%, rgba(10, 12, 20, 0.92) 100%);
    --custom-border: rgba(0, 210, 255, 0.28);
}

/* Reset básico e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   FUNDO DINÂMICO RICO (TECH GRID + AURORA ORBS)
   ========================================================================== */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity var(--transition-smooth);
}

/* Grade de Pontos Tecnológica (Dot Matrix) */
.bg-tech-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(100, 116, 139, 0.2) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000000 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000000 65%, transparent 100%);
    opacity: 0.65;
    z-index: 1;
}

body.theme-dark .bg-tech-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
    opacity: 0.45;
}

/* Orbs Flutuantes com Efeito Aurora */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 14s infinite ease-in-out alternate;
}

/* Orb 1: Azul Céu / Ciano (Topo Esquerdo) */
.glow-orb.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.22) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 70%);
    animation-duration: 16s;
}

/* Orb 2: Roxo Vibrante / Violeta (Direita Superior) */
.glow-orb.orb-2 {
    top: 15%;
    right: -8%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.24) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
    animation-duration: 20s;
    animation-delay: -4s;
}

/* Orb 3: Laranja Âmbar / Fogo Suave (Inferior Esquerdo) */
.glow-orb.orb-3 {
    bottom: 10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.16) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
    animation-duration: 18s;
    animation-delay: -8s;
}

/* Orb 4: Púrpura / Magenta Suave (Inferior Direito) */
.glow-orb.orb-4 {
    bottom: -10%;
    right: 10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(217, 70, 239, 0.08) 50%, transparent 70%);
    animation-duration: 22s;
    animation-delay: -2s;
}

/* Orb 5: Brilho de Profundidade Central */
.glow-orb.orb-5 {
    top: 45%;
    left: 35%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 65%);
    animation-duration: 24s;
    animation-delay: -10s;
}

/* Ajuste no Modo Escuro */
body.theme-dark .glow-orb.orb-1 {
    background: radial-gradient(circle, rgba(0, 180, 219, 0.28) 0%, transparent 70%);
}
body.theme-dark .glow-orb.orb-2 {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.28) 0%, transparent 70%);
}
body.theme-dark .glow-orb.orb-3 {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
}
body.theme-dark .glow-orb.orb-4 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -30px) scale(1.08);
    }
    100% {
        transform: translate(-30px, 35px) scale(0.94);
    }
}

/* Canvas de Partículas */
#ambient-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.5;
}

body.theme-light #ambient-canvas {
    opacity: 0.3;
}

/* ==========================================================================
   Container Principal
   ========================================================================== */
.portfolio-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-container.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Navegação do Topo (Estilo StayCloud)
   ========================================================================== */
.portfolio-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 12px 20px;
    background: var(--bg-nav);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-back:hover {
    background: var(--bg-surface);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
    transform: translateX(-3px);
}

.nav-brand-left,
.nav-brand-center {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.nav-brand-logo:hover {
    transform: scale(1.03);
}

body.theme-light .nav-brand-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

body.theme-dark .nav-brand-logo {
    filter: drop-shadow(0 2px 10px rgba(0, 210, 255, 0.25));
}

.nav-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botão de Alternância de Tema */
.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-theme-toggle:hover {
    background: var(--bg-surface);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.theme-icon-sun {
    display: none;
    color: #eab308;
}

.theme-icon-moon {
    display: inline-block;
    color: #64748b;
}

body.theme-dark .theme-icon-sun {
    display: inline-block;
}

body.theme-dark .theme-icon-moon {
    display: none;
}

/* Botões de Ação no Header */
.btn-nav-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-nav-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #16a34a;
}

body.theme-dark .btn-nav-whatsapp {
    color: #25d366;
}

.btn-nav-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-nav-email {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: var(--accent-blue);
}

.btn-nav-email:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Hero Header (Títulos Claros e Amigáveis)
   ========================================================================== */
.portfolio-hero-header {
    text-align: center;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 8px #0284c7;
    animation: pulseGlow 2s infinite ease-in-out;
}

.status-indicator-dot.online-green {
    background: #16a34a;
    box-shadow: 0 0 8px #16a34a;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.portfolio-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4.5vw, 50px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.18;
    color: var(--text-primary);
    max-width: 900px;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-hero-subtitle {
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--text-secondary);
    max-width: 740px;
    line-height: 1.65;
}

.portfolio-hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   BENTO GRID PRINCIPAL
   ========================================================================== */
.bento-grid-showcase {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 56px;
    width: 100%;
}

/* Base Bento Card */
.bento-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-hover);
}

.bento-card-inner {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Brilhos Internos dos Cards (Glow) */
.bento-card-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(65px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--transition-smooth);
}

.bento-glow-cyan {
    background: radial-gradient(circle, #0284c7 0%, #38bdf8 100%);
}

.bento-glow-fire {
    background: radial-gradient(circle, #ef4444 0%, #ea580c 100%);
}

/* Glow Roxo do NotificApp */
.bento-glow-purple {
    background: radial-gradient(circle, #9333ea 0%, #6366f1 100%);
}

.bento-card:hover .bento-card-glow {
    opacity: 0.55;
}

/* Badges nos Cards */
.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.bento-badge-highlight {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
    color: var(--accent-blue);
}

.bento-badge-fire {
    background: var(--fire-bg);
    border-color: var(--fire-border);
    color: var(--fire-color);
}

/* Badge Roxa do NotificApp */
.bento-badge-notif {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--notif-color);
}

.bento-badge-success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.25);
    color: #16a34a;
}

.bento-meta-badge,
.product-tag-pill {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CARD 1: HERO - SOLUÇÕES PERSONALIZADAS (Col Span 8)
   -------------------------------------------------------------------------- */
.bento-hero-custom {
    grid-column: span 8;
    background: var(--custom-bg);
    border-color: var(--custom-border);
}

.bento-hero-custom:hover {
    border-color: var(--accent-blue);
}

.bento-title-large {
    font-family: var(--font-heading);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.bento-desc-large {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 26px;
    max-width: 680px;
}

.bento-desc-large strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Subgrid de Benefícios */
.bento-features-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.bento-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.bento-feature-item:hover {
    background: var(--bg-surface);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feature-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.feature-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.bento-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}

.btn-bento-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.3);
    transition: var(--transition-fast);
}

.btn-bento-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

.bento-footer-hint {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CARD 2 & 3: PRODUTOS FIREGUARD360 E NOTIFICAPP (Col Span 4)
   -------------------------------------------------------------------------- */
.bento-product-fire {
    grid-column: span 4;
    background: var(--fire-bg);
    border-color: var(--fire-border);
}

.bento-product-fire:hover {
    border-color: var(--fire-color);
}

/* Estilo Roxo NotificApp */
.bento-product-notif {
    grid-column: span 4;
    background: var(--notif-bg);
    border-color: var(--notif-border);
}

.bento-product-notif:hover {
    border-color: var(--notif-border-hover);
    box-shadow: 0 16px 36px -6px rgba(124, 58, 237, 0.15);
}

.product-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.fire-icon-box {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--fire-color);
}

/* Ícone Roxo NotificApp */
.notif-icon-box {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.32);
    color: var(--notif-color);
}

.bento-product-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bento-product-subtitle {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

/* Subtítulo Roxo NotificApp */
.bento-product-notif .bento-product-subtitle {
    color: var(--notif-color);
}

.bento-product-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.product-bullets-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}

.product-bullets-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.product-bullets-list li strong {
    color: var(--text-primary);
}

.product-bullets-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.product-card-actions {
    margin-top: auto;
}

.btn-product-fire,
.btn-product-notif {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-product-fire {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-product-fire:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

/* Botão Roxo NotificApp */
.btn-product-notif {
    background: var(--notif-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-product-notif:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   CARD 4: CONTATO DIRETO (Col Span 4)
   -------------------------------------------------------------------------- */
.bento-contact-card {
    grid-column: span 4;
}

.contact-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 12px 0 6px 0;
}

.contact-card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.direct-contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-row:hover {
    background: var(--bg-surface);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-bg {
    background: rgba(37, 211, 102, 0.12);
    color: #16a34a;
}

body.theme-dark .whatsapp-bg {
    color: #25d366;
}

.email-bg {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent-blue);
}

.contact-row-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.contact-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 16px;
    transition: transform var(--transition-fast);
}

.contact-row:hover .contact-arrow {
    transform: translateX(3px);
    color: var(--accent-blue);
}

.contact-row-email-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.contact-row-email-wrapper .contact-row {
    flex: 1;
}

.btn-copy-email {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy-email:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

/* --------------------------------------------------------------------------
   CARD 5: MÉTRICAS E CONFIANÇA (Col Span 4)
   -------------------------------------------------------------------------- */
.bento-stats-card {
    grid-column: span 4;
}

.stats-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 12px 0 16px 0;
}

.stats-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-box {
    padding: 14px 12px;
    border-radius: 14px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   CARD 6: COMPATIBILIDADE E RECURSOS (Col Span 12)
   -------------------------------------------------------------------------- */
.bento-stack-card {
    grid-column: span 12;
}

.stack-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.stack-card-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 8px;
}

.stack-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.55;
}

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

.tech-pill {
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tech-pill:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.3);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   BENTO CTA FINAL
   ========================================================================== */
.bento-cta-final {
    position: relative;
    border-radius: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 50px 24px;
    margin-bottom: 56px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(139, 92, 246, 0.08) 60%, transparent 100%);
    filter: blur(70px);
    pointer-events: none;
}

.cta-content-box {
    position: relative;
    z-index: 2;
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 14px 0 12px 0;
    letter-spacing: -0.5px;
}

.cta-description {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.cta-actions-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    background: #25d366;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: var(--transition-fast);
}

.btn-cta-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

.btn-cta-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-cta-email:hover {
    background: var(--bg-surface);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.portfolio-footer {
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--bg-surface-subtle);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.footer-quick-contacts {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.footer-quick-contacts .separator {
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL DE DETALHES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.btn-close-modal:hover {
    background: var(--bg-surface-subtle);
    border-color: var(--border-color-hover);
    transform: scale(1.05);
}

.modal-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background: #090b10;
    border-bottom: 1px solid var(--border-color);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 28px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.25;
}

.modal-client {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title svg {
    color: var(--accent-blue);
}

.modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.results-box {
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 16px;
    border-radius: 14px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVIDADE (TABLETS E CELULARES)
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-hero-custom {
        grid-column: span 12;
    }
    
    .bento-product-fire {
        grid-column: span 6;
    }
    
    .bento-product-notif {
        grid-column: span 6;
    }
    
    .bento-contact-card {
        grid-column: span 6;
    }
    
    .bento-stats-card {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        padding: 16px 14px 50px 14px;
    }

    .portfolio-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
    }

    .nav-brand-logo {
        height: 40px;
    }

    .nav-top-actions {
        width: auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .bento-grid-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-hero-custom,
    .bento-product-fire,
    .bento-product-notif,
    .bento-contact-card,
    .bento-stats-card,
    .bento-stack-card {
        grid-column: span 1;
    }

    .bento-features-subgrid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content,
    .footer-copyright-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-hero {
        height: 200px;
    }

    .cta-actions-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-whatsapp,
    .btn-cta-email {
        width: 100%;
        justify-content: center;
    }
}
