/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de cores futurista */
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-blue: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06ffa5;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --glow-blue: rgba(0, 212, 255, 0.5);
    --glow-purple: rgba(139, 92, 246, 0.5);
    --glow-cyan: rgba(6, 255, 165, 0.5);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Background dinâmico */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(0, 212, 255, 0.05) 50%,
        var(--primary-bg) 100%
    );
    animation: pulseGradient 4s ease-in-out infinite alternate;
}

@keyframes pulseGradient {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Logo/Ícone no topo esquerdo */
.logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.ai-icon {
    width: 50px;
    height: 50px;
    position: relative;
}

.brain-circuit {
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-cyan);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: brainPulse 2s ease-in-out infinite;
}

.brain-circuit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow-cyan);
}

@keyframes brainPulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--glow-cyan);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px var(--glow-cyan);
        transform: scale(1.05);
    }
}

/* Container principal */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Nome em destaque */
.name-section {
    margin-bottom: 30px;
}

.main-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px var(--glow-blue);
    letter-spacing: 2px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Headline */
.headline-section {
    margin-bottom: 40px;
    max-width: 800px;
}

.headline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

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

/* Bio com efeito de digitação */
.bio-section {
    margin-bottom: 50px;
    max-width: 700px;
}

.bio-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--accent-cyan);
    font-weight: 400;
    line-height: 1.5;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-blue);
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Botões de ação */
.actions-section {
    margin-bottom: 40px;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    width: 100%;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

.action-btn:hover::before {
    left: 100%;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.books-btn {
    border-color: var(--accent-blue);
}

.books-btn:hover {
    box-shadow: 0 0 30px var(--glow-blue);
    transform: translateY(-3px);
}

.books-btn .btn-glow {
    box-shadow: inset 0 0 20px var(--glow-blue);
}

.linkedin-btn {
    border-color: var(--accent-purple);
}

.linkedin-btn:hover {
    box-shadow: 0 0 30px var(--glow-purple);
    transform: translateY(-3px);
}

.linkedin-btn .btn-glow {
    box-shadow: inset 0 0 20px var(--glow-purple);
}

.contact-btn {
    border-color: var(--accent-cyan);
}

.contact-btn:hover {
    box-shadow: 0 0 30px var(--glow-cyan);
    transform: translateY(-3px);
}

.contact-btn .btn-glow {
    box-shadow: inset 0 0 20px var(--glow-cyan);
}

.portfolio-btn {
    border-color: var(--accent-blue);
}

.portfolio-btn:hover {
    box-shadow: 0 0 30px var(--glow-blue);
    transform: translateY(-3px);
}

.portfolio-btn .btn-glow {
    box-shadow: inset 0 0 20px var(--glow-blue);
}

.action-btn:hover .btn-glow {
    opacity: 0.3;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Holograma do cérebro */
.brain-hologram {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 150px;
    height: 150px;
    opacity: 0.3;
    z-index: 5;
}

.brain-outline {
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-cyan);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: hologramFloat 3s ease-in-out infinite;
}

.neural-network {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-cyan) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.5;
    animation: networkPulse 2s ease-in-out infinite alternate;
}

@keyframes hologramFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes networkPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Rodapé */
.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .buttons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .brain-hologram {
        width: 100px;
        height: 100px;
        bottom: 30px;
        right: 30px;
    }
    
    .logo-container {
        top: 15px;
        left: 15px;
    }
    
    .ai-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 1.1rem;
    }
    
    .bio-text {
        font-size: 1rem;
    }
    
    .buttons-grid {
        gap: 12px;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .brain-hologram {
        display: none;
    }
}

/* Animações de entrada */
.name-section {
    animation: fadeInDown 1s ease-out;
}

.actions-section {
    animation: fadeInUp 1s ease-out 1s both;
}

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

