/* --- Reset e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --brand-red: #d92525;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

/* --- Navegação Premium --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.ponto-vermelho {
    color: var(--brand-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-whatsapp {
    background-color: var(--brand-red);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #b51e1e;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay-moderno {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13,13,13,0.7) 0%, rgba(13,13,13,1) 100%);
    z-index: -1;
}

.titulo-moderno {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.destaque-vermelho {
    color: var(--brand-red);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Botões Padrão */
.cta-button {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 37, 37, 0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
}

.cta-button.secondary:hover {
    border-color: var(--text-main);
    box-shadow: none;
}

/* --- Seções Gerais --- */
.portfolio-section {
    padding: 100px 5%;
}

.bg-dark {
    background-color: var(--surface-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.titulo-secao {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Grid de Vídeos --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; 
}

.video-card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 37, 37, 0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
}

.video-wrapper.vertical {
    padding-bottom: 150%; 
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.video-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-container {
    text-align: center;
    margin-top: 60px;
}

/* --- Depoimentos --- */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.depoimento-card {
    background: var(--bg-color);
    padding: 40px;
    border-left: 4px solid var(--brand-red);
    border-radius: 4px;
}

.comentario {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 25px;
}

.autor-info {
    display: flex;
    flex-direction: column;
}

.autor-nome {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-red);
}

.autor-cargo {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Grid de Código --- */
.codigo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.codigo-card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.codigo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Espaço para o print do site */
.codigo-img-wrapper {
    width: 100%;
    height: 200px;
    background: #111;
    overflow: hidden;
    position: relative;
}

/* Isso aqui é só um quebra-galho enquanto você não coloca os prints reais */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg, #1a1a1a, #222);
    text-transform: uppercase;
}
.img-placeholder.dark { background: linear-gradient(45deg, #0a0a0a, #111); }
.img-placeholder.danger { background: linear-gradient(45deg, #3a0000, #1a0000); }
.img-placeholder.code { background: linear-gradient(45deg, #001a0d, #00331a); }

/* Se usar a imagem (print) do projeto, tire os placeholders acima */
.codigo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.codigo-card:hover .codigo-img-wrapper img {
    transform: scale(1.05);
}

.codigo-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz os botões ficarem alinhados embaixo */
}

/* Etiquetas (Tags) de Status */
.codigo-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.live { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.tag.dev { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.tag.github { background: rgba(255, 255, 255, 0.2); color: #fff; }
.tag.fun { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }

.codigo-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.codigo-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Links e Botões */
.codigo-links {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.btn-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #fff;
}

.link-disabled {
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
}

/* --- Estilos para a página de Arquivo Completo --- */
.video-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--text-main);
}

.filter-btn.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}