/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ================= BASE ================= */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #0f0f0f, #1a0000, #0f0f0f, #330000);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: #fff;
}
p {
    color: #ccc;
    line-height: 1.6;
}
::selection {
    background: #ff00006d;
    color: #FFFFFF;
}
/* ================= LAYOUT ================= */
section {
    padding: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
    scroll-margin-top: 90px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}
section h2 {
    text-align: center;
    margin-bottom: 20px;
}
/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid #ff0000;
}
header.scrolled {
    background-color: #000;
    box-shadow: 0 0 10px #ff0000;
}
nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 20px;
}
nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: 0.3s;
}
nav a:hover, nav a.active {
    color: #ff0000 !important;
}
nav a::after {
    position: absolute;
    width: 0%;
    height: 2px;
    background: #ff0000;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}
nav a:hover::after {
    width: 100%;
}
/* ================= HERO ================= */
#hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px 20px;
    position: relative;
    margin-left: 180px;
}
/* ================= CONTAINER PRINCIPAL ================= */
.hero-container {
    display: flex;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    width: 105%;
    gap: 60px;
    position: relative;
    z-index: 2;
}
/* ================= IMAGEM PERFIL ================= */
.profile-img {
    width: 280px;
    height: 380px;
    margin-right: 170px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(255, 0, 0, 0.5);
    box-shadow:
        0 0 15px rgba(255, 0, 0, 0.4),
        0 0 30px rgba(255, 0, 0, 0.2);
    transition: 0.3s;
}
.profile-img:hover {
    transform: scale(1.05);
}
/* ================= CONTEÚDO CENTRAL ================= */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    max-width: 500px;
}
/* ================= NOME ================= */
.hero-center h1 {
    font-size: 52px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow:
        0 0 5px rgba(255, 0, 0, 0.6),
        0 0 15px rgba(255, 0, 0, 0.4);
    white-space: nowrap;
}
/* ================= TITULO ================= */
.hero-center h2 {
    font-size: 32px;
    color: #FFFFFF;
    white-space: nowrap;
}
/* ================= TEXTO ================= */
.hero-center p {
    font-size: 18px;
    max-width: 700px;
}
/* ================= BOTÕES V1 ================= */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    color: #FFFFFF;
    text-decoration: none;
    transition: 0.3s;
}
.btn:hover {
    background: #ff0000;
    color: #FFFFFF;
}
/* ================= DRAGÃO ================= */
.dragon-bg {
    height: 650px;
    opacity: 0.9;
    transition: 0.3s;
    padding: 0;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.4));
}
#hero:hover .dragon-bg {
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.7));
}
#typing {
    color: #ff4d4d;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}
