/* Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #111; /* Fundo escuro padrão */
    color: #fff;
    overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px); /* O efeito de blur que você pediu */
    transition: all 0.4s ease;
}

/* Classe adicionada via JavaScript quando rolar a página */
header.scrolled {
    background: #ffffff;
    border-bottom: 2px solid #000000;
}

header.scrolled nav ul li a {
    color: #000;
}

header .logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

/* ================= HERO ================= */
#hero {
    height: 95vh; /* Agora ele vai ocupar 80% da tela, revelando o que vem abaixo */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Escurece um pouco o vídeo para dar leitura à logo */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
}

.hero-logo {
    max-width: 750px; 
    width: 80%;
}

header .logo img {
    height: 24px; /* Diminui em cerca de 40% */
    transition: all 0.3s ease; /* Deixa a troca de imagem mais suave */
}

/* Botão Vermelho */
.btn-primary {
    background-color: #e63946; /* Vermelho do wireframe */
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #c92a36;
}

/* ================= SOBRE ================= */
#sobre {
    padding: 100px 5%;
    background-color: #ffffff; /* Fundo mudou para branco */
    color: #333; /* O texto padrão dessa seção agora é escuro */
    text-align: center;
}

.sobre-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px; /* Espaço entre a linha e a foto */
}

.frase-img {
    max-width: 450px; /* Tamanho da frase em SVG */
    width: 90%;
    margin-bottom: 40px;
}

.linha-vertical-escura {
    width: 1px;
    height: 60px;
    background-color: #000; /* Linha preta */
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px; /* Deixei mais estreito para o texto não ficar muito espalhado */
    margin: 0 auto;
    text-align: left; /* Garante que o texto fique alinhado à esquerda como no seu print */
}

.sobre-imagem {
    flex: 1;
}

.sobre-imagem img {
    width: 100%;
    border-radius: 2px;
}

.sobre-texto {
    flex: 1.2; /* Dá um pouquinho mais de espaço pro texto que pra foto */
}

.sobre-texto h3 {
    margin-bottom: 25px;
    letter-spacing: 4px;
    font-weight: 400; /* Título mais fino e elegante */
    color: #000;
}

.sobre-texto p {
    color: #555; /* Cinza escuro para leitura confortável */
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Animação Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= PORTFÓLIO ================= */
#portfolio {
    padding: 100px 5%;
    background-color: #1a1a1a;
    text-align: center;
}

.titulo-portfolio-img {
    max-width: 550px;
    width: 80%;
    margin-bottom: 20px;
}

.linha-vertical {
    width: 1px;
    height: 50px;
    background-color: #fff;
    margin: 0 auto 40px auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    max-width: 1000px;
    margin: 0 auto;
}

/* A caixa que segura a foto */
.portfolio-item {
    position: relative; /* O segredo 1: Diz pra foto não sair daqui de dentro */
    height: 450px; /* Altura das fotos menores */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    overflow: hidden; /* O segredo 2: Corta a foto se ela tentar passar da borda no hover */
}

/* A caixa das fotos grandes */
.portfolio-large {
    grid-column: span 2;
    height: 400px; /* Altura das fotos que ocupam a tela toda */
}

/* A foto em si */
.portfolio-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a foto não fique esticada/deformada */
    z-index: 1;
    transition: transform 0.6s ease;
}

/* A película escura */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: background-color 0.4s ease;
}

/* O botão */
.btn-outline {
    position: relative;
    z-index: 3;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 30px;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

/* Container do Botão Fale Comigo no Portfólio */
.cta-container {
    margin-top: 80px; /* Descola o botão das fotos */
    margin-bottom: 20px; /* Dá um respiro antes de chegar no rodapé */
    text-align: center;
}


/* ================= OS EFEITOS DE HOVER ================= */
.portfolio-item:hover .portfolio-bg {
    transform: scale(1.1); 
}

.portfolio-item:hover .portfolio-overlay {
    background-color: rgba(0, 0, 0, 0.6); 
}

.portfolio-item:hover .btn-outline {
    background: rgba(255, 255, 255, 0.1);
}

/* ================= RODAPÉ ================= */
footer {
    background-color: #000;
    padding: 50px;
    text-align: center;
    color: #888;
    line-height: 1.8;
}

/* Responsividade Básica para Celular */
@media (max-width: 768px) {
    header { padding: 15px 20px; flex-direction: column; gap: 15px;}
    .sobre-container { flex-direction: column; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-large { grid-column: span 1; }
}

/* Efeito de Blur na Frase */
.blur-on-scroll {
    opacity: 0;
    filter: blur(15px); /* Borrão inicial */
    transform: scale(0.95); /* Começa um pouquinho menor */
    transition: opacity 1.2s ease-out, filter 1.2s ease-out, transform 1.2s ease-out;
}

.blur-on-scroll.visible {
    opacity: 1;
    filter: blur(0); /* Remove o borrão */
    transform: scale(1); /* Volta ao tamanho normal */
}