:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-purple: #b026ff;
    --accent-cyan: #00f0ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to handle longer content */
    overflow-x: hidden;
    position: relative;
    padding-top: 5vh;
    padding-bottom: 5vh;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(176, 38, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 25%);
    animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 550px;
    /* Slightly wider for embeds */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

/* Header */
.profile-header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-speed);
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
    filter: blur(15px);
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.username {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Links & Content Cards */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Common Card Styles */
.link-card,
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 16px;
    color: var(--text-primary);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out backwards;
}

/* Link Specifics */
.link-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

/* Content Card Specifics (for embeds) */
.content-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.embed-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

/* Stagger Animations */
.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.content-card:nth-child(2) {
    animation-delay: 0.2s;
}

.content-card:nth-child(3) {
    animation-delay: 0.3s;
}

.link-card:nth-child(4) {
    animation-delay: 0.4s;
}

.link-card:nth-child(5) {
    animation-delay: 0.5s;
}


.link-card::before,
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
}

.link-card:hover::before,
.content-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover,
.content-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.link-card:hover .icon-box,
.content-card:hover .card-header .icon-box {
    background: var(--text-primary);
    color: #000;
}

#link-youtube:hover .icon-box {
    background: #ff0000;
    color: #fff;
}

#link-instagram:hover .icon-box {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

#link-email:hover .icon-box {
    background: var(--text-primary);
    color: #000;
}

#card-tiktok:hover .card-header .icon-box {
    background: linear-gradient(45deg, #00f2ea, #ff0050);
    color: #fff;
}

#card-spotify:hover .card-header .icon-box {
    background: #1DB954;
    color: #fff;
}


.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.link-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.arrow-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed);
    color: var(--text-secondary);
}

.link-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Embed Specific Overrides */
iframe {
    display: block;
    /* Removes bottom space */
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .username {
        font-size: 1.5rem;
    }

    .content-card {
        padding: 1rem;
    }
}