/* --- CSS Reset & Custom Properties --- */
:root {
    --bg-base: #030305;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* --- Animated Ambient Background --- */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-base);
    overflow: hidden;
}

.ambient-background .blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
    animation: drift 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    background: var(--accent-purple);
    top: -15vw;
    left: -15vw;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-blue);
    bottom: -15vw;
    right: -15vw;
    animation-delay: -5s;
}

.blob-3 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-pink);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15%, 15%) scale(1.1);
    }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)"/%3E%3C/svg%3E');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* --- Main Container --- */
.container {
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    position: relative;
}

/* --- Profile Section --- */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem auto;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    padding: 3px;
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
        linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-blue)) border-box;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.25);
    animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes floatAvatar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #1d9bf0;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    border: 3px solid var(--bg-base);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.profile-name {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* --- Dynamic Social Icons --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.social-icon.youtube:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.social-icon.instagram:hover {
    color: #d946ef;
    border-color: rgba(217, 70, 239, 0.3);
    box-shadow: 0 8px 20px rgba(217, 70, 239, 0.2);
}

.social-icon.twitter:hover {
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.3);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.2);
}

.social-icon.behance:hover {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}


/* --- Links Grid --- */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 3rem;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.15rem 1.25rem;
    background: var(--glass-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    transform: translateY(-4px) scale(1.02);
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.link-card:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s;
}

/* Primary Highlight Link */
.link-card.primary {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
}

.link-card.primary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15),
        0 0 20px rgba(139, 92, 246, 0.1);
}

.link-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 0 20px 0 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    z-index: 2;
}

.link-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    margin-right: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-card.primary .link-icon {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    border: none;
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.link-card.primary:hover .link-icon {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    /* reverse on hover */
}

.link-text {
    flex: 1;
}

.link-text h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 0.15rem;
}

.link-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.link-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    background: #fff;
    color: #000;
    transform: translateX(4px);
}

/* --- Entrance Animations --- */
.stagger-in {
    opacity: 0;
    animation: slideUpFade 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 450px) {
    .link-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .link-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        margin-right: 1rem;
    }

    .link-text h2 {
        font-size: 1.05rem;
    }

    .link-badge {
        top: -10px;
        right: 16px;
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .profile-name {
        font-size: 1.6rem;
    }
}