/* Font Import - Funnel Display */
/* Usando Google Fonts Inter como alternativa confiável (similar à Funnel Display) */
/* Otimizado com font-display: swap para melhor performance */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fbbf24;
    --primary-dark: #f59e0b;
    --primary-light: #fde68a;
    --secondary-color: #ffffff;
    --accent-color: #fbbf24;
    --accent-yellow-secondary: #f59e0b;
    --accent-yellow-light: rgba(251, 191, 36, 0.3);
    --accent-yellow-dark: rgba(251, 191, 36, 0.1);
    --text-dark: #ffffff;
    --text-light: #a1a1aa;
    --text-muted: #71717a;
    --bg-light: #18181b;
    --bg-white: #0a0a0a;
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --border-color: #27272a;
    --border-hover: #3f3f46;
    --yellow-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --dark-gradient: linear-gradient(135deg, #0a0a0a 0%, #18181b 50%, #0a0a0a 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-yellow: 0 10px 30px rgba(251, 191, 36, 0.4);
    --shadow-yellow-secondary: 0 0 20px rgba(251, 191, 36, 0.3);
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
    /* Otimizações de performance */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Funnel Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
    overscroll-behavior-y: contain; /* Prevenir scroll bounce excessivo no mobile */
    position: relative;
}

/* Aplicar Funnel Display a todos os títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.1) inset;
    /* Otimizações de performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, background-color;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)) drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-yellow-secondary) 0%, var(--primary-color) 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-menu li:last-child {
    margin-left: 2rem;
}

.nav-btn-orcamento {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--yellow-gradient);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.3);
    border: none;
    cursor: pointer;
}

.nav-btn-orcamento:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 260px 0;
    background: #050505;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("fpxdigital-fundo.jpg") center/cover no-repeat;
    filter: grayscale(1) brightness(0.6);
    opacity: 0.85;
    z-index: 0;
}

.hero-static-layer {
    display: none;
}


/* Partículas flutuantes */

.hero-content {
    text-align: center;
    color: white;
    z-index: 10;
    animation: fadeInUp 1s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.highlight {
    background: var(--yellow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent-yellow-secondary) 10%,
        var(--primary-color) 50%,
        var(--accent-yellow-secondary) 90%,
        transparent 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards,
               underlineGlow 2s ease-in-out 1.7s infinite;
    box-shadow: 
        0 0 15px rgba(251, 191, 36, 0.6),
        0 0 30px rgba(251, 191, 36, 0.4),
        0 2px 8px rgba(251, 191, 36, 0.3);
    z-index: -1;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(251, 191, 36, 0.2) 0%,
        rgba(245, 158, 11, 0.4) 25%,
        rgba(251, 191, 36, 0.5) 50%,
        rgba(245, 158, 11, 0.4) 75%,
        rgba(251, 191, 36, 0.2) 100%);
    background-size: 300% 100%;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
               underlineFlow 3s ease-in-out 1.8s infinite;
    opacity: 0.6;
    filter: blur(4px);
    z-index: -2;
}

@keyframes underlineDraw {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes underlineGlow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(251, 191, 36, 0.6),
            0 0 30px rgba(251, 191, 36, 0.4),
            0 2px 8px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(251, 191, 36, 0.8),
            0 0 50px rgba(251, 191, 36, 0.6),
            0 2px 12px rgba(251, 191, 36, 0.5);
    }
}

@keyframes underlineFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--yellow-gradient);
    color: var(--bg-dark);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow), 0 0 15px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: var(--yellow-gradient);
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow), 0 0 15px rgba(251, 191, 36, 0.2);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.tech-carousel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0;
    background: rgb(6 6 6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 5;
    backdrop-filter: blur(6px);
}

.tech-carousel-inner {
    position: relative;
    width: min(90vw, 1000px);
    margin: 0 auto;
    overflow: hidden;
}

.tech-carousel-inner::before,
.tech-carousel-inner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}

.tech-carousel-inner::before {
    left: 0;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0));
}

.tech-carousel-inner::after {
    right: 0;
    background: linear-gradient(to left, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0));
}

.tech-track {
    display: flex;
    width: max-content;
    animation: marquee 22s linear infinite;
    will-change: transform;
}

.tech-track-group {
    display: flex;
    gap: 3rem;
    padding-right: 3rem;
}

