/* ==========================================================================
   CONFIGURAÇÕES GERAIS E RESET
   ========================================================================== */
:root {
    --primary-color: #7c4dff;
    --primary-hover: #6226ff;
    --text-dark: #2d1459;
    --text-muted: #555555;
    --bg-gradient: linear-gradient(135deg, #f5e8ff, #ecd8ff, #d9c2ff);
    --terminal-bg: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 2.3rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Botões Modernos */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

/* ==========================================================================
   1. ESTILIZAÇÃO HOME (HERO) - SECTION 1
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
}

/* Lado Esquerdo */
.hero-header-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}
.title-area h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.1;
}
.title-area h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-height: 40px;
}
.profile-photo {
    width: 130px; height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.25);
    flex-shrink: 0;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 550px;
}
.hero-buttons { display: flex; gap: 15px; }

/* Lado Direito: Notebook */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}
.notebook-mockup { width: 100%; }

.screen-frame {
    background: var(--terminal-bg);
    border: 12px solid #333;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    height: 280px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

.code-terminal {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #f8f8f2;
    line-height: 1.6;
}
.code-line { margin-bottom: 4px; }

.notebook-base {
    height: 18px;
    background: #555;
    border-radius: 0 0 16px 16px;
    position: relative;
}
.notebook-base::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 5px;
    background: #222;
    border-radius: 0 0 5px 5px;
}

