/* === Variáveis e Reset === */
:root {
    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --accent: #2dd4bf;
    --accent-hover: #14b8a6;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --gradient: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 100%);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
}

/* === Layout Geral === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-alt { background-color: var(--bg-secondary); }

/* === Header e Navegação === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.8); /* Fundo semi-transparente */
    backdrop-filter: blur(12px); /* Efeito de vidro */
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo span { color: var(--accent); }

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* Botão de destaque no menu */
.nav-link.btn-destaque {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: var(--accent);
}
.nav-link.btn-destaque:hover {
    background: var(--accent);
    color: var(--bg-main);
}
.nav-link.btn-destaque.active::after { display: none; }

/* === Seção Sobre === */
.sobre-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.sobre-texto { flex: 1; }
.sobre-imagem { flex: 1; display: flex; justify-content: center; }

.badge {
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.sobre-texto h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 1rem 0 1.5rem;
}

.sobre-texto h2 span { color: var(--accent); }

.sobre-texto p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; }

.social { margin-bottom: 2rem; }
.social a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-right: 1rem;
    transition: 0.3s;
}
.social a:hover { color: var(--accent); transform: translateY(-3px); }

.img-box img {
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.2);
    animation: morph 5s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
}

/* === Botões Gerais === */
.btn-primary {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 212, 191, 0.3);
}

/* === Cards e Grids === */
.card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.skill-item {
    background: var(--bg-main);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    transition: 0.3s;
}
.skill-item:hover { border-color: var(--accent); color: var(--accent); }

/* === Portfólio === */
.portfolio-destaque {
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}
.badge-project {
    background: #f59e0b;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.tags { margin: 1rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tags span {
    background: rgba(255,255,255,0.1);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.links {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-sm {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    background-color: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.btn-text {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    color: var(--text-main);
}

.btn-text i {
    font-size: 0.8rem;
}

.links-bottom { margin-top: 1rem; display: flex; gap: 1rem; }
.links-bottom a { color: var(--accent); text-decoration: none; font-weight: 600; }
.links-bottom a:hover { text-decoration: underline; }

/* === Contato / Form === */
.contato-wrapper { max-width: 600px; text-align: center; }
.form-contato { text-align: left; background: var(--bg-secondary); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow); }

.input-group { position: relative; margin-bottom: 1.5rem; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #334155;
    color: #fff;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}
.input-group label {
    position: absolute;
    left: 10px;
    top: 10px;
    color: #64748b;
    pointer-events: none;
    transition: 0.3s;
}

/* Animação do label do input */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    left: 0;
    color: var(--accent);
    font-size: 0.85rem;
}
.input-group input:focus, .input-group textarea:focus { border-bottom-color: var(--accent); }

.full-width { width: 100%; }

/* === Footer === */
footer { text-align: center; padding: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 0.9rem; }

/* === Responsivo === */
@media (max-width: 768px) {
    .sobre-container { flex-direction: column-reverse; text-align: center; }
    .sobre-texto h2 { font-size: 2.5rem; }
    .grid-2-col { grid-template-columns: 1fr; }
    nav ul { display: none; }
    
    /* Ajuste simples para mobile */
    nav { overflow-x: auto; width: 100%; }
    nav ul { display: flex; padding-bottom: 10px; padding-right: 10px; }
    header { height: auto; padding-bottom: 0.5rem; }
}