.tech-item {
    flex: 0 0 auto;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.tech-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tech-logo--invert {
    filter: brightness(0) invert(1);
}

.tech-item:hover .tech-logo {
    opacity: 1;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent-yellow-secondary) 10%,
        var(--primary-color) 50%,
        var(--accent-yellow-secondary) 90%,
        transparent 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards,
               underlineGlow 2s ease-in-out 1.7s infinite;
    box-shadow: 
        0 0 15px rgba(251, 191, 36, 0.6),
        0 0 30px rgba(251, 191, 36, 0.4),
        0 2px 8px rgba(251, 191, 36, 0.3);
    z-index: -1;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(251, 191, 36, 0.2) 0%,
        rgba(245, 158, 11, 0.4) 25%,
        rgba(251, 191, 36, 0.5) 50%,
        rgba(245, 158, 11, 0.4) 75%,
        rgba(251, 191, 36, 0.2) 100%);
    background-size: 300% 100%;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
               underlineFlow 3s ease-in-out 1.8s infinite;
    opacity: 0.6;
    filter: blur(4px);
    z-index: -2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Sobre Section */
.sobre {
    position: relative;
    background: var(--bg-white);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text h3 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.sobre-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--yellow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.sobre-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.sobre-image-img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    display: block;
}

/* Sombreamiento interno - mais forte no rodapé e subindo */
.sobre-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.65) 20%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.25) 60%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%);
    pointer-events: none;
    border-radius: 0 0 1rem 1rem;
    z-index: 1;
}

