/* ============================================
   Nexora Digital — Global Shared Styles
   ============================================ */

:root {
    --grid-color: rgba(212, 175, 55, 0.03);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    pointer-events: none;
    z-index: -1;
}

/* Gold text gradient */
.text-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f1d592 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gold background gradient */
.gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f1d592 50%, #d4af37 100%);
}

/* Gold shadow utility */
.shadow-primary-lg {
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.3), 0 4px 6px -2px rgba(212, 175, 55, 0.1);
}

/* Glass morphism card - Refined */
.glass-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

/* Portfolio Card Enhancements */
.portfolio-card-premium {
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card-premium::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent, rgba(212, 175, 55, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-card-premium:hover::after {
    opacity: 1;
}

.portfolio-card-premium .img-wrapper {
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card-premium:hover .img-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.15);
}

.portfolio-card-premium img {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card-premium:hover img {
    transform: scale(1.1);
}

/* Mobile Nav active state */
.mobile-nav-link.active {
    color: #d4af37;
}

#mobile-header-nav.nav-active {
    display: flex !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
}

/* Animations & Effects — Premium Motion System */

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); transform: scale(1); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

@keyframes whatsapp-attention {
    0%, 90%, 100% { transform: scale(1) rotate(0); }
    92% { transform: scale(1.1) rotate(-5deg); }
    94% { transform: scale(1.1) rotate(5deg); }
    96% { transform: scale(1.1) rotate(-5deg); }
    98% { transform: scale(1.1) rotate(5deg); }
}

@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-glow {
    position: relative;
    z-index: 10;
}

.hero-glow::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: hero-pulse 4s infinite ease-in-out;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.animate-float-soft, .animate-float { animation: float-soft 4s infinite ease-in-out; }
.whatsapp-btn-pulse { animation: whatsapp-pulse 2s infinite, whatsapp-attention 8s infinite; }




/* ============================================
   Redesign v2 — Melhorias Globais de Design
   ============================================ */

/* Grid background mais visível */
:root {
    --grid-color: rgba(212, 175, 55, 0.055);
}

/* Linha dourada sutil no topo do header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Tags/pills de nichos no hero */
.niche-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}

.niche-tag:hover {
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

/* Cards de serviço — linha dourada no hover */
.service-card-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group:hover .service-card-line {
    opacity: 1;
}

/* Número de stats — peso extra */
[data-countup] {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Botão primário — hover mais responsivo */
.btn-primary-hover:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* Seção CTA final — linha decorativa dourada */
.cta-gold-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* Texto de microcopy (objection handler) */
.microcopy {
    font-size: 11px;
    color: #475569;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

/* Tags de tecnologia nos cards de serviço */
.tech-tag {
    font-size: 11px;
    background: rgba(212, 175, 55, 0.06);
    color: rgba(212, 175, 55, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 3px 10px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: inline-block;
}

/* Badge "Em alta" */
.badge-hot {
    background: #d4af37;
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

/* Estrelas de depoimento */
.stars-gold {
    color: #d4af37;
    letter-spacing: 2px;
    font-size: 14px;
}

/* Avatar inicial dos depoimentos */
.avatar-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-weight: 900;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

/* ============================================
   Portfolio Marquee — Infinite Motion
   ============================================ */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - var(--gap))); }
}

.marquee-container {
    --gap: 2rem;
    --duration: 40s;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: var(--gap);
    min-width: 100%;
    animation: marquee var(--duration) linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-container {
        --duration: 25s;
        --gap: 1rem;
    }
}
