/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #1a1a1a;
    --accent-color: #ff8c42;
    --text-color: #000000;
    --text-light: #333333;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #333333;
    --success-color: #ff6b35;
    --error-color: #cc0000;
    --shadow: 0 4px 6px -1px rgba(255, 107, 53, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(255, 107, 53, 0.5);
    --gradient: linear-gradient(135deg, #ff6b35 0%, #000000 50%, #ff8c42 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

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

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-brand .tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 25s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    width: 8px;
    height: 8px;
    left: 40%;
    animation-delay: 1s;
    animation-duration: 22s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 50%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 24s;
}

.particle:nth-child(7) {
    width: 4px;
    height: 4px;
    left: 70%;
    animation-delay: 8s;
    animation-duration: 19s;
}

.particle:nth-child(8) {
    width: 6px;
    height: 6px;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 21s;
}

.particle:nth-child(9) {
    width: 3px;
    height: 3px;
    left: 90%;
    animation-delay: 7s;
    animation-duration: 17s;
}

.particle:nth-child(10) {
    width: 5px;
    height: 5px;
    left: 95%;
    animation-delay: 9s;
    animation-duration: 23s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero {
    background: linear-gradient(135deg, rgba(255,107,53,0.8) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.9) 60%, rgba(255,140,66,0.8) 100%), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="serverGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23222;stop-opacity:1" /><stop offset="50%" style="stop-color:%23111;stop-opacity:1" /><stop offset="100%" style="stop-color:%23000;stop-opacity:1" /></linearGradient><pattern id="serverRoom" x="0" y="0" width="400" height="300" patternUnits="userSpaceOnUse"><rect width="380" height="280" fill="url(%23serverGrad)" stroke="%23ff6b35" stroke-width="1" rx="8"/><g fill="%23333"><rect x="20" y="20" width="340" height="60" rx="4"/><rect x="20" y="100" width="340" height="60" rx="4"/><rect x="20" y="180" width="340" height="60" rx="4"/></g><g fill="%23555"><rect x="30" y="30" width="80" height="8" rx="2"/><rect x="120" y="30" width="60" height="8" rx="2"/><rect x="190" y="30" width="40" height="8" rx="2"/><rect x="240" y="30" width="100" height="8" rx="2"/><rect x="30" y="45" width="200" height="4" rx="1"/><rect x="30" y="55" width="150" height="4" rx="1"/><rect x="30" y="110" width="90" height="8" rx="2"/><rect x="130" y="110" width="70" height="8" rx="2"/><rect x="210" y="110" width="80" height="8" rx="2"/><rect x="300" y="110" width="50" height="8" rx="2"/><rect x="30" y="125" width="180" height="4" rx="1"/><rect x="30" y="135" width="220" height="4" rx="1"/><rect x="30" y="190" width="110" height="8" rx="2"/><rect x="150" y="190" width="80" height="8" rx="2"/><rect x="240" y="190" width="90" height="8" rx="2"/><rect x="340" y="190" width="40" height="8" rx="2"/><rect x="30" y="205" width="160" height="4" rx="1"/><rect x="30" y="215" width="190" height="4" rx="1"/></g><g fill="%23ff6b35"><circle cx="50" cy="70" r="4"/><circle cx="70" cy="70" r="4"/><circle cx="90" cy="70" r="4"/><circle cx="110" cy="70" r="4"/><circle cx="130" cy="70" r="4"/><circle cx="150" cy="70" r="4"/><circle cx="170" cy="70" r="4"/><circle cx="190" cy="70" r="4"/><circle cx="210" cy="70" r="4"/><circle cx="230" cy="70" r="4"/><circle cx="250" cy="70" r="4"/><circle cx="270" cy="70" r="4"/><circle cx="290" cy="70" r="4"/><circle cx="310" cy="70" r="4"/><circle cx="330" cy="70" r="4"/><circle cx="50" cy="150" r="4"/><circle cx="70" cy="150" r="4"/><circle cx="90" cy="150" r="4"/><circle cx="110" cy="150" r="4"/><circle cx="130" cy="150" r="4"/><circle cx="150" cy="150" r="4"/><circle cx="170" cy="150" r="4"/><circle cx="190" cy="150" r="4"/><circle cx="210" cy="150" r="4"/><circle cx="230" cy="150" r="4"/><circle cx="250" cy="150" r="4"/><circle cx="270" cy="150" r="4"/><circle cx="290" cy="150" r="4"/><circle cx="310" cy="150" r="4"/><circle cx="330" cy="150" r="4"/><circle cx="50" cy="230" r="4"/><circle cx="70" cy="230" r="4"/><circle cx="90" cy="230" r="4"/><circle cx="110" cy="230" r="4"/><circle cx="130" cy="230" r="4"/><circle cx="150" cy="230" r="4"/><circle cx="170" cy="230" r="4"/><circle cx="190" cy="230" r="4"/><circle cx="210" cy="230" r="4"/><circle cx="230" cy="230" r="4"/><circle cx="250" cy="230" r="4"/><circle cx="270" cy="230" r="4"/><circle cx="290" cy="230" r="4"/><circle cx="310" cy="230" r="4"/><circle cx="330" cy="230" r="4"/></g><g fill="%23ff8c42"><circle cx="60" cy="80" r="2"/><circle cx="80" cy="80" r="2"/><circle cx="100" cy="80" r="2"/><circle cx="120" cy="80" r="2"/><circle cx="140" cy="80" r="2"/><circle cx="160" cy="80" r="2"/><circle cx="180" cy="80" r="2"/><circle cx="200" cy="80" r="2"/><circle cx="220" cy="80" r="2"/><circle cx="240" cy="80" r="2"/><circle cx="260" cy="80" r="2"/><circle cx="280" cy="80" r="2"/><circle cx="300" cy="80" r="2"/><circle cx="320" cy="80" r="2"/><circle cx="60" cy="160" r="2"/><circle cx="80" cy="160" r="2"/><circle cx="100" cy="160" r="2"/><circle cx="120" cy="160" r="2"/><circle cx="140" cy="160" r="2"/><circle cx="160" cy="160" r="2"/><circle cx="180" cy="160" r="2"/><circle cx="200" cy="160" r="2"/><circle cx="220" cy="160" r="2"/><circle cx="240" cy="160" r="2"/><circle cx="260" cy="160" r="2"/><circle cx="280" cy="160" r="2"/><circle cx="300" cy="160" r="2"/><circle cx="320" cy="160" r="2"/><circle cx="60" cy="240" r="2"/><circle cx="80" cy="240" r="2"/><circle cx="100" cy="240" r="2"/><circle cx="120" cy="240" r="2"/><circle cx="140" cy="240" r="2"/><circle cx="160" cy="240" r="2"/><circle cx="180" cy="240" r="2"/><circle cx="200" cy="240" r="2"/><circle cx="220" cy="240" r="2"/><circle cx="240" cy="240" r="2"/><circle cx="260" cy="240" r="2"/><circle cx="280" cy="240" r="2"/><circle cx="300" cy="240" r="2"/><circle cx="320" cy="240" r="2"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23serverRoom)"/></svg>');
    background-size: cover, 800px 600px;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 0 10px;
    border-radius: 5px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.tech-animation i {
    position: absolute;
    font-size: 4rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.tech-animation i:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    color: #000000;
}

.tech-animation i:nth-child(2) {
    bottom: 0;
    left: 0;
    animation-delay: 0.3s;
    color: #333333;
}

.tech-animation i:nth-child(3) {
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
    color: #666666;
}

.tech-animation i:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 0.9s;
    color: #999999;
}

.tech-animation i:nth-child(5) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 1.2s;
    color: #000000;
}

.tech-animation i:nth-child(6) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.5s;
    color: #333333;
}

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

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.service-card ul li {
    padding: 0.3rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    padding: 0.3rem 0;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: #e55a2b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .tech-animation {
        width: 200px;
        height: 200px;
    }
    
    .tech-animation i {
        font-size: 3rem;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .about-content > *,
    .contact-content > * {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .service-card.animate,
    .about-content > *.animate,
    .contact-content > *.animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}