/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #3b82f6;
    --text: #1e293b;
    --text-light: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

/* Header e Navegação */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 1002;
}

.hamburger-menu.active {
    transform: rotate(90deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.95) 100%),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background-color: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    background-color: #f8fafc;
}

/* Serviços */
.services {
    padding: 8rem 1rem;
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--secondary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

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

/* Sobre */
.about {
    padding: 8rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop') center/cover;
    opacity: 0.1;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about h2 {
    margin-bottom: 2rem;
    font-size: 2.8rem;
    color: var(--secondary);
}

.about p {
    font-size: 1.2rem;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contato */
.contact {
    padding: 8rem 1rem;
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--secondary);
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#contact-form input,
#contact-form textarea {
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 1.2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#contact-form button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
}

footer p {
    opacity: 0.8;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-widget.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-widget.minimized {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #2563eb !important;
    overflow: hidden;
}

.chat-header {
    background: #2563eb;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-header.minimized {
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.chat-header.minimized h3 {
    display: none;
}

.chat-icon {
    font-size: 1.5rem;
    color: white;
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.user-message {
    margin-left: auto;
}

.message-content {
    background: #f3f4f6;
    padding: 0.75rem;
    border-radius: 1rem;
}

.user-message .message-content {
    background: #2563eb;
    color: white;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-right: 0.5rem;
}

.chat-input button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background: #1d4ed8;
}

/* Responsividade */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    main {
        width: 100%;
        overflow-x: hidden;
    }

    section {
        width: 100%;
        overflow-x: hidden;
        padding: 2rem 1rem;
    }

    nav {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.3s ease-in-out;
        z-index: 1001;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 3rem;
        width: 100%;
    }

    .hero-content {
        padding: 0;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .cta-button {
        width: 90%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        padding: 1rem;
        font-size: 1.6rem;
    }

    .services {
        padding: 3rem 1rem;
        width: 100%;
    }

    .services h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
    }

    .service-card {
        padding: 1.5rem;
        width: 100%;
        margin: 0;
    }

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

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .about {
        padding: 3rem 1rem;
        width: 100%;
    }

    .about-content {
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .about h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .about p {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 0.5rem;
        line-height: 1.6;
    }

    .contact {
        padding: 3rem 1rem;
        width: 100%;
    }

    .contact h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    #contact-form {
        padding: 1.5rem;
        width: 100%;
    }

    #contact-form input,
    #contact-form textarea {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    #contact-form button {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    footer p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-widget.minimized {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        bottom: 15px;
        right: 15px;
    }

    .chat-header {
        padding: 0.8rem;
    }

    .chat-body {
        height: calc(100vh - 100px);
    }

    .chat-messages {
        padding: 0.8rem;
    }

    .message {
        max-width: 85%;
        margin: 0 auto 0.8rem;
    }

    .chat-input {
        padding: 0.8rem;
    }

    .chat-input input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .chat-input button {
        padding: 0.8rem;
    }

    header {
        z-index: 1000;
    }
} 
