/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de cores suaves e calmantes */
    --color-primary: #B8A5D8;
    /* Lavanda suave */
    --color-primary-light: #D4C5E8;
    /* Lavanda muito claro */
    --color-secondary: #8EC5D6;
    /* Azul celeste */
    --color-accent: #A8D5BA;
    /* Verde menta suave */
    --color-warm: #F3D5C0;
    /* Pêssego suave */

    /* Neutros */
    --color-white: #FFFFFF;
    --color-cream: #FAF7F5;
    --color-light: #F5F1EE;
    --color-text: #5A4A6A;
    --color-text-light: #8B7A9B;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #B8A5D8 0%, #8EC5D6 100%);
    --gradient-soft: linear-gradient(180deg, #FAF7F5 0%, #F5F1EE 100%);
    --gradient-card: linear-gradient(135deg, rgba(184, 165, 216, 0.05) 0%, rgba(142, 197, 214, 0.05) 100%);

    /* Sombras suaves */
    --shadow-sm: 0 2px 8px rgba(90, 74, 106, 0.08);
    --shadow-md: 0 4px 16px rgba(90, 74, 106, 0.12);
    --shadow-lg: 0 8px 32px rgba(90, 74, 106, 0.16);

    /* Tipografia */
    --font-primary: 'Quicksand', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-handwriting: 'Dancing Script', cursive;

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-soft);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   BACKGROUND SHAPES (Decoração sutil)
   ======================================== */

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   PALAVRAS FLUTUANTES (Tema: Escrita)
   ======================================== */

.floating-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.word {
    position: absolute;
    font-family: var(--font-handwriting);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-primary);
    opacity: 0.15;
    animation: floatWord 25s infinite ease-in-out;
    font-weight: 500;
}

.word-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    color: var(--color-primary);
}

.word-2 {
    top: 20%;
    right: 15%;
    animation-delay: 3s;
    color: var(--color-secondary);
}

.word-3 {
    top: 70%;
    left: 5%;
    animation-delay: 6s;
    color: var(--color-accent);
}

.word-4 {
    top: 40%;
    right: 10%;
    animation-delay: 9s;
    color: var(--color-warm);
}

.word-5 {
    top: 80%;
    right: 20%;
    animation-delay: 12s;
    color: var(--color-primary);
}

.word-6 {
    top: 50%;
    left: 15%;
    animation-delay: 15s;
    color: var(--color-secondary);
}

.word-7 {
    top: 30%;
    left: 25%;
    animation-delay: 18s;
    color: var(--color-accent);
}

.word-8 {
    top: 60%;
    right: 25%;
    animation-delay: 21s;
    color: var(--color-primary);
}

@keyframes floatWord {

    0%,
    100% {
        transform: translate(0, 0) rotate(-2deg);
        opacity: 0.15;
    }

    25% {
        transform: translate(20px, -15px) rotate(2deg);
        opacity: 0.25;
    }

    50% {
        transform: translate(-15px, 10px) rotate(-1deg);
        opacity: 0.1;
    }

    75% {
        transform: translate(10px, -20px) rotate(1deg);
        opacity: 0.2;
    }
}

/* ========================================
   LINHAS DE CADERNO
   ======================================== */

.notebook-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(transparent,
            transparent 39px,
            rgba(184, 165, 216, 0.08) 39px,
            rgba(184, 165, 216, 0.08) 40px);
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================
   PROFILE HEADER
   ======================================== */

.profile-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-image-wrapper {
    margin-bottom: var(--spacing-md);
    display: inline-block;
    position: relative;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: gentlePulse 4s infinite ease-in-out;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: -1;
    animation: ripple 3s infinite ease-out;
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Animação da caneta e linha de tinta */
.ink-line {
    animation: drawLine 4s ease-in-out 1s infinite;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
}

.profile-image svg {
    width: 100%;
    height: 100%;
}

/* Efeito de digitação no título */
.profile-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--color-primary);
    padding-right: 5px;
    animation: typing 3.5s steps(13) 0.5s 1 normal forwards,
        blink 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        border-color: var(--color-primary);
    }

    50% {
        border-color: transparent;
    }
}

