/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Estilo Seja Átomo */
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #004e89;
    --accent-color: #ffd23f;
    --success-color: #06d6a0;
    --warning-color: #f18701;
    --danger-color: #e63946;
    
    /* Cores de fundo - Seja Átomo */
    --bg-gradient: linear-gradient(135deg, #004e89 0%, #ff6b35 50%, #ffd23f 100%);
    --bg-secondary: linear-gradient(45deg, #06d6a0 0%, #004e89 100%);
    --card-bg: #ffffff;
    --card-hover-bg: #f8fafc;
    --card-accent-bg: rgba(255, 107, 53, 0.05);
    
    /* Cores de texto - Seja Átomo */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    --text-accent: #ff6b35;
    
    /* Sombras - Mais dramáticas para Seja Átomo */
    --shadow-sm: 0 2px 4px rgba(255, 107, 53, 0.1);
    --shadow-md: 0 8px 16px rgba(255, 107, 53, 0.15);
    --shadow-lg: 0 16px 32px rgba(255, 107, 53, 0.2);
    --shadow-xl: 0 24px 48px rgba(255, 107, 53, 0.25);
    --shadow-colored: 0 8px 32px rgba(0, 78, 137, 0.3);
    
    /* Bordas - Seja Átomo */
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 32px;
    --border-width: 3px;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transições - Mais dinâmicas */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== ESTILOS GLOBAIS ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Efeito de partículas no fundo - Seja Átomo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 210, 63, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 214, 160, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== SEÇÃO DE PERFIL - Estilo Seja Átomo ===== */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    animation: fadeInUp 0.8s var(--transition-bounce);
    position: relative;
}

/* Elemento decorativo atrás do avatar */
.profile-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.profile-avatar {
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--text-white);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-bounce);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.avatar-img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-colored);
    border-color: var(--accent-color);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--text-white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.profile-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.profile-bio {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.profile-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
}

/* ===== SEÇÃO DE LINKS ===== */
.links-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* ===== CARDS DE LINK - Estilo Seja Átomo ===== */
.link-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: var(--border-width) solid transparent;
    min-height: 90px;
    backdrop-filter: blur(10px);
}

/* Gradiente de borda dinâmico para cada card */
.link-card:nth-child(1) { border-color: var(--primary-color); }
.link-card:nth-child(2) { border-color: var(--secondary-color); }
.link-card:nth-child(3) { border-color: var(--accent-color); }
.link-card:nth-child(4) { border-color: var(--success-color); }
.link-card:nth-child(5) { border-color: var(--warning-color); }
.link-card:nth-child(6) { border-color: var(--danger-color); }
.link-card:nth-child(7) { border-color: var(--primary-color); }
.link-card:nth-child(8) { border-color: var(--secondary-color); }
.link-card:nth-child(9) { border-color: var(--accent-color); }
.link-card:nth-child(10) { border-color: var(--success-color); }

/* Efeito de brilho no hover */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition-slow);
    z-index: 1;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--card-hover-bg);
    border-width: 4px;
}

.link-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* ===== IMAGEM DO CARD - Seja Átomo ===== */
.card-image {
    flex-shrink: 0;
    margin-right: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 80px;
    height: 80px;
    object-fit: contain; /* garante que a imagem preencha sem distorcer */
    border-radius: 50%; /* ou 50% para arredondar completamente */
    background-color: #fff; /* fundo neutro caso tenha transparência */
    display: block;
}


.link-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: var(--shadow-md);
}

/* ===== CONTEÚDO DO CARD - Seja Átomo ===== */
.card-content {
    flex: 1;
    min-width: 0;
    z-index: 2;
    position: relative;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
}

.link-card:hover .card-title {
    color: var(--text-accent);
    transform: translateX(4px);
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--transition-fast);
}

.link-card:hover .card-description {
    color: var(--text-primary);
}

/* ===== SETA DO CARD - Seja Átomo ===== */
.card-arrow {
    flex-shrink: 0;
    margin-left: var(--spacing-md);
    color: var(--text-muted);
    transition: all var(--transition-bounce);
    opacity: 0.7;
    z-index: 2;
    position: relative;
    padding: var(--spacing-xs);
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
}

.link-card:hover .card-arrow {
    color: var(--primary-color);
    transform: translateX(8px) rotate(45deg);
    opacity: 1;
    background: rgba(255, 107, 53, 0.2);
    box-shadow: var(--shadow-sm);
}

/* ===== EFEITO RIPPLE - Seja Átomo ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    transform: scale(0);
    animation: ripple-animation 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== FOOTER - Seja Átomo ===== */
