/*-------------------------------------------------
    Paleta de Colores y Variables Globales
-------------------------------------------------*/
:root {
    --primary-color: #007bff; /* Azul vibrante para acentos */
    --primary-hover-color: #0056b3;
    --background-dark: #121212; /* Fondo oscuro principal */
    --surface-dark: #1e1e1e; /* Superficies como tarjetas y nav */
    --text-light: #e0e0e0; /* Texto principal claro */
    --text-secondary: #a0a0a0; /* Texto secundario/subtítulos */
    --border-color: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    padding-top: 56px; /* Ajuste para la navbar fija */
}

/*-------------------------------------------------
    Barra de Navegación
-------------------------------------------------*/
.navbar {
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/*-------------------------------------------------
    Sección Hero
-------------------------------------------------*/
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(30,30,30,0.8));
    padding: 2rem 0;
}

.profile-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 123, 255, 0.7);
}

.lead-text {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.typed-text {
    color: var(--text-light);
    font-weight: 600;
    border-right: 2px solid var(--primary-color); /* Simula el cursor */
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

/*-------------------------------------------------
    Títulos de Sección y Tarjetas de Proyecto
-------------------------------------------------*/
.section-title {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#projects {
    background-color: var(--surface-dark);
}

.project-card {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-secondary);
}

/*-------------------------------------------------
    Footer y Animaciones
-------------------------------------------------*/
footer {
    background-color: var(--background-dark);
    border-top: 1px solid var(--border-color);
}

.social-icons .social-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons .social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
