/* Variáveis */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f97316;
    --gradient-primary: linear-gradient(to right, #2563eb, #3b82f6);
    --gradient-accent: linear-gradient(to right, #f97316, #fb923c);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset e Base */
body {
    @apply antialiased text-gray-800;
    scroll-behavior: smooth;
}

/* Navegação */
.nav-link {
    @apply uppercase tracking-wider text-sm font-medium;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-1/2 w-0 h-0.5 bg-blue-600;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    @apply text-blue-600;
}

.nav-link:hover::after {
    @apply w-full;
}

.mobile-nav-link {
    @apply block py-3 px-4 text-gray-700 font-medium hover:bg-gray-50 rounded-lg transition-colors;
}

/* Botões */
.btn-primary {
    background: #2196f3;
    color: #fff;
    border: none;
    font-weight: bold;
    border-radius: 999px;
    padding: 1rem 2.5rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-secondary {
    border: 2px solid #2196f3;
    color: #2196f3;
    background: transparent;
    font-weight: bold;
    border-radius: 999px;
    padding: 1rem 2.5rem;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: #2196f3;
    color: #fff;
}

/* Animações */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Padrão de Fundo */
.bg-grid-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .btn-primary, .btn-secondary {
        @apply w-full justify-center;
    }
}

/* Estilos gerais */
body {
    @apply antialiased text-gray-800;
}

/* Animações suaves */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Efeitos de hover refinados */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Botões modernos */
.btn-modern {
    @apply relative overflow-hidden rounded-xl transition-all duration-300;
}

.btn-modern::after {
    content: '';
    @apply absolute inset-0 bg-white opacity-0 transition-opacity duration-300;
}

.btn-modern:hover::after {
    @apply opacity-10;
}

/* Gradientes sutis */
.gradient-overlay {
    background: linear-gradient(45deg, rgba(37,99,235,0.1) 0%, rgba(99,102,241,0.1) 100%);
}

/* Sombras elegantes */
.shadow-soft {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* Transições suaves */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container responsivo */
.container {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

/* Tipografia moderna */
h1, h2, h3, h4, h5, h6 {
    @apply font-bold tracking-tight;
}

/* Links interativos */
.link-hover {
    @apply relative after:absolute after:bottom-0 after:left-0 after:w-0 after:h-0.5 after:bg-current 
    after:transition-all after:duration-300 hover:after:w-full;
}

/* Gradiente animado suave */
.bg-gradient-animate {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animações dos blobs */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Animação do gradiente de texto */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient 4s linear infinite;
}

/* Animações de fade in */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

/* Animação das ondas */
.waves {
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: -7px;
}

.wave-parallax > use {
    animation: wave 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.wave-parallax > use:nth-child(1) { animation-delay: -2s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; opacity: 0.5; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; opacity: 0.3; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; }

@keyframes wave {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Animações das ondas */
@keyframes wave-1 {
    0%, 100% {
        transform: translateY(0) scale(1.02);
    }
    50% {
        transform: translateY(5px) scale(1);
    }
}

@keyframes wave-2 {
    0% { transform: translateX(0); }
    50% { transform: translateX(25%); }
    100% { transform: translateX(0); }
}

@keyframes wave-3 {
    0% { transform: translateX(0); }
    50% { transform: translateX(-15%); }
    100% { transform: translateX(0); }
}

.animate-wave-1 {
    animation: wave-1 10s ease-in-out infinite;
    transform-origin: center bottom;
}

.animate-wave-2 {
    animation: wave-2 10s ease-in-out infinite;
}

.animate-wave-3 {
    animation: wave-3 12s ease-in-out infinite;
}

/* Animação de flutuação */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Estilos do menu */
.nav-link {
    @apply uppercase tracking-wider text-sm font-medium;
    transition: color 0.3s ease;
}

/* Gradientes e overlays */
.bg-overlay {
    background: linear-gradient(to right bottom, rgba(153, 27, 27, 0.95), rgba(127, 29, 29, 0.95));
}

/* Animações dos elementos flutuantes */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -40px); }
}

@keyframes float-delay {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.animate-float-slow {
    animation: float-slow 15s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 18s ease-in-out infinite;
}

.animate-float {
    animation: float-slow 12s ease-in-out infinite;
}

/* Animações de fade */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Melhorias de UI/UX */
.card-hover {
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.card-hover:hover {
    transform: translateY(-8px);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-xl);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gradient-border {
    position: relative;
}

.gradient-border::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Melhoria para cards de serviços */
.service-card {
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card-header {
    height: 8px;
    background: var(--gradient-primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-icon svg {
    color: var(--primary);
    width: 40px;
    height: 40px;
}

/* Botões Modernos */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Efeitos para seção sobre */
.about-image-container {
    position: relative;
}

.about-image {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-shape-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    top: -30px;
    left: -30px;
    z-index: 1;
}

.about-shape-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 12px;
    bottom: -30px;
    right: -30px;
    z-index: 1;
    opacity: 0.1;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 15px;
    z-index: 3;
}

/* Decoração para seção testemunhos */
.quote-mark {
    font-size: 120px;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
    color: rgba(37, 99, 235, 0.1);
    z-index: 0;
}

/* Whatsapp button animation */
.whatsapp-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Efeito de vidro */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Animações de onda mais suaves */
@keyframes wave-1 {
    0%, 100% {
        transform: translateY(0) scale(1.02);
    }
    50% {
        transform: translateY(5px) scale(1);
    }
}

.animate-wave-1 {
    animation: wave-1 10s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Animação de gradiente */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient 4s linear infinite;
}

/* Grid pattern */
.bg-grid-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Transição suave para os itens do carrossel */
.carousel-bg-item {
    transition: opacity 1.5s ease-in-out;
}

/* Adicionar efeitos hover nos botões */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 100%;
}

/* Override para os botões na seção hero */
#home .btn-primary {
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
}

#home .btn-secondary {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Estilos do Portfólio */
.portfolio-section {
    background-color: #f8f9fa;
}

.portfolio-filters .filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.portfolio-filters .filter-btn.active,
.portfolio-filters .filter-btn:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.portfolio-item.scale-0 {
    transform: scale(0);
}

.portfolio-item.scale-100 {
    transform: scale(1);
}

.portfolio-item-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    color: white;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.portfolio-btn:hover {
    background-color: #1d4ed8;
}

#load-more {
    transition: transform 0.3s ease;
}

#load-more:hover {
    transform: translateY(-2px);
}

/* Animação de fade para as imagens */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Estilos do Portfólio */
.service-item .icon-circle {
    transition: all 0.3s ease-in-out;
}

.service-item:hover .icon-circle {
    transform: scale(1.05);
}

#portfolio-container {
    transition: opacity 0.3s ease-in-out;
}

#portfolio-container.hidden {
    display: none;
}

/* Estilos do Modal */
#imageModal {
    display: none;
}

