/* --- Variáveis de Cores --- */
:root {
    --primary-blue: #0056b3;
    --accent-orange: #ff8c00;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden; /* Evita rolagem lateral no celular */
}

/* --- Navbar --- */
.navbar {
    transition: all 0.4s ease;
    padding: 1rem 0;
    background-color: #0000002d;
}

.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin-left: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-orange) !important;
}

.btn-cta {
    border: 1px solid var(--accent-orange);
    border-radius: 20px;
    padding: 5px 20px !important;
    color: var(--accent-orange) !important;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: var(--accent-orange);
    color: white !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('fundo-hero.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* Melhor para mobile que fixed */
    display: flex;
    align-items: center;
}

.portfolio-header {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background: url('fundo-hero.jpg') no-repeat center center;
    background-size: cover;
    margin-top: 60px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  
}

.hero-logo {
    max-width: 450px;
    width: 80%;
    filter: drop-shadow(0 0 20px rgba(0, 86, 179, 0.6));
}

.hero-title {
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f1f1f1;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Botões */
.custom-btn {
    background: linear-gradient(90deg, var(--primary-blue) 0%, #003d80 100%);
    color: white !important;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
    background: linear-gradient(90deg, var(--accent-orange) 0%, #cc7000 100%);
}

/* --- Seções --- */
.section-padding {
    padding: 80px 0;
}

.bg-darker { background-color: var(--darker-bg); }
.bg-black { background-color: #000; }
.text-orange { color: var(--accent-orange); }
.text-blue { color: var(--primary-blue); }

.section-title {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* --- Imagens e Cards --- */
.border-orange {
    border-bottom: 4px solid var(--accent-orange);
    border-right: 4px solid var(--primary-blue);
}

.project-card {
    background-color: #121212;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    height: 100%;
    transition: transform 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-blue);
}

.project-info {
    padding: 25px;
}

.project-info h4 {
    color: var(--accent-orange);
    font-size: 1.25rem;
    font-weight: 700;
}

.project-info p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer-section {
    padding: 60px 0 30px;
    background: #050505;
    border-top: 1px solid #222;
}

/* --- AJUSTES MOBILE (Responsividade) --- */
@media (max-width: 991px) {
    /* Menu Mobile */
    .navbar-collapse {
        background-color: rgba(0,0,0,0.98); /* Fundo preto forte no menu */
        padding: 20px;
        border-radius: 0 0 10px 10px;
        text-align: center;
        border-bottom: 2px solid var(--primary-blue);
    }
    
    .nav-link {
        margin: 10px 0;
        font-size: 1.1rem; /* Letra maior no menu */
    }

    .hero-title {
        font-size: 1.2rem; /* Título menor no celular */
        letter-spacing: 1px;
    }

    .hero-logo {
        max-width: 250px; /* Logo menor */
    }

    .section-padding {
        padding: 50px 0; /* Menos espaço em branco */
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Botões Full Width no celular */
    .custom-btn, .btn-outline-light {
        width: 100%;
        display: block;
        margin-bottom: 10px;
        padding: 12px;
    }

    /* Ajuste de imagens */
    .project-card img {
        height: 250px;
    }
}