/* PALETA DE CORES (Pode alterar os códigos HEX para ficar igual ao seu outro site) */
:root {
    --bg-dark: #09090b; /* Fundo principal super escuro */
    --bg-card: #18181b; /* Fundo das caixas e menu */
    --primary: #2563eb; /* Azul da A2 Shark - Altere se for outra cor */
    --primary-hover: #1d4ed8; 
    --text-main: #f8fafc; /* Branco gelo para leitura */
    --text-muted: #a1a1aa; /* Cinza para textos secundários */
    --border-color: #27272a; /* Linhas discretas */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAVBAR === */
.navbar {
    background-color: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(12px); /* Efeito de vidro moderno */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

/* === BOTÕES === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero {
    padding: 120px 0;
    background: radial-gradient(circle at top center, #1e1e24 0%, var(--bg-dark) 60%);
    display: flex;
    align-items: center;
}

.hero-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-card h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-card h1 span {
    color: var(--primary);
}

.hero-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === MODAL DE VÍDEO === */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-muted);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #fff;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === PROJETOS (GRID) === */
.projects-section {
    padding: 80px 0 120px;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.projects-section h2 span {
    color: var(--primary);
}

/* Novo estilo para o aviso de qualidade do vídeo */
.quality-notice {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 750px;
    margin: 0 auto 50px auto;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.quality-notice i {
    color: var(--primary);
    margin-right: 8px;
}

.quality-notice strong {
    color: var(--text-main);
}

.projects-grid {

    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Aqui está a regra: Exatamente 4 colunas */
    gap: 24px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    background-color: var(--border-color);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-card h3 {

    font-size: 1.2rem;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === FOOTER === */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* === RESPONSIVIDADE (Telas Menores) === */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Em tablets, cai para 2 por linha */
    }
}

@media (max-width: 768px) {
    .nav-content { flex-direction: column; height: auto; padding: 20px 0; gap: 15px; }
    .hero-card h1 { font-size: 2rem; }
    .projects-grid { grid-template-columns: 1fr; /* Em celulares, fica 1 por linha */ }
}
