html {
    scroll-behavior: smooth;
    /* vi isso na internet*/
}
:root {
    --accent: #8a2be2;
    --text-primary: #ffffff;
    --text-secondary: #cfcfcf;
    --bg-card: rgba(25, 25, 25, 0.96);
    --bg-secondary: rgba(15, 15, 15, 0.98);
    --bg-button: rgba(138, 43, 226, 0.2);
}
html,body {
    height: 100%;
    margin: 0;
    /* sla tbm */
}
body{
    font-family: 'Poppins', sans-serif;
    background-color: #000000; 
    background: linear-gradient(to bottom, #000000 0%, #1a1a1a 50%, #3a3a3a 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; 
    color: #fff;
    min-height: 100%;
}
header {
    background-color: #1a1a1a;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
header ul{
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
header ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.6s ease;
}
header a:hover {
    color: #8a2be2;
    border-bottom: 4px solid #8a2be2;
    padding-bottom: 5px;
}
header .nav a:hover {
    color: #8a2be2;
    border-bottom: 2px solid #8a2be2;
    padding-bottom: 5px;
}    
 
/* Header fixo que segue ao rolar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(4px);
    height: 64px;
    box-sizing: border-box;
    padding: 0 50px;
    display: flex;
    align-items: center;
}
.site-header .header-top {
    margin-bottom: 0;
}
.site-header.scrolled {
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

/* garante que o conteúdo não fique escondido atrás do header fixo */
main {
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

section {
    min-height: auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section.app-window {
    width: min(1100px, 100%);
    background: rgba(24,24,24,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

section.app-window:hover {
    transform: translateY(-3px);
    border-color: rgba(138,43,226,0.45);
}

.window-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.window-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.window-btn.close { background: #ff5f57; }
.window-btn.minimize { background: #ffbd2e; }
.window-btn.maximize { background: #28ca42; }

.window-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.Inicio1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bloco-perfil {
    flex: 1;
    float: left;
    overflow: hidden;
    border-radius: 10px;
}
.bloco-perfil p1 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfcfcf;
}
.bloco-perfil p2 {
    display: block;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfcfcf;
    padding: 0px 10px 0px 0px;
    margin-top: 20px; 
}
.profile {
    max-width: 1100px;
    margin: 24px auto;
    background: rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    gap: 24px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.06);
}
.profile-info h3 {
    margin: 0 0 6px 0;
}
.profile-info .role {
    margin: 0 0 12px 0;
    color: #cfcfcf;
}
.profile-info .bio {
    margin: 0 0 12px 0;
    line-height: 1.5;
}
.profile-info .socials a {
    color: #fff;
    text-decoration: none;
    margin-right: 12px;
    transition: color .2s ease;
}
.profile-info .socials a:hover {
    color: #8a2be2;
}

@media (max-width: 720px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }
    .profile-photo {
        width: 120px;
        height: 120px;
    }
} /* n confie em IA KKKKKKKKKKKKK */

.github {
    background: rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    margin-top: 24px;
}
.github a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}
.github a:hover {
    color: #8a2be2;
}
.github p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfcfcf;
    margin: 0;
}

.bloco-1, .bloco-2 {
    background: rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bloco-1 a, .bloco-2 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.bloco-1 a:hover, .bloco-2 a:hover {
    color: #8a2be2;
}

.bloco-1 p1, .bloco-2 p1 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cfcfcf;
    margin: 0;
}
.site-footer {
    background-color: #1a1a1a;
    padding: 20px 50px;
    text-align: center;
    color: #cfcfcf;
    margin-top: 24px;
}
.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: #8a2be2;
}
.site-footer p {
    margin: 8px 0;
}

/* ========================
   MENU HAMBURGER (MOBILE)
   ======================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: flex-start;
    margin-left: 40px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

/* ========================
   ANIMAÇÕES AO ROLAR
   ======================== */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   FILTRO DE PROJETOS
   ======================== */
.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid var(--accent);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn:focus {
    background: rgba(138, 43, 226, 0.35);
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

.filter-btn:active {
    background: #7d3fa3;
    color: #fff;
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.filter-btn.active:hover,
.filter-btn.active:focus {
    background: #7d3fa3;
}

.projeto-card {
    transition: all 0.3s ease;
}

/* ========================
   MODAL DOS PROJETOS
   ======================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary, rgba(15, 15, 15, 0.98));
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
}

.modal-content h3 {
    color: var(--accent);
    margin-top: 20px;
}

.modal-content h4 {
    color: var(--text-secondary);
}

.modal-content ul {
    margin-left: 20px;
    color: var(--text-secondary);
}

.modal-content a {
    color: var(--accent);
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* ========================
   BOTÃO SAIBA MAIS
   ======================== */
.btn-saiba-mais {
    align-self: flex-start;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-saiba-mais:hover,
.btn-saiba-mais:focus {
    background: #7d3fa3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    outline: none;
}

.btn-saiba-mais:active {
    background: #6b3296;
    color: #fff;
    transform: translateY(0);
}

/* ========================
   CONTADOR ANIMADO
   ======================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 3rem;
    color: var(--accent);
    margin: 0;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 0.95rem;
}

/* ========================
   FORMULÁRIO DE CONTATO
   ======================== */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #7d3fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.form-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.form-message.info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.contact-info {
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ========================
   EFEITO PARALLAX
   ======================== */
[data-parallax] {
    transition: transform 0.1s linear;
}

/* ========================
     MOBILE
   ======================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 3;
    }

    .theme-toggle {
        order: 4;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-secondary);
        margin-left: 0;
        padding: 20px;
        display: none;
        gap: 10px;
    }

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

    .header-top {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 0;
    }

    header {
        padding: 10px 20px;
    }

    .site-header {
        padding: 10px 20px;
    }

    section {
        padding: 24px 16px;
        min-height: auto;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .contact-form {
        max-width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}