/* Colors - Professional Dark Theme */
:root {
    --primary-blue: #3b82f6;
    /* Blue 500 */
    --primary-dark: #60a5fa;
    /* Blue 400 (inverted interaction) */
    --primary-light: #1e3a8a;
    /* Blue 900 */
    --accent-cyan: #38bdf8;
    /* Sky 400 */

    --text-dark: #f8fafc;
    /* Slate 50 (Invertido para branco claro) */
    --text-body: #cbd5e1;
    /* Slate 300 (Invertido para cinza claro) */
    --text-light: #64748b;
    /* Slate 500 */

    /* Circle Customization */
    --circle-1-size: 450px;
    --circle-1-color: #1e3a8a;
    /* Blue 900 */
    --circle-2-size: 380px;
    --circle-2-color: #0c4a6e;
    /* Sky 900 */

    --white: #0f172a;
    /* Invertendo variavel --white para atuar como superficie escura (Slate 900) */
    --background-site: #020617;
    /* Slate 950 ultra dark */

    /* Blue Card Style Inverted */
    --card-bg: rgba(15, 23, 42, 0.6);
    /* Glassy dark */
    --card-border: #1e293b;
    /* Slate 800 */

    --glass-header: rgba(2, 6, 23, 0.85);
    /* Slate 950 com alpha */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);

    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    background-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    /* Crisp text */
    word-wrap: break-word;
    overflow-wrap: break-word;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* === Layout & Containers === */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Animation Canvas */
#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}

/* === Typography & Components === */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 1px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

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

.badge {
    background-color: var(--primary-light);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid #bfdbfe;
    /* Blue 200 */
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Header === */
.header {
    height: var(--header-height);
    background-color: var(--glass-header);
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.03em;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* === Hero Section === */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1;
    z-index: 2;
    /* Ensure text is above shapes */
    max-width: 100%;
    /* Allow full width */
}

/* ... existing styles ... */

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 4.5rem);
    /* Reduced size further */
    /* Responsive scaling */
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    /* white-space: nowrap; Removed to prevent cutting off on very small screens */
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 800px;
    /* Increased to match wider layout */
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.6;
    /* Slight fade since it's background now */
    pointer-events: none;
}

/* Animated Circles/Glass Cards in Hero */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Orbit Animation */
@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-orbit {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.abstract-shape {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
    /* Removed orbit animation to prevent overlapping */
    transform-origin: center center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    /* Optional: Counter orbit if we want them stationary, or let them spin */
}

.circle-1 {
    width: var(--circle-1-size);
    height: var(--circle-1-size);
    background: var(--circle-1-color);
    top: 50px;
    left: 20px;
}

.circle-2 {
    width: var(--circle-2-size);
    height: var(--circle-2-size);
    background: var(--circle-2-color);
    bottom: 50px;
    right: 20px;
}

.card-glass {
    position: absolute;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* Floating animation instead of orbit */
    animation: float 6s ease-in-out infinite;

    /* Card 1: Sites Velozes (Top Left) */
    top: 20%;
    left: 0%;
}

/* Orbit positions for new cards - Wide Star Pattern */
.glass-2 {
    /* Card 2: Automação Total (Top Right) */
    top: 5%;
    left: auto;
    right: 15%;
    animation-delay: 1s;
}

.glass-3 {
    /* Card 3: Dashboard (Middle Right) */
    top: 45%;
    left: auto;
    right: -5%;
    animation-delay: 2s;
}

.glass-4 {
    /* Card 4: WhatsApp (Bottom Center) */
    top: 85%;
    left: 40%;
    right: auto;
    animation-delay: 3s;
}

.glass-5 {
    /* Card 5: Agentes (Middle/Bottom Left) */
    top: 70%;
    left: 5%;
    animation-delay: 4s;
}

/* Scroll Reveal Animations */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: 1s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Fade Left/Right */
.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

.fade-left.active,
.fade-right.active {
    transform: translateX(0);
}

/* Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Typing Effect */
.typing-effect {
    display: inline-block;
    border-right: 3px solid var(--primary-blue);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink .75s step-end infinite;
    vertical-align: bottom;
    padding-right: 4px;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-blue)
    }
}

