/*
Theme Name: NexaFlow Dark Agency
Theme URI: https://nexaflow.com
Author: NexaFlow
Description: Premium SEO-optimized WordPress agency theme inspired by Criativo dark layout with exact logo implementation.
Version: 2.1.0
License: GNU General Public License v2 or later
Tags: dark, agency, seo-friendly, criativo, custom-logo
*/

:root {
    --bg-dark: #070B10;
    --card-bg: #0E1622;
    --card-border: rgba(255, 255, 255, 0.07);
    --accent-teal: #00C2A8;
    --accent-glow: rgba(0, 194, 168, 0.15);
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* PRELOADER WITH EXACT LOGO ANIMATION */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-brand {
    width: 180px;
    height: auto;
    animation: logoPulse 1.8s infinite ease-in-out;
}

.loader-bar {
    width: 140px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    margin-top: 25px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    width: 40%;
    height: 100%;
    background: var(--accent-teal);
    position: absolute;
    animation: loadingBar 1.5s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(0.96); opacity: 0.8; }
    50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 15px rgba(0,194,168,0.4)); }
}

@keyframes loadingBar {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* HEADER NAVIGATION */
header {
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 11, 16, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.header-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-teal);
}

.header-cta {
    padding: 10px 22px;
    background: var(--accent-teal);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.header-cta:hover {
    box-shadow: 0 0 20px rgba(0, 194, 168, 0.5);
    transform: translateY(-2px);
}

/* CRIATIVO HERO SECTION */
.hero-criativo {
    padding: 110px 8% 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-tag {
    color: var(--accent-teal);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-criativo h1 {
    font-size: 3.4rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-criativo h1 span {
    color: var(--accent-teal);
}

.hero-criativo p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 520px;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-media img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* CRIATIVO SERVICES SECTION */
.services-section {
    padding: 90px 8%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 40px;
}

.services-intro h2 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 20px;
}

.services-intro p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--card-bg);
    padding: 35px 30px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 194, 168, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* STATS COUNTER BAR */
.stats-bar {
    padding: 60px 8%;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin: 60px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-teal);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CLIENT TRANSFORMATION SECTION */
.transformation-section {
    padding: 80px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.trans-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.trans-table th, .trans-table td {
    padding: 20px 25px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.trans-table th {
    background: rgba(0, 194, 168, 0.08);
    color: var(--accent-teal);
    font-size: 1.1rem;
}

footer {
    padding: 40px 8%;
    text-align: center;
    background: #04070B;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .hero-criativo, .services-section {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
