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

body, html {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Gambetta', serif;
}

/* Video de fondo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
}

/* Control de audio */
.audio-control {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.audio-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.audio-control .material-icons {
    color: white;
    font-size: 24px;
}

/* Contenido principal */
.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0;
    padding: 0;
}

/* Nombre principal */
.name {
    font-family: 'General Sans', sans-serif;
    font-size: clamp(1.2rem, 4.5vw, 2.4rem);
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
    line-height: 0.9;
    letter-spacing: -0.01em;
}

/* Botón de descarga del portafolio */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: white;
    text-decoration: none;
    padding: 4px 0;
    font-family: 'Gambetta', serif;
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.005em;
    border-radius: 0;
    opacity: 0.9;
}

.download-btn:hover {
    transform: translateX(3px);
    opacity: 1;
}

.download-btn .material-icons {
    font-size: 14px;
}

/* Sección de contacto */
.contact-section {
    margin-top: 20px;
}

.contact-title {
    font-family: 'General Sans', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 400;
    color: white;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: 'Gambetta', serif;
    font-size: 0.8rem;
    font-weight: 300;
}

.contact-item .material-icons {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-text {
    letter-spacing: 0.005em;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
    font-family: 'Gambetta', serif;
}

.contact-text:hover {
    opacity: 1;
    transform: translateX(2px);
}

/* Botón CV */
.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: white;
    text-decoration: none;
    padding: 4px 0;
    font-family: 'Gambetta', serif;
    font-size: 0.75rem;
    font-weight: 300;
    transition: all 0.3s ease;
    margin-top: 6px;
    letter-spacing: 0.005em;
    opacity: 0.8;
}

.cv-btn:hover {
    transform: translateX(3px);
    opacity: 1;
}

.cv-btn .material-icons {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-control {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .audio-control .material-icons {
        font-size: 18px;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .name {
        margin-bottom: 5px;
    }
    
    .download-btn {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .contact-section {
        margin-top: 18px;
    }
    
    .contact-title {
        margin-bottom: 14px;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 25px 18px;
    }
    
    .download-btn {
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .download-btn .material-icons {
        font-size: 12px;
    }
    
    .cv-btn {
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .cv-btn .material-icons {
        font-size: 10px;
    }
    
    .contact-item .material-icons {
        font-size: 12px;
    }
}

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

.name,
.download-btn,
.contact-title,
.contact-item,
.cv-btn {
    animation: fadeInUp 0.8s ease forwards;
}

.download-btn {
    animation-delay: 0.2s;
}

.contact-title {
    animation-delay: 0.4s;
}

.contact-item:nth-child(1) {
    animation-delay: 0.6s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.7s;
}

.cv-btn {
    animation-delay: 0.8s;
}