@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Matrix Code Rain Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.05);
}

.matrix-column {
    position: absolute;
    top: -100vh;
    width: 25px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1.1;
    color: #00ff41;
    text-shadow: 
        0 0 5px #00ff41,
        0 0 10px #00ff41,
        0 0 15px #00ff41;
    animation: matrix-fall linear infinite;
    opacity: 0.6;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: -1px;
    filter: blur(0.5px);
}

.matrix-column:nth-child(odd) {
    color: #00cc33;
    text-shadow: 
        0 0 5px #00cc33,
        0 0 10px #00cc33;
    opacity: 0.4;
}

.matrix-column:nth-child(3n) {
    color: #00ff88;
    text-shadow: 
        0 0 3px #00ff88,
        0 0 8px #00ff88;
    opacity: 0.3;
    font-size: 8px;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Efeito de glitch ocasional */
.matrix-column:nth-child(7n) {
    animation: matrix-fall linear infinite, matrix-glitch 0.1s infinite;
}

@keyframes matrix-glitch {
    0%, 90%, 100% {
        transform: translateX(0);
    }
    95% {
        transform: translateX(2px);
    }
}

/* Animação de fundo com partículas (ajustada para funcionar com matrix) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 51, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* Container principal */
.profile-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    animation: slideInUp 0.8s ease-out;
    position: relative;
    transition: all 0.3s ease;
}

.profile-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Header do perfil */
.profile-header {
    margin-bottom: 35px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.profile-img-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

.profile-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 15px 0 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-header .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.tech-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Links sociais */
.profile-links {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    text-decoration: none;
    color: white;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

.social-link i {
    margin-right: 12px;
    font-size: 20px;
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-link.github {
    background: linear-gradient(135deg, #333, #1a1a1a);
}

.social-link.email {
    background: linear-gradient(135deg, #ea4335, #c5221f);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Grid de estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Bio do perfil */
.profile-bio {
    margin-top: 30px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.profile-bio h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
}

.profile-bio h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.profile-bio p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Seção CTA */
.cta-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Animação de digitação */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Responsividade */
@media (max-width: 480px) {
    .profile-container {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .profile-header h1 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-stack {
        gap: 6px;
    }
    
    .tech-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}