:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --modal-bg: rgba(255, 255, 255, 0.95);
    
    /* Cores das Redes - Degrade */
    --yt-grad: linear-gradient(135deg, #ff0000, #b31217);
    --twitch-grad: linear-gradient(135deg, #9146FF, #6441A5);
    --github-grad: linear-gradient(135deg, #333333, #000000);
    --discord-grad: linear-gradient(135deg, #5865F2, #4752C4);
    --default-grad: linear-gradient(135deg, #9b59b6, #6c3483);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    
    /* Fundo com GIF - Adicione um arquivo chamado 'background.gif' na pasta */
    background: var(--bg-color) url('background.gif') center center / cover no-repeat fixed;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeIn 0.8s ease-out;
    background: rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-img, .profile-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    border: 3px solid rgba(255,255,255,0.8);
}

.profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-secondary);
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: center;
    color: var(--text-primary);
}

.links, .modal-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.link-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    font-family: inherit;
}

.link-btn i {
    position: absolute;
    left: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.link-btn span {
    transition: transform 0.4s ease;
}

/* Pseudo-elemento para o degrade */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.youtube::before { background: var(--yt-grad); }
.twitch::before { background: var(--twitch-grad); }
.github::before { background: var(--github-grad); }
.discord::before { background: var(--discord-grad); }
.default-btn::before { background: var(--default-grad); }

.link-btn:hover {
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: transparent;
}

.link-btn:hover::before {
    opacity: 1;
}

.link-btn:hover i {
    transform: scale(1.15);
}

/* Modais */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

/* Lista de Projetos */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
}

/* Customizando a barra de rolagem dos projetos */
.projects-list::-webkit-scrollbar {
    width: 6px;
}
.projects-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
.projects-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.project-item {
    border-left: 4px solid #9b59b6;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.25rem;
    border-radius: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.project-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.project-item p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.btn-small {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
    width: fit-content;
    display: inline-flex;
}

.btn-small i {
    position: static;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.btn-small:hover i {
    transform: none;
}

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

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .link-btn {
        padding: 1.15rem 1.25rem;
        font-size: 1.05rem;
    }
    
    .link-btn i {
        left: 1.25rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Partículas de rastro do cursor Cartoon Branco-Azulado */
.cursor-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffffff 0%, #bae6fd 60%, rgba(56, 189, 248, 0.5) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 6px rgba(186, 230, 253, 0.8), 0 0 12px rgba(56, 189, 248, 0.4);
    animation: particleFade 0.5s ease-out forwards;
}

@keyframes particleFade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }
}

/* REGRA ABSOLUTA DO CURSOR CARTOON BRANCO-AZULADO */
@media (pointer: fine) {
    *, html, body, div, span, h1, h2, h3, p, a, button, input, textarea, select, .link-btn, .close-btn, [role="button"] {
        cursor: none !important;
    }

    #custom-cursor-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        pointer-events: none;
        z-index: 999999;
        margin-left: 0px;
        margin-top: 0px;
        transition: opacity 0.2s ease;
        will-change: transform;
    }

    #custom-cursor-container .cursor-icon {
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImJnIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjYmFlNmZkIi8+PC9saW5lYXJHcmFkaWVudD48ZmlsdGVyIGlkPSJzaCIgeD0iLTIwJSIgeT0iLTIwJSIgd2lkdGg9IjE0MCUiIGhlaWdodD0iMTQwJSI+PGZlRHJvcFNoYWRvdyBkeD0iMS41IiBkeT0iMiIgc3RkRGV2aWF0aW9uPSIxIiBmbG9vZC1jb2xvcj0iIzAyODRjNyIgZmxvb2Qtb3BhY2l0eT0iMC41Ii8+PC9maWx0ZXI+PC9kZWZzPjxwYXRoIGQ9Ik0gMyAzIEwgMyAyNCBMIDggMTkgTCAxMyAyOSBMIDE3IDI3IEwgMTIgMTcgTCAxOSAxNyBaIiBmaWxsPSJ1cmwoI2JnKSIgc3Ryb2tlPSIjMGYxNzJhIiBzdHJva2Utd2lkdGg9IjIuMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBmaWx0ZXI9InVybCgjc2hpIi8+PC9zdmc+");
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.15s ease, background-image 0.15s ease;
    }

    #custom-cursor-container.hover .cursor-icon {
        background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImJnSCIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1j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