:root {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #f472b6; /* Default pastel pink */
    --accent-rgb: 244, 114, 182;
    --hover-bg: rgba(255, 255, 255, 0.4);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* No scroll */
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Aesthetic Pastel Blobs */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(var(--accent-rgb), 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    transition: background 1.5s ease;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.98);
    animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card Styling */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    padding: 40px 32px 32px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    text-align: center;
    width: 100%;
    height: fit-content;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

/* Profile Section */
.profile-section {
    margin-bottom: 24px;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    position: relative;
    z-index: 2;
    background: #f1f5f9;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.rotating-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    mask: radial-gradient(transparent 64%, black 65%);
    -webkit-mask: radial-gradient(transparent 64%, black 65%);
    animation: rotate 4s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.name {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
    color: #0f172a;
}

.accent-text {
    color: var(--accent-color);
    transition: color 0.8s ease;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    position: relative;
}

.icon-pod {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s ease;
}

.icon-pod svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.link-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
    text-align: left;
}

.link-title {
    font-size: 1rem;
    font-weight: 600;
}

.link-handle {
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    opacity: 0.7;
}

.external-icon {
    opacity: 0.1;
    width: 14px;
    height: 14px;
    transition: var(--transition-smooth);
}

/* Hover States */
.link-item:hover {
    background: #ffffff;
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.15);
}

.link-item:hover .icon-pod {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 15px rgba(var(--accent-rgb), 0.1);
}

.link-item:hover .icon-pod svg {
    color: var(--accent-color);
}

.link-item:hover .external-icon {
    opacity: 0.6;
    color: var(--accent-color);
    transform: translate(2px, -2px);
}

/* Responsive Scaling */
@media (max-height: 700px) {
    .card {
        padding: 30px 24px;
    }
    .avatar-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    .name {
        font-size: 1.5rem;
    }
    .link-item {
        padding: 10px 16px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .container { animation: none; opacity: 1; transform: none; }
    .rotating-ring { animation: none; border: 2px solid var(--accent-color); }
    .link-item:hover { transform: none; }
}
