:root {
    --primary-color: #F25790;
    --primary-glow: rgba(242, 87, 144, 0.5);
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-white: #f5f5f5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/** GERAL ************************/
html {
    background-color: var(--bg-dark);
    scroll-behavior: smooth;
}

html, body, main, #inicio {
    min-height: 100vh;
    font-family: 'Inter', sans-serif; /* Fonte de leitura mais limpa */
    color: var(--text-white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Outfit', sans-serif; /* Fonte de títulos mais moderna */
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/** EFEITOS E ANIMAÇÕES ************************/
.anaglyph {
    position: relative;
    text-shadow: 2px 2px 0px rgba(0, 255, 255, 0.3), -2px -2px 0px rgba(242, 87, 144, 0.3);
}

.efeito-vidro {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animações de entrada */
[data-anime] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Curva mais suave */
}
[data-anime="down"] { transform: translate3d(0, -50px, 0); }
[data-anime="up"] { transform: translate3d(0, 50px, 0); }
[data-anime="left"] { transform: translate3d(-50px, 0, 0); }
[data-anime].animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/** MENU ************************/
header {
    background-color: rgba(10, 10, 10, 0.85); /* Mais transparência */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -1px;
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .active {
    color: var(--primary-color) !important;
    border-bottom: none;
}

/** SECTIONS GERAIS ***************************/
.bg-escuro {
    background-color: #0F0F0F; /* Contraste sutil com o bg principal */
}

section {
    min-height: 600px;
    padding: 80px 0px;
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

section h2 {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 3rem !important;
    position: relative;
    display: inline-block;
}
/* Detalhe rosa abaixo dos títulos */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    border: 1px solid var(--primary-color);
    color: var(--text-white);
    padding: 10px 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px) !important;
    border-color: var(--primary-color);
}

/** INICIO *****************************/
#inicio {
    background: linear-gradient(to bottom, rgba(10,10,10,0.6), #0a0a0a), url('../assets/plano-de-fundo5.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#apresentacao .hero-text {
    max-width: 600px;   
    font-size: 1.1rem;   
    margin-left: auto;   
    margin-right: auto;  
}

#apresentacao h1 {
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

#apresentacao h1::after {
    content: "|";
    color: var(--primary-color);
    animation: piscar 800ms infinite;
}

#apresentacao p {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 2rem;
}

#saiba-mais {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

#saiba-mais i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: floating 2s infinite ease-in-out;
}

#saiba-mais a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.text-gradient {
    background: linear-gradient(90deg, #F25790 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

/** SOBRE **************************************/
#sobre img {
    border-radius: 20px;
    box-shadow: -20px 20px 0px rgba(242, 87, 144, 0.1); 
    filter: grayscale(20%);
    transition: all 0.5s;
}
#sobre img:hover {
    filter: grayscale(0%);
    box-shadow: -10px 10px 0px rgba(242, 87, 144, 0.3);
}

#sobre p {
    line-height: 1.8;
    color: #d1d1d1;
    font-size: 1.1rem;
}
#sobre strong {
    color: var(--primary-color);
}

/** HABILIDADES ******************************/
#habilidades .icone-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#habilidades img {
    height: 80px;
    width: 80px;
    padding: 15px;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(100%) opacity(0.7);
}

/* Estado ativo e Hover */
#habilidades img:hover, .icone-color {
    filter: grayscale(0%) opacity(1) !important;
    transform: scale(1.15);
    background-color: rgba(255,255,255,0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(242, 87, 144, 0.2);
}

@media (max-width: 768px) {
    #habilidades img {
        height: 60px;
        width: 60px;
        padding: 10px;
    }
}

.progress {
    background-color: #222;
    height: 10px;
    border-radius: 5px;
    margin-top: 15px;
    overflow: visible;
}

#habilidades .progress-bar {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow); /* Efeito neon na barra */
    border-radius: 5px;
}

p#titulo {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 30px;
}

/** PROJETOS ******************************/

#projetos a {
    text-decoration: none;
    color: var(--text-white) !important;
}

.card {
    background-color: #141414; /* Fundo escuro */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; /* Bordas mais arredondadas */
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%; /* Garante altura igual */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(242, 87, 144, 0.15);
}

/* A imagem agora fica fixa no topo, sem texto por cima */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* O corpo do card onde fica o texto */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1; /* Empurra os botões para baixo */
}

/* Estilo das Badges (Tags de tecnologia) */
.tech-stack {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: rgba(242, 87, 144, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(242, 87, 144, 0.2);
    font-weight: 600;
}

/* Botões do card (Repositório/Demo) */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn-sm-custom {
    padding: 6px 15px;
    font-size: 0.85rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: 0.3s;
}

#projetos .btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff !important;
}
#projetos .btn-outline:hover {
    background-color: white !important;
    color: black !important;
}

#projetos .btn-fill {
    background-color: var(--primary-color);
    color: white !important;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}
#projetos .btn-fill:hover {
    opacity: 0.9;
}

/** CONTATO ******************************/
.form-control {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px;
    border-radius: 10px;
}

.form-control:focus {
    background-color: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(242, 87, 144, 0.15);
    color: white;
}

.form-label {
    margin-left: 5px;
    color: #aaa;
}

#info i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-right: 10px;
    vertical-align: middle;
}

#info a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}
#info a:hover {
    color: var(--primary-color);
}

/** FOOTER & MODAL ******************************/
footer {
    padding: 20px;
    padding-bottom: 10px;
    background-color: #050505;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: #666;
}
footer strong {
    color: var(--primary-color);
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid var(--glass-border);
    color: white;
}
.modal-header {
    border-bottom: 1px solid #333;
    background: transparent;
}
.btn-close {
    filter: invert(1);
}