@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: 'Righteous', sans-serif; 
    background: linear-gradient(-45deg, #1e1e2f, #2a2a72, #6b48ff, #00ddeb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 2px,
        transparent 2px,
        transparent 8px
    );
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 2px,
        transparent 2px,
        transparent 8px
    );
    animation: patternMove 15s linear infinite reverse;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.card {
    width: 320px;
    height: 450px;
    perspective: 1200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: linear-gradient(45deg, #6b48ff, #00ddeb);
    border: 3px solid #ffffff20;
}

.card-back {
    background: linear-gradient(45deg, #1e1e2f, #2a2a72);
    transform: rotateY(180deg);
    flex-direction: column;
    padding: 25px;
    text-align: center;
    border: 3px solid #ffffff20;
}

.aylana {
    width: 140px;
    height: 140px;
    background: url('img/pexels-photo-771742.webp') no-repeat center/cover;
    border-radius: 50%;
    border: 4px solid #00ddeb;
    box-shadow: 0 5px 20px rgba(0, 221, 235, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-front .aylana {
    transform: scale(1.1);
}

.card-front:hover .aylana {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 221, 235, 0.6);
}

.aylana.smaller {
    width: 110px;
    height: 110px;
    background: url('img/my-profile-image.jpg') no-repeat center/cover;
    border-radius: 50%;
    border: 4px solid #6b48ff;
    box-shadow: 0 5px 20px rgba(107, 72, 255, 0.4);
    transition: transform 0.4s ease, border 0.4s ease;
}

.card-back:hover .aylana.smaller {
    transform: translateY(-15px);
    border: 4px solid #00ddeb;
    box-shadow: 0 10px 30px rgba(0, 221, 235, 0.6);
}

.header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

h4 {
    font-size: 32px; 
    font-weight: 400; 
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 3px 8px rgba(0, 221, 235, 0.5); 
}

p {
    font-size: 18px; 
    color: #d1d1e9;
    font-weight: 400; 
    letter-spacing: 1.2px; 
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); 
}

.btn {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.btn a {
    background: #6b48ff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 400; 
    letter-spacing: 1.5px; 
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.btn a:hover {
    background: #00ddeb;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 221, 235, 0.5);
}

.button {
    display: inline-block;
    background: #ff2e63;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 400; 
    letter-spacing: 1.5px; 
    font-size: 16px; 
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.button:hover {
    background: #ff577f;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 46, 99, 0.5);
}