/* ===================================
   ByteBio Style - CFF Marketing Digital
   Financial Consulting Color Scheme
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
   Color System - Financial Consulting
   =================================== */

:root {
    /* Primary Colors - Navy Blue (Trust & Professionalism) */
    --primary-dark: #0f172a;
    --primary-blue: #1e40af;
    --primary-light: #3b82f6;

    /* Secondary Colors - Green (Growth & Prosperity) */
    --secondary-green: #047857;
    --secondary-light: #10b981;
    --secondary-emerald: #059669;

    /* Accent Colors - Gold (Premium & Success) */
    --accent-gold: #ca8a04;
    --accent-light: #fbbf24;

    /* Neutral Colors */
    --gray-dark: #334155;
    --gray-medium: #64748b;
    --gray-light: #cbd5e1;

    /* Base Colors */
    --black: #000000;
    --white: #ffffff;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Navigation - Professional Style
   =================================== */

.navbar {
    position: relative;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 130px;
    width: auto;
    filter: brightness(1.2);
    /* Shadow removed initially */
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--secondary-green), var(--secondary-emerald));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
    background: linear-gradient(135deg, var(--secondary-emerald), var(--secondary-light));
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Navbar Scrolled State - Menu sempre visível */
.navbar.scrolled {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.95);
    /* Semi-transparente quando scrolled */
    backdrop-filter: blur(10px);
}

.navbar.scrolled .logo img {
    height: 100px;
    /* Logo um pouco menor ao rolar */
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}


/* ===================================
   Hero Section - Professional Style
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(18px, 2.5vw, 24px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons - Professional Style
   =================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-green), var(--secondary-emerald));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
    background: linear-gradient(135deg, var(--secondary-emerald), var(--secondary-light));
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    border-color: var(--secondary-light);
    background: rgba(59, 130, 246, 0.1);
}

/* ===================================
   Sections - Alternating Backgrounds
   =================================== */

.section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.section-white {
    padding: 100px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.section-white .section-title {
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-white .section-subtitle {
    color: var(--gray-medium);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================================
   Cards Grid - Professional Style
   =================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.card {
    background: rgba(30, 64, 175, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(30, 64, 175, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.section-white .card {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(51, 65, 85, 0.15);
}

.section-white .card:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.section-white .card h3 {
    color: var(--primary-dark);
}

.card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.section-white .card p {
    color: var(--gray-dark);
}

/* ===================================
   Stats Section - White Background
   =================================== */

.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 100px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 18px;
    color: var(--gray-dark);
    font-weight: 400;
}

/* ===================================
   Services Section - Professional Style
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.service-card {
    background: rgba(30, 64, 175, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(30, 64, 175, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 25px;
    display: block;
}

.service-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.service-card p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    margin-top: 20px;
}

.service-card li {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-light);
    font-weight: 700;
}

/* ===================================
   CTA Section - Professional Style
   =================================== */

.cta-section {
    padding: 120px 40px;
    text-align: center;
    background: var(--white);
    /* Changed to white */
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.cta-section h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    /* Darker gradient for white bg */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--gray-dark);
    /* Dark text for white bg */
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===================================
   Footer - Professional Style
   =================================== */

.footer {
    background: var(--primary-dark);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===================================
   AI Assistant - Professional Style
   =================================== */

.ai-assistant-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(103, 61, 230, 0.4);
    transition: all 0.3s ease;
    animation: pulse-ai 2s ease-in-out infinite;
}

.ai-button-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: rotate-subtle 8s linear infinite;
}

@keyframes pulse-ai {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(103, 61, 230, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(103, 61, 230, 0.6), 0 0 40px rgba(103, 61, 230, 0.3);
    }
}

@keyframes rotate-subtle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

.ai-assistant-button:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 40px rgba(103, 61, 230, 0.7), 0 0 60px rgba(103, 61, 230, 0.4);
    animation: none;
}

.ai-assistant-button:hover .ai-button-icon {
    animation: none;
    transform: rotate(0deg);
}

.ai-chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 140px);
    background: var(--primary-dark);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    z-index: 998;
}

.ai-chat-modal.active {
    display: flex;
}

.ai-chat-header {
    padding: 25px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-header-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ai-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-close:hover {
    color: var(--white);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-message {
    display: flex;
    gap: 12px;
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-green), var(--secondary-emerald));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ai-message.user .ai-message-avatar {
    background: rgba(59, 130, 246, 0.2);
    color: var(--white);
}

.ai-message-content {
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 15px 20px;
    max-width: 75%;
    color: var(--white);
    line-height: 1.6;
    font-size: 15px;
}

.ai-message.user .ai-message-content {
    background: rgba(4, 120, 87, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.ai-quick-actions {
    padding: 20px 25px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-quick-action {
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-quick-action:hover {
    background: rgba(30, 64, 175, 0.2);
    color: var(--white);
    border-color: var(--primary-light);
}

.ai-chat-input-container {
    padding: 25px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    gap: 12px;
}

.ai-chat-input {
    flex: 1;
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    color: var(--white);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

.ai-chat-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(30, 64, 175, 0.15);
}

.ai-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ai-chat-send {
    background: linear-gradient(135deg, var(--secondary-green), var(--secondary-emerald));
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.4);
}

/* Scrollbar */
.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: rgba(30, 64, 175, 0.05);
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* ===================================
   Responsive - Mobile
   =================================== */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        width: 100%;
        padding: 40px;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(59, 130, 246, 0.2);
        align-items: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section,
    .section-white {
        padding: 60px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .cards-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .ai-chat-modal {
        right: 10px;
        bottom: 80px;
        width: calc(100vw - 20px);
        height: 500px;
        max-height: 60vh;
    }

    .ai-assistant-button {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .ai-chat-header {
        padding: 15px;
    }

    .ai-chat-title {
        font-size: 16px;
    }

    .ai-chat-messages {
        padding: 15px;
        gap: 15px;
    }

    .ai-message-content {
        font-size: 14px;
        padding: 12px 15px;
        max-width: 85%;
    }

    .ai-message-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .ai-quick-actions {
        padding: 12px 15px;
        gap: 8px;
    }

    .ai-quick-action {
        font-size: 12px;
        padding: 6px 12px;
    }

    .ai-chat-input-container {
        padding: 15px;
    }

    .ai-chat-input {
        font-size: 14px;
        padding: 10px 15px;
    }

    .ai-chat-send {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .logo img {
        height: 90px;
    }
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Moved to left side */
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-green), var(--secondary-emerald));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9990;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-emerald), var(--secondary-light));
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
    color: var(--white);
}

/* ===================================
   Contact Form - Professional Style
   =================================== */

.contact-form {
    background: rgba(30, 64, 175, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(30, 64, 175, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}