:root {
    --color-bg: #FCFBF6; /* Cream */
    --color-sky-blue: #82C0E7; /* Sky blue */
    --color-sun-yellow: #FFD166; /* Sun yellow */
    --color-baby-yellow: #FFF2B2; /* Baby yellow */
    --color-coral: #F27059; /* Coral */
    --color-baby-pink: #FFB6C1; /* Stronger Baby pink */
    --color-baby-blue: #89CFF0; /* Stronger Baby blue */
    --color-text: #2B2D42;
    --color-text-light: #5A5E73;
    --color-card: #FFFFFF;
    
    --radius-xl: 34px;
    --radius-lg: 16px;
    --radius-md: 8px;
    
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    background: linear-gradient(135deg, #FDFCFB 0%, #E2D1C3 100%);
    color: var(--color-text);
    display: flex;
    justify-content: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Background growth line */
.growth-line-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.growth-line-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-page {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 1.5rem 2rem 1.5rem;
    z-index: 1;
    position: relative;
    background: var(--color-bg);
}

@media (min-width: 768px) {
    body {
        padding: 3rem 0;
    }
    .bio-page {
        border-radius: 40px;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
        min-height: calc(100vh - 6rem);
        border: 8px solid white;
        overflow: hidden;
    }
}

/* Profile Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    padding-top: 440px;
}

.banner-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    overflow: hidden;
    z-index: -1;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-bg);
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background-size: cover;
    animation: slideFade 21s infinite;
    animation-fill-mode: both;
}

.slide-1 {
    background-image: url('perfil.jpeg');
    background-position: center 0%;
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('CLI1.png');
    background-position: center;
    animation-delay: 3s;
}

.slide-3 {
    background-image: url('CLI2.png');
    background-position: center;
    animation-delay: 6s;
}

.slide-4 {
    background-image: url('CLI3.png');
    background-position: center;
    animation-delay: 9s;
}

.slide-5 {
    background-image: url('cliente4.jpeg');
    background-position: center;
    animation-delay: 12s;
}

.slide-6 {
    background-image: url('CLI5.jpeg');
    background-position: center;
    animation-delay: 15s;
}

.slide-7 {
    background-image: url('CLI6.jpeg');
    background-position: center;
    animation-delay: 18s;
}

@keyframes slideFade {
    0% { opacity: 0; transform: scale(1.02); }
    5% { opacity: 1; transform: scale(1); }
    14% { opacity: 1; transform: scale(1); }
    19% { opacity: 0; }
    100% { opacity: 0; }
}

.slide:only-child {
    opacity: 1;
    animation: none;
}

.banner-fade {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, transparent 0%, var(--color-bg) 100%);
    pointer-events: none;
}

.banner-logo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-top: 100px;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-sky-blue);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(130, 192, 231, 0.3);
    overflow: hidden;
    animation: morphFloat 8s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes morphFloat {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translateY(0px);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translateY(-8px);
    }
    100% {
        border-radius: 40% 60% 40% 60% / 40% 60% 50% 50%;
        transform: translateY(0px);
    }
}

.banner-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

.profile-header h1 {
    font-size: 1.55rem;
    color: #444444; /* Softer black */
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: 'Lora', serif;
    animation: floatGlowText 4s ease-in-out infinite alternate;
}

@keyframes floatGlowText {
    0% {
        transform: translateY(0);
        text-shadow: 0 0 5px rgba(130, 192, 231, 0.2);
    }
    100% {
        transform: translateY(-4px);
        text-shadow: 0 0 15px rgba(130, 192, 231, 0.8), 0 0 30px rgba(130, 192, 231, 0.4);
    }
}

.profile-header p {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* Links Section */
.instruction-badge {
    text-align: center;
    background: var(--color-baby-yellow);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 auto 0.5rem;
    display: inline-block;
    align-self: center;
    box-shadow: 0 4px 10px rgba(255, 209, 102, 0.4);
    animation: floatButton 4s ease-in-out infinite alternate;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.links > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.links > *.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.links > *.fade-in.action-card {
    animation: floatButton 4s ease-in-out infinite alternate;
}

.links > *.fade-in.action-card:nth-child(even) {
    animation-delay: 1s;
}

.links > *.fade-in.action-card:nth-child(3n) {
    animation-delay: 2s;
}

.links > *.fade-in.action-card.highlight-glow {
    border: 2px solid rgba(255, 209, 102, 0.5);
    animation: floatButton 4s ease-in-out infinite alternate, borderGlowPulse 2s infinite alternate !important;
}

@keyframes floatButton {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

@keyframes borderGlowPulse {
    0% {
        box-shadow: 0 0 5px var(--color-sun-yellow), 0 4px 12px rgba(130, 192, 231, 0.15);
        border-color: rgba(255, 209, 102, 0.5);
    }
    100% {
        box-shadow: 0 0 20px var(--color-sun-yellow), 0 0 10px var(--color-sun-yellow) inset, 0 8px 24px rgba(130, 192, 231, 0.25);
        border-color: var(--color-sun-yellow);
    }
}

.action-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-baby-pink) 0%, var(--color-baby-blue) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 12px rgba(130, 192, 231, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
    width: 100%;
}

.action-card:hover, .action-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(130, 192, 231, 0.25); 
    border-color: rgba(255, 255, 255, 0.8);
}

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

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--color-sky-blue);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.action-icon .icon {
    width: 22px;
    height: 22px;
}

.action-content strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.action-content span {
    display: block;
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 300;
}

.links-separator {
    width: 100%;
    max-width: 200px;
    height: 2px;
    margin: 0.5rem auto;
    background: linear-gradient(90deg, transparent, var(--color-sun-yellow), transparent);
    position: relative;
}

/* Accordion */
details.accordion-card {
    display: block;
    min-height: auto;
    padding: 0;
    border-radius: var(--radius-lg);
    background: var(--color-card);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    width: 100%;
}

details.accordion-card[open] {
    background: #FFFCF7; /* Very light yellow/cream */
}

.accordion-header {
    display: grid;
    grid-template-columns: 44px 1fr 24px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header .action-icon {
    background: var(--color-sun-yellow);
    color: #8C6F00;
    box-shadow: 0 4px 10px rgba(255, 209, 102, 0.4);
}

.accordion-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-light);
    transition: transform 0.3s ease;
}

