/* Reset e estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', monospace;
    /*background-color: #f8f9fa;*/
    color: #333;
    /* Adiciona padding-top para compensar o header fixo */
    padding-top: var(--header-height, 80px);
}

/* Estilos do Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed; /* Mudança de sticky para fixed */
    top: 0;
    left: 0; /* Garante que comece na esquerda */
    right: 0; /* Garante que se estenda até a direita */
    width: 100%; /* Largura total */
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Define a altura do header como variável CSS */
    height: auto;
    min-height: 60px;
}

/* Ajuste dinâmico da altura do header */
header {
    --header-height: 80px;
}

/* Logo */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.15s ease;
}

.logo:hover {
    color: #333333;
}

/* Menu Desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #000000;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.15s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
    color: #333333;
    outline: none;
}

/* Efeito de underline animado */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a:focus::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Botão CTA */
.cta-button {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    letter-spacing: 0.5px;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #333333;
    outline: none;
}

.cta-button:focus {
    outline: 2px solid #cccccc;
}

/* Botão Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Menu Mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    padding: 5rem 2rem 2rem;
    z-index: 1000;
    transition: right 0.2s ease-out;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-links {
    list-style: none;
    flex-grow: 1;
}

.mobile-links li {
    margin: 1.5rem 0;
}

.mobile-links li a {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #000000;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 0.5rem;
    transition: color 0.15s ease;
}

.mobile-links li a:hover,
.mobile-links li a:focus {
    color: #333333;
    outline: none;
}

.mobile-links li a.active {
    font-weight: 500;
    position: relative;
}

.mobile-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #000000;
}

.mobile-cta {
    margin-top: auto;
    padding: 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Classe auxiliar para conteúdo principal */
.main-content {
    /* Garante que o conteúdo principal não fique atrás do header */
    margin-top: var(--header-height, 80px);
}

/* Ajuste responsivo da altura do header */
@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    header {
        --header-height: 75px;
    }
    
    body {
        padding-top: var(--header-height, 75px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .desktop-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }
    
    header {
        --header-height: 70px;
        padding: 0.8rem 1.5rem;
    }
    
    body {
        padding-top: var(--header-height, 70px);
    }
}

@media (max-width: 480px) {
    header {
        --header-height: 65px;
        padding: 0.6rem 1rem;
    }
    
    body {
        padding-top: var(--header-height, 65px);
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

/* Estilo para foco acessível */
a:focus, button:focus {
    outline: 2px solid #cccccc;
    outline-offset: 2px;
}

/* Classe auxiliar para smooth scroll com header fixo */
html {
    scroll-padding-top: var(--header-height, 80px);
}

/* Animação suave ao fazer scroll para âncoras */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Garantia de que o header sempre fique acima de outros elementos fixos */
header {
    z-index: 1000;
}

.mobile-menu {
    z-index: 1001;
}

.hamburger {
    z-index: 1002;
}