@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');
/* CSS VARIABLES & RESET */
:root {
    --bg-color: #0f0f11;
    --card-bg: rgba(25, 25, 28, 0.7);
    --text-main: #ffffff;
    --text-muted: #8b8b93;
    --accent-1: #ff00cc;
    /* Hot Pink */
    --accent-2: #3333ff;
    /* Electric Blue */
    --accent-3: #00ffcc;
    /* Cyan */
    /* --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif; */
    --font-main: 'Vazir', sans-serif;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Prevent scrollbars from background animation */
}


/* LANGUAGE TOGGLE BUTTON */
.lang-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}


/* BACKGROUND ANIMATION LAYERS */
.ambient-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}


.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}


.blob-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-1);
    top: -10%;
    left: -10%;
}


.blob-2 {
    width: 35vw;
    height: 35vw;
    background: var(--accent-2);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}


.blob-3 {
    width: 25vw;
    height: 25vw;
    background: var(--accent-3);
    top: 40%;
    left: 60%;
    opacity: 0.4;
    animation-duration: 25s;
}


@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}


/* MAIN CARD CONTAINER */
.bio-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    width: 90%;
    max-width: 480px;
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
    /* For JS parallax */
}


/* PROFILE SECTION */
.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}


h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.bio-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    min-height: 3em;
    /* Prevent layout shift */
}


/* LINKS LIST */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.link-btn {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    color: var(--text-main);    
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(25px);
}


.link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-3);
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.15);
}


/* HUE ROTATE EFFECT ON HOVER */
.link-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}


.link-btn:hover::after {
    left: 100%;
}


/* FOOTER */
footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}


/* INITIAL PAGE LOAD ANIMATIONS */

.bio-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.bio-card.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.2,.8,.2,1);
}

.profile-img,
h1,
.bio-text,
.link-btn,
footer {
    opacity: 0;
}

.loaded .profile-img {
    animation: fadeUp 0.8s ease forwards;
}

.loaded h1 {
    animation: fadeUp 0.8s ease 0.15s forwards;
}

.loaded .bio-text {
    animation: fadeUp 0.8s ease 0.3s forwards;
}

/* .loaded .link-btn:nth-child(1) {
    animation: fadeUp 0.6s ease 0.45s forwards;
}

.loaded .link-btn:nth-child(2) {
    animation: fadeUp 0.6s ease 0.55s forwards;
}

.loaded .link-btn:nth-child(3) {
    animation: fadeUp 0.6s ease 0.65s forwards;
}

.loaded .link-btn:nth-child(4) {
    animation: fadeUp 0.6s ease 0.75s forwards;
} */

.loaded .link-btn {
    animation: fadeUp 0.6s ease forwards;
}

.loaded footer {
    animation: fadeUp 0.8s ease 0.9s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
