/* ======== ESTILOS GERAIS ======== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700&display=swap');

:root {
    --blue: #007BFF;
    --primary: #2563eb;
    --black: #050505;
    --dark: #0f172a;
    --white: #fafafa;
    --light: #f8fafc;
    --gray: #c9c9c9;
    --secondary: #7e22ce;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--black);
    color: var(--white);
    line-height: 1.4;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.destaque {
    color: var(--blue);
}

/* ======== COMPONENTES ======== */
/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader::after {
    content: "";
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

#loading-percentage {
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.menu-icon, .close-icon {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu-navegacao {
    display: flex;
}

.lista-navegacao {
    display: flex;
    list-style: none;
    gap: 30px;
}

.lista-navegacao li a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.3s ease;
    position: relative;
}

.lista-navegacao li a:hover,
.lista-navegacao li a.active {
    color: white;
}

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

.lista-navegacao li a:hover::after,
.lista-navegacao li a.active::after {
    width: 100%;
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container-home {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 0 20px;
    text-align: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(37, 99, 235, 0.3);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-home h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.text-home span {
    font-size: 32px;
    display: block;
    margin-bottom: 25px;
}

.texto-animado {
    min-height: 50px;
    display: inline-block;
}

.text-home p {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 12px auto;
    line-height: 1.5;
}

.redes-sociais {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    position: relative;
    z-index: 10;
}

.redes-sociais a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.redes-sociais a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-down i {
    font-size: 30px;
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ======== MEDIA QUERIES ======== */
/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .content-about,
    .content-contact,
    .content-testmonial {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-headline,
    .text-contact {
        text-align: center;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {
    /* Header */
    .menu-icon, .close-icon {
        display: block;
    }
    
    .menu-navegacao {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .menu-navegacao.active {
        right: 0;
    }
    
    .lista-navegacao {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Home */
    .home {
        padding: 100px 0 60px;
    }
    
    .text-home h1 {
        font-size: 36px;
    }
    
    .text-home span {
        font-size: 24px;
    }
    
    .text-home p {
        font-size: 14px;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    /* About */
    .headline h1 {
        font-size: 36px;
    }
    
    .btn-about {
        flex-direction: column;
    }
    
    /* Projects */
    .cards-projects {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .text-contact h1 {
        font-size: 28px;
    }
}

/* Small Mobile (até 575px) */
@media (max-width: 575px) {
    .text-home h1 {
        font-size: 32px;
    }
    
    .headline h1 {
        font-size: 32px;
    }
    
    .redes-sociais {
        flex-wrap: wrap;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .container-home {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 30px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }
    
    .redes-sociais {
        justify-content: flex-start;
    }
/* ======== FOOTER ======== */
.footer {
    width: 100%;
    background-color: var(--dark);
    padding: 30px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 50px;
}

.footer p {
    color: var(--gray);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.footer .destaque {
    color: var(--primary);
    font-weight: 500;
}

/* Opcional: linha decorativa no topo do footer */
.footer::before {
    content: '';
    display: block;
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: rgba(37, 99, 235, 0.3);
    margin: 0 auto 20px;
}
}