/* ==============================================
   VARIÁVEIS DE COR E ESTILOS GERAIS (TEMA ESCURO)
============================================== */
:root {
    --dark-bg: #1A1A2E;
    --dark-bg-alt: #2a2a40; 
    --primary-purple: #9b5de5;
    --accent-pink: #f15bb5;
    --accent-blue: #00f5d4;
    --light-text: #F5F5F5;
    --text-color-muted: rgba(245, 245, 245, 0.7);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg); /* FUNDO ESCURO COMO PADRÃO */
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); /* TEXTURA DE ESTRELAS NO FUNDO */
    color: var(--light-text); /* TEXTO CLARO COMO PADRÃO */
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: var(--light-text); /* Garante que os títulos de seção sejam claros */
}

/* Deixa os parágrafos um pouco mais suaves que os títulos */
p, .lead {
    color: var(--text-color-muted);
}
h1, h2, h3, h4, h5, h6, strong {
    color: var(--light-text);
}

.btn-gradient {
    background-image: linear-gradient(45deg, var(--primary-purple), var(--accent-pink));
    border: none;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==============================================
   NAVEGAÇÃO
============================================== */
.navbar {
    background-color: transparent;
    transition: background-color 0.4s ease-out;
}

.navbar.scrolled {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar .nav-link:hover {
    color: var(--accent-blue);
}

/* ==============================================
   SEÇÃO HERO
============================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--dark-bg);
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    color: var(--light-text);
    padding: 80px 0;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 1rem;
    animation: fadeInScaleUp 1s ease-out forwards;
}

@keyframes fadeInScaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==============================================
   ESTILOS PARA PÁGINAS INTERNAS (CORREÇÃO)
============================================== */

/* Corrige o espaçamento do topo das páginas internas (Sobre, Contato, etc.) */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Garante que o texto 'muted' (cinza claro) tenha contraste no fundo escuro */
.text-muted {
    color: var(--text-color-muted) !important; 
}

/* ==============================================
   SEÇÃO SERVIÇOS
============================================== */
.service-card {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-image: linear-gradient(45deg, var(--primary-purple), var(--accent-pink));
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h4 {
    color: #333; /* Define a cor do título para escuro */
}

.service-card p {
    color: #6c757d; /* Define a cor do parágrafo para um cinza suave */
}

/* ==============================================
   SEÇÃO PORTFÓLIO
============================================== */
#portfolio {
    padding-top: 80px;
    padding-bottom: 80px;
}

#portfolio .text-muted {
    color: var(--text-color-muted) !important;
}

.portfolio-card {
    background-color: var(--dark-bg-alt);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-img-container {
    height: 380px; /* <--- AUMENTEI A ALTURA AQUI (era 250px) */
    background-color: #1A1A2E;
    padding: 1.5rem; /* <--- AUMENTEI O PADDING AQUI (era 1.2rem) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-info {
    padding: 1.8rem 1.5rem; /* <--- AUMENTEI O PADDING AQUI (era 1.5rem) */
    text-align: center;
    color: var(--light-text);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-info h5 {
    font-weight: 700;
    margin-bottom: 0.35rem; /* Ajustei a margem inferior do título */
    font-size: 1.2rem; /* <--- AUMENTEI UM POUCO O TAMANHO DA FONTE */
}

.portfolio-info p {
    font-size: 0.95rem; /* <--- AUMENTEI UM POUCO O TAMANHO DA FONTE */
    color: var(--text-color-muted);
    margin-bottom: 0;
}

/* ==============================================
   SEÇÃO CONTATO
============================================== */
#contato .form-control,
#contato .form-select {
    background-color: #f0f2f5;
    border: none;
    padding: 1rem;
}
#contato .form-control:focus {
    box-shadow: 0 0 0 2px var(--primary-purple);
}

/* ==============================================
   RODAPÉ
============================================== */
.site-footer {
    background-color: var(--dark-bg);
    color: #a0a0a0;
    padding: 40px 0;
}
.site-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: white;
}
.site-footer hr {
    border-color: #333;
    margin: 20px 0;
}
.footer-social a {
    font-size: 1.5rem;
    margin: 0 10px;
}

/* ==============================================
   RESPONSIVIDADE
============================================== */
@media (max-width: 991.98px) {
    .navbar {
        background-color: var(--dark-bg);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
        align-items: flex-start;
    }

    .hero-logo {
        max-width: 150px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}


/* ==============================================
   ESTILOS PÁGINA SOBRE NÓS
============================================== */
.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-image: linear-gradient(45deg, var(--primary-purple), var(--accent-pink));
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}