/* --- GERAL E VARIÁVEIS --- */
:root {
    --preto: #0a0a0a;
    --branco: #FFFFFF;
    --cinza-claro: #f8f9fa;
    --laranja-destaque: #FF6B35;
    --laranja-secundario: #FF8E53;
    --azul-escuro: #1a1a2e;
    --azul-claro: #16213e;
    --roxo-escuro: #0f3460;
    --roxo-claro: #533483;
    --verde-accent: #00d4aa;
    --font-principal: 'Poppins', sans-serif;
    
    /* Dark mode variables */
    --bg-primary: #FFFFFF;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #0a0a0a;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
    --gradient-primary: linear-gradient(135deg, var(--laranja-destaque), var(--laranja-secundario));
    --gradient-secondary: linear-gradient(135deg, #2c2c2c, #404040);
    --gradient-accent: linear-gradient(135deg, var(--verde-accent), #00b894);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #FFFFFF;
    --text-secondary: #e9ecef;
    --text-muted: #adb5bd;
    --border-color: #2d3748;
    --shadow: 0 2px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.4);
    --gradient-primary: linear-gradient(135deg, var(--laranja-destaque), var(--laranja-secundario));
    --gradient-secondary: linear-gradient(135deg, #404040, #2c2c2c);
    --gradient-accent: linear-gradient(135deg, var(--verde-accent), #00b894);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

/* --- HIGH-TECH BACKGROUND EFFECTS --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(83, 52, 131, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
    animation: techGlow 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 49%, rgba(255, 107, 53, 0.02) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 170, 0.02) 50%, transparent 51%);
    background-size: 100px 100px, 100px 100px;
    background-position: 0 0, 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: techGrid 20s linear infinite;
}

@keyframes techGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes techGrid {
    0% {
        background-position: 0 0, 50px 50px;
    }
    100% {
        background-position: 100px 100px, 150px 150px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- PARTICLES BACKGROUND --- */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    background: transparent;
}

/* --- HIGH-TECH GRADIENT BACKGROUNDS --- */
.gradient-bg {
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(
            from 0deg,
            var(--laranja-destaque),
            var(--verde-accent),
            var(--roxo-claro),
            var(--laranja-secundario),
            var(--laranja-destaque)
        );
    animation: techRotate 12s linear infinite;
    opacity: 0.08;
    z-index: -1;
}

@keyframes techRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* --- HIGH-TECH SECTION BACKGROUNDS --- */
.tech-bg {
    position: relative;
    overflow: hidden;
}

.tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 49%, rgba(255, 107, 53, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 170, 0.03) 50%, transparent 51%);
    background-size: 80px 80px;
    background-repeat: repeat;
    opacity: 0.3;
    z-index: -1;
    animation: techPattern 25s linear infinite;
}

@keyframes techPattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 80px;
    }
}

/* --- ANIMATION FADE-IN --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CONTACT BUTTON --- */
.contact-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    background: var(--gradient-primary);
    color: var(--branco);
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.contact-button .icon {
    width: 20px;
    height: 20px;
    background: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--laranja-destaque);
    transition: all 0.3s ease;
}

.contact-button:hover .icon {
    transform: rotate(360deg);
}

/* --- HEADER SOFISTICADO --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.05) 25%, 
        rgba(0, 212, 170, 0.05) 50%, 
        rgba(83, 52, 131, 0.05) 75%, 
        transparent 100%);
    animation: headerShimmer 8s ease-in-out infinite;
}

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

[data-theme="dark"] header {
    background: rgba(10, 10, 10, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo img {
    height: 50px;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .logo img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--laranja-destaque);
    transform: translateY(-2px);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    border-color: var(--laranja-destaque);
    color: var(--laranja-destaque);
    transform: scale(1.05);
}

.theme-toggle .icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .icon {
    transform: rotate(180deg);
}

.cta-button-outline {
    border: 2px solid var(--laranja-destaque);
    padding: 8px 18px;
    border-radius: 25px;
    color: var(--laranja-destaque);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button-outline:hover {
    background: var(--gradient-primary);
    color: var(--branco);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* --- HERO SECTION --- */
#hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    background: var(--gradient-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 170, 0.15) 0%, transparent 50%);
    animation: heroTechGlow 18s ease-in-out infinite alternate;
}

@keyframes heroTechGlow {
    0% {
        opacity: 0.4;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1) rotate(1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% {
        width: 100px;
        opacity: 1;
    }
    50% {
        width: 150px;
        opacity: 0.7;
    }
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--branco);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 30px;
    font-style: italic;
}

/* --- SERVIÇOS --- */
#servicos {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

#servicos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

#servicos h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.servico-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.servico-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(0, 212, 170, 0.05) 50%, 
        rgba(83, 52, 131, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.servico-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.servico-card h3 {
    color: var(--laranja-destaque);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.servico-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* --- DEPOIMENTOS CAROUSEL --- */
#depoimentos {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

#depoimentos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

#depoimentos h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.testimonials-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

.depoimento-card {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
}

.depoimento-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--laranja-destaque);
    position: absolute;
    top: -20px;
    left: 30px;
    font-family: serif;
    opacity: 0.3;
}

.depoimento-card blockquote {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-style: italic;
}

.depoimento-card cite {
    color: var(--laranja-destaque);
    font-weight: 700;
    font-style: normal;
    font-size: 1.1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.carousel-btn {
    background: var(--gradient-primary);
    color: var(--branco);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--gradient-accent);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.carousel-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--gradient-primary);
    transform: scale(1.3);
}

/* --- CTA FINAL --- */
#cta-final {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
    color: var(--branco);
    position: relative;
    overflow: hidden;
}

#cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#cta-final .container {
    position: relative;
    z-index: 1;
}

#cta-final h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 800;
}

#cta-final p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
footer {
    background: var(--bg-tertiary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: var(--laranja-destaque);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--laranja-destaque);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.social-icon.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, #e4405f, #f77737);
}

.social-icon.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-icon.youtube:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-icon.whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: var(--logo-filter);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
    }

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

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

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

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

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

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-controls {
        gap: 10px;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }

    .contact-button {
        left: 10px;
        bottom: 10px;
        padding: 12px 16px;
        font-size: 12px;
    }

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

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    #servicos h2, #depoimentos h2, #cta-final h2 {
        font-size: 2.2rem;
    }

    .servico-card {
        padding: 30px 20px;
    }

    .depoimento-card {
        padding: 40px 20px;
    }
}