.footer {
    text-align: center;
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer p {
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== ANIMAÇÕES - Seja Átomo ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
    }
}

/* ===== RESPONSIVIDADE PARA TABLET - Seja Átomo ===== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .profile-name {
        font-size: 2.2rem;
    }
    
    .profile-bio {
        font-size: 1.1rem;
    }
    
    .avatar-img {
        width: 120px;
        height: 120px;
    }
    
    .profile-section::before {
        width: 140px;
        height: 140px;
    }
    
    .links-section {
        gap: var(--spacing-sm);
    }
    
    .link-card {
        padding: var(--spacing-md);
        min-height: 80px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
}

/* ===== RESPONSIVIDADE PARA MOBILE - Seja Átomo ===== */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .container {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .profile-section {
        margin-bottom: var(--spacing-xl);
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-bio {
        font-size: 1rem;
    }
    
    .profile-description {
        font-size: 0.95rem;
    }
    
    .avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-section::before {
        width: 120px;
        height: 120px;
    }
    
    /* ===== LAYOUT MOBILE: IMAGEM EM CIMA, TEXTO EMBAIXO - Seja Átomo ===== */
    .link-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
        min-height: auto;
        border-width: 2px;
    }
    
    .link-card:hover {
        transform: translateY(-6px) scale(1.01);
        border-width: 3px;
    }
    
    .card-image {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
        align-self: center;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
    }
    
    .link-card:hover .card-icon {
        transform: scale(1.1) rotate(-3deg);
    }
    
    .card-content {
        width: 100%;
        text-align: center;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .link-card:hover .card-title {
        transform: translateX(0) translateY(-2px);
    }
    
    .card-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .card-arrow {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        align-self: center;
    }
    
    .link-card:hover .card-arrow {
        transform: translateY(-4px) rotate(45deg);
    }
    
    .links-section {
        gap: var(--spacing-md);
    }
}

/* ===== RESPONSIVIDADE PARA MOBILE PEQUENO - Seja Átomo ===== */
@media (max-width: 360px) {
    .container {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .avatar-img {
        width: 90px;
        height: 90px;
    }
    
    .profile-section::before {
        width: 110px;
        height: 110px;
    }
    
    .link-card {
        padding: var(--spacing-md);
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
}

/* ===== MELHORIAS DE ACESSIBILIDADE - Seja Átomo ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .profile-section::before {
        animation: none !important;
    }
}

.link-card:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: var(--shadow-xl), 0 0 0 3px rgba(255, 210, 63, 0.3);
}

.link-card:focus:not(:focus-visible) {
    outline: none;
}

/* ===== ESTADOS DE LOADING - Seja Átomo ===== */
.link-card.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.link-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* ===== MODO ESCURO - Seja Átomo ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(26, 26, 26, 0.9);
        --card-hover-bg: rgba(74, 74, 74, 0.9);
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-muted: #a0aec0;
    }
    
    .link-card {
        border-color: rgba(255, 107, 53, 0.3);
        backdrop-filter: blur(20px);
    }
    
    .link-card:hover {
        border-color: var(--primary-color);
        background: var(--card-hover-bg);
    }
}

/* ===== ANIMAÇÕES PERSONALIZADAS - Seja Átomo ===== */
.link-card:nth-child(odd) {
    animation: slideInLeft 0.8s var(--transition-bounce);
}

.link-card:nth-child(even) {
    animation: slideInRight 0.8s var(--transition-bounce);
}

/* Delay escalonado para animações */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }
.link-card:nth-child(8) { animation-delay: 0.8s; }
.link-card:nth-child(9) { animation-delay: 0.9s; }
.link-card:nth-child(10) { animation-delay: 1.0s; }

/* ===== EFEITOS ESPECIAIS SEJA ÁTOMO ===== */
.avatar-img {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.profile-name {
    animation: glow 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Efeito de partículas flutuantes */
.container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--accent-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--primary-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--success-color), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--accent-color), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s linear infinite;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* ===== PRINT STYLES - Seja Átomo ===== */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    body::before,
    .container::after,
    .profile-section::before {
        display: none !important;
    }
    
    .link-card {
        box-shadow: none !important;
        border: 2px solid #333 !important;
        break-inside: avoid;
        background: white !important;
    }
    
    .card-arrow {
        display: none;
    }
    
    .profile-name {
        color: #333 !important;
        background: none !important;
        -webkit-text-fill-color: #333 !important;
    }
    
    .profile-bio,
    .profile-description {
        color: #666 !important;
    }
}