#imageModal.show {
    display: block;
}

#imageModal img {
    max-height: calc(80vh - 100px);
    object-fit: contain;
}

@media (max-width: 640px) {
    #imageModal img {
        max-height: calc(100vh - 200px);
    }
}

/* Animação de fade para o modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#imageModal .relative {
    animation: modalFadeIn 0.3s ease-out;
}

/* Estilo para o menu ativo */
.nav-link.active {
    color: #1e40af; /* blue-800 mais escuro */
    font-weight: 600;
}

.nav-link.active span {
    width: 100% !important;
    background-color: #1e40af;
}

/* Estilo para o menu mobile ativo */
@media (max-width: 768px) {
    .nav-link.active {
        background-color: #eff6ff; /* blue-50 */
        color: #1e40af;
    }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
.animate-fade-in-up {
    animation: fade-in-up 1s cubic-bezier(.4,0,.2,1) both;
}

/* Hero Section Moderno */
#home {
    padding-top: 0;
    padding-bottom: 0;
}
#home h1 {
    letter-spacing: -1px;
}
#home .btn-primary, #home .btn-secondary {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 999px;
}
@media (max-width: 768px) {
    #home h1 { font-size: 2.2rem; }
    #home img { width: 220px !important; }
}

/* Estilos personalizados para o Carrossel */
.carousel-main-style {
    height: 220px;
    border: 4px solid #2196f3;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .carousel-main-style {
        height: 300px;
    }
} 