@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
    --dark-color: #121212;
    --secondary-dark-color: #1a1a1a;
    --accent-color: #9c27b0;
    --primary-color-hover: #7b1fa2;
    --light-color: #ffffff;
    --text-color: #e0e0e0;
    --text-color-muted: #aaa;
    --card-bg: #1f1f1f;
    --card-bg-white: #ffffff;
    --card-text-dark: #333;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.text-accent { 
    color: var(--accent-color); 
}
.section-title { 
    font-weight: 700; 
    font-size: 2.5rem; 
    color: var(--light-color); 
}
.bg-dark { 
    background-color: var(--secondary-dark-color) !important; 
}
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.2);
}
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--light-color);
    padding: 12px 15px;
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--light-color);
    box-shadow: none;
}
.form-control::placeholder { color: #888; }
.form-select { color: #888; }
.form-select option { background-color: #333; color: var(--light-color); }
.form-select:has(option:checked:not([value=""])) { color: var(--light-color); }


/* FUNDO ANIMADO */
#particles-js { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    z-index: -1; 
    background-color: var(--dark-color); 
}

/* BARRA DE NAVEGAÇÃO */
.navbar { 
    background-color: transparent !important; 
    transition: background-color 0.4s ease, padding 0.4s ease; 
    padding: 15px 0; 
}
.navbar.scrolled { 
    background-color: rgba(18, 18, 18, 0.9) !important; 
    backdrop-filter: blur(10px); 
    padding: 5px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
}
.navbar-brand { 
    font-weight: 700; 
    font-size: 1.5rem; 
}
.logo-accent { 
    color: var(--accent-color); 
}
.nav-link { 
    color: var(--light-color) !important; 
    font-weight: 500; 
    transition: color 0.3s ease; 
}
.nav-link:hover, .nav-link.active { 
    color: var(--accent-color) !important; 
}

/* HERO SECTION */
.hero-section { 
    min-height: 100vh; 
    color: var(--light-color); 
    position: relative; 
    z-index: 1; 
}

/* SEÇÃO 'POR QUE CRIAR SEU SITE' */
.feature-card {
    background-color: var(--card-bg-white);
    color: var(--card-text-dark);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.feature-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}
.feature-card .icon-container { 
    color: var(--accent-color); 
    font-size: 1.8rem; 
    margin-right: 20px; 
    min-width: 40px; 
}
.feature-card h5 { 
    font-weight: 700; 
}
.feature-card p { 
    color: #555; 
    font-size: 0.95rem; 
}

/* SEÇÃO SOLUÇÕES */
.service-card-new { 
    background-color: var(--card-bg); 
    color: var(--text-color); 
    padding: 30px; 
    border-radius: 15px; 
    height: 100%; 
    border: 1px solid var(--border-color); 
    transition: all 0.3s ease; 
    text-align: center; 
}
.service-card-new:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-color); 
}
.service-card-new h3 { 
    font-weight: 700; 
    font-size: 1.3rem; 
    color: var(--light-color); 
}

/* PORTFÓLIO */
.portfolio-item { 
    position: relative; 
    overflow: hidden; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.portfolio-img { 
    transition: transform 0.5s ease; 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
}
.portfolio-item:hover .portfolio-img { 
    transform: scale(1.1); 
}
.portfolio-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    transition: opacity 0.3s ease; 
    text-align: center; 
    padding: 20px; 
    color: var(--light-color);
}
.portfolio-item:hover .portfolio-overlay { 
    opacity: 1; 
}

/* DEPOIMENTOS */
.testimonial-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 15px; 
    padding: 30px; 
    height: auto; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 300px;
}
.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.testimonial-card p {
    margin-bottom: 15px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.6;
    max-height: calc(1.6em * 4); 
}
.testimonial-card p.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
    max-height: none;
}
.read-more-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
    cursor: pointer;
    padding: 8px 16px;
    margin: 10px auto;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.read-more-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}
.testimonial-card .client-info { 
    margin-top: auto;
    padding-top: 20px;
}
.testimonial-card .client-info h5 { 
    color: var(--light-color);
    margin-bottom: 5px;
}
.testimonial-card .client-info small { 
    color: var(--text-color-muted);
}

