body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-behavior: smooth; /* Smooth scroll to anchors */
    /* La altura se establecerá dinámicamente con JavaScript para la animación */
    background-color: #0d1117; /* Color de fallback por si la animación no carga */
}

/* Sobrescribimos algunas variables de color de Bootstrap para un tema más oscuro */
[data-bs-theme="dark"] {
    --bs-body-bg: #0d1117; /* GitHub Dark default background */
    --bs-body-color: #c9d1d9; /* GitHub Dark default text color */
    --bs-border-color: #30363d;
    --bs-primary: #8B5CF6; /* Un morado similar al que tenías */
    --bs-info: #58a6ff; /* GitHub Blue accent */
    --bs-success: #238636; /* GitHub Green */
}

/* Contenedor de la animación de fondo (nuevo) */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    /* Transición más rápida para el efecto de fotogramas */
    transition: background-image 0.2s ease-out;
    /* Optimización para el rendimiento de la animación */
    will-change: background-image;
}

#background-animation-container img.active {
    opacity: 1;
}

/* Ajustes para los botones de Bootstrap */
.btn-primary {
    --bs-btn-bg: var(--bs-success);
    --bs-btn-border-color: var(--bs-success);
    --bs-btn-hover-bg: #2ea043;
    --bs-btn-hover-border-color: #2ea043;
}

/* Contenido principal de la página (nuevo) */
#content-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
}

.section-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
}

/* Tarjeta de contenido para las secciones */
.content-card {
    max-width: 1140px; /* Ancho del container de Bootstrap */
    width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    /* Fondo oscuro y semitransparente para legibilidad sobre la animación */
    background-color: rgba(13, 17, 23, 0.9);
    color: var(--bs-body-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 3rem;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--bs-info);
}

.hero-subtitle {
    max-width: 700px;
}

/* Estilo para las listas con viñetas */
.custom-list {
    list-style: none;
    padding-left: 0;
}
.custom-list li::before {
    content: "•";
    color: var(--bs-info);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Indicador de scroll (nuevo) */
.scroll-indicator {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 100;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.scroll-indicator span {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.scroll-indicator .arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid white;
    animation: bounce 1.5s infinite;
}

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

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

/* Animación de rebote para el indicador de scroll */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Estilos personalizados para el carrusel del portafolio */
#portfolioCarousel .carousel-control-prev,
#portfolioCarousel .carousel-control-next {
    width: 5%; /* Reduce el área de clic para no superponerse tanto con el contenido */
}

#portfolioCarousel .carousel-control-prev-icon,
#portfolioCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para mejor visibilidad */
    border-radius: 50%;
    padding: 1.2rem; /* Aumenta el tamaño del fondo del ícono */
}

#portfolioCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--bs-info); /* Usa el color de acento del tema */
    width: 10px;
    height: 10px;
    border-radius: 100%;
    opacity: 0.6;
    border: 0;
    margin: 0 4px;
}

#portfolioCarousel .carousel-indicators .active {
    opacity: 1;
}
