/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos personalizados que pueden ser útiles */
:root {
    --primary-color: #1a7a5b; /* Color primario */
    --secondary-color: #951ef5; /* Color secundario */
    --accent-color: #6465a8; /* Color de acento */
}

/* Body */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #09090b;
}

/* Header y Navegación */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2563eb;
    padding: 1rem;
    z-index: 10;
}

.nav-links.active li {
    margin: 0.5rem 0;
}

/***********************/
/* Button Start */
/***********************/
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(to right, #0d7b55, #800080);
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

/* Hover y Tap simulados */
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(13, 123, 85, 0.5);
}

/***********************/
/* Button End */
/***********************/

.text-gradient {
    color: linear-gradient(to right, #0d7b55, #800080);
}

/***********************/
/* Header Start */
/***********************/
.hero-section {
    background: url("assets/background.webp") no-repeat center center/cover;
    min-height: 50vh;
}
@media (min-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }
}

/***********************/
/* Header End */
/***********************/

/***********************/
/* Proyectos Start */
/***********************/
/* #proyectos {
    background: url("assets/background_section.webp") no-repeat center
        center/cover;
} */

.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.photo-gallery {
    display: flex;
    gap: 20px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    border-radius: 0.375rem;
    object-fit: cover;
}
.about-image-placeholder {
    height: 16rem;
    background-color: #d1d5db;
    border-radius: 0.375rem;
}
.project-image {
    height: 12rem;
    background-color: #d1d5db;
    border-radius: 0.375rem 0.375rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/***********************/
/* Proyectos End */
/***********************/

/***********************/
/* Experiencia Start */
/***********************/
#experiencia {
    background: url("assets/background_section.webp") no-repeat center
        center/cover;
}

/***********************/
/* Habilidades Start */
/***********************/
#habilidades {
    background: url("assets/background_section.webp") no-repeat center
        center/cover;
}

.card-skills {
    background-color: #0b0d11;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #f8f9fa;

    transition: 0.3s ease-out;
}

.card-skills:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    border: 2px solid transparent;
    background-image:
        linear-gradient(#0b0d11, #0b0d11),
        linear-gradient(to right, #0d7b55, #800080);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.card-skills a {
    color: inherit;
    text-decoration: none;
}

/***********************/
/* Habilidades End */
/***********************/

/***********************/
/* Timeline Styles Start */
/***********************/
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
        padding-left: 3rem;
        width: 100%;
    }

    .timeline-marker {
        left: 1rem;
    }
}
/***********************/
/* Timeline Styles End */
/***********************/

/***********************/
/* footer End */
/***********************/
footer {
    background: url(assets/background_footer.webp) no-repeat center center/cover;
}
