﻿        :root {
            --primary: #059669;
            --secondary: #0d9488;
            --accent: #10b981;
            --warm: #f59e0b;
            --purple: #8b5cf6;
            --gradient-1: linear-gradient(135deg, #059669, #0d9488);
            --gradient-2: linear-gradient(135deg, #10b981, #34d399);
            --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
        }

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

        html {
            max-width: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #0a0a0a;
            color: #ffffff;
            overflow-x: hidden;
            transition: background 0.25s ease, color 0.25s ease;
        }

        img, video, canvas, iframe {
            max-width: 100%;
        }

        body.light-theme {
            background:
                radial-gradient(circle at top left, rgba(187, 247, 208, 0.85), transparent 34rem),
                linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 42%, #dcfce7 100%);
            color: #10231b;
        }

        .font-display {
            font-family: 'Space Grotesk', sans-serif;
        }

        .gradient-text {
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .gradient-text-warm {
            background: var(--gradient-warm);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-gradient {
            background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.1) 0%, rgba(10, 10, 10, 0.95) 70%);
        }

        body.light-theme .hero-gradient {
            background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.18) 0%, rgba(236, 253, 245, 0.88) 72%);
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        body.light-theme .glass-card {
            background: rgba(255, 255, 255, 0.74);
            border-color: rgba(4, 120, 87, 0.18);
            box-shadow: 0 18px 45px rgba(6, 95, 70, 0.10);
        }

        .service-card {
            background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(13, 148, 136, 0.1) 100%);
            border: 1px solid rgba(16, 185, 129, 0.2);
            transition: all 0.3s ease;
        }

        body.light-theme .service-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(209, 250, 229, 0.72) 100%);
            border-color: rgba(5, 150, 105, 0.22);
            box-shadow: 0 14px 34px rgba(6, 95, 70, 0.09);
        }

        .service-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
        }

        .glow-green {
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
        }

        .scroll-smooth {
            scroll-behavior: smooth;
        }

        .theme-toggle {
            width: 34px;
            height: 34px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            background: rgba(255, 255, 255, 0.06);
            color: #d1fae5;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .theme-toggle:hover {
            border-color: rgba(16, 185, 129, 0.55);
            color: #ffffff;
            transform: translateY(-1px);
        }

        body.light-theme .theme-toggle {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(15, 23, 42, 0.12);
            color: #f59e0b;
        }

        body.light-theme .text-white {
            color: #10231b !important;
        }

        body.light-theme .text-gray-300 {
            color: #1f3d32 !important;
        }

        body.light-theme .text-gray-400 {
            color: #36584b !important;
        }

        body.light-theme nav.glass-card {
            background: rgba(240, 253, 244, 0.92);
            border-bottom: 1px solid rgba(5, 150, 105, 0.18);
            box-shadow: 0 10px 28px rgba(6, 95, 70, 0.08);
        }

        body.light-theme section {
            color: #10231b;
        }

        body.light-theme #projetos {
            background: linear-gradient(180deg, rgba(220, 252, 231, 0.22), rgba(187, 247, 208, 0.26));
        }

        #projetos .grid {
            align-items: start;
        }

        body.light-theme .glass-card h3,
        body.light-theme .service-card h3,
        body.light-theme .font-semibold {
            color: #10231b;
        }

        body.light-theme footer {
            border-color: rgba(15, 23, 42, 0.12);
        }

        body.light-theme .bg-gray-900,
        body.light-theme .hover\:bg-gray-800:hover {
            background: #111827 !important;
            color: #ffffff !important;
        }

        body.light-theme .bg-blue-600,
        body.light-theme .hover\:bg-blue-700:hover {
            color: #ffffff !important;
        }

        body.light-theme .chat-header,
        body.light-theme .chat-header * {
            color: #ffffff !important;
        }

        body.light-theme .bg-gradient-to-r.text-white,
        body.light-theme .bg-gradient-to-r .text-white,
        body.light-theme .bg-gradient-to-br .text-white,
        body.light-theme a.bg-gradient-to-r,
        body.light-theme a.bg-blue-600,
        body.light-theme a.bg-gray-900,
        body.light-theme .bg-blue-600.text-white,
        body.light-theme .bg-gray-900.text-white,
        body.light-theme .bg-green-600.text-white {
            color: #ffffff !important;
        }

        body.light-theme a.bg-gradient-to-r *,
        body.light-theme a.bg-blue-600 *,
        body.light-theme a.bg-gray-900 * {
            color: #ffffff !important;
        }

        .chat-shell {
            position: fixed;
            bottom: 6.5rem;
            right: 1.5rem;
            width: min(420px, calc(100vw - 2rem));
            max-height: min(680px, calc(100vh - 7rem));
            z-index: 50;
            display: flex;
            flex-direction: column;
        }

        .chat-shell.hidden {
            display: none;
        }

        .chat-launcher {
            position: relative;
            z-index: 70;
            box-shadow: 0 18px 42px rgba(5, 150, 105, 0.38);
        }

        .chat-launcher:hover {
            transform: translateY(-2px);
        }

        .chat-messages {
            height: min(420px, calc(100vh - 18rem));
            flex: 1 1 auto;
        }

        .chat-header {
            position: sticky;
            top: 0;
            z-index: 80;
            flex: 0 0 auto;
        }

        .chat-close {
            border: 1px solid rgba(255, 255, 255, 0.28);
            background: rgba(255, 255, 255, 0.12);
        }

        .chat-close:hover {
            background: rgba(255, 255, 255, 0.22);
            transform: translateY(-1px);
        }

        .chat-input {
            flex: 0 0 auto;
        }

        .chat-input input {
            min-width: 0;
        }

        .chat-bubble {
            max-width: 86%;
            border-radius: 18px;
            line-height: 1.5;
        }

        .chat-bubble.bot {
            border-bottom-left-radius: 6px;
        }

        .chat-bubble.user {
            border-bottom-right-radius: 6px;
        }

        .quick-reply {
            border: 1px solid rgba(16, 185, 129, 0.28);
            background: rgba(16, 185, 129, 0.08);
            color: #065f46;
            transition: all 0.2s ease;
        }

        .quick-reply:hover {
            background: rgba(16, 185, 129, 0.16);
            border-color: rgba(16, 185, 129, 0.5);
        }

        .typing-dot {
            animation: typingPulse 1s infinite ease-in-out;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.15s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.3s;
        }

        @keyframes typingPulse {
            0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
            40% { opacity: 1; transform: translateY(-2px); }
        }

        @media (max-width: 640px) {
            .chat-widget {
                left: 0;
                right: 0;
                bottom: 0;
                pointer-events: none;
            }

            body.chat-open {
                overflow: hidden;
            }

            body.chat-open .chat-launcher {
                display: none !important;
            }

            .chat-launcher {
                pointer-events: auto;
                margin-left: auto;
                margin-right: 1rem;
                margin-bottom: 1rem;
                width: 3.75rem !important;
                height: 3.75rem !important;
            }

            .chat-shell {
                pointer-events: auto;
                position: fixed;
                inset: 0.75rem;
                width: auto !important;
                max-height: none;
                height: calc(100dvh - 1.5rem);
                border-radius: 22px;
                overflow: hidden;
                box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
            }

            .chat-messages {
                height: auto !important;
                min-height: 0;
                flex: 1 1 auto;
                padding: 0.9rem;
                background: #f8faf9 !important;
            }

            .chat-header {
                padding: 0.8rem 0.95rem !important;
                align-items: center;
                gap: 0.75rem;
                min-height: auto;
            }

            .chat-header .w-10 {
                width: 2.25rem !important;
                height: 2.25rem !important;
                flex: 0 0 2.25rem;
            }

            .chat-header h3 {
                font-size: 1rem;
                line-height: 1.05;
                white-space: nowrap;
            }

            .chat-header p {
                font-size: 0.72rem;
                line-height: 1.2;
                max-width: 12.5rem;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .chat-close {
                width: 2.4rem;
                height: 2.4rem;
                padding: 0 !important;
                justify-content: center;
                flex: 0 0 2.4rem;
                margin-left: auto;
            }

            .chat-status {
                display: none;
            }

            .chat-bubble {
                max-width: 94%;
                border-radius: 16px;
            }

            .chat-bubble .text-sm {
                font-size: 0.88rem;
            }

            #quickReplies {
                display: flex !important;
                flex-wrap: nowrap !important;
                overflow-x: auto;
                overflow-y: hidden;
                gap: 0.5rem;
                padding: 0.75rem 0.9rem !important;
                max-height: none;
                scrollbar-width: thin;
            }

            #quickReplies .quick-reply {
                white-space: nowrap;
                width: auto;
                flex: 0 0 auto;
                min-height: 2.25rem;
                padding: 0.48rem 0.8rem;
                line-height: 1.15;
                font-size: 0.74rem;
            }

            .chat-input {
                padding: 0.85rem 0.9rem !important;
                border-top-color: #d1fae5 !important;
            }

            .chat-input input {
                font-size: 0.86rem;
                padding: 0.85rem 0.9rem !important;
                border-radius: 14px !important;
            }

            .chat-input button {
                width: 3rem;
                padding-left: 0 !important;
                padding-right: 0 !important;
                flex: 0 0 3rem;
                border-radius: 14px !important;
            }
        }

        @media (max-width: 380px) {
            .chat-shell {
                inset: 0.45rem;
                height: calc(100dvh - 0.9rem);
            }

            .chat-header h3 {
                white-space: nowrap;
                max-width: none;
            }

            .chat-header p {
                max-width: 9rem;
            }

            #quickReplies {
                max-height: none;
            }
        }
    
