/* Variáveis globais */
:root {
    /* Tema Escuro (padrão) */
    --background: #0f172a;
    --text: #f8fafc;
    --primary-color: #38bdf8;
    --secondary-color: #0ea5e9;
    --card-bg: rgba(15, 23, 42, 0.8);
    --card-border: rgba(56, 189, 248, 0.2);
    --text-color: #ffffff;
    --light-text: #94a3b8;
    --section-bg: #1e293b;
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --background: #ffffff;
    --text: #0f172a;
    --primary-color: #38bdf8;
    --secondary-color: #0ea5e9;
    --card-bg: #0f172a;
    --card-border: rgba(56, 189, 248, 0.2);
    --section-bg: #0f172a;
    --text-color: #ffffff;
    --light-text: #94a3b8;
}

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

.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: rotate 1.5s linear infinite;
}

.loader .circle:nth-child(1) {
    animation-delay: 0s;
}

.loader .circle:nth-child(2) {
    width: 70%;
    height: 70%;
    animation-delay: 0.2s;
    border-top-color: var(--secondary-color);
}

.loader .circle:nth-child(3) {
    width: 40%;
    height: 40%;
    animation-delay: 0.4s;
    border-top-color: var(--primary-color);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

.particles-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("../img/me8.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 3;
    pointer-events: none;
}

/* Botão de Tradução */
.translate-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.translate-btn i {
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
    padding: 6rem 0;
    pointer-events: auto;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.btn.primary {
    background: var(--primary-color);
    color: var(--background);
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* Ícones Sociais */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Seção Sobre */
.about {
    padding: 6rem 0;
    background: var(--section-bg);
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.skills ul {
    list-style: none;
}

.skills li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light-text);
}

.skills li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Seção Serviços */
.services {
    padding: 6rem 0;
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    background: var(--section-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--card-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(56, 189, 248, 0.2);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Seção Contato */
.contact {
    padding: 6rem 0;
    background: var(--section-bg);
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--background);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color);
}

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

/* Footer */
footer {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-social-icons {
    display: flex;
    gap: 1.5rem;
}

.footer-social-icons .social-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-social-icons .social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--background);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .btn {
        display: block;
        margin: 0.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo img {
        height: 45px;
    }
    
    .logo span {
        font-size: 1.4rem;
    }
}

/* Animações */
.animate__animated {
    visibility: visible !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.services-grid,
.contact-content {
    animation: fadeIn 1s ease-out;
}

.btn, .translate-btn, .social-icon, .nav-links a {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
} 