.image-placeholder {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-placeholder {
    position: relative;
    min-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.image-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    animation: none;
}

.image-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.image-text h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--yellow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

.parallax-image {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Serviços Section */
.servicos {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.servicos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.servico-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    background-image: 
        linear-gradient(135deg, rgba(251, 191, 36, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
    /* Otimizações de performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.servico-card:hover::before {
    transform: scaleX(1);
}

.servico-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.servico-card:hover::after {
    opacity: 1;
}

.servico-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(251, 191, 36, 0.1);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
}

.servico-featured {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-card) 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
}

.servico-featured:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(251, 191, 36, 0.2);
}

.servico-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(251, 191, 36, 0.15);
    line-height: 1;
    z-index: 0;
    transition: all 0.4s ease;
}

.servico-card:hover .servico-number {
    color: rgba(251, 191, 36, 0.25);
    transform: scale(1.1);
}

.servico-icon-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.servico-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.servico-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 191, 36, 0.05);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.servico-card:hover .servico-icon {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.servico-card:hover .servico-icon::before {
    opacity: 1;
}

.servico-icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
    stroke-width: 1.5;
    transition: all 0.4s ease;
}

.servico-card:hover .servico-icon svg {
    transform: scale(1.05);
}

.servico-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.servico-content h3 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.servico-card:hover .servico-content h3 {
    color: var(--primary-color);
}

.servico-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.servico-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.servico-features li {
    color: var(--text-light);
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.servico-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.servico-card:hover .servico-features li {
    color: var(--text-dark);
    padding-left: 1.75rem;
}

.servico-card:hover .servico-features li::before {
    opacity: 1;
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Portfólio Section */
.portfolio {
    background: var(--bg-white);
    padding: 6rem 0;
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    z-index: 2;
    /* Otimizações de performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    text-decoration: none;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-card);
    padding: 0;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-item:hover .portfolio-image-wrapper {
    transform: translateY(-8px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

.portfolio-image {
    position: relative;
    width: 100%;
    padding-bottom: 110%;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    overflow: hidden;
    z-index: 1;
}

/* Overlay escuro para combinar com o tema - aplicado em todas as imagens */
.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.25) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 1rem;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 0.7;
}

/* Sombreamento na parte inferior da imagem - aplicado em todos os itens */
.portfolio-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.65) 25%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 1rem 1rem;
}

/* Primeiro item do portfólio - Petrizi */
.portfolio-petrizi .portfolio-image {
    background-image: url('cliente-petrizi.png');
}

/* Segundo item do portfólio - Amém */
.portfolio-amem .portfolio-image {
    background-image: url('cliente-amem.png');
}

/* Terceiro item do portfólio - ZAGGA */
.portfolio-zagga .portfolio-image {
    background-image: url('cliente-zagga.png');
}

/* Quarto item do portfólio - Amanda Pastore Beauty */
.portfolio-amanda .portfolio-image {
    background-image: url('cliente-amanda-pastore.png');
}

/* Quinto item do portfólio - Moto Adventure BH */
.portfolio-moto .portfolio-image {
    background-image: url('cliente-moto-adventure-bh.png');
}

/* Sexto item do portfólio - Finesse Modas */
.portfolio-finesse .portfolio-image {
    background-image: url('cliente-finesse.png');
}

/* Todos os itens do portfólio usam as mesmas configurações de imagem */

/* Responsividade para imagens do portfólio */
@media (max-width: 968px) {
    .portfolio-image {
        padding-bottom: 100%;
    }
    
    .portfolio-image::after {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .portfolio-image {
        padding-bottom: 90%;
    }
    
    .portfolio-image::after {
        height: 150px;
    }
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.03);
}

/* Todos os itens do portfólio usam o mesmo estilo base - sem estilos específicos */

/* Todos os itens do portfólio usam o mesmo estilo - sem fundos específicos */

.portfolio-info {
    text-align: center;
    padding: 0.5rem 0;
}

.portfolio-title {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.portfolio-item:hover .portfolio-title {
    color: var(--primary-color);
}

.portfolio-url {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: inline-block;
}

.portfolio-item:hover .portfolio-url {
    color: var(--accent-yellow-secondary);
}

/* Processo Section */
.processo {
    background: var(--bg-white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.processo-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.processo-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-yellow-secondary) 0%, var(--primary-color) 50%, var(--accent-yellow-secondary) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    margin-right: 2rem;
    margin-left: 0;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--yellow-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: var(--shadow-yellow), 0 0 20px rgba(251, 191, 36, 0.3);
    transition: transform 0.3s ease;
    border: 2px solid var(--accent-yellow-dark);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(360deg);
}

.timeline-icon svg {
    width: 40px;
    height: 40px;
}

.timeline-content {
    flex: 1;
    margin-left: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-yellow), 0 0 20px rgba(251, 191, 36, 0.2);
    transform: translateX(10px);
    border-left: 3px solid var(--accent-yellow-secondary);
}

.timeline-item:nth-child(even):hover .timeline-content {
    transform: translateX(-10px);
}

.timeline-content h3 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Depoimentos Section */
.depoimentos {
    background: var(--bg-white);
    padding: 6rem 0;
    position: relative;
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.depoimento-card {
    /* Otimizações de performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.depoimento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-yellow-secondary) 0%, var(--primary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.depoimento-card:hover::before {
    transform: scaleY(1);
}

.depoimento-card:hover {
    box-shadow: var(--shadow-yellow), 0 0 15px rgba(251, 191, 36, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.depoimento-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.depoimento-avatar {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.depoimento-avatar svg {
    width: 30px;
    height: 30px;
}

.depoimento-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.depoimento-info h4 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.depoimento-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.depoimento-content .stars {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.depoimento-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

.depoimento-texto {
    position: relative;
    transition: all 0.3s ease;
}

.depoimento-texto.truncado {
    max-height: 7.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    position: relative;
    padding-bottom: 0.5em; /* Espaço para o indicador */
    /* Gradiente no final do texto truncado para indicar que há mais conteúdo */
    mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}


.btn-ver-mais {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-ver-mais:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-ver-mais.hidden {
    display: none;
}

/* Contato Section */
.contato {
    background: var(--bg-white);
    position: relative;
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--yellow-gradient);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-item:hover .info-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    border: 2px solid var(--accent-yellow-light);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-text h4 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.info-text p {
    color: var(--text-light);
}

.whatsapp-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.email-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-dark);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), 0 0 10px rgba(251, 191, 36, 0.2);
    background: var(--bg-hover);
    border-left: 3px solid var(--accent-yellow-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 10;
}

.form-message-success {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.form-message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* reCAPTCHA Styles */
.recaptcha-wrapper {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.recaptcha-wrapper .g-recaptcha {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* Estilização do iframe do reCAPTCHA - tornar transparente */
.recaptcha-wrapper iframe {
    border-radius: 0.5rem !important;
    overflow: hidden;
    background: transparent !important;
}

/* Estilizar o container do checkbox */
.recaptcha-wrapper > div > div {
    background: transparent !important;
}

/* Aplicar filtro para tema escuro ao reCAPTCHA */
.g-recaptcha {
    filter: invert(1) hue-rotate(180deg);
    background: transparent;
}

/* Ajustar brilho e contraste para melhor visualização */
.g-recaptcha iframe {
    filter: brightness(0.85) contrast(1.2);
    background: transparent !important;
}

/* Ocultar textos desnecessários do reCAPTCHA */
.recaptcha-wrapper .grecaptcha-badge {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.recaptcha-wrapper:hover .grecaptcha-badge {
    opacity: 1;
}

.recaptcha-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    text-align: center;
    width: 100%;
    display: none;
}

.recaptcha-error[style*="display: block"] {
    display: block !important;
}

/* Responsive */
@media (max-width: 640px) {
    .recaptcha-wrapper {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .recaptcha-wrapper .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }
}

/* Estilo minimalista - ocultar elementos visuais desnecessários */
.recaptcha-wrapper::before {
    content: 'Verificação de segurança';
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    background: var(--bg-white);
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 240px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: contain;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-cta h4 {
    font-family: 'Inter', 'Funnel Display', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.footer-btn-orcamento {
    background: var(--yellow-gradient);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    margin-bottom: 2rem;
    text-align: center;
    min-width: 200px;
}

.footer-btn-orcamento:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-social a:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-social a span {
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(20px);
    }
    50% {
        transform: translateY(-60px) translateX(-15px);
    }
    75% {
        transform: translateY(-30px) translateX(10px);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes techPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes techFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-50px) translateX(30px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-100px) translateX(-20px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-50px) translateX(15px) rotate(270deg);
        opacity: 0.6;
    }
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.8);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu li:last-child {
        margin-left: 0;
    }

    .nav-btn-orcamento {
        justify-content: center;
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 220px 0; /* Espaçamento extra em tablets */
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .sobre-content {
        grid-template-columns: 1fr;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .servico-card {
        min-height: 380px;
        padding: 2rem;
    }
    
    .servico-number {
        font-size: 3.5rem;
        top: 1.25rem;
        right: 1.25rem;
    }
    
    .servico-icon {
        width: 60px;
        height: 60px;
    }
    
    .servico-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .servico-content h3 {
        font-size: 1.5rem;
    }

    .contato-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links ul li a::before {
        display: none;
    }

    .footer-links ul li a:hover {
        padding-left: 0;
        transform: none;
    }

    .footer-cta {
        align-items: center;
    }

    .footer-btn-orcamento {
        width: 100%;
        max-width: 300px;
    }

    .footer-social {
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .tech-carousel-inner {
        width: min(95vw, 760px);
    }

    .tech-track {
        animation-duration: 18s;
    }

    .tech-track-group {
        gap: 2.5rem;
        padding-right: 2.5rem;
    }

    .processo-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 4rem;
    }

    .timeline-item .timeline-content {
        margin-left: 2rem !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:hover .timeline-content {
        transform: translateX(0) !important;
    }

    .depoimentos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    /* Ajuste de fonte para texto em mobile - mantém títulos e subtítulos */
    body {
        font-size: 14px;
    }
    
    p, 
    #home p,
    #home .hero-subtitle,
    .section-subtitle,
    .servico-description,
    .depoimento-texto,
    .info-text p,
    .footer-brand p,
    .footer-links li,
    .politica-content p,
    .politica-content li {
        font-size: 14px;
    }
    
    .hero {
        padding: 190px 0; /* Espaço vertical confortável no mobile */
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servico-card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .servico-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }
    
    .servico-icon-wrapper {
        margin-bottom: 1.25rem;
    }
    
    .servico-icon {
        width: 56px;
        height: 56px;
    }
    
    .servico-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .servico-content h3 {
        font-size: 1.4rem;
    }
    
    .servico-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .servico-features {
        gap: 0.6rem;
    }
    
    .servico-features li {
        font-size: 0.85rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .tech-carousel {
        padding: 0.45rem 0;
    }

    .tech-carousel-inner {
        width: min(95vw, 520px);
    }

    .tech-track {
        animation-duration: 14s;
    }

    .tech-track-group {
        gap: 1.5rem;
        padding-right: 1.5rem;
    }

    .tech-item {
        min-width: 120px;
        padding: 0 0.5rem;
    }

    .tech-carousel-inner::before,
    .tech-carousel-inner::after {
        width: 60px;
    }

    .tech-logo {
        height: 28px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }

    .portfolio-url {
        font-size: 0.85rem;
    }

    .processo-timeline::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 0;
        text-align: center;
    }

    .timeline-item .timeline-content {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .depoimentos-grid {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    pointer-events: auto;
    /* Garantir que fique sempre visível */
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

@media (max-width: 640px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Smooth Scroll Offset */
section {
    scroll-margin-top: 80px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    display: none;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--primary-dark);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Funnel Display', sans-serif;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .btn-cookie {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 640px) {
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-banner {
        padding: 14px;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-btn-orcamento {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-width: auto;
        width: 100%;
        max-width: 100%;
    }

    .footer-social a {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Botão Voltar ao Topo */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    /* Garantir que fique visível quando mostrar */
    visibility: visible;
    opacity: 1;
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.scroll-to-top:hover {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(251, 191, 36, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