/* ================= ABOUT ================= */
#about {
    margin-bottom: 30px;
}
#about p {
    margin-bottom: 15px;
}
/* ================= FIRE PARTICLES ================= */
.fire-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.fire-particles span {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffcc00, #ff0000);
    border-radius: 50%;
    opacity: 0;
    animation: sparkUp linear infinite;
}
/* ================= POSIÇÕES ================= */
.fire-particles span:nth-child(1) { left: 10%; animation-duration: 4s; animation-delay: 0s; }
.fire-particles span:nth-child(2) { left: 25%; animation-duration: 5s; animation-delay: 1s; }
.fire-particles span:nth-child(3) { left: 40%; animation-duration: 3.5s; animation-delay: 0.5s; }
.fire-particles span:nth-child(4) { left: 55%; animation-duration: 4.5s; animation-delay: 1.5s; }
.fire-particles span:nth-child(5) { left: 70%; animation-duration: 3.8s; animation-delay: 0.2s; }
.fire-particles span:nth-child(6) { left: 85%; animation-duration: 5.2s; animation-delay: 1s; }
.fire-particles span:nth-child(7) { left: 50%; animation-duration: 4s; animation-delay: 0.7s; }
/* ================= SKILLS ================= */
#skills {
    text-align: center;
}
.skills-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
/* ================= CARD ================= */
.skill-card {
    width: 280px;
    padding: 25px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: 0.3s;
}
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
}
.skill-card h3 {
    margin-bottom: 20px;
}
.skill {
    margin-bottom: 15px;
    text-align: left;
}
.skill span {
    font-size: 14px;
}
/* ================= BARRA ================= */
.bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff4d4d);
    border-radius: 10px;
}
/* ================= NÍVEIS ================= */
.progress.html { width: 85%; }
.progress.css { width: 70%; }
.progress.js { width: 50%; }
/* SOFT SKILLS */
.skill-card ul {
    list-style: none;
    text-align: left;
}
.skill-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.skill-card li::before {
    position: absolute;
    left: 0;
}
/* ================= PROJECTS ================= */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}
.project-card {
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px #ff0000;
}
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.project-image video {
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}
.project-image img {
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}
.project-image::after {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.project-card:hover .project-image::after {
    opacity: 1;
}
.project-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    color: #FFFFFF;
}
.project-card a:hover {
    background: #ff0000;
    color: #FFFFFF;
}
.fade-in h3 {
    margin-bottom: 10px;
    text-align: center;
}
/* ================= GLASS EFFECT ================= */
.project-card,.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}
/* ================= ANIMATIONS ================= */
.fade-in {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* ================= LOADER ================= */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000000;
    color: #ff0000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* ================= PARTICLES ================= */
#particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}
/* ================= CONTACT ================= */
#contact {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}
.contact-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: #ffffff0d;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.2),
        0 0 40px rgba(255, 0, 0, 0.1);
    transition: 0.3s;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.4),
        0 0 60px rgba(255, 0, 0, 0.2);
}
.contact-card h2 {
    margin-bottom: 15px;
}
.contact-card p {
    margin-bottom: 10px;
}
.availability {
    color: #ff4d4d;
    font-weight: bold;
    margin-bottom: 20px;
}
/* ================= BOTÕES V2 ================= */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #FFFFFF;
    transition: 0.3s;
}
.contact-btn i {
    font-size: 18px;
}
.contact-btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}
.contact-btn.linkedin:hover {
    background: #0077b5;
}
.contact-btn.github:hover {
    background: #333333;
}
.contact-btn.instagram:hover {
    background: #e1306c;
}
.project-buttons {
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-spacing: 10px;
    gap: 10px;
}
/* ================= BACK TO TOP ================= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #ff0000;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transition: 0.3s;
    animation: pulse 1.5s infinite;
}
#back-to-top:hover {
    transform: scale(1.1);
    background: #ff4d4d;
}
/* ================= DESKTOP (min-width:1441) ================= */
@media (min-width:1441) {
    body {
        width: 100vw;
    }
    .hero-container {
        width: 100vw;
    }
}
/* ================= NOTEBOOK / DESKTOP MENOR (max-width: 1440px) ================= */
@media (max-width: 1440px) {
    body {
        width: 100vw;
    }
    #hero {
        margin-left: 0;
        padding-top: 80px;
    }

    .hero-container {
        display: grid;
        grid-template-areas: 
            "foto centro dragao";
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 30px;
        align-items: center;
        justify-items: center;
    }

    .hero-left {
        grid-area: foto;
        margin-left: 180px;
        margin-right: 50px;
    }

    .hero-center { 
        grid-area: centro; 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-center h1 {
        font-size: 42px;
        width: 100%;
    }
    .hero-center h2 {
        font-size: 30px;
        width: 100%;
    }
    .hero-center p {
        font-size: 18px;
        width: 100%;
    }
    .hero-right { 
        grid-area: dragao; 
        display: flex;
        justify-content: center;
    }
    .profile-img {
        width: 220px;
        height: 300px;
        margin-right: 0;
    }
    .dragon-bg {
        height: 300px;
    }
    .skills-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap;
    }
    .skill-card {
        width: 45%;
        padding: 20px;
        font-size: 14px;
    }
    .skill-card h3 {
        font-size: 18px;
    }
    .projects-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .project-card {
        width: 28%;
        min-width: 250px;
        padding: 20px;
    }
    .project-image {
        height: 160px;
    }
}
/* ================= TABLET (max-width: 980px) ================= */
@media (max-width: 980px) {
    body {
        width: 100vw;
    }
    #hero {
        margin-left: 0;
        padding-top: 100px;
    }
    .hero-container {
        display: grid;
        grid-template-areas: 
            "foto foto"
            "centro dragao";
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-items: center;
        align-items: center;
    }
    .hero-left {
        grid-area: foto;
    }
    .hero-center { 
        grid-area: centro; 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-center h1 {
        font-size: 40px;
        white-space: normal;
        width: 100%;
    }
    .hero-center h2 {
        font-size: 28px;
        white-space: normal;
        width: 100%;
    }
    .hero-center p {
        font-size: 18px;
        white-space: normal;
        width: 100%;
    }
    .hero-right { 
        grid-area: dragao; 
        display: flex;
        justify-content: center;
    }
    .profile-img {
        margin-right: 0;
        width: 200px;
        height: 280px;
    }
    .dragon-bg {
        height: 280px;
    }
    .skills-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: nowrap; 
    }
    .skill-card {
        width: 48%; 
        padding: 15px;
        font-size: 13px; 
    }
    .skill-card h3 {
        font-size: 16px;
    }
    .projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    }
    .project-card {
        width: 30%;
        min-width: 220px;
        padding: 15px;
    }
    .project-image {
        height: 140px;
    }
}
/* ================= MOBILE (max-width: 440px) ================= */
@media (max-width: 440px) {
    body {
        width: 100vw;
    }
    nav ul {
        gap: 10px;
        padding: 10px;
    }
    nav a {
        font-size: 12px;
    }
    section {
        scroll-margin-top: 70px;
    }
    .hero-container {
        grid-template-areas: 
            "foto"
            "centro"
            "dragao";
        grid-template-columns: 1fr;
    }
    .hero-center {
        grid-area: centro;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-center h1 {
        font-size: 26px;
        white-space: normal;
    }
    .hero-center h2 {
        font-size: 18px;
        text-align: center;
    }
    .hero-left {
        margin-left: 50px;
    }
    .btn {
        width: 100%;
        max-width: 150px;
    }
    .dragon-bg {
        height: 250px;
        margin-top: 10px;
    }
    .fade-in, #about {
        padding-bottom: 10px;
    }
    #skills {
        padding: 10px;
    }
    .skills-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .skill-card {
        width: 100%;
        max-width: 280px;
        padding: 12px;
    }
    .projects-container {
        display: flex;
    }
    .project-card{
        width: 85%;
    }
    .availability {
        font-size: 13px;
        white-space: nowrap;
        letter-spacing: -0.5px;
    }
    .contact-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
    }
    .contact-btn {
        padding: 8px 10px;
        font-size: 15px;
        flex: 1;
        max-width: 110px;
        justify-content: center;
    }
}
/* ================= KEYFRAMES ================= */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes neonSoft {
    from {
        text-shadow:
            0 0 5px rgba(255, 0, 0, 0.5),
            0 0 10px rgba(255, 0, 0, 0.3);
    }
    to {
        text-shadow:
            0 0 10px rgba(255, 0, 0, 0.7),
            0 0 20px rgba(255, 0, 0, 0.4);
    }
}
@keyframes sparkUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-300px) scale(1.2);
        opacity: 0;
    }
}
@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(255,0,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,0,0,1); }
    100% { box-shadow: 0 0 10px rgba(255,0,0,0.5); }
}