/* =========================================================================
   Portfólio - Vitor Correia
   Author: Vitor Correia
   Description: Tema Dark moderno com toques de cor neon e Glassmorphism.
   ========================================================================= */

/* =========================================
   1. Variáveis (CSS Custom Properties)
========================================= */
:root {
    /* Cores Principais */
    --color-bg-dark: #0a0a0f; /* Fundo principal escuro profundo */
    --color-surface: rgba(20, 20, 25, 0.7); /* Cards e superfícies - translúcido para glassmorphism */
    --color-surface-hover: rgba(30, 30, 40, 0.9);
    
    /* Cores de Destaque (Neon) */
    --color-primary: #00f2fe; /* Ciano Neon ativo */
    --color-secondary: #4facfe; /* Azul secundário */
    --color-accent: #00f2fe;
    
    /* Texto */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    /* Fontes */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'Fira Code', 'SF Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    
    /* Layout */
    --container-width: 1100px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Transições e Sombras */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-neon: 0 0 10px rgba(0, 242, 254, 0.3), 0 0 20px rgba(0, 242, 254, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* =========================================
   2. Reset Global & Tipografia Base
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--color-bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* =========================================
   3. Utilitários (Classes Globais)
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-spacing {
    padding: 60px 0;
}

.highlight-color {
    color: var(--color-primary);
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.mono-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

/* Botoes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: rgba(0, 242, 254, 0.1);
    box-shadow: var(--shadow-neon);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
}

.btn-primary-outline:hover {
    background-color: rgba(0, 242, 254, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-normal), background var(--transition-normal);
}

.glass-panel:hover {
    background: var(--color-surface-hover);
    border-color: rgba(0, 242, 254, 0.2);
}

/* Efeito Glow Background */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
.bg-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -10%;
    left: -10%;
}
.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -20%;
    right: -10%;
}

/* =========================================
   4. Header e Navegação
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 15, 0.85); /* Fundo com transparência */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: color var(--transition-fast);
}

.lang-switch button:hover {
    color: var(--text-light);
}

.lang-switch button.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s linear;
}

/* =========================================
   5. Headings de Seções
========================================= */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.section-title span.highlight-color {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-right: 10px;
    font-weight: 400;
}

.section-header .line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    flex-grow: 1;
    margin-left: 20px;
}

/* =========================================
   6. Hero Section (Home)
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Offset da navbar */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 540px;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.profile-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    padding: 10px;
    position: relative;
    /* Efeito de neon pulsante no border */
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2), inset 0 0 20px rgba(0, 242, 254, 0.2);
}

.profile-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 1px dashed var(--color-secondary);
    animation: rotate 20s linear infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-surface);
    background-image: url('../assets/images/perfil.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================
   7. Sobre Mim Section
========================================= */
.about-content {
    padding: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* =========================================
   8. Especialidades (Skills)
========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.skill-card ul {
    list-style: none;
    margin-top: 15px;
}

.skill-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-main);
}

.skill-card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-family: var(--font-mono);
}

/* =========================================
   9. Experiência Section (Timeline)
========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding: 30px;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--color-bg-dark);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    left: -39px; /* alinhar ao border-left */
    top: 30px;
    box-shadow: 0 0 10px var(--color-primary);
    z-index: 2;
}

.timeline-role {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.timeline-date {
    display: block;
    margin-bottom: 15px;
}

/* =========================================
   10. Portfólio Section
========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-desc {
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    color: var(--text-muted);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-links a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.project-links a:hover {
    color: var(--color-primary);
}

/* =========================================
   11. Contato & Footer
========================================= */
.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-container .section-title {
    justify-content: center;
    margin-bottom: 30px;
}

.contact-box {
    padding: 50px 30px;
}

.contact-desc {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-icon {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.mt-4 { margin-top: 1rem; }

footer {
    padding: 30px 0;
    text-align: center;
}

footer p {
    color: var(--text-muted);
}

/* =========================================
   12. Animações e Efeitos JS
========================================= */
/* Classe adicionada via JS pra o Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. Responsividade (Media Queries)
========================================= */
@media screen and (max-width: 868px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background: var(--color-surface-hover);
        backdrop-filter: blur(20px);
        width: 70%;
        height: 100vh;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.nav-active {
        right: 0;
    }

    /* Transformação do icone burger em X */
    .menu-toggle.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    .menu-toggle.toggle span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 50px);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -29px;
    }
}
