/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #1f6feb;
    --primary-dark: #0b4db8;
    --primary-light: #5aa0ff;
    --secondary-color: #00c2ff;
    --text-dark: #0b0f14;
    --text-light: #556070;
    --text-white: #ffffff;
    --bg-dark: #0b0f14;
    --bg-dark-2: #111827;
    --bg-light: #f4f7fb;
    --bg-white: #ffffff;
    --border-color: #d9e0ea;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Typography */
    --font-primary: 'Sora', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.section--dark {
    background-color: var(--bg-dark-2);
    color: var(--text-white);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 15, 20, 0.88);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header.scrolled {
    background-color: rgba(11, 15, 20, 0.96);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo i {
    font-size: 1.8rem;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
    object-fit: contain;
}

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

.nav-link {
    color: var(--text-white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: var(--transition-normal);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 15% 20%, rgba(31, 111, 235, 0.35) 0%, transparent 45%),
                radial-gradient(circle at 85% 30%, rgba(0, 194, 255, 0.25) 0%, transparent 50%),
                linear-gradient(135deg, #05070b 0%, #0b1220 50%, #0a1a33 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-title .highlight {
    display: block;
    color: #7cd2ff;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 2rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.section--dark .section-title,
.section--dark .section-subtitle,
.section--dark h3,
.section--dark p {
    color: var(--text-white);
}

.section--dark .section-divider {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

/* ============================================
   Sobre Section
   ============================================ */
.sobre {
    background-color: var(--bg-white);
}

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

.sobre-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.sobre-highlight {
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(0, 194, 255, 0.12));
    border-left: 4px solid var(--secondary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    font-size: 1.2rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.sobre-highlight strong {
    color: var(--primary-color);
}

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.stat-card p {
    color: var(--text-white);
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   Serviços Section
   ============================================ */
.servicos {
    background-color: var(--bg-light);
}

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

/* ============================================
   Processo Section
   ============================================ */
.processo {
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 194, 255, 0.4);
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.25), rgba(31, 111, 235, 0.35));
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

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

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Portfólio Section
   ============================================ */
.portfolio {
    background-color: var(--bg-white);
}

.portfolio-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
}

.portfolio-summary h3,
.portfolio-clients h3 {
    margin-bottom: 1rem;
}

.portfolio-summary p,
.portfolio-clients p {
    margin-bottom: 1.5rem;
}

.portfolio-areas {
    background-color: var(--bg-light);
    border-radius: 14px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.portfolio-areas h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.portfolio-areas ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-light);
    display: grid;
    gap: 0.5rem;
}

.timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-item {
    background-color: var(--bg-light);
    border-radius: 14px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.logo-tile {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-normal);
}

.logo-tile:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.portfolio-highlights {
    display: grid;
    gap: 1rem;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 163, 255, 0.08));
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 102, 204, 0.15);
}

.highlight-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    background-color: var(--bg-light);
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--text-light);
}

/* ============================================
   Contato Section
   ============================================ */
.contato {
    background-color: var(--bg-white);
}

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.info-card p,
.info-card a {
    color: var(--text-light);
    margin: 0;
}

.info-card a:hover {
    color: var(--primary-color);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

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

.form-group textarea {
    resize: vertical;
}

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

.form-message.success {
    background-color: #d4edda;
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--text-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 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    display: flex;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .contato-wrapper {
        grid-template-columns: 1fr;
    }

    .portfolio-layout {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .hero-badges {
        gap: 0.75rem;
    }

    .hero-badges li {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-item {
        padding: 0.9rem 1rem;
    }

    .timeline-item {
        padding: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.125rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    .logo-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        padding: 1.5rem 1.25rem;
    }
}
