:root {
    --bg-color: #f9f6f3;
    /* Light milk/foam */
    --text-primary: #2c241b;
    /* Dark roast coffee */
    --text-secondary: #7c6a5a;
    /* Smooth latte */
    --accent-color: #a67c52;
    /* Caramel/Light roast */
    --card-bg: rgba(255, 255, 255, 0.65);
    /* Frosted milk glass */
    --card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(166, 124, 82, 0.2);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% -20%, #e6dccf 0%, #f9f6f3 60%);
}

.background-animation::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(166, 124, 82, 0.1), transparent 50%);
    animation: pulse 15s infinite ease-in-out;
}

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

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

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

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

/* Profile Section */
.profile-section {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.profile-image-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-color), #8b5a2b);
    position: relative;
    box-shadow: 0 0 20px rgba(139, 90, 43, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    background-color: #222;
    /* Fallback */
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.profile-handle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(166, 124, 82, 0.1);
    cursor: pointer;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.social-link:hover {
    color: var(--accent-color);
    background: rgba(166, 124, 82, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.15);
}

.discount {
    display: inline-block;
    background: rgba(201, 158, 105, 0.2);
    color: var(--accent-color);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}

/* Links Section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    perspective: 1000px;
}

.section-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    animation: fadeInDown 0.8s ease-out;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Stagger animation for cards */
.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

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

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

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

.link-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.1);
    border-color: var(--accent-color);
}

.link-card:active {
    transform: scale(0.98);
}

.link-icon {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-content {
    flex: 1;
}

.link-content h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.link-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Featured Card */
.link-card.featured {
    border-color: rgba(201, 158, 105, 0.6);
    background: linear-gradient(135deg, rgba(201, 158, 105, 0.15), rgba(0, 0, 0, 0));
}

.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

/* Footer */
.footer {
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Animations Keyframes */
@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);
    }
}

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

    .profile-name {
        font-size: 1.25rem;
    }
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: -50px;
    /* Start slightly higher */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(166, 124, 82, 0.15);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease-out;
    /* Elegant fade */
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.notification-toast.show {
    top: 30px;
    opacity: 1;
}