/* ==========================================================================
   RENATO KOSSEKI - PORTFÓLIO DE DATA SCIENCE & ENGENHARIA DE DADOS
   Design System: Futuristic Dark Mode, Glassmorphism & Neon Glow Accents
   ========================================================================== */

:root {
    /* Paleta de Cores Primárias & Dark Mode */
    --bg-dark: #060913;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --bg-header: rgba(6, 9, 19, 0.85);

    /* Cores de Acento Neon & Gradientes */
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-green: #00e676;
    --accent-purple: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-secondary: linear-gradient(135deg, #00e676 0%, #11998e 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(124, 58, 237, 0.1));

    /* Tipografia */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Textos */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    /* Sombras & Efeitos */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-glow: 1px solid rgba(0, 242, 254, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
    --shadow-glow-strong: 0 0 35px rgba(0, 242, 254, 0.45);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESETS E ESTRUTURA GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas de Partículas no Fundo */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Container de Largura Padrão */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Estilização de Texto com Gradiente */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Badges e Tags */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

/* Cards Glassmorphism Reutilizáveis */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border: var(--border-glass-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* --- BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.glow-effect {
    position: relative;
    z-index: 1;
}

/* --- HEADER & NAVIGATION --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    transition: var(--transition);
}

#header.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-cyan);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
/* --- DIGITAL SERENITY ANIMATED HERO STYLES --- */
.digital-serenity-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.9) 0%, rgba(6, 9, 19, 1) 100%);
    border-bottom: 1px solid rgba(0, 242, 254, 0.15);
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.mouse-torch {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.14) 0%, rgba(124, 58, 237, 0.08) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Cantoneiras Decorativas "Digital Serenity" */
.corner-accent {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.7;
}

.corner-tl {
    top: 30px;
    left: 30px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.corner-tr {
    top: 30px;
    right: 30px;
    border-top: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

.corner-bl {
    bottom: 30px;
    left: 30px;
    border-bottom: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.corner-br {
    bottom: 30px;
    right: 30px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

.digital-serenity-badge {
    letter-spacing: 2px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.serenity-title {
    font-size: 4.2rem;
    letter-spacing: -1.5px;
}

.word-reveal {
    display: inline-block;
    animation: fadeInWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInWord {
    from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-author-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.author-name {
    color: var(--text-primary);
    font-weight: 700;
}

.author-separator {
    color: var(--accent-cyan);
}

.glow-text {
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

/* Efeito Ripple nos Botões */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.3;
}

.hero-glow-1 {
    top: -100px;
    left: -100px;
    background: var(--accent-cyan);
}

.hero-glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--accent-purple);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle-container {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.typewriter-text {
    color: var(--accent-cyan);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-cyan);
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 36px auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    padding: 24px 16px;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-down-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-down-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- SEÇÕES GERAIS --- */
.section {
    padding: 100px 0;
    position: relative;
}

/* --- SOBRE MIM --- */
.sobre-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.profile-card {
    padding: 16px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.profile-card:hover .profile-img {
    transform: scale(1.03);
}

.image-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 10px 16px;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(10px);
    border: var(--border-glass);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-align: center;
}

.profile-info-footer {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent-cyan);
}

.sobre-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sobre-paragraph {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.pillar-item {
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pillar-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pillar-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.quick-contact-bar {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-pill i {
    color: var(--accent-cyan);
}

.contact-pill a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.contact-pill a:hover {
    text-decoration: underline;
}

/* --- TIMELINE DE EXPERIÊNCIA --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 4px;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    z-index: 2;
}

.timeline-content {
    padding: 24px 28px;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.role-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.company-name {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.company-name .highlight {
    color: var(--accent-cyan);
    font-weight: 700;
}

.period-badge {
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.period-badge.current {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.4);
    color: var(--accent-cyan);
    font-weight: 600;
}

.activities-list {
    list-style: none;
    margin-bottom: 20px;
}

.activities-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.activities-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* --- HABILIDADES & TECNOLOGIAS --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.skill-category-card {
    padding: 28px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.skill-name i {
    color: var(--accent-cyan);
    margin-right: 6px;
}

.skill-percent {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.skill-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.skill-badge-item i {
    color: var(--accent-cyan);
}

.skill-badge-item:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* --- CASES & PROJETOS --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-dark);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-techs span {
    padding: 3px 10px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* --- FORMAÇÃO ACADÊMICA --- */
.formacao-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.edu-card {
    padding: 28px;
    display: flex;
    gap: 20px;
}

.edu-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.edu-type {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 1px;
}

.edu-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 4px 0;
}

.edu-institution {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.edu-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0 12px 0;
}

.edu-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CONTATO --- */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contato-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contato-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: var(--text-primary);
}

.method-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
}

.whatsapp-color { color: #25d366; background: rgba(37, 211, 102, 0.1); }
.email-color { color: #ea4335; background: rgba(234, 67, 53, 0.1); }
.linkedin-color { color: #0a66c2; background: rgba(10, 102, 194, 0.1); }
.location-color { color: var(--accent-cyan); background: rgba(0, 242, 254, 0.1); }

.contact-method-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.contact-method-card span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.method-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-method-card:hover .method-arrow {
    color: var(--accent-cyan);
    transform: translate(2px, -2px);
}

.contact-form {
    padding: 32px;
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form h3 i {
    color: var(--accent-cyan);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* --- FOOTER --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-dark);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- BOTÃO VOLTAR AO TOPO --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-strong);
}

/* --- MODAIS --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 680px;
    width: 100%;
    padding: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--accent-cyan);
    color: var(--text-dark);
}

.modal-img {
    width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 8px 0;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.modal-tags span {
    padding: 4px 12px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 22px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.2rem; }
    .sobre-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .contato-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle { display: block; }
    .nav-btn { display: none; }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle-container { font-size: 1.2rem; flex-direction: column; gap: 4px; }
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .timeline::before { left: 16px; }
    .timeline-item { padding-left: 50px; }
    .timeline-dot { left: -4px; width: 36px; height: 36px; font-size: 0.9rem; }

    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .formacao-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
}
