@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Soft Purple Color Palette */
    --primary-color: #8c52ff;
    --accent-color: #ba68c8;
    --bg-gradient-start: #f3e5f5;
    --bg-gradient-end: #e1bee7;
    --text-main: #4a148c;
    --text-muted: #7b1fa2;
    --card-bg: rgba(255, 255, 255, 0.45);
    --card-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px 0 rgba(74, 20, 140, 0.1);
    --hover-shadow: 0 15px 35px rgba(74, 20, 140, 0.2);
    --glass-blur: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Animations for a "Soap Bubble / Clean" feel */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    /* Float above the card */
    overflow: hidden;
    pointer-events: none;
}

.foam-bubble {
    position: absolute;
    bottom: -150px;
    border-radius: 50%;
    /* Subtle soap color variations based on CSS variables */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4) 60%, rgba(200, 160, 255, 0.1) 100%);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7), 0 0 5px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    50% {
        transform: translateY(-60vh) scale(1.1) translateX(var(--drift)) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) scale(1) translateX(calc(var(--drift) * 1.5)) rotate(360deg);
        opacity: 0;
    }
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    margin-bottom: 2.5rem;
}

.logo-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    box-shadow: 0 10px 25px rgba(106, 76, 147, 0.15), inset 0 0 15px rgba(140, 82, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 3px solid white;
}

.logo-container:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 15px 35px rgba(106, 76, 147, 0.25), inset 0 0 10px rgba(140, 82, 255, 0.1);
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.brand-bio {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(106, 76, 147, 0.05);
    position: relative;
    overflow: hidden;
}

/* Different gradients for hover based on platform */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.link-card.tiktok::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(0, 242, 254, 0.1), rgba(254, 9, 121, 0.1));
}

.link-card.instagram::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(253, 29, 29, 0.1), rgba(131, 58, 180, 0.1));
}

.link-card.shopee::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(238, 77, 45, 0.1));
}

.link-card.tokopedia::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(3, 172, 14, 0.1));
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.95);
}

.link-icon-container {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon-container {
    transform: scale(1.1) rotate(3deg);
}

.link-icon-container img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.link-title {
    flex-grow: 1;
    text-align: left;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    margin-right: 0.5rem;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.footer {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Staggered animation for link cards */
.link-card {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.link-card:nth-child(1) {
    animation-delay: 0.5s;
}

.link-card:nth-child(2) {
    animation-delay: 0.65s;
}

.link-card:nth-child(3) {
    animation-delay: 0.8s;
}

.link-card:nth-child(4) {
    animation-delay: 0.95s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 480px) {
    .container {
        padding: 2.5rem 1.5rem;
        border-radius: 2rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-icon-container {
        width: 48px;
        height: 48px;
        margin-right: 1rem;
    }

    .link-icon-container img {
        width: 30px;
        height: 30px;
    }
}