/* ============================================
   LINK BIO — Psicóloga Josiane Alves
   Design System: Elegante & Sereno
   ============================================ */

/* === CSS Custom Properties === */
:root {
    /* Color Palette — Serene & Elegant */
    --clr-bg-start: #f5f0f7;
    --clr-bg-end: #e8f0e6;
    --clr-surface: rgba(255, 255, 255, 0.55);
    --clr-surface-hover: rgba(255, 255, 255, 0.75);
    --clr-surface-strong: rgba(255, 255, 255, 0.85);
    --clr-primary: #7c6f9c;
    --clr-primary-light: #a899c8;
    --clr-primary-dark: #5b4f78;
    --clr-accent-green: #8baa7e;
    --clr-accent-sage: #a4b99a;
    --clr-accent-pink: #c9889e;
    --clr-accent-amber: #c9a95e;
    --clr-accent-blue: #6e9ab5;
    --clr-text: #3a3347;
    --clr-text-secondary: #6b6178;
    --clr-text-muted: #9b90a8;
    --clr-border: rgba(124, 111, 156, 0.12);
    --clr-shadow: rgba(90, 70, 120, 0.08);
    --clr-shadow-strong: rgba(90, 70, 120, 0.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background: linear-gradient(160deg, var(--clr-bg-start) 0%, var(--clr-bg-end) 50%, #f0eaf5 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Particles Canvas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* === Animated Background Orbs === */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: float-orb 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--clr-primary-light), transparent 70%);
    top: -5%;
    right: -10%;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--clr-accent-sage), transparent 70%);
    bottom: 20%;
    left: -8%;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--clr-accent-pink), transparent 70%);
    top: 50%;
    right: -5%;
    animation-delay: -14s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.05); }
}

/* === Container === */
.container {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
    min-height: 100vh;
}

/* === Profile Section === */
.profile-section {
    text-align: center;
    margin-bottom: var(--space-xl);
    animation: fadeSlideUp 0.8s ease-out;
}

.avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto var(--space-lg);
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--clr-primary-light),
        var(--clr-accent-sage),
        var(--clr-accent-pink),
        var(--clr-primary-light)
    );
    animation: spin-ring 8s linear infinite;
    opacity: 0.8;
}

@keyframes spin-ring {
    to { transform: rotate(360deg); }
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--clr-bg-start);
    z-index: 1;
    transition: transform var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-img {
    transform: scale(1.05);
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: #5ec269;
    border: 3px solid var(--clr-bg-start);
    border-radius: 50%;
    z-index: 2;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(94, 194, 105, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(94, 194, 105, 0); }
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.profile-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-primary);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.profile-bio {
    font-size: 0.92rem;
    color: var(--clr-text-secondary);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 300;
}

/* === Info Pills === */
.pills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    animation: fadeSlideUp 0.8s ease-out 0.15s both;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--clr-primary-dark);
    background: var(--clr-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: default;
}

.pill:hover {
    background: var(--clr-surface-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--clr-shadow);
}

.pill svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* === Links Section === */
.links-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Link Card */
.link-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--clr-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--clr-text);
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.6s ease-out both;
}

.link-card:nth-child(1) { animation-delay: 0.2s; }
.link-card:nth-child(2) { animation-delay: 0.3s; }
.link-card:nth-child(3) { animation-delay: 0.4s; }
.link-card:nth-child(4) { animation-delay: 0.5s; }
.link-card:nth-child(5) { animation-delay: 0.6s; }

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: var(--clr-surface-hover);
    box-shadow: 0 8px 32px var(--clr-shadow), 0 2px 8px var(--clr-shadow-strong);
    border-color: rgba(124, 111, 156, 0.2);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:active {
    transform: translateY(-1px) scale(0.995);
}

/* Primary CTA card */
.link-card--primary {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(124, 111, 156, 0.3);
}

.link-card--primary:hover {
    background: linear-gradient(135deg, var(--clr-primary-light) 0%, var(--clr-primary) 100%);
    box-shadow: 0 8px 32px rgba(124, 111, 156, 0.4);
}

.link-card--primary .link-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.link-card--primary .link-card__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.link-card--primary .link-card__arrow {
    color: rgba(255, 255, 255, 0.7);
}

/* Icon Variants */
.link-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: rgba(124, 111, 156, 0.08);
    color: var(--clr-primary);
    flex-shrink: 0;
    transition: all var(--transition-smooth);
}

.link-card:hover .link-card__icon {
    transform: scale(1.08);
}

.link-card__icon--green {
    background: rgba(37, 211, 102, 0.08);
    color: #25d366;
}

.link-card__icon--pink {
    background: rgba(201, 136, 158, 0.1);
    color: var(--clr-accent-pink);
}

.link-card__icon--blue {
    background: rgba(110, 154, 181, 0.1);
    color: var(--clr-accent-blue);
}

.link-card__icon--amber {
    background: rgba(201, 169, 94, 0.1);
    color: var(--clr-accent-amber);
}

.link-card__content {
    flex: 1;
    min-width: 0;
}

.link-card__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.link-card__subtitle {
    display: block;
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    font-weight: 300;
}

.link-card__arrow {
    color: var(--clr-text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.link-card:hover .link-card__arrow {
    color: var(--clr-primary);
    transform: translateX(3px);
}

/* === Social Icons === */
.social-section {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeSlideUp 0.6s ease-out 0.7s both;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--clr-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-secondary);
    text-decoration: none;
    transition: all var(--transition-spring);
}

.social-icon:hover {
    background: var(--clr-primary);
    color: white;
    border-color: var(--clr-primary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(124, 111, 156, 0.35);
}

.social-icon:active {
    transform: translateY(-2px) scale(1.05);
}

/* === Testimonials === */
.testimonials-section {
    margin-bottom: var(--space-2xl);
    animation: fadeSlideUp 0.6s ease-out 0.8s both;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-text);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.section-title svg {
    color: var(--clr-primary-light);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.testimonial-card {
    position: absolute;
    inset: 0;
    background: var(--clr-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-stars {
    font-size: 0.9rem;
    color: var(--clr-accent-amber);
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--clr-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-weight: 300;
}

.testimonial-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--clr-border);
    cursor: pointer;
    transition: all var(--transition-smooth);
    padding: 0;
}

.dot.active {
    background: var(--clr-primary);
    width: 24px;
    border-radius: var(--radius-full);
}

.dot:hover {
    background: var(--clr-primary-light);
}

/* === Footer === */
.footer {
    text-align: center;
    animation: fadeSlideUp 0.6s ease-out 0.9s both;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clr-primary-light), transparent);
    margin: 0 auto var(--space-lg);
    border-radius: 1px;
}

.footer-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text);
    margin-bottom: var(--space-xs);
}

.footer-crp {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    font-weight: 300;
}

/* === Animations === */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 480px) {
    .container {
        padding: var(--space-xl) var(--space-md) var(--space-lg);
    }

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

    .avatar-wrapper {
        width: 110px;
        height: 110px;
    }

    .link-card {
        padding: 14px var(--space-md);
    }

    .link-card__icon {
        width: 40px;
        height: 40px;
    }

    .bg-orb-1 { width: 200px; height: 200px; }
    .bg-orb-2 { width: 180px; height: 180px; }
    .bg-orb-3 { width: 140px; height: 140px; }
}

@media (min-width: 768px) {
    .container {
        padding-top: var(--space-3xl);
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-orb { display: none; }
    .avatar-ring { animation: none; }
}

/* === Focus Styles === */
.link-card:focus-visible,
.social-icon:focus-visible,
.dot:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
}