details[open] .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 24px 24px 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 400;
    text-align: center;
}

.accordion-body p {
    margin-bottom: 12px;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* Feedbacks Section */
.feedbacks {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Lora', serif;
}

.feedbacks-container {
    display: flex;
    align-items: flex-start; /* This prevents the cards from stretching vertically */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.feedbacks-container::-webkit-scrollbar {
    display: none;
}

.feedback-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: var(--color-card);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(130, 192, 231, 0.1);
    animation: floatGlowCard 4s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feedback-card:nth-child(even) {
    animation-delay: 1s;
}

.feedback-card:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes floatGlowCard {
    0% { 
        transform: translateY(0px); 
        box-shadow: 0 4px 15px rgba(130, 192, 231, 0.1); 
    }
    100% { 
        transform: translateY(-8px); 
        box-shadow: 0 15px 35px rgba(130, 192, 231, 0.5), 0 0 20px rgba(130, 192, 231, 0.3); 
    }
}

.feedback-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    position: relative;
}

.feedback-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" fill="%234285F4"/><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="%2334A853"/><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" fill="%23FBBC05"/><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="%23EA4335"/></svg>') no-repeat center center;
    background-size: contain;
}

.feedback-header .stars {
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
}

.star-icon {
    width: 15px;
    height: 15px;
    fill: var(--color-sun-yellow);
    stroke: var(--color-sun-yellow);
    stroke-width: 1px;
    margin-right: 2px;
}

.feedback-header strong {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.feedback-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
}

.social-footer {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    animation: floatButton 4s ease-in-out infinite alternate;
}

.social-footer a:hover {
    color: var(--color-sky-blue);
}

.social-footer a .icon {
    width: 20px;
    height: 20px;
}

.copyright {
    color: var(--color-text-light);
    font-size: 0.8rem;
    font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
    .links > * {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .action-card:hover {
        transform: none;
    }
    
    .slide, .slide:only-child {
        animation: none;
        transform: none;
        opacity: 1;
    }
    
    .banner-logo-container {
        animation: none;
        transform: none;
        border-radius: 50%;
    }
}

/* Ajustes finos para telas de celular muito pequenas (como iPhone SE) */
@media (max-width: 380px) {
    .banner-image-wrapper {
        height: 320px;
    }
    .profile-header {
        padding-top: 350px;
    }
    .profile-header h1 {
        font-size: 1.35rem;
    }
    .action-content strong {
        font-size: 0.95rem;
    }
}
