@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
}

:root {
    --card-height: 65vh;
    --card-width: calc(var(--card-height) / 1.5);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #2d313e;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #f0f8ff;
}

.card-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: #191c29;
    width: var(--card-width);
    height: var(--card-height);
    padding: 40px 30px;
    position: relative;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    font-size: 1.5em;
    color: rgb(88 199 250 / 0%);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* Título principal - aparece segundo en la secuencia */
.card h1 {
    font-size: 1.8rem;
    margin: 0 8px 0 0;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transition-delay: 0.2s;
    display: inline-block;
}

.card h3 {
    font-size: 1.1rem;
    margin: 0 0 25px 0;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transition-delay: 0.4s;
    display: inline-block;
    font-weight: 400;
}

.card:hover {
    color: rgb(88 199 250 / 100%);
    transition: color 1s;
}

.card:hover:before, .card:hover:after {
    animation: none;
    opacity: 0;
}

.card::before {
    content: "";
    width: 104%;
    height: 102%;
    border-radius: 8px;
    background-image: linear-gradient(
        var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2
    );
    position: absolute;
    z-index: -1;
    top: -1%;
    left: -2%;
    animation: spin 2.5s linear infinite;
}

.card::after {
    position: absolute;
    content: "";
    top: calc(var(--card-height) / 6);
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    transform: scale(0.8);
    filter: blur(calc(var(--card-height) / 6));
    background-image: linear-gradient(
        var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2
    );
    opacity: 1;
    transition: opacity .5s;
    animation: spin 2.5s linear infinite;
}

@keyframes spin {
    0% {
        --rotate: 0deg;
    }
    100% {
        --rotate: 360deg;
    }
}

.social-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transition-delay: 0.6s;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.social-icon svg {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    background-color: #555;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 25px 0;
    z-index: 1;
    transition: all 0.5s ease-in-out;
    transition-delay: 0s;
    border: 3px solid #5ddcff;
    opacity: 0;
    visibility: hidden;
}

.card:hover .profile-pic,
.card:hover h1,
.card:hover h3,
.card:hover .social-links {
    opacity: 1;
    visibility: visible;
}

.card:hover .profile-pic {
    transform: scale(1.1);
}

