/* Importar fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Footer moderno */
.modern-footer {
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* Container de partículas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

#particles-canvas {
    width: 100%;
    height: 100%;
}

/* Onda animada */
.wave-container {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.wave {
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-path {
    fill: #3182ce;
    opacity: 0.8;
    animation: wave-animation 8s ease-in-out infinite;
}

@keyframes wave-animation {
    0%, 100% { 
        d: path("M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z"); 
    }
    50% { 
        d: path("M0,40 C150,80 350,20 600,40 C850,80 1050,20 1200,40 L1200,120 L0,120 Z"); 
    }
}

/* Container principal */
.footer-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 0;
}

/* Seção principal */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Brand section */
.footer-brand {
    max-width: 350px;
}

.brand-logo h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3182ce, #63b3ed, #90cdf4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 3s ease infinite;
}

.brand-highlight {
    color: #3182ce !important;
    position: relative;
}

.brand-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 2px;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 5px #3182ce; }
    50% { box-shadow: 0 0 20px #63b3ed, 0 0 30px #3182ce; }
}

.brand-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    margin-bottom: 20px;
    border-radius: 2px;
    animation: line-expand 2s ease-in-out infinite alternate;
}

@keyframes line-expand {
    from { width: 60px; }
    to { width: 80px; }
}

.brand-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Social links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(49, 130, 206, 0.1);
    border: 2px solid rgba(49, 130, 206, 0.3);
    border-radius: 50%;
    color: #3182ce;
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(49, 130, 206, 0.3), transparent);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #3182ce;
    background: rgba(49, 130, 206, 0.2);
    box-shadow: 0 10px 25px rgba(49, 130, 206, 0.3);
}

/* Tooltip para social links */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.social-link:hover::after {
    opacity: 1;
}

/* Seções do footer */
.footer-section {
    
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #3182ce;
    font-size: 1.1rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 15px;
}

.footer-link::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3182ce;
    transition: all 0.3s ease;
    transform: translateX(-5px);
    opacity: 0;
}

.footer-link:hover::before {
    transform: translateX(0);
    opacity: 1;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 20px;
}

/* Informações de contato */
.contact-info {
    
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-item i {
    color: #3182ce;
    font-size: 1.1rem;
    width: 20px;
}

.contact-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #3182ce;
}

/* Newsletter */
.newsletter-section {
    background: rgba(49, 130, 206, 0.1);
    border: 1px solid rgba(49, 130, 206, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.newsletter-text p {
    color: #cbd5e0;
    font-size: 1rem;
}

.newsletter-form {
    min-width: 350px;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(49, 130, 206, 0.3);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #3182ce;
    box-shadow: 0 0 20px rgba(49, 130, 206, 0.3);
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: #cbd5e0;
}

.input-group button {
    padding: 15px 25px;
    background: linear-gradient(45deg, #3182ce, #63b3ed);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group button:hover {
    background: linear-gradient(45deg, #2c5aa0, #3182ce);
    transform: translateX(-2px);
}

/* Linha divisória */
.footer-divider {
    margin: 50px 0 30px;
    position: relative;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #3182ce, transparent);
    position: relative;
    overflow: hidden;
}

.divider-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Footer bottom */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.copyright {
    font-size: 0.95rem;
    color: #cbd5e0;
}

.brand-name {
    color: #3182ce;
    font-weight: 600;
}

.tagline {
    display: block;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #3182ce;
}

.separator {
    color: #4a5568;
}

/* Botão voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3182ce, #63b3ed);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(49, 130, 206, 0.4);
}

/* WhatsApp float button melhorado */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 10px;
}

.whatsapp-text {
    font-weight: 600;
    white-space: nowrap;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(2);
        opacity: 0;
    }
}

/* Efeitos de luz */
.light-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.light-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #3182ce, transparent);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.light-orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #63b3ed, transparent);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.light-orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #90cdf4, transparent);
    bottom: 30%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Animações de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-container {
        padding: 60px 15px 0;
    }
    
    .brand-logo h2 {
        font-size: 2.5rem;
    }
    
    .newsletter-section {
        padding: 30px 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .input-group button {
        border-radius: 0 0 12px 12px;
        justify-content: center;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .whatsapp-icon {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .social-links {
        justify-content: center;
    }
    
    .footer-brand {
        text-align: center;
        max-width: none;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
}