:root {
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --bg-dark: #0a0a16;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    min-height: 100vh;
    background: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    color: var(--text-main);
    position: relative;
}

/* Animated Mesh Background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

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

.container {
    max-width: 480px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 32px;
    padding: 48px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 32px;
}

.avatar {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
    border: 1px solid var(--card-border);
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.avatar-container:hover .avatar {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 17px;
    font-weight: 400;
}

.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-left: 8px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 18px 24px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
}

.link-item:hover::before {
    transform: translateX(100%);
}

.icon-container {
    width: 44px;
    height: 44px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    transition: var(--transition);
}

.link-item:hover .icon-container {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.link-content {
    flex: 1;
}

.link-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.link-description {
    font-size: 16px;
    color: var(--text-dim);
    font-weight: 400;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    color: #818cf8;
    border-color: var(--primary);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* Staggered Animation */
.link-item {
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.link-item:nth-child(1) {
    animation-delay: 0.1s;
}

.link-item:nth-child(2) {
    animation-delay: 0.2s;
}

.link-item:nth-child(3) {
    animation-delay: 0.3s;
}

.link-item:nth-child(4) {
    animation-delay: 0.4s;
}

.link-item:nth-child(5) {
    animation-delay: 0.5s;
}

@media (max-width: 480px) {
    .container {
        padding: 40px 24px;
        border-radius: 24px;
    }

    h1 {
        font-size: 28px;
    }

    .link-item {
        padding: 16px 20px;
    }
}

/* Custom Social Icons Colors */
.link-item[href*="tiktok"]:hover .icon-container {
    background: #000000;
    color: #fff;
}

.link-item[href*="instagram"]:hover .icon-container {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.link-item[href*="mailto"]:hover .icon-container {
    background: #ea4335;
    color: #fff;
}
