:root {
    --UI-UX-1: #3F4D59;
    --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;
}

html,
body {
    margin: 0;
    /* Permitir comportamiento normal de overscroll para no bloquear el scroll táctil */
    overscroll-behavior: auto;
    overflow-x: hidden;
}




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);
    }
}

/* Titulo de inicio */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--UI-UX-1);
}

/* INLINE VIDEO */
.inline-reel {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.4em;
    height: 0.85em;
    margin: 0 0.25em;

    vertical-align: middle;
    overflow: hidden;
    border-radius: 0.15em;
}

.inline-reel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    pointer-events: none;
}

/* Highlight */
.highlight {
    color: #0B515C;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {

    .inline-reel {
        width: clamp(42px, 14vw, 56px);
        height: clamp(26px, 9vw, 36px);
        margin: 0 0.2em;
    }

    .inline-reel video {
        transform: scale(1.08);
    }
}

/* =========================
   EXTRA SMALL (<= 380px)
========================= */

@media (max-width: 380px) {

    .hero-title {
        font-size: 1.8rem;
    }

    .inline-reel {
        width: 3em;
        height: 1em;
    }
}

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


/* Canvas como fondo SOLO del header: ocupa el área del header y es transparente */
#header {
    position: relative;
    /* crea contexto de apilamiento para el canvas */
}

#header>#neuralCanvas,
#neuralCanvas {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    touch-action: auto;
    background-color: transparent;
}

/* Asegurar que el contenido del header esté por encima del canvas */
#header .section {
    position: relative;
    z-index: 2;
}


.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;
}

/* 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(--UI-UX-1);
    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 */

/* Animación para botones seleccionables */
.btn-animated {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    position: relative;
    will-change: transform, box-shadow;
}

.btn-animated:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn-animated:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.btn-animated:focus {
    outline: none;
}

.btn-animated:focus-visible {
    animation: btn-focus-pulse 900ms ease-out;
}

@keyframes btn-focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.18);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(23, 162, 184, 0.06);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0);
    }
}

.navbar {
    opacity: 1;
    transform: none;
}


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

/* Navbar: transición y estado al hacer scroll */
.navbar {
    transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
    backdrop-filter: blur(6px);
}

/* Evitar backdrop-filter y sombras pesadas para usuarios que pidan reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .navbar.scrolled {
        box-shadow: 0 3px 8px rgba(16, 24, 40, 0.04);
        backdrop-filter: none;
    }
}

/* Resaltar enlace activo */
.navbar-nav .nav-link.active {
    color: var(--UI-UX-1);
    font-weight: 600;
}

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

/* 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 (la posición la controla .duck-container) */
.floating-duck {
    width: 100%;
    opacity: 0.85;
    animation: float 3s ease-in-out infinite;
    display: block;
}

@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);
        filter: blur(0);
    }

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

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

.explode {
    animation: explode 0.6s forwards;
}

/* Duck */
.duck-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    width: 72px;
    height: 72px;
}

.duck-container a,
.duck-container img {
    display: block;
    width: 100%;
    height: 100%;
}

.floating-duck {
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: contain;
}

@media (max-width:576px) {
    .duck-container {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
    }

    .duck-badge {
        top: -6px;
        font-size: 0.72rem;
        padding: 4px 8px;
    }
}

/* Partículas */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: gold;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2000;
    animation: particle-explode 0.6s ease-out forwards;
}

@keyframes particle-explode {
    from {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    to {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}


@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 */
    .duck-container {
        right: 12px;
        bottom: 12px;
        width: 56px;
        height: 56px;
    }

    .floating-duck {
        width: 100%;
        opacity: 0.85;
        animation: float 3s ease-in-out infinite;
        z-index: 10;
    }

}