/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f4f5f7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(42, 45, 52, 0.95);
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00a7e1;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #2a2d34 0%, #00a7e1 100%);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E')
        no-repeat bottom;
    background-size: cover;
}

.animate-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.animate-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Seções */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2a2d34;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #00a7e1;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.card i {
    font-size: 3rem;
    color: #00a7e1;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2a2d34;
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #00a7e1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #00a7e1;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2a2d34;
}

/* Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 167, 225, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Contato */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2a2d34;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: #00a7e1;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    color: #2a2d34;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #00a7e1;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00a7e1;
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #00a7e1;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #0085b3;
}

/* Footer */
.footer {
    background: #2a2d34;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00a7e1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: #00a7e1;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #00a7e1;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: #0085b3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .animate-title {
        font-size: 2.5rem;
    }

    .animate-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Adicionar variáveis de cores no topo do arquivo */
:root {
    /* Tema escuro (padrão) */
    --primary-100-dark: #005ab3;
    --primary-200-dark: #0077e6;
    --primary-300-dark: #1a94ff;
    --accent-100-dark: #ff5722;
    --accent-200-dark: #ff7a50;
    --accent-300-dark: #ff9b7d;
    --background-100-dark: #001524;
    --background-200-dark: #002137;
    --background-300-dark: #002d4a;
    --text-100-dark: #ffffff;
    --text-200-dark: #f0f4f8;
    --text-300-dark: #e1e8f0;

    /* Tema claro */
    --primary-100-light: #1a73e8;
    --primary-200-light: #4285f4;
    --primary-300-light: #8ab4f8;
    --accent-100-light: #ea4335;
    --accent-200-light: #f25f52;
    --accent-300-light: #ff867c;
    --background-100-light: #ffffff;
    --background-200-light: #f8f9fa;
    --background-300-light: #e8eaed;
    --text-100-light: #202124;
    --text-200-light: #3c4043;
    --text-300-light: #5f6368;

    /* Variáveis ativas (começam com o tema escuro) */
    --primary-100: var(--primary-100-dark);
    --primary-200: var(--primary-200-dark);
    --primary-300: var(--primary-300-dark);
    --accent-100: var(--accent-100-dark);
    --accent-200: var(--accent-200-dark);
    --accent-300: var(--accent-300-dark);
    --background-100: var(--background-100-dark);
    --background-200: var(--background-200-dark);
    --background-300: var(--background-300-dark);
    --text-100: var(--text-100-dark);
    --text-200: var(--text-200-dark);
    --text-300: var(--text-300-dark);
}

/* Classe para tema claro */
body.light-mode {
    --primary-100: var(--primary-100-light);
    --primary-200: var(--primary-200-light);
    --primary-300: var(--primary-300-light);
    --accent-100: var(--accent-100-light);
    --accent-200: var(--accent-200-light);
    --accent-300: var(--accent-300-light);
    --background-100: var(--background-100-light);
    --background-200: var(--background-200-light);
    --background-300: var(--background-300-light);
    --text-100: var(--text-100-light);
    --text-200: var(--text-200-light);
    --text-300: var(--text-300-light);
}
/* Atualizações nas cores */
body {
    color: var(--text-100);
    background-color: var(--background-100);
}

.navbar {
    background-color: rgba(4, 14, 22, 0.95); /* based on background-100 */
}

.nav-links a::after {
    background-color: var(--primary-200);
}

.hero {
    background: linear-gradient(
        135deg,
        var(--background-200) 0%,
        var(--primary-100) 100%
    );
}

.cta-button {
    background-color: var(--accent-100);
}

.cta-button:hover {
    box-shadow: 0 10px 20px rgba(255, 102, 102, 0.3);
}

.section-title {
    color: var(--text-100);
}

.section-title::after {
    background-color: var(--primary-200);
}

.card {
    background: var(--background-200);
    color: var(--text-100);
}

.card i {
    color: var(--primary-200);
}

.card h3 {
    color: var(--text-100);
}

.service-card {
    background: var(--background-200);
}

.service-card::before {
    background: var(--primary-200);
}

.service-card i {
    color: var(--primary-200);
}

.service-card h3 {
    color: var(--text-100);
}

.portfolio-overlay {
    background: rgba(34, 113, 179, 0.9); /* based on primary-100 */
}

.social-links a {
    color: var(--text-200);
}

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

.contact-form {
    background: var(--background-200);
}

.form-group input,
.form-group textarea {
    background: var(--background-300);
    border-color: var(--background-300);
    color: var(--text-100);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-200);
}

.submit-button {
    background: var(--primary-200);
}

.submit-button:hover {
    background: var(--primary-100);
}

.footer {
    background: var(--background-200);
}

.footer-section h3 {
    color: var(--primary-200);
}

.footer-section ul a {
    color: var(--text-200);
}

.footer-section ul a:hover {
    color: var(--primary-200);
}

.newsletter-form input {
    background: var(--background-300);
    color: var(--text-100);
}

.newsletter-form button {
    background: var(--primary-200);
}

.newsletter-form button:hover {
    background: var(--primary-100);
}

.footer-bottom {
    border-color: var(--background-300);
}

/* Estilos para a área legal */
.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--background-300);
    border-bottom: 1px solid var(--background-300);
    margin: 2rem 0;
    width: 100%;
}

.legal-links a {
    color: var(--text-200);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-200);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

.legal-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.legal-links a:not(:last-child)::before {
    content: '|';
    position: absolute;
    right: -1rem;
    color: var(--background-300);
}

@media (max-width: 768px) {
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    .legal-links a:not(:last-child)::before {
        display: none;
    }

    .legal-links a {
        padding: 0.5rem;
    }
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-200);
    color: var(--text-100);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-300);
    transform: translateY(-5px);
}

/* Notificações */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: var(--box-border-radius);
    color: var(--text-100);
    z-index: 1000;
    animation: slideIn 0.3s ease forwards;
}

.notification.success {
    background: var(--primary-200);
}

.notification.error {
    background: var(--accent-100);
}

/* Toggle Modo Escuro */
.dark-mode-toggle {
    position: fixed;
    top: 6rem;
    right: 2rem;
    background: var(--background-200);
    color: var(--text-100);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--primary-200);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: rotate(360deg);
    background: var(--primary-200);
}

/* Menu Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-100);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--background-100);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-200);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Animações */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--background-200);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
    }

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

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }

    .dark-mode-toggle {
        top: 1rem;
        right: 1rem;
    }
}

/* Estilo para a seção de equipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--background-200);
    border-radius: var(--box-border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-200);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: var(--text-100);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-200);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-desc {
    color: var(--text-200);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    color: var(--text-200);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: var(--primary-200);
}

/* Responsividade */
@media (max-width: 768px) {
    .member-image {
        width: 150px;
        height: 150px;
    }

    .member-desc {
        font-size: 0.85rem;
    }
}

/* Menu Mobile */
.mobile-menu-btn {
    display: none;
    position: fixed;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-100);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

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

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

/* Ajuste para a navegação mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1003;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--background-200);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1002;
        display: flex;
    }

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

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

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

    /* Adiciona delay na animação de cada item */
    .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 li:nth-child(5) {
        transition-delay: 0.5s;
    }
    .nav-links li:nth-child(6) {
        transition-delay: 0.6s;
    }

    /* Overlay do menu */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Animação do botão hamburger */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Ajuste da navegação quando ativa */
    .nav-links a {
        color: var(--text-100);
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }

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

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

/* Previne scroll quando menu está aberto */
body.menu-open {
    overflow: hidden;
}