/* Remove o cursor piscante após a animação */
.typing-text {
    animation: typing 3.5s steps(13) 0.5s 1 normal forwards,
        blink 0.75s step-end 4.5s 5,
        removeCursor 0.1s 8s forwards;
}

@keyframes removeCursor {
    to {
        border-right-color: transparent;
    }
}

.profile-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    font-style: italic;
    animation: fadeIn 1s ease 1.5s backwards;
}

.profile-description {
    font-size: 1rem;
    color: var(--color-text);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
    animation: fadeIn 1s ease 2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   LINKS CONTAINER
   ======================================== */

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.link-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease backwards;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.link-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover::after {
    transform: scaleX(1);
}

.link-card:active {
    transform: translateY(-2px);
}

/* Animação escalonada para os cards */
.link-card:nth-child(1) {
    animation-delay: 2.5s;
}

.link-card:nth-child(2) {
    animation-delay: 2.7s;
}

.link-card:nth-child(3) {
    animation-delay: 2.9s;
}

.link-card:nth-child(4) {
    animation-delay: 3.1s;
}

.link-card:nth-child(5) {
    animation-delay: 3.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: transform var(--transition-medium);
}

.link-card:hover .link-icon {
    transform: rotate(5deg) scale(1.1);
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(5deg) scale(1.1);
    }

    25% {
        transform: rotate(7deg) scale(1.12);
    }

    75% {
        transform: rotate(3deg) scale(1.08);
    }
}

.link-icon svg {
    width: 24px;
    height: 24px;
}

.link-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.link-title {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    transition: color var(--transition-fast);
}

.link-card:hover .link-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.link-arrow {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    color: var(--color-text-light);
    transition: all var(--transition-medium);
}

.link-card:hover .link-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

.link-arrow svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */

.social-links {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 1s ease 3.5s backwards;
}

.social-title {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-icon {
    width: 56px;
    height: 56px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-medium);
    border-radius: 50%;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover svg {
    color: var(--color-white);
}

.social-icon:active {
    transform: translateY(-2px) scale(1.05);
}

/* ========================================
   FOOTER MESSAGE
   ======================================== */

.footer-message {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    text-align: center;
    animation: fadeIn 1.2s ease 4s backwards;
}

.footer-message p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
    font-style: italic;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (min-width: 768px) {
    .container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .profile-title {
        font-size: 3rem;
    }

    .profile-subtitle {
        font-size: 1.25rem;
    }

    .link-card {
        padding: var(--spacing-lg);
    }

    .link-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .link-icon svg {
        width: 28px;
        height: 28px;
    }

    .link-title {
        font-size: 1.25rem;
    }

    .social-icon {
        width: 64px;
        height: 64px;
    }

    .social-icon svg {
        width: 28px;
        height: 28px;
    }

    .word {
        font-size: 2.5rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        font-size: 18px;
    }

    .shape {
        filter: blur(100px);
    }

    .shape-1 {
        width: 400px;
        height: 400px;
    }

    .shape-2 {
        width: 500px;
        height: 500px;
    }

    .shape-3 {
        width: 350px;
        height: 350px;
    }
}

/* Reduzir movimento para usuários com preferência de acessibilidade */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .shape,
    .word,
    .ink-line {
        animation: none;
    }

    .typing-text {
        width: 100%;
        border-right: none;
        animation: none;
    }
}

/* Modo escuro (opcional, caso o usuário prefira) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-cream: #2A2438;
        --color-light: #342D42;
        --color-white: #3D3551;
        --color-text: #E8DFF5;
        --color-text-light: #C4B5D8;
        --gradient-soft: linear-gradient(180deg, #1F1A2E 0%, #2A2438 100%);
    }

    .shape,
    .word {
        opacity: 0.15;
    }

    .notebook-lines {
        background-image: repeating-linear-gradient(transparent,
                transparent 39px,
                rgba(184, 165, 216, 0.05) 39px,
                rgba(184, 165, 216, 0.05) 40px);
    }
}