:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-glow: 0 0 20px rgba(0, 212, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4d 50%, #0a0e27 100%);
    color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
.tech-font {
    font-family: 'Orbitron', sans-serif;
}

/* Header Fixo */
.navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

                                     /* MENU HAMBURGUER */

/* MENU HAMBÚRGUER - APENAS MOBILE */
.navbar-toggler {
    display: none; /* Esconde em desktop */
    border: 2px solid var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 212, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
    filter: none !important;
}

/* Menu mobile aberto */
.navbar-collapse {
    transition: all 0.4s ease;
}

/* Estilo do menu quando aberto em mobile */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block; /* Mostra em mobile */
    }
    
    .navbar-collapse {
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .nav-link {
        padding: 12px 20px !important;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        transform: translateX(5px);
    }
    
    /* Remove o underline animado em mobile */
    .nav-link::after {
        display: none;
    }
}

/* Hero Section com Vídeo */
/* Hero Section com Imagem */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 77, 0.9) 100%);
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Efeito de fundo sutil */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 153, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-text-content {
    z-index: 2;
    padding-right: 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text-content .lead {
    color: #d0d0d0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-tech {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #0a0e27;
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: var(--accent-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-tech:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6);
    color: #0a0e27;
}

/* Imagem à direita */
.hero-image-content {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
}

/* Efeito de brilho atrás da imagem */
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Seções */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Cards de Serviço */
.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--accent-glow);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Tabela de Preços */
.price-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.price-card:hover::before {
    left: 100%;
}

.price-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.price-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--accent-glow);
}

.price-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: #0a0e27;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 20px 0;
}

.price-amount span {
    font-size: 1rem;
    color: #b0b0b0;
}

/* Galeria de Imagens */
.gallery-img {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.gallery-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-img:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img:hover .gallery-overlay {
    opacity: 1;
}

/* Seção Vídeo - Ajuste para vídeo 9:16 em container 16:9 */
#video {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

#video .section-title {
    margin-bottom: 40px;
}

/* Container do vídeo - mantém proporção 16:9 */
#video .ratio-16x9 {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Força a proporção 16:9 */
    aspect-ratio: 16 / 9;
}

/* Ajuste do vídeo para cobrir todo o espaço */
#video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cobre todo o espaço, cortando se necessário */
    object-position: center;
}

/* Se quiser que o vídeo se adapte sem cortar (com barras pretas), use: */
/* object-fit: contain; */

/* Texto abaixo do vídeo */
#video .text-muted {
    color: #888 !important;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    #video {
        padding: 60px 15px;
    }
    
    #video .ratio-16x9 {
        border-radius: 15px;
    }
}

/* Contato */
.contact-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--primary-color);
    color: #0a0e27;
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--accent-glow);
}

.email-link {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #0a0e27;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    color: #0a0e27;
}

/* Info Box */
.info-box {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin-top: 30px;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box p {
    margin-bottom: 8px;
    color: #b0b0b0;
}

.info-box i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Animações de Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* BOTÃO DE VOLTAR AO TOPO */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #0a0e27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    z-index: 9999;
    border: 3px solid transparent;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: alertPulse 2s infinite;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6);
    border-color: #ffffff;
    color: #0a0e27;
}

/* Anel de pulso de alerta */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show .pulse-ring {
    animation: ripple 2s infinite;
}

/* Animações */
@keyframes alertPulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    }

    50% {
        box-shadow: 0 5px 30px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.6);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

                                     /* RESPONSIVO INICIO */

/* ============================================
   RESPONSIVO - CORRIGIDO E CENTRALIZADO
   ============================================ */

/* ------------------------------------------
   TABLET E MOBILE (até 991px)
   ------------------------------------------ */
@media (max-width: 991px) {
    /* HEADER - Menu Hambúrguer visível e completo */
    .navbar-toggler {
        display: block !important;
        border: 2px solid var(--primary-color);
        background: rgba(0, 212, 255, 0.1);
        padding: 10px 14px;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-left: auto; /* Garante que fique à direita */
    }
    
    .navbar-toggler:hover {
        background: rgba(0, 212, 255, 0.2);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 212, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
        display: block;
        filter: none !important;
    }
    
    /* Menu mobile aberto */
    .navbar-collapse {
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        width: 100%;
    }
    
    .navbar-nav {
        text-align: center;
        width: 100%;
    }
    
    .nav-item {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 20px !important;
        border-radius: 10px;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
    }
    
    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        transform: translateX(5px);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* HERO SECTION - Centralizado */
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .hero-text-content {
        text-align: center;
        padding-right: 15px;
        padding-left: 15px;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-image-content {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
    
    /* SERVIÇOS - Cards centralizados */
    #servicos .row {
        justify-content: center;
    }
    
    .service-card {
        text-align: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-list {
        text-align: left;
        display: inline-block;
    }
    
    /* PREÇOS - Cards centralizados */
    #precos .row {
        justify-content: center;
    }
    
    .price-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* GALERIA - Centralizada */
    #galeria .row {
        justify-content: center;
    }
    
    .gallery-img {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* VÍDEO - Centralizado */
    #video .row {
        justify-content: center;
    }
    
    #video .col-md-8 {
        width: 100%;
        max-width: 800px;
    }
    
    /* CONTATO - Centralizado */
    #contato .row {
        justify-content: center;
        text-align: center;
    }
    
    .contact-section {
        text-align: center;
    }
    
    .info-box {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ------------------------------------------
   MOBILE MÉDIO (até 768px)
   ------------------------------------------ */
@media (max-width: 768px) {
    /* Container mais estreito */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Títulos */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    /* Botão Voltar ao Topo - visível completo */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Vídeo */
    #video {
        padding: 60px 15px;
    }
    
    section {
        padding: 60px 0;
    }
}

/* ------------------------------------------
   MOBILE PEQUENO (até 480px)
   ------------------------------------------ */
@media (max-width: 480px) {
    /* Container ainda mais estreito */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        padding: 8px 10px;
    }
    
    .navbar-toggler-icon {
        width: 22px;
        height: 22px;
    }
    
    .navbar-collapse {
        padding: 15px;
        border-radius: 10px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-tech {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero-image-wrapper {
        max-width: 280px;
    }
    
    /* Seções */
    .section-title {
        font-size: 1.4rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Cards */
    .service-card,
    .price-card {
        padding: 25px 20px;
    }
    
    /* Vídeo */
    #video {
        padding: 40px 10px;
    }
    
    #video .ratio-16x9 {
        border-radius: 10px;
    }
    
    /* Botão Voltar ao Topo - menor mas visível */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.3rem;
    }
    
    /* Contato */
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ------------------------------------------
   SCROLLBAR
   ------------------------------------------ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}