/* Variáveis, sistema de design ultra-moderno */
:root {
    /* Esquema de cores principal e gradientes */
    --primary: #A71D1D; /* Vermelho escuro */
    --primary-hover: #8F1818;
    --primary-gradient: linear-gradient(135deg, #A71D1D 0%, #851717 100%);
    --secondary: #6f43ef; /* Roxo vibrante */
    --secondary-hover: #5c34d9;
    --secondary-gradient: linear-gradient(135deg, #6f43ef 0%, #5935c6 100%);
    --tertiary: #00bcd4; /* Azul Teal */
    
    /* Cores base */
    --white: #ffffff;
    --white-transparent: rgba(255, 255, 255, 0.9);
    --light: #f8f9fd;
    --dark: #282c4a;
    --dark-overlay: rgba(40, 44, 74, 0.75);
    
    /* Cores de estado */
    --success: #36d0a2;
    --error: #ff4e6e;
    --warning: #f9c270;
    --info: #4fc3f7;
    
    /* Cores de texto */
    --text-primary: #333645;
    --text-secondary: #6e7191;
    --text-light: #8c8eae;
    --text-on-dark: #fcfcfc;
    
    /* Efeitos */
    --blur-radius: 20px;
    --glass-background: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --button-shadow: 0 5px 15px rgba(244, 48, 109, 0.25);
    
    /* Layout e espaçamento */
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-full: 9999px;
}

/* Reset moderno e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Elementos de background animados */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--blur-radius));
    opacity: 0.6;
}

.blur-1 {
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(var(--primary), transparent 70%);
    animation: float 15s infinite alternate ease-in-out;
}

.blur-2 {
    bottom: -15%;
    right: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(var(--secondary), transparent 70%);
    animation: float 20s infinite alternate-reverse ease-in-out;
}

.blur-3 {
    top: 40%;
    left: 60%;
    width: 30%;
    height: 30%;
    background: radial-gradient(var(--tertiary), transparent 70%);
    animation: float 18s infinite alternate ease-in-out 2s;
}

.bg-shape {
    position: absolute;
    background-color: var(--glass-background);
    border-radius: var(--border-radius-xl);
    transform: rotate(45deg);
    opacity: 0.3;
    backdrop-filter: blur(5px);
}

.shape-1 {
    top: 10%;
    right: 10%;
    width: 25rem;
    height: 25rem;
    animation: rotate 30s linear infinite;
}

.shape-2 {
    bottom: 15%;
    left: 5%;
    width: 20rem;
    height: 20rem;
    animation: rotate 35s linear infinite reverse;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
}

/* Container principal */
.app-container {
    position: relative;
    max-width: 46rem;
    width: 100%;
    margin: 2.4rem auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    z-index: 1;
}

/* Seção de perfil */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
    padding: 1rem;
}

/* Novo estilo para o círculo de perfil */
.profile-circle {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    margin: 0 auto 1.6rem;
    position: relative;
    border: 6px solid var(--primary);
    box-shadow: 0 8px 20px rgba(167, 29, 29, 0.35);
    background-color: #fff;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
    background: linear-gradient(120deg, var(--dark) 0%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.8s ease-out forwards;
}

.credentials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--border-radius-full);
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: var(--button-shadow);
}

.crp {
    font-size: 1.4rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.bio-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.bio-card p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Seção de links */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.6rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    border-color: rgba(244, 48, 109, 0.2);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card:active {
    transform: translateY(-2px) scale(0.98);
}

.link-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-md);
    background-color: rgba(244, 48, 109, 0.1);
    color: var(--primary);
    margin-right: 1.6rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: rotate(5deg);
}

.link-card.primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.link-card.primary .link-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.link-card.primary .link-text {
    color: var(--white);
}

.link-card.primary .link-arrow {
    color: var(--white);
    opacity: 0.8;
}

.link-text {
    font-size: 1.6rem;
    font-weight: 500;
    flex-grow: 1;
}

.link-arrow {
    margin-left: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Botões de contato rápido */
.contact-quick-buttons {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 1.2rem;
    animation: fadeUp 0.8s ease-out 1s forwards;
    opacity: 0;
}

.quick-btn {
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-full);
    color: var(--text-secondary);
    font-size: 1.8rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-btn:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--button-shadow);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 1.2rem;
    animation: fadeUp 0.8s ease-out 1.2s forwards;
    opacity: 0;
}

.copyright {
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.developer {
    font-size: 1.1rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dev-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.dev-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Animações */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 48, 109, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 48, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 48, 109, 0); }
}

/* Responsividade */
@media (max-width: 480px) {
    html {
        font-size: 58%;
    }
    
    .app-container {
        padding: 0 1rem;
    }
    
    .profile-photo-wrapper {
        width: 10rem;
        height: 10rem;
    }
    
    .bio-card {
        padding: 1.6rem;
    }
    
    .link-card {
        padding: 1.4rem 1.6rem;
    }
    
    .link-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}
