:root {
    --UI-UX-1: #17A2B8;
    --UI-UX-2: #E2F26B;
    --UI-UX-3: #B4BF5E;
    --UI-UX-4: #F2F2F2;
    --UI-UX-5: #0D0D0D;
}

html {
    font-family: 'Space Grotesk', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

body {
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    color: #111827;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

/* inicio datos de cv */
.jumbotron {
    height: 700px;
}

#header {
    height: 100vh;
    /* Ocupa toda la altura de la ventana */
    display: flex;
    align-items: center;
    /* Centrar verticalmente */
    justify-content: center;
    /* Centrar horizontalmente */

}

#header.animate-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Opcional: Estilo del contenido */
#header .content {
    text-align: center;
    /* Centrar texto dentro del contenido */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: #ffffff;
}

.navbar-brand {
    margin-right: auto;
    margin-left: auto;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 40px;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    /* Centra las opciones del menú */
    width: 100%;
    /*ancho completo */
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    /* Espacio para la línea */
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--UI-UX-1);
    /* Color de la línea */
    transition: width 0.3s ease;
}

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

#about,
#habilidades,
#proyectos,
#contacto {
    padding-top: 100px;
}


/* Foto de perfil */
.col-md-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.row .picture_profile {
    width: 100%;
    /* or max-width: 100%; */
    height: auto;
    margin: 10px;
}

/* Footer */
.footer {
    font-size: 0.9rem;
    background-color: #fff;
    color: #6c757d;
    border-top: 1px solid #e5e7eb;
}

.footer a {
    color: var(--UI-UX-1);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer a:hover {
    color: var(--UI-UX-3);
}

/* texto Eduardo Velazquez Sosa */
.text-color {
    color: var(--UI-UX-1);
    font-weight: bold;
}

/* texto */
.justify-text {
    text-align: justify;
}

a {
    color: var(--UI-UX-1);
}

/* Botones de CV */
a.btn {
    color: var(--UI-UX-1);
    /* Color del texto */
    background-color: white;
    /* Fondo transparente para resaltar el texto */
    border: 2px solid var(--UI-UX-1);
    /* Borde con el mismo color */
    padding: 10px 15px;
    text-decoration: none;

    border-radius: 5px;
    transition: all 0.3s ease;
    /* Transición para suavizar los efectos */
}

a.btn:hover {
    color: white;
    /* Cambia el texto a blanco */
    background-color: var(--UI-UX-1);
    /* Fondo sólido del mismo color */
    border-color: var(--UI-UX-1);
    /* Asegura que el borde no cambie */
}

/* Habilidades */
.icon-wrapper {
    transition: transform 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.2);
    z-index: 1;
}

.icon-hability {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Card de proyectos */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 4px;
    background: linear(to right, var(--UI-UX-1));
    bottom: -10px;
    left: 15%;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 05px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-tags {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.project-tag {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--UI-UX-5);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--UI-UX-5);
}

.project-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-link {
    color: var(--UI-UX-1);
    background-color: transparent;
    border: 2px solid var(--UI-UX-1);
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.primary-link:hover {
    color: var(--UI-UX-4);
    background-color: var(--UI-UX-1);
}

.secondary-link {
    border: 1px solid #ddd;
    color: #666;
}

.secondary-link:hover {
    background-color: #f0f0f0;
}

.project-date {
    font-size: 0.85rem;
    color: #999;
}

/* animacion transicion suave */
/* Transiciones para hover y enlaces */
a,
button,
.card {
    transition: all 1s ease-in-out;
}

/* Hover animado para botones */
.btn-dark:hover {
    transform: scale(1.05);

}


/* Animación de entrada para el header */
.navbar {
    opacity: 1;
    transform: none;
}


.navbar.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* experiencia */
.experience-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


#experice h2 {
    font-weight: 600;
    font-size: 2rem;
}

#experice h5 {
    font-size: 1.2rem;
}

#experice p {
    font-size: 0.95rem;
    color: #444;
}


#contacto {
    padding-top: 100px;
    padding-bottom: 100px;
}

.input-clean {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out;
    background-color: #fff;
}

.input-clean:focus {
    border-color: var(--UI-UX-1);
    outline: none;
}

.custom-btn {
    color: var(--UI-UX-1);
    /* Texto oscuro para contraste */
    background-color: transparent;
    /* Fondo claro */
    border: 2px solid var(--UI-UX-1);
    /* Borde en color primario */
    padding: 12px 24px;
    /* Más aire para accesibilidad */
    border-radius: 12px;
    /* Bordes más suaves */
    font-weight: 600;
    /* Mayor peso de fuente */
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.1);
    /* Sombra ligera para profundidad */
    cursor: pointer;
}

.custom-btn:hover {
    background-color: var(--UI-UX-1);
    /* Fondo primario */
    color: white;
    /* Texto blanco para contraste */
    border-color: var(--UI-UX-1);
    /* Borde igual al fondo */
    transform: scale(1.03);
    /* Ligera animación */
    box-shadow: 0 6px 18px rgba(23, 162, 184, 0.2);
    /* Sombra más intensa */
}

.custom-btn:hover {
    color: white;
    background-color: var(--UI-UX-1);
}

/* Conecta conmigo */
.social-icon img {
    transition: transform 0.3s ease;
    filter: grayscale(40%);
}

.social-icon:hover img {
    transform: scale(1.2);
    filter: grayscale(0%);
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--UI-UX-1);
    opacity: 0.5;
    transition: opacity 0.3s;
}

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

.education-card {
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

#carouselCursos {
    height: 400px;

}

/* Sugerencia visual: flecha que parpadea */
.scroll-hint {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 2rem;
    color: var(--UI-UX-1);
    animation: blink 1s infinite;
    z-index: 10;
}

/* Pato */
.floating-duck {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    opacity: 0.85;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(6px);
    }
}

/* Pato explosion */
@keyframes explode {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }

    50% {
        opacity: 0.6;
        transform: scale(2) rotate(180deg);
        filter: blur(1px);
    }

    100% {
        opacity: 0;
        transform: scale(3) rotate(720deg);
        filter: blur(4px);
    }
}

.explode {
    animation: explode 0.6s forwards;
}



@media (max-width: 767px) {
    .navbar-brand {
        display: none;
    }

    .navbar-nav {
        text-align: center;
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    #header .content h1 {
        font-size: 2rem;
    }

    #header .content p {
        font-size: 1rem;
    }

    .custom-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .project-card {
        margin-bottom: 20px;
    }

    .footer {
        text-align: center;
        font-size: 0.8rem;
    }

    .projects-container {
        max-width: 500px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    /* Pato */
    .floating-duck {
        position: fixed;
        bottom: 10px;
        right: 10px;
        width: 50px;
        opacity: 0.85;
        animation: float 3s ease-in-out infinite;
        z-index: 10;
    }

}