:root {
    --bg-dark: #050508;
    --text-main: #ffffff;
    --text-muted: #a0a0ab;
    --primary: #8e2de2;
    --secondary: #4a00e0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.08);
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background Mesh Elements */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 25s infinite ease-in-out alternate;
    border-radius: 50%;
}

.blob.color-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(142, 45, 226, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
}

.blob.color-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(74, 0, 224, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -5s;
}

.blob.color-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(8%, 12%) scale(1.1);
    }

    66% {
        transform: translate(-4%, 8%) scale(0.9);
    }

    100% {
        transform: translate(6%, -4%) scale(1.05);
    }
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 640px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stagger Entry Animations */
.profile-image-container {
    animation: scaleInBounce 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0);
}

.profile-title {
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.profile-bio {
    animation: fadeUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.link-card:nth-child(1) {
    animation: fadeRight 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.7s forwards;
    opacity: 0;
}

.link-card:nth-child(2) {
    animation: fadeRight 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.85s forwards;
    opacity: 0;
}

.custom-page-cta {
    animation: fadeUpScale 0.8s cubic-bezier(0.25, 1, 0.5, 1) 1.0s forwards;
    opacity: 0;
}

footer {
    animation: fadeUp 0.5s ease-out 1.2s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUpScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 2rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(142, 45, 226, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 2;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-image-container:hover .profile-image {
    transform: scale(1.1) rotate(5deg);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(142, 45, 226, 0.5);
    animation: pulse 2.5s infinite cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.profile-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #a482d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.profile-bio {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 80%;
    margin: 0 auto;
}

/* Links Section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 5rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease-out;
}

.link-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(142, 45, 226, 0.15);
}

.link-card:hover::before {
    left: 150%;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    margin-right: 1.25rem;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.link-card:hover .link-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.4);
}

.link-icon svg {
    width: 22px;
    height: 22px;
}

.link-text {
    font-size: 1.1rem;
    font-weight: 500;
    flex-grow: 1;
    letter-spacing: 0.2px;
}

.link-arrow {
    opacity: 0.4;
    transition: var(--transition);
}

.link-arrow svg {
    width: 20px;
    height: 20px;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
    color: #fff;
}

/* Custom Page CTA */
.custom-page-cta {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 24px;
    z-index: 1;
}

.cta-glow-effect {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.2), rgba(74, 0, 224, 0.2));
    filter: blur(40px);
    border-radius: 40px;
    z-index: -1;
    opacity: 0.6;
}

.cta-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.cta-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 45, 226, 0.5);
    background: linear-gradient(135deg, #9b40ea 0%, #5810e8 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.25rem;
    }

    .profile-image-container {
        width: 100px;
        height: 100px;
    }

    .profile-title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cta-content {
        padding: 2rem 1.5rem;
    }
}