:root {
    --bg: #09050f; 
    --surface: #180e24; 
    --primary: #a855f7; 
    --accent: #c084fc; 
    --text: #ffffff; 
    --text-dim: #a19ba8;
}

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

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
}

/* Sidebar Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: #10061a;
    z-index: 9997;
    transition: all 0.5s;
    padding: 3rem 1.5rem;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile img {
    margin: 0 auto;
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--surface);
    object-fit: cover;
}

.profile h1 {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: #fff;
    font-weight: 600;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-dim);
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: flex;
    align-items: center;
    color: var(--text-dim);
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: 0.3s;
    gap: 1rem;
}

.nav-menu a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--text-dim);
}

.nav-menu a:hover, .nav-menu a.active {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
}

.nav-menu a:hover i, .nav-menu a.active i {
    color: var(--primary);
}

/* Main Content */
#main {
    margin-left: 300px;
}

/* Hero Section */
.hero.section { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    padding-top: 5vh;
    align-items: flex-start;
    padding-left: 10%;
    text-align: left; 
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.hero.section > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.85); /* Aumenta a luz/cor da imagem mantendo legibilidade do texto */
}

.hero .container {
    z-index: 2;
    position: relative;
}

.hero h2 { 
    font-size: clamp(3rem, 6vw, 4.5rem); 
    font-weight: 800; 
    color: #fff;
    margin-bottom: 0.5rem; 
    margin-top: 0;
    text-align: left;
}

.hero p { 
    font-size: 1.5rem; 
    color: #fff; 
}

.hero p span.typed, .hero p span.typed-cursor {
    color: var(--accent);
    font-weight: 600;
}

.hero p span.typed-cursor--blink {
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* General Sections */
section { 
    padding: 8rem 2rem; 
    max-width: 1100px; 
    margin: 0 auto; 
}

/* Beautiful Section Divider */
.section-divider {
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), var(--primary), rgba(168, 85, 247, 0.4), transparent);
    margin: 3rem auto;
    position: relative;
    box-shadow: 0 0 15px var(--accent);
}

.section-divider::before {
    content: '◈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: var(--bg);
    padding: 0 1rem;
    font-size: 1.5rem;
    text-shadow: 0 0 15px var(--primary);
}

h2 { 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    text-align: center; 
    font-weight: 800; 
}

/* Portfolio Section */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
}

.project-card { 
    background: var(--surface); 
    border-radius: 24px; 
    padding: 2rem; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.project-card:hover { 
    transform: translateY(-12px); 
    border-color: var(--primary); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
}

.project-icon { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    color: var(--primary); 
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--surface);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.project-card.hide {
    display: none;
}

/* Skills */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-group {
    background: var(--surface);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.skill-group:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.skill-group-label {
    display: block;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.skills-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 1.2rem; 
    justify-content: center; 
}

.skill-tag { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 0.8rem 1.5rem; 
    border-radius: 12px; 
    font-weight: 600; 
    border: 1px solid rgba(255,255,255,0.08); 
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-tag img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.skill-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
    color: #fff;
}

/* Timeline (Education & Experience) */
.timeline-container { 
    max-width: 800px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}

.timeline-item { 
    background: var(--surface); 
    border-radius: 16px; 
    padding: 2rem; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.3s; 
}

.timeline-item:hover { 
    border-color: var(--primary); 
    transform: translateY(-5px); 
}

.timeline-item h3 { 
    margin-bottom: 0.5rem; 
    font-size: 1.5rem; 
}

.timeline-meta { 
    color: var(--primary); 
    font-weight: 600; 
    margin-bottom: 1rem; 
    font-size: 0.95rem; 
}

.timeline-item p { 
    color: var(--text-dim); 
}

/* Footer */
footer { 
    padding: 4rem; 
    text-align: center; 
    color: var(--text-dim); 
    font-size: 0.9rem; 
    border-top: 1px solid #1a1a1a; 
}

/* ==========================================================
   Project Details Page Specific Styles 
   ========================================================== */
.back-btn { 
    position: absolute; 
    top: 2rem; 
    left: 2rem; 
    text-decoration: none; 
    color: var(--text-dim); 
    font-size: 1.5rem; 
    transition: 0.3s; 
}

.back-btn:hover { 
    color: var(--primary); 
    transform: translateX(-5px); 
}

.project-header { 
    text-align: center; 
    margin-bottom: 4rem; 
    padding-top: 5rem; 
}

.project-header h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 800; 
    margin-bottom: 1rem; 
}

.project-header p { 
    color: var(--primary); 
    font-size: 1.2rem; 
    font-weight: 600; 
    letter-spacing: 1px; 
}

.project-image-placeholder { 
    width: 100%; 
    height: 400px; 
    background: linear-gradient(45deg, #111, var(--surface)); 
    border-radius: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-dim); 
    border: 1px solid rgba(255,255,255,0.05); 
    margin-bottom: 4rem; 
    font-size: 2rem; 
    overflow: hidden;
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.project-content { 
    max-width: 800px; 
    margin: 0 auto; 
    color: var(--text-dim); 
    font-size: 1.1rem; 
    line-height: 1.8; 
}

.project-content h3 { 
    color: var(--text); 
    font-size: 1.8rem; 
    margin: 3rem 0 1rem 0; 
    font-weight: 700; 
}

.action-buttons { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
    margin-top: 4rem; 
}

.btn { 
    text-decoration: none; 
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.8rem; 
    transition: 0.3s; 
}

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.3); 
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(66, 133, 244, 0.4); 
}

.btn-outline { 
    border: 1px solid rgba(255,255,255,0.2); 
    color: var(--text); 
}

.btn-outline:hover { 
    background: rgba(255,255,255,0.05); 
    border-color: var(--text); 
}

/* Responsividade Sidebar */
@media (max-width: 900px) {
    #header {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    #main {
        margin-left: 0;
    }
    .hero.section {
        padding-left: 5%;
        text-align: center;
        align-items: center;
        background: none; 
    }
    .hero h2 {
        text-align: center;
    }
}

/* ==========================================================
   Project Details Page Specific Navigation Styles
   ========================================================== */
.project-top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.2rem 2rem;
    background: rgba(24, 14, 36, 0.7); /* var(--surface) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.project-top-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.project-top-nav a:hover {
    color: var(--primary);
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .project-top-nav {
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
    }
    .project-top-nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}
