:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --dark-color: #0a0a0a;
    --dark-blue: #001a33;
    --light-blue: #e6f2ff;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #001a33 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

/* Força página iniciar no topo */
html, body {
    scroll-behavior: auto !important;
}

html:target {
    scroll-behavior: smooth;
}

section {
    overflow-x: hidden;
}

.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.2);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 10, 0.98);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-link {
    color: #ffffff !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

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

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

.hero-section {
    background: var(--gradient-dark);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0 40px;
}

.hero-section .container,
.hero-section .container-fluid {
    position: relative;
    z-index: 2;
}

.hero-section .row {
    min-height: calc(100vh - 120px);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.hero-title {
    background: linear-gradient(90deg, #ffffff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
    margin-bottom: 1.5rem;
}

.hero-title .mobile-break {
    display: none;
}

@keyframes gradient {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.typing-cursor {
    color: var(--secondary-color);
    animation: blink 0.8s infinite;
    font-weight: 100;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-section .lead {
    color: #ffffff !important;
    opacity: 0.9;
}

.tech-animation {
    position: relative;
    height: 400px;
}

.floating-icons {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-float {
    position: absolute;
    font-size: 3rem;
    color: var(--secondary-color);
    animation: floatIcon 4s ease-in-out infinite;
    opacity: 0.8;
}

.icon-float:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.icon-float:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.icon-float:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.icon-float:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.btn-primary {
    background: var(--gradient-2);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--gradient-2);
    border-color: transparent;
    transform: translateY(-2px);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-2);
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.icon-box i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .icon-box {
    transform: rotate(360deg);
}

.solution-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    color: white;
}

.solution-card:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.solution-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.solution-card ul {
    list-style: none;
    padding: 0;
}

.solution-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.solution-card ul li:last-child {
    border-bottom: none;
}

.client-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.client-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.client-card h5 {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-card p {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--secondary-color);
}

.tech-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1rem;
}

.tech-item span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-info {
    padding: 2rem;
}

.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.1);
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 5px;
}

.info-item h5 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.info-item p {
    margin: 0;
    color: var(--text-dark);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 102, 255, 0.1);
}

.form-control {
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.1);
}

footer {
    background: var(--gradient-dark) !important;
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 5px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-2);
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20ba5a;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 15px 40px;
        min-height: 100vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-title .mobile-break {
        display: block;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 1rem;
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-link {
        margin: 5px 0;
        padding: 10px;
    }
    
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header .lead {
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .solution-card {
        margin-bottom: 1.5rem;
    }
    
    .tech-animation {
        height: 300px;
        margin-top: 3rem;
        display: block !important;
        position: relative;
        z-index: 5 !important;
    }
    
    .floating-icons {
        height: 300px;
        display: flex !important;
        position: relative;
        justify-content: center;
        align-items: center;
        z-index: 5 !important;
    }
    
    .icon-float {
        position: absolute !important;
        font-size: 3.5rem !important;
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
        color: #00d4ff !important;
        z-index: 5 !important;
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8) !important;
    }
    
    .icon-float:nth-child(1) {
        top: 10%;
        left: 10%;
    }
    
    .icon-float:nth-child(2) {
        top: 10%;
        right: 10%;
    }
    
    .icon-float:nth-child(3) {
        bottom: 10%;
        left: 10%;
    }
    
    .icon-float:nth-child(4) {
        bottom: 10%;
        right: 10%;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .tech-item {
        padding: 1.5rem 1rem;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    .tech-item span {
        font-size: 0.9rem;
    }
    
    .contact-form {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .info-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5rem;
    }
    
    footer .social-links {
        margin-top: 1rem;
    }
    
    .particles {
        opacity: 1 !important;
        display: block !important;
        z-index: 1 !important;
        background-image: 
            radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.5) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.5) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.4) 0%, transparent 50%) !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 70px 10px 30px;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 12px 25px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .client-card {
        padding: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .tech-item {
        padding: 1.2rem 0.8rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}