:root {
    --bg-dark: #07080f;
    --text-primary: #ffffff;
    --text-secondary: #8c90ad;
    --card-bg: rgba(26, 28, 41, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(35, 38, 56, 0.6);
    --accent-color: #ffe600;
    /* Mercado Livre Yellow */
    --accent-glow: rgba(255, 230, 0, 0.25);
    --whatsapp-color: #25d366;
    --whatsapp-glow: rgba(37, 211, 102, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Abstract Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, #151828 0%, var(--bg-dark) 80%);
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A subtle svg noise texture */
    background-image: 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)' opactiy='0.05'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    z-index: 1;
}

.shape {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    animation: float 25s infinite alternate ease-in-out;
}

.shape-1 {
    top: -5%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: linear-gradient(135deg, #182b54 0%, #0d1e40 100%);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: linear-gradient(135deg, #2b114d 0%, #150926 100%);
    animation-delay: -5s;
}

.shape-3 {
    top: 30%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 230, 0, 0.08) 0%, transparent 70%);
    transform: translateX(-50%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 580px;
    padding: 4rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* Profile Area */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.6;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

.logo-container {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.logo-container:hover {
    transform: scale(1.08) rotate(-5deg);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    /* Contrast background since the logo has 'sem fundo' (no background) */
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.title::after {
    content: '\f028';
    /* bullhorn icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 90%;
}

/* Links List */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    perspective: 1200px;
}

.link-card {
    text-decoration: none;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px) rotateX(-5deg);
    animation: fadeUpItem 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* Stagger animations */
.link-card:nth-child(1) {
    animation-delay: 0.15s;
}

.link-card:nth-child(2) {
    animation-delay: 0.25s;
}

.link-card:nth-child(3) {
    animation-delay: 0.35s;
}

.link-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.03);
}

/* WhatsApp Highlight Component */
.whatsapp-link {
    border-color: rgba(37, 211, 102, 0.2);
    box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.whatsapp-link .link-icon {
    color: #fff;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px var(--whatsapp-glow);
    border: none;
}

.whatsapp-link:hover {
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--whatsapp-glow);
}

/* Badge specific to WhatsApp */
.hot-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(255, 75, 43, 0.4);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.link-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    margin-right: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    overflow: hidden;
}

.link-card:hover .link-icon {
    transform: scale(1.08) translateZ(10px);
}

.custom-icon,
.custom-icon-ml {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-pure-black {
    background: #000;
    border-color: rgba(255, 255, 255, 0.1);
}

.ml-icon-bg {
    background: #ffe600;
    border: none;
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.link-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}

.link-arrow {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    margin-left: 10px;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer Section */
.social-footer {
    margin-top: 3.5rem;
    animation: fadeUpItem 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeUpItem {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-5deg);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 3rem 1.2rem 2rem;
    }

    .link-card {
        padding: 1.1rem;
        border-radius: 16px;
    }

    .link-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.3rem;
        margin-right: 1rem;
    }

    .link-content h2 {
        font-size: 1rem;
    }

    .logo-container {
        width: 100px;
        height: 100px;
    }
}