/* Configurações Gerais */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* 1. Ativa a suavidade nativa */
  scroll-behavior: smooth !important;
}

/* 2. Garante que as seções respeitem a altura do seu menu de 70px */
section {
  scroll-margin-top: 70px;
}


body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #333; }
.container { width: 85%; max-width: 1200px; margin: auto; overflow: hidden; }
.content { padding: 80px 0; text-align: center; }
.bg-light { background: #f4f4f4; }
.bg-dark { background: #001f3f; color: #fff; }

/* Menu Navbar */
#navbar { background: #fff; height: 70px; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
#navbar .logo { float: left; font-size: 28px; font-weight: bold; line-height: 70px; color: #001f3f; }
#navbar .logo span { color: #0074D9; }
#navbar nav { float: right; }
#navbar ul { list-style: none; display: flex; }
#navbar li a { display: block; padding: 0 20px; line-height: 70px; text-decoration: none; color: #333; font-weight: bold; transition: 0.3s; }
#navbar li a:hover { color: #0074D9; }

/* Home Flash Banner */
.banner { 
    height: 100vh; 
    background: url('https://images.unsplash.com') no-repeat center center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.overlay { background: rgba(0, 31, 63, 0.7); width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.banner h1 { font-size: 3rem; margin-bottom: 10px; }
.btn { display: inline-block; background: #0074D9; color: #fff; padding: 12px 30px; text-decoration: none; border-radius: 5px; margin-top: 20px; border: none; cursor: pointer; transition: 0.3s; }
.btn:hover { background: #001f3f; }

/* Cards de Serviços e Cases */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.card { background: #fff; padding: 20px; border-bottom: 4px solid #0074D9; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.grid-cases { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.case-item { width: 300px; height: 150px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; background-size: cover; box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.4); cursor: pointer; transition: 0.3s; }
.case-item:hover { transform: scale(1.05); box-shadow: inset 0 0 0 1000px rgba(0, 116, 217, 0.4); }

/* Formulário de Contato */
form input, form textarea { width: 100%; padding: 10px; margin: 10px 0; border-radius: 4px; border: 1px solid #ccc; }
form textarea { height: 100px; }

/* Efeito Glitch Tecnológico */
.glitch {
    position: relative;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    color: #ff00c1;
}

.glitch::after {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    color: #00fff9;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75), -0.025em 0.05em 0 rgba(0,0,255,0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,0,0.75), -0.05em -0.05em 0 rgba(0,0,255,0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,0,0.75), 0.05em -0.05em 0 rgba(0,0,255,0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255,0,0,0.75), -0.025em -0.025em 0 rgba(0,255,0,0.75), -0.025em -0.05em 0 rgba(0,0,255,0.75); }
}

@media (prefers-reduced-motion: reduce) {
    .glitch, .glitch::before, .glitch::after {
        animation: none;
        text-shadow: none;
    }
}
