/* --- Reset y Fundamentos --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #020002;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* --- Fondo Base --- */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #020002;
}

/* --- Contenedor Principal (Subido de altura) --- */
.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding-top: 6vh;
    padding-bottom: 40px;
}

/* --- 1. Imagen de Perfil (Avatar) con Borde Metálico Robusto --- */
.profile-picture-container {
    position: relative;
    margin-bottom: 1rem;
    display: inline-block;
}

.profile-picture {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #d4d4d4;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture:hover {
    transform: translateY(-2px);
    border-color: #ffffff; 
    box-shadow: 
        0 0 0 2px #000000,
        0 6px 30px rgba(182, 185, 189, 0.281),
        inset 0 0 15px rgba(255, 255, 255, 0.8);
}

/* --- 2. Nombre y Título --- */
.name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(235, 230, 230, 0.37);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

/* --- 3. Contenedor de Botones Principales (Compactos de ancho, altos verticalmente) --- */
.button-container {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn, a.btn, button.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px; 
    width: 145px;       
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #0b0b0e; 
    border: 1px solid rgba(255, 255, 255, 0.15);   
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible;
}

.btn i {
    font-size: 1.1rem;
}

.btn:hover, a.btn:hover, button.btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);    
    border-color: rgba(255, 255, 255, 0.5);      
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.12); 
}

/* --- Feedback visual de "¡Copiado!" --- */
.btn-copy {
    position: relative;
}

.copy-feedback {
    position: absolute;
    background-color: #ffffff;
    color: #000000;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    top: -26px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.btn-copy.copied .copy-feedback {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Video Central (Sin bordes azules) --- */
.center-video {
    width: 290px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.media-box {
    background-color: transparent;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* --- Controles de Audio y Reproducción del Video --- */
.video-container {
    position: relative;
}

.video-controls-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 3px 6px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.video-container:hover .video-controls-overlay {
    opacity: 1;
    pointer-events: auto;
}

.mute-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.mute-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.video-controls-overlay .volume-slider {
    width: 40px;
    height: 3px;
}

/* --- Control de Volumen General (Sliders) --- */
.volume-slider {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* --- 4. Pie de Página --- */
.footer {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 0; /* Inicia oculto para la animación */
    animation: fadeInDown 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s; /* Aparece al final de todos los elementos */
}

/* --- Animación de Entrada Fluida (De Arriba a Abajo, 2s) --- */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container > * {
    opacity: 0;
    animation: fadeInDown 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 1. Primero sale la foto de perfil */
.profile-picture-container {
    animation-delay: 0s;
}

/* 2. Luego el nombre principal */
.name {
    animation-delay: 0.2s;
}

/* 3. Después el mini texto (tagline) */
.tagline {
    animation-delay: 0.4s;
}

/* 4. Luego los botones */
.button-container {
    animation-delay: 0.6s;
}

/* 5. Luego el video */
.center-video {
    animation-delay: 0.8s;
}
/* --- 4. Pie de Página --- */
.footer {
    position: relative; /* Lo pasamos a relativo para que entre en el flujo y no se buguee */
    margin-top: auto;   /* Lo empuja elegantemente hacia el fondo de la pantalla */
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInDown 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s; /* Aparece después del video */
    padding-top: 20px;
    padding-bottom: 15px;
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    .name { font-size: 2.5rem; }
    .button-container { gap: 1rem; }
}
