/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    background-color: #fff9e3; /* Fondo crema claro */
    color: #fda720; /* Texto en tono oscuro */
    font-family: 'Arial', sans-serif;
}

header {
    background: #291842; /* Color de fondo del encabezado */
    padding: 2rem 0;
    text-align: center;
}

.header-content h1 {
    font-size: 2rem; 
    color: #fff9e3; /* Color claro, casi blanco */
    text-align: center;
    white-space: nowrap;
    overflow: hidden; 
}

#cursor {
    display: inline-block;
    margin-left: 5px;
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

#typed-text {
    border-right: 2px solid white; 
    white-space: nowrap;
    overflow: hidden; 
    display: inline-block;
}

.about-me {
    padding: 40px 0;
    background-color: #fff9e3; /* Fondo claro para la sección About Me */
}

.about-me-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
}

.about-me-image {
    max-width: 90%; 
    border-radius: 100px; 
}

.about-me h2 {
    color: #b060c9.; /* Color de acento similar al encabezado */
    margin-bottom: 30px;
}

.about-me p {
    color: #1A1A3D; 
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-me-content {
        flex-direction: column;
        text-align: center;
    }

    .about-me-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.portfolio-filter {
    text-align: center;
    padding: 20px 0;
}

.cv-container {
    text-align: center;
    margin-top: 10px;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #25153a; /* Color amarillo mostaza */
    color: #fda720; /* Color oscuro */
    cursor: pointer;
    position: relative;
    display: inline-block; /* Asegura que los botones no se superpongan */
    margin: 0 10px; /* Espacio entre los botones */
    z-index: 1;
    overflow: hidden;
    box-shadow: none;
}

.filter-btn:hover, .filter-btn:focus {
    background: #c9b7bb; /* Fondo más claro al hacer hover */
    color: #1A1A3D;
    transform: scale(1.05); /* Ligera ampliación para destacar el botón */
    z-index: 2; /* Aumenta ligeramente el z-index solo en hover */
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease-in-out;
}

.filter-btn:hover::before {
    left: 100%;
}

a.filter-btn {
    text-decoration: none;
    color: inherit;
    z-index: 1; /* Asegura que no se superponga a los otros botones */
    margin: 0 10px;
}

a.filter-btn:hover {
    text-decoration: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.portfolio-item {
    background-color: #25153a; /* Fondo oscuro de las tarjetas de video */
    border-radius: 15px;
    padding: 20px;
    margin: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Sombra al hacer hover */
}

.portfolio-item h3 {
    margin-top: 0px;
    margin-bottom: 5px;
    color: #F7B445; /* Color de texto similar al de los botones */
}

.portfolio-item video {
    width: 100%; 
    border-radius: 10px; 
    outline: none;
}

.portfolio-item p {
    color: #CCCCCC; 
}

footer {
    background: #291842;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* ... Additional media queries for responsiveness ... */
