:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #00ff9d;
    /* Verde fluorescente */
    --primary-glow: rgba(0, 255, 157, 0.4);
    --accent: #ff00ff;
    /* Magenta fluorescente (opcional) */
    --border: #2a2a2a;
    --header-height: 80px;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* ===== CABEÇALHO NEON ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

/* ===== EFEITOS GLOBAIS ===== */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    filter: blur(40px);
}

/* ===== SEÇÕES GERAIS ===== */
section {
    padding: 6rem 2rem;
    scroll-margin-top: var(--header-height);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ===== HERO COM PARTÍCULAS ===== */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1a1a1a 0%, var(--bg) 100%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.btn-neon {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    width: 180px;
    border: 2px solid var(--accent);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px var(--primary-glow), inset 0 0 15px var(--primary-glow);
    text-transform: uppercase;

}

.btn-neon:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 30px var(--primary-glow);
    transform: translateY(-3px) scale(1.05);
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.235), transparent);
    transition: 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

.btn-outline-neon {
    margin-left: 1.5rem;
    border-color: var(--primary);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.1);
}

.btn-outline-neon:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), inset 0 0 30px rgba(255, 0, 255, 0.2);
}

/* ===== SOBRE COM CARDS ===== */
#about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.about-img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.05);
    filter: hue-rotate(45deg);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.about-text p {
    margin-bottom: 1.8rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}

.skill-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== PROJETOS COM EFEITO HOVER ===== */
#projects {
    background: linear-gradient(180deg, var(--bg) 0%, #111 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.15);
}

.project-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.1);
    filter: brightness(0.7) sepia(1) hue-rotate(90deg) saturate(3);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 255, 157, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 2rem;
    position: relative;
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(0, 255, 157, 0.05);
}

.project-link:hover {
    background: var(--primary);
    color: var(--bg);
    gap: 1rem;
    box-shadow: 0 0 20px var(--primary-glow);
}



/* ===== RODAPÉ NEON ===== */
footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 157, 0.2);
}

.social-links a:hover::before {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
    .btn{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;   
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-top: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        
    }

    .btn-neon {
        
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .btn-outline-neon {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* ===== ANIMAÇÃO DE SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}