/* === Solutions Section === */
.solutions {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-body);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background-color: var(--card-bg);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background-color: var(--white);
    border-color: var(--primary-blue);
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
}

.card:hover .icon-box {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-body);
    margin-bottom: 32px;
    flex-grow: 1;
    font-size: 1rem;
}

.link-arrow {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-top: auto;
}

.link-arrow i {
    transition: 0.3s;
    font-size: 0.8em;
}

.card:hover .link-arrow i {
    transform: translateX(4px);
}

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

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.img-responsive {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.grayscale-img {
    filter: grayscale(100%);
    transition: 0.5s;
}

.grayscale-img:hover {
    filter: grayscale(0%);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
}

.experience-badge .number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.experience-badge .text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-body);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.check-list i {
    color: var(--primary-blue);
}

/* === CTA Section === */
.cta-section {
    padding: 100px 0 0;
}

.cta-box {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto 80px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-box p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.6);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    outline: none;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(30, 41, 59, 1);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-white:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.full-width {
    grid-column: span 2;
    width: 100%;
}

/* Contact Grid & Map */
.contact-location-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    margin-top: -40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.contact-info-card {
    background-color: rgba(15, 23, 42, 0.6);
    /* Match form glassmorphism */
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Match form border */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card h3 {
    color: var(--text-dark);
    font-size: 1.75rem;
    margin-bottom: 32px;
    font-weight: 800;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #f8fafc;
    /* Forced to bright white for readability */
    font-weight: 500;
    font-size: 1.05rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.linkedin-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.linkedin-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 4px solid var(--white);
    height: 100%;
    min-height: 350px;
}

.map-wrapper iframe {
    display: block;
    height: 100%;
    width: 100%;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.map-wrapper iframe:hover {
    filter: grayscale(0);
}

@media (max-width: 768px) {
    .contact-location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }
}

/* === Floating Buttons === */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #22c55e;
}


/* === Footer === */
.footer {
    background-color: var(--background-site);
    border-top: 1px solid #e2e8f0;
    padding: 80px 0 30px;
    color: var(--text-body);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--text-dark);
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-body);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-blue);
    transition: 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Responsive === */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .experience-badge {
        right: 0;
        left: 0;
        margin: auto;
        width: fit-content;
        bottom: -40px;
    }

    .check-list li {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header .btn {
        display: none;
    }

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

    .contact-form {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .full-width {
        grid-column: span 1;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* === Mobile Menu Styles === */
@media (max-width: 768px) {

    /* Header Adjustments */
    .header-container {
        position: relative;
    }

    /* Mobile Navigation */
    .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        right: -100%;
        /* Hidden by default */
        width: 100%;
        background-color: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        height: calc(100vh - var(--header-height));
        padding: 40px 24px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: center;
        gap: 32px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Animation for list items */
    .nav-list.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-list.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-list.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-list.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-list a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark);
        padding: 12px;
        display: block;
    }

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

    /* CTA Button inside Menu (optional, if we want to move it inside) */
    /* For now, we hide the header primary button on mobile as per previous rules */

    /* Mobile Menu Button Animation */
    .mobile-menu-btn {
        z-index: 1001;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }

    .mobile-menu-btn.active i {
        transform: rotate(180deg);
    }

    .mobile-menu-btn.active .fa-bars:before {
        content: "\f00d";
        /* Change to X icon */
    }

    /* Padding Adjustments for Mobile */
    .hero {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
    }

    .solutions,
    .about,
    .cta-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-container {
        gap: 40px;
    }

    .cta-box {
        padding: 40px 24px;
        margin-bottom: 40px;
    }

    .cta-box h2 {
        font-size: 1.75rem;
    }

    .cta-box p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    /* Adjust contact grid overlapping */
    .contact-location-grid {
        margin-top: 0;
        margin-bottom: 40px;
        flex-direction: column;
    }

    .contact-info-card {
        padding: 24px;
        width: 100%;
    }

    .map-wrapper {
        min-height: 250px;
        width: 100%;
    }
}