/* --- 1. FONTS & VARIÁVEIS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores Dark Mode */
    --background-color: #121212;       /* Preto suave */
    --surface-color: #1e1e1e;          /* Cinza escuro para cartões */
    --text-primary: #e0e0e0;           /* Branco quase puro */
    --text-secondary: #a0a0a0;         /* Cinza para descrições */
    
    /* Identidade Visual */
    --accent-color: #42aaf7;           
    --accent-hover: #3590d6;
    
    /* Bordas e Estrutura */
    --border-color: #333333;
}

/* --- 2. RESET & BÁSICO --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 3. ANIMAÇÕES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- 4. NAVBAR --- */
.navbar {
    width: 100%;
    height: 70px;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left { flex: 1; display: flex; justify-content: flex-start; align-items: center; }
.nav-center { flex: 1; display: flex; justify-content: center; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    position: relative;
    align-items: center;
}

.nav-links li {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s;
    padding: 5px 0;
    z-index: 1;
}

.nav-links li:hover, .nav-links li.active {
    color: var(--text-strong);
}

/* Barra Mágica do Menu */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 0;
    z-index: 0;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s;
}
.nav-logo-img:hover { transform: scale(1.1); }

/* Behance & Mobile */
.behance-link { text-decoration: none; color: var(--text-secondary); }
.behance-link i { font-size: 1.5rem; transition: color 0.3s; }
.behance-link:hover, .behance-link:hover i { color: #fff !important; }

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- 5. SEÇÕES DE CONTEÚDO --- */
.content-section {
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
    display: none;
}

.content-section.active-section {
    display: block;
    animation: fadeIn 0.5s ease;
}

.section-header { text-align: center; margin-bottom: 40px; }
h2 { color: #fff; font-size: 2rem; margin-bottom: 5px; }
.section-desc { color: var(--text-secondary); }

/* --- 6. HOME PROFILE --- */
.profile-header {
    text-align: center;
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-img-container img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--surface-color);
    box-shadow: 0 0 30px rgba(66, 170, 247, 0.15);
}

.tagline {
    font-size: 1.1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.bio-text {
    max-width: 600px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 10px 0 30px 0;
}

/* Card Destaque (Clarinha) */
.featured-project {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 550px;
    margin: 0 auto 30px auto;
    transition: transform 0.3s, border-color 0.3s;
    text-align: left;
    cursor: pointer;
}
.featured-project:hover { transform: translateY(-5px); border-color: var(--accent-color); }

.project-icon {
    width: 85px; height: 85px; background: #2b2d31; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #5865F2; flex-shrink: 0; overflow: hidden;
}
.project-avatar { width: 100%; height: 100%; object-fit: cover; }
.project-info { flex: 1; min-width: 0; }
.project-info h3 { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 5px; }
.project-info p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.4; }
.tech-tag { display: inline-block; background: rgba(247, 223, 30, 0.1); color: #f7df1e; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 10px;
}

.social-icons i { 
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.8rem; margin: 0;
    transition: transform 0.2s, color 0.2s; cursor: pointer;
}
.social-icons i:hover { transform: translateY(-5px); }

/* Cores Social (CORRIGIDO AQUI) */
.social-icons .fa-instagram:hover {
    background: #f09433; 
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    
    /* Propriedades de Background Clip */
    -webkit-background-clip: text;
    background-clip: text;
    
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.social-icons .fa-youtube:hover { color: #ff0033; } 
.social-icons .fa-spotify:hover { color: #1ed760; }

/* --- 7. CARDS & GRIDS (Design/Edição) --- */
.grid-container, .design-grid { 
    display: grid; gap: 25px; 
}
.grid-container { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.design-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card, .design-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}
.card:hover, .design-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }

.video-wrapper iframe, .placeholder-video { width: 100%; aspect-ratio: 16/9; border: none; background: #000; }
.design-img-wrapper { width: 100%; height: 180px; background: #1a1a1a; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }

.bg-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; opacity: 0.8; }
.design-card:hover .bg-image { transform: scale(1.05); opacity: 0.4; }

.overlay-icon { position: absolute; z-index: 2; width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--border-color); object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); transition: transform 0.3s; }.design-card:hover .overlay-icon { transform: scale(1.1); }
.design-card:hover .overlay-icon { transform: scale(1.1); }

.design-placeholder-icon { font-size: 3rem; color: #333; z-index: 1; }
.card-info { padding: 20px; }
.card-info.compact { padding: 15px; }
.card-info h3 { color: var(--text-primary); margin-bottom: 5px; }
.card-info p { color: var(--text-secondary); font-size: 0.9rem; }
.text-small { font-size: 0.8rem; color: var(--text-secondary); margin-left: 5px; }

/* --- 8. MÚSICA --- */
.music-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 15px;
}
.music-cover-wrapper {
    width: 100px; height: 100px; flex-shrink: 0; border-radius: 8px;
    background: #111; overflow: hidden; position: relative; border: 1px solid var(--border-color);
}
.music-cover-img { width: 100%; height: 100%; object-fit: cover; }
.music-placeholder-icon {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--accent-color);
}
.music-details { flex: 1; }
.music-details h3 { color: var(--text-primary); margin-bottom: 5px; }
.music-story { font-style: italic; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 15px; }
.music-links { display: flex; gap: 12px; margin-top: 10px; }

.btn-music-icon {
    width: 42px; height: 42px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
    line-height: 0;
}
.btn-music-icon i { display: block; line-height: 1; transform: translateY(1px); }

/* Hover Padrão */
.btn-music-icon:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); transform: translateY(-3px); }
/* Hovers Específicos */
.btn-music-icon.btn-spotify:hover { background-color: #1ed760; border-color: #1ed760; box-shadow: 0 5px 15px rgba(30, 215, 96, 0.3); }
.btn-music-icon.btn-youtube:hover { background-color: #ff0033; border-color: #ff0033; box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3); }
.btn-music-icon.btn-apple:hover { background: linear-gradient(to bottom, #ff4e6b, #ff0436); border-color: #ff0436; box-shadow: 0 5px 15px rgba(255, 4, 54, 0.3); }

/* --- 9. PÁGINA 404 --- */
.container-404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
    animation: fadeIn 0.8s ease;
}
.container-404 h1 { font-size: 6rem; color: var(--accent-color); margin-bottom: 10px; text-shadow: 0 0 20px rgba(66, 170, 247, 0.2); }
.container-404 p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 30px; }
.btn-home-404 {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-home-404:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 170, 247, 0.3);
}

/* --- 10. RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .navbar { padding: 0 1.5rem; }
    .nav-links {
        position: absolute; top: 70px; left: 0; width: 100%; background: var(--surface-color);
        flex-direction: column; align-items: center; padding: 20px 0; gap: 20px; border-bottom: 1px solid var(--border-color);
        display: none; z-index: 99; height: auto;
    }
    .nav-links li { padding: 5px 0; }
    .nav-links.active { display: flex; animation: fadeIn 0.3s; }
    .mobile-menu-icon { display: block; }
    .nav-center { display: none; }
    .music-item { flex-direction: column; text-align: center; }
    .music-links { justify-content: center; }
    .nav-indicator { display: none; }
    .nav-links li.active { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); }
}