/* FAQ  */
 .accordion-item { 
background-color: var(--card-bg); 
border: 1px solid var(--border-color); 
margin-bottom: 10px; 
border-radius: 10px !important; 
overflow: hidden; 
}
.accordion-button { 
background-color: transparent; 
color: var(--light-color); 
font-weight: 500; 
}
.accordion-button:not(.collapsed) { 
color: var(--accent-color); 
background-color: rgba(156, 39, 176, 0.1); 
box-shadow: none; 
}
.accordion-button:focus { 
box-shadow: none; 
}
.accordion-button::after { 
filter: invert(1) grayscale(100%); 
}
.accordion-body {
color: var(--light-color);
}

/* CONTATO */
.contact-info a { 
    color: var(--text-color); 
    text-decoration: none; 
    transition: color 0.3s; 
}
.contact-info a:hover { 
    color: var(--accent-color); 
}
.contact-icon { 
    font-size: 1.5rem; 
    color: var(--accent-color); 
    min-width: 40px; 
}

  .success-message {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
            border-radius: 5px;
            padding: 12px;
            margin-top: 20px;
            display: none;
            transition: all 0.3s ease;
        }
        
        .fade-in {
            animation: fadeIn 0.5s;
        }
        

/* RODAPÉ */
footer a { 
    text-decoration: none; 
}
.footer-links a { 
    color: var(--text-color); 
    transition: all 0.3s ease; 
    margin-bottom: 8px; 
    display: inline-block; 
}
.footer-links a:hover { 
    color: var(--accent-color); 
    padding-left: 5px; 
}
.social-icons-footer .social-icon { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.1); 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    color: var(--light-color); 
    transition: all 0.3s ease; 
    margin: 0 5px; 
}
.social-icons-footer .social-icon:hover { 
    background: var(--accent-color); 
    transform: translateY(-3px); 
}
footer hr { 
    border-color: var(--border-color); 
}

.whatsapp-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.whatsapp-fab {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .3s ease;
    animation: pulse-fab 2s infinite;
}
.whatsapp-fab:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}
.whatsapp-fab .notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #ff4545;
    border-radius: 50%;
    border: 2px solid #fff;
}
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background-color: #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .4s ease-in-out;
}
.whatsapp-widget-container.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.whatsapp-widget-container.active .whatsapp-fab {
    transform: scale(0);
}
.chat-header {
    background: #075E54;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
}
.chat-header .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #fff;
}
.chat-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-header .agent-name {
    font-weight: 700;
}
.chat-header .agent-status {
    font-size: .8rem;
    opacity: .9;
}
.chat-header .close-btn {
    margin-left: auto;
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.chat-body {
    padding: 20px;
    flex-grow: 1;
    background-image: url(https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png);
    min-height: 150px;
}
.chat-bubble {
    background-color: #DCF8C6;
    color: #333;
    padding: 10px 15px;
    border-radius: 10px 10px 0;
    max-width: 85%;
    margin-left: auto;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    animation: slide-up .5s ease;
}
.chat-bubble .message-text {
    font-size: .95rem;
    margin: 0;
}
.chat-bubble .message-time {
    font-size: .75rem;
    color: #888;
    text-align: right;
    margin-top: 5px;
}
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px;
}
.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #9e9e9e;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:first-child {
    animation-delay: -.32s;
}
.typing-indicator span:nth-child(2) {
    animation-delay: -.16s;
}
.chat-footer {
    padding: 15px;
    background-color: #f0f0f0;
}
.chat-footer .cta-button {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: background-color .3s;
}
.chat-footer .cta-button:hover {
    background-color: #1da851;
}

@keyframes pulse-fab {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.7); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes slide-up {
    0% { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes bounce {
    0%, 100%, 80% { transform: scale(0); }
    40% { transform: scale(1); }
}
 @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .navbar-collapse {
        background-color: rgba(18, 18, 18, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    .feature-card .icon-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .whatsapp-widget-container {
        bottom: 20px;
        right: 20px;
    }
    .chat-window {
        width: 300px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .chat-window {
        width: 280px;
    }
}