:root {
    --primary: #ff0000;
    --primary-glow: rgba(255, 0, 0, 0.4);
    --bg-dark: #050505;
    --card-bg: rgba(17, 17, 17, 0.85); 
    --text-main: #f0f0f0;
    --text-dim: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
    -webkit-user-select: none; 
    user-select: none;         
}

body {
    background-color: var(--bg-dark); 
    color: var(--text-main);
    overflow-x: hidden;
    cursor: default;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    pointer-events: auto;
}

/* NAVBAR */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    background: transparent !important; 
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; }
.logo span { color: var(--primary); }

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    transition: 0.4s;
}

/* MENU TELA CHEIA */
.nav-list {
    display: flex;
    position: fixed;
    right: -100%; 
    top: 0;
    flex-direction: column;
    background: transparent; 
    backdrop-filter: blur(25px);
    width: 100%; 
    height: 100vh;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    list-style: none;
}

.nav-list.active { right: 0; }
.nav-list li { margin: 25px 0; }
.nav-list a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 500;
}
.nav-list a:hover { color: var(--primary); }

/* HERO */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; }
.hero-content { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: 5.5rem; margin: 15px 0; }
.greeting { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 5px; }
.description { color: var(--text-dim); font-size: 1.2rem; margin-bottom: 40px; }

.btn-primary {
    padding: 18px 45px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-radius: 40px;
    transition: 0.4s ease;
}

.btn-primary:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* SOBRE MIM */
.about-content { display: flex; align-items: center; justify-content: center; gap: 70px; }
.profile-pic {
    width: 400px; 
    height: 400px;
    aspect-ratio: 1/1;
    border-radius: 50%; 
    object-fit: cover;
    box-shadow: 0 0 40px var(--primary-glow);
    animation: float 4s ease-in-out infinite;
    border: 2px solid rgba(255, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.skills-tags { 
    margin-top: 25px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.skills-tags span {
    display: inline-block;
    background: rgba(255, 0, 0, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.skills-tags span:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-3px);
}

/* PROJETOS (SEM BORDAS E FLUTUANDO) */
.container { padding: 120px 8%; position: relative; }
.dark-bg { background-color: rgba(10, 10, 10, 0.6); backdrop-filter: blur(3px); }
.section-title { font-size: 3rem; margin-bottom: 60px; text-align: center; width: 100%; }

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 50px; 
    align-items: center;
}

.project-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.4s ease;
    background: transparent;
}

.project-display {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.mockup-img {
    width: 100%;
    max-width: 400px; 
    height: auto;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    animation: floating 5s ease-in-out infinite;
    transition: 0.5s ease;
}

.project-item:hover .mockup-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px var(--primary));
}

.project-info {
    text-align: center;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ÍCONES DE TECNOLOGIAS ANIMADOS */
.tech-stack {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.tech-stack i {
    font-size: 1.8rem;
    transition: 0.3s;
    animation: iconFloat 3s infinite ease-in-out;
}

/* Cores Oficiais das Techs */
.html-icon { color: #e34f26; filter: drop-shadow(0 0 5px rgba(227, 79, 38, 0.3)); }
.css-icon { color: #1572b6; filter: drop-shadow(0 0 5px rgba(21, 114, 182, 0.3)); animation-delay: 0.5s !important; }
.js-icon { color: #f7df1e; filter: drop-shadow(0 0 5px rgba(247, 223, 30, 0.3)); animation-delay: 1s !important; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.project-item:hover .tech-stack i {
    transform: scale(1.2);
    filter: brightness(1.2) drop-shadow(0 0 10px currentColor);
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* CONTATO */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.social-links { 
    margin-top: 50px; 
    display: flex; 
    justify-content: center; 
    gap: 50px; 
}

.social-links i { font-size: 3.5rem; }
.social-links a { color: var(--text-main); transition: 0.3s; }
.social-links a:hover { color: var(--primary); transform: translateY(-8px) scale(1.1); }

footer { padding: 60px; text-align: center; color: var(--text-dim); }

.reveal { opacity: 0; transform: translateY(50px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .about-content { flex-direction: column; text-align: center; gap: 40px; }
    .profile-pic { width: 280px; height: 280px; }
    .social-links { gap: 30px; }
    .social-links i { font-size: 2.8rem; }
    .skills-tags { justify-content: center; }
    .tech-stack { gap: 20px; }
}