@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Casa IRIS Palette */
    --bg-base: #F7F5F0;
    --primary: #6D597A;
    --secondary: #355C7D;
    --accent: #6E8E75;
    
    --text-dark: #2B2D42;
    --text-muted: #6C757D;
    
    /* Premium UI properties */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 20px 40px rgba(43, 45, 66, 0.08);
    --shadow-hover: 0 25px 50px rgba(109, 89, 122, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* --- Abstract Mesh Background --- */
.bg-mesh-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-base);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: drift 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.shape-3 {
    top: 30%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(5%, 10%) scale(1.1) rotate(10deg); }
    100% { transform: translate(-5%, 5%) scale(0.9) rotate(-5deg); }
}

/* Subtle Noise Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* --- Main Glass Container --- */
.container {
    width: 100%;
    max-width: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
    position: relative;
}

/* --- Profile Section --- */
.profile-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 1.5rem;
}

/* Glowing halo around profile */
.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    z-index: 0;
    animation: rotateGradient 10s linear infinite;
    opacity: 0.6;
    filter: blur(8px);
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1;
    overflow: hidden;
    background-color: white;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    letter-spacing: -0.03em;
}

.bio {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 90%;
    font-weight: 300;
}

/* --- Links Section --- */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Gradient hover effect inside link */
.link-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(109, 89, 122, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.link-card:hover {
    background: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: #ffffff;
}

.link-card:hover::after {
    transform: translateX(100%);
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(109, 89, 122, 0.1);
    color: var(--primary);
    margin-right: 1.2rem;
    transition: all 0.4s ease;
}

.link-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

.link-icon {
    font-size: 1.5rem;
}

.link-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.link-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.link-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.caret-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.link-card:hover .caret-icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

/* --- Footer & WhatsApp --- */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(109, 89, 122, 0.1);
    padding-top: 2rem;
}

/* --- Featured Card (Logo + Link) --- */
.featured-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
    border-radius: 24px;
    padding: 1.5rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(109, 89, 122, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(109, 89, 122, 0.03), transparent);
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(109, 89, 122, 0.15);
    border-color: #ffffff;
    background: linear-gradient(145deg, rgba(255,255,255,1), rgba(255,255,255,0.8));
}

.featured-card:hover::before {
    transform: translateY(100%);
}

.featured-logo-wrapper {
    margin-bottom: 1rem;
}

.featured-logo-wrapper img {
    height: 80px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-logo-wrapper img {
    transform: scale(1.03);
}

.featured-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.featured-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.featured-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.featured-action {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(109, 89, 122, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.featured-card:hover .featured-action {
    background: var(--primary);
    color: white;
    transform: rotate(-45deg);
}

.whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* Pulsing glow for WhatsApp */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5), inset 0 2px 0 rgba(255,255,255,0.3);
}

.whatsapp-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

.whatsapp-btn i {
    font-size: 1.6rem;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    body {
        padding: 1rem;
    }
    .container {
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }
    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }
    .link-card {
        padding: 0.8rem 1rem;
    }
}
