/* DARK MODE OVERRIDE FOR JOHN SKINNER CV */
html, body {
    background-color: #0f1012 !important;
    color: #ffffff !important;
}

.vlt-main, .vlt-section, .vlt-section__content {
    background-color: #0f1012 !important;
}

h1, h2, h3, h4, h5, h6, .vlt-display-1 {
    color: #ffffff !important;
}

p, span, li, address, .vlt-timeline-item__text, .vlt-experience-block__title {
    color: #a8a8a8 !important;
}

.vlt-navbar, .vlt-navbar-background {
    background-color: rgba(15, 16, 18, 0.95) !important;
}

.vlt-offcanvas-menu {
    background-color: #0f1012 !important;
}

.vlt-timeline-item__title {
    color: #ffffff !important;
}

.has-accent-color {
    color: #0062cc !important; /* Color azul base */
}

/* Ajuste para subir el texto del bloque 21+ y que no se cruce con la lÃ­nea */
.vlt-experience-block__title {
    margin-top: -20px !important; 
    position: relative;
    z-index: 2;
}

/* Ocultar la lÃ­nea decorativa que se cruza con el texto */
.vlt-experience-block::before {
    display: none !important;
}

.vlt-experience-block__number {
    margin-bottom: 10px !important;
}

/* NormalizaciÃ³n de logos en Trayectoria/EducaciÃ³n con efectos */
.edu-logo {
    max-height: 70px;
    width: auto;
    display: block;
    margin: 0 auto 20px auto;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.edu-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 25px rgba(0, 98, 204, 0.3);
}


.vlt-timeline-item {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Visibilidad de Libros y Publicaciones */
.vlt-post--masonry {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vlt-post-title a {
    color: #ffffff !important;
}

.vlt-post-excerpt, .vlt-post-date {
    color: rgba(255, 255, 255, 0.7) !important;
}

.vlt-post-media img {
    border-radius: 4px;
    margin-bottom: 15px;
    min-height: 200px;
    background-color: #1a1a1a; /* Placeholder si no hay imagen */
}

/* Fix for links */
a {
    color: #0062cc;
}

a:hover {
    color: #ffffff;
}

/* Fix for footer */
.vlt-footer {
    background-color: #0f1012 !important;
    border-top: 1px solid #222;
}

/* Ken Burns effect overlay fix */
.vlt-section__ken-burn-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Add a dark overlay to images to make text pop */
    z-index: 1;
}

/* FIX: Always prioritize the top of the image to show the face (Higher specificity) */
.vlt-fullpage-slider .vlt-section .vlt-section__ken-burn-background img {
    object-position: top center !important;
    object-fit: cover !important;
    transform-origin: top center !important; /* Forces the Ken Burns scaling to start from the top */
    font-family: 'object-fit: cover; object-position: top center;';
}

/* Fallback for background implementations and general responsiveness */
.vlt-section__ken-burn-background, 
.vlt-section[data-anchor="Home"] {
    background-position: top center !important;
}

/* Optimized typography for mobile and different screens */
@media (max-width: 991px) {
    .vlt-large-heading {
        font-size: 3.5rem !important;
        line-height: 1.1;
    }
    
    .vlt-display-1 {
        font-size: 1.2rem !important;
    }
    
    .vlt-section__content {
        padding-top: 80px; /* Space for the fixed header */
    }
}

/* Ensure the dark overlay doesn't hide the face too much but allows text to be read */
.vlt-section__ken-burn-background::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(15, 16, 18, 0.8) 100%) !important;
}



/* Partners Carousel Optimization */
.vlt-partners-carousel {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.vlt-partners-row {
    display: flex;
    align-items: center; /* Enforce vertical centering */
    overflow: hidden;
    margin-bottom: 20px;
    height: 100px; /* Fixed height for stability */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.vlt-partners-track {
    display: flex;
    align-items: center; /* Enforce vertical centering of items */
    width: max-content;
    gap: 50px;
    animation: slide linear infinite;
    will-change: transform; /* Performance hint */
}

/* Three different speeds and directions - Homogenized movement */
.vlt-partners-track.row-1 {
    animation-duration: 45s;
}

.vlt-partners-track.row-2 {
    animation-duration: 65s;
    animation-direction: reverse;
}

.vlt-partners-track.row-3 {
    animation-duration: 55s;
}

.vlt-partners-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 90px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


.vlt-partners-item:hover {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.vlt-partners-item img {
    max-height: 50px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none !important; /* No grayscale for better readability */
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause on hover */
.vlt-partners-row:hover .vlt-partners-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .vlt-partners-item {
        min-width: 140px;
        height: 60px;
        padding: 10px 15px;
    }
    .vlt-partners-item img {
        max-height: 35px;
    }
}

/* Effect for Project back button */
.vlt-like-button {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vlt-like-button i {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.vlt-like-button:hover {
    transform: rotate(45deg);
    cursor: pointer;
}
.vlt-like-button:hover i {
    transform: scale(1.4);
    color: var(--vlt-accent-color, #0062cc) !important;
}

/* Swiper Arrows Glass & Pulse Effect */
.vlt-slider-controls .vlt-swiper-button-prev,
.vlt-slider-controls .vlt-swiper-button-next {
    width: 65px !important;
    height: 65px !important;
    background: rgba(15, 16, 18, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: vlt_arrow_pulse 2.5s infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff !important;
}

/* Ensure SVG is centered and correctly sized */
.vlt-slider-controls .vlt-swiper-button-prev svg,
.vlt-slider-controls .vlt-swiper-button-next svg {
    max-width: 22px !important;
    height: auto !important;
    transition: all 0.3s ease;
}

/* Hover over the button */
.vlt-slider-controls .vlt-swiper-button-prev:hover,
.vlt-slider-controls .vlt-swiper-button-next:hover {
    background: #0062cc !important;
    border-color: #0062cc;
    transform: scale(1.15) !important;
    animation: none; /* stop pulse on hover */
    box-shadow: 0 10px 30px rgba(0, 98, 204, 0.4);
}

/* Move arrows slightly to point */
.vlt-slider-controls .vlt-swiper-button-prev:hover svg {
    transform: translateX(-3px);
}
.vlt-slider-controls .vlt-swiper-button-next:hover svg {
    transform: translateX(3px);
}

@keyframes vlt_arrow_pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Elegante Efecto "Ver Proyecto" Button */
.vlt-project .vlt-btn {
    background: rgba(0, 98, 204, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    border-radius: 6px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    color: #fff !important;
}

.vlt-project .vlt-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.vlt-project .vlt-btn:hover {
    background: #0062cc !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 98, 204, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.vlt-project .vlt-btn:hover::before {
    left: 150%;
}