/* Cores de sintaxe do terminal */
.pink { color: #ff79c6; }
.blue { color: #8be9fd; }
.green { color: #50fa7b; }
.yellow { color: #f1fa8c; }
.orange { color: #ffb86c; }

/* Ícones Flutuantes */
.tech-icon {
    position: absolute;
    font-size: 3rem;
    z-index: 10;
    animation: floatingIcons 4s ease-in-out infinite;
}
.html-float { top: -20px; left: 5%; animation-delay: 0s; }
.css-float { top: 30px; right: -20px; animation-delay: 1s; }
.js-float { bottom: 40px; left: -30px; animation-delay: 2s; }
.ts-float { bottom: -15px; right: 5%; animation-delay: 3s; }

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

/* Background Efeitos Glow */
.background-decor {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    overflow: hidden; z-index: 1;
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; }
.glow1 { width: 350px; height: 350px; background: var(--primary-color); top: 10%; left: -10%; }
.glow2 { width: 400px; height: 400px; background: #b18fff; bottom: 10%; right: -10%; }

/* ==========================================================================
   2. ESTILIZAÇÃO SKILLS (TECNOLOGIAS E FERRAMENTAS) - SECTION 2
   ========================================================================= */
.skills {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.skill-card {
    background: white;
    padding: 30px 15px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid #f3f3f3;
}
.skill-card i { font-size: 3.5rem; transition: transform 0.3s ease; }
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(124, 77, 255, 0.15);
}
.skill-card:hover i { transform: scale(1.05); }
.skill-card span { font-weight: 600; color: var(--text-dark); font-size: 1rem; }

/* ==========================================================================
   RESPONSIVIDADE COMPLETA SEÇÕES 1 & 2
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-header-block {
        flex-direction: column-reverse;
        justify-content: center; gap: 15px;
    }
    .hero-description { margin: 0 auto 25px auto; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 600px) {
    .title-area h1 { font-size: 2.5rem; }
    .title-area h2 { font-size: 1.5rem; }
    .profile-photo { width: 110px; height: 110px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    
    .tech-icon { font-size: 2.3rem; }
    .css-float { right: -5px; }
    .js-float { left: -5px; }
    
    .screen-frame { height: 210px; padding: 15px; }
    .code-terminal { font-size: 0.8rem; }
    
    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .skill-card i { font-size: 2.8rem; }
    .skill-card span { font-size: 0.9rem; }
}
/* ==========================================================================
   3. ESTILIZAÇÃO PROJETOS - SECTION 3
   ========================================================================== */
.projects {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(124, 77, 255, 0.12);
}

.project-image {
    height: 180px;
    background: #fdfbff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f5efff;
}

.image-placeholder i {
    font-size: 3.5rem;
    color: #dcd0ff;
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    margin-top: auto;
}

.project-tags span {
    background: #f1ebff;
    color: var(--primary-color);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.btn-project {
    flex: 1;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-git {
    background: #f5f5f5;
    color: #333;
}
.btn-git:hover { background: #e8e8e8; }

.btn-live {
    background: var(--primary-color);
    color: white;
}
.btn-live:hover { background: var(--primary-hover); }

/* ==========================================================================
   4. ESTILIZAÇÃO SOBRE MIM (MOLDURA ANIMADA) - SECTION 4
   ========================================================================== */
.about {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 70px;
    align-items: center;
}

/* Moldura que se mexe (Efeito JavaScript/CSS integrado) */
.photo-frame-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.moving-glow-frame {
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #00d2ff, var(--primary-color));
    background-size: 200% 200%;
    z-index: 1;
    animation: moveGradient 4s linear infinite;
}

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

.about-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    border: 6px solid white;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-role {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1b4b;
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* Lado Direito: Texto */
.about-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Métricas */
.metrics-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(124, 77, 255, 0.1);
    padding-bottom: 25px;
}

.metric-item h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.metric-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Informações Rápidas */
.info-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-bottom: 35px;
}

.info-inline {
    font-size: 1rem;
    color: var(--text-dark);
}

.info-inline strong {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   5. ESTILIZAÇÃO FOOTER - SECTION 5
   ========================================================================== */
.footer {
    background: #0d081b;
    color: #a5a1b8;
    padding: 60px 20px 30px 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Selo Circular que Gira */
.circular-logo-box {
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(124, 77, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 12s linear infinite;
}

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

.spinning-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.4);
}

.copyright {
    font-size: 0.85rem;
    color: #646077;
    margin-top: 10px;
}

/* ==========================================================================
   RESPONSIVIDADE EXTRA (PROJETOS, SOBRE E FOOTER)
   ========================================================================== */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .metrics-grid {
        justify-content: center;
    }
    
    .info-list-grid {
        max-width: 500px;
        margin: 0 auto 35px auto;
    }
}

@media (max-width: 600px) {
    .projects { padding: 60px 20px; }
    .about { padding: 60px 20px; }
    
    .about-content h2 { font-size: 2rem; }
    
    .info-list-grid {
        grid-template-columns: 1fr;
        text-align: left;
        padding-left: 20px;
    }
    
    .metrics-grid {
        gap: 20px;
    }
    
    .metric-item h3 { font-size: 1.8rem; }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   MELHORIAS DO FOOTER (BARRA MAIS FINA E ANIMAÇÕES DO LOGO ROTATIVO)
   ========================================================================== */

/* 1. Deixando a barra do footer mais fina e elegante */
.footer {
    padding: 30px 0 20px 0; /* Diminuiu o espaçamento interno de cima e de baixo */
}

.footer-container {
    gap: 20px; /* Reduz o espaço vertical entre o logo, os ícones e o copyright */
}

/* 2. Alinhamento perfeito e centralização do Logo Circular */
.circular-logo-box {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilização da caixa de texto giratória */
.spinning-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px dashed rgba(147, 51, 234, 0.3); /* Uma bordinha sutil para acabamento */
    
    /* Configuração da rotação padrão (Sentido Horário - Leve) */
    animation: rodarHorario 12s linear infinite;
    transform-origin: center center; /* Garante que gira estritamente no próprio eixo */
}

.spinning-text p {
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0;
    text-align: center;
}

/* 3. Efeitos de passar o mouse (Hover) alternados */

/* Primeiro hover: Passou o mouse normal -> Gira mais rápido no sentido Horário */
.circular-logo-box:hover .spinning-text {
    animation: rodarHorarioRapido 3s linear infinite;
}

/* Segundo hover controlado: Se passar o mouse com um leve toque ativo/focado 
   ou para alternar a direção, usamos a inversão ao clicar/interagir */
.circular-logo-box:active .spinning-text {
    animation: rodarAntiHorarioRapido 2s linear infinite;
}


/* ==========================================================================
   KEYFRAMES (As regras de movimento do CSS)
   ========================================================================== */

/* Giro padrão: Horário lento */
@keyframes rodarHorario {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Giro rápido ao passar o mouse: Horário rápido */
@keyframes rodarHorarioRapido {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Giro invertido: Anti-horário super rápido */
@keyframes rodarAntiHorarioRapido {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

