/* ============ RESPONSIVO - SCROLL HORIZONTAL EM CARDS ============ */

/* Estilos base para todos os containers com grid */
@media (max-width: 992px) {
    /* Serviços - scroll horizontal */
    .servicos-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 15px;
        margin-bottom: 10px;
        cursor: grab;
        scrollbar-width: thin;
    }
    
    .servicos-grid:active {
        cursor: grabbing;
    }
    
    .servico-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    
    /* Tecnologias - scroll horizontal */
    .tecnologias-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        cursor: grab;
    }
    
    .tecnologia-item {
        flex: 0 0 140px;
        scroll-snap-align: start;
    }
    
    /* Depoimentos - scroll horizontal */
    .depoimentos-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 15px;
        cursor: grab;
    }
    
    .depoimento-card {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
    
    /* Our Systems - scroll horizontal */
    .systems-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 15px;
        cursor: grab;
    }
    
    .system-card {
        flex: 0 0 320px;
        scroll-snap-align: start;
    }
    
    /* Valores - já tem scroll horizontal, mantém */
    .valores-scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        cursor: grab;
    }
    
    .valor-card {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }
    
    /* Sobre cards */
    .sobre-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 15px;
        cursor: grab;
    }
    
    .card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    
    /* Clientes grid */
    .clientes-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        cursor: grab;
    }
    
    .cliente-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }
}

/* Ajustes para tablets (768px - 992px) */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 12px 20px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo p {
        font-size: 9px;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 36px;
        letter-spacing: 3px;
    }
    
    .hero h2 {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .hero p {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-primary, .btn-outline {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    /* Seções em geral */
    .sobre, .servicos, .tecnologias, .contacto, 
    .valores, .missao-visao, .why-synaxis, .how-works,
    .requisicao, .depoimentos, .our-systems {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }
    
    /* Grid do sobre */
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Missão e Visão */
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .missao-card, .visao-card {
        padding: 30px 25px;
    }
    
    .missao-card h3, .visao-card h3 {
        font-size: 22px;
    }
    
    /* CREAXIS HUB */
    .creaxis-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .creaxis-features {
        justify-content: center;
    }
    
    .creaxis-text h2 {
        font-size: 28px;
    }
    
    /* Requisição */
    .requisicao-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .requisicao-info, .requisicao-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Contacto */
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input {
        width: 100%;
        text-align: center;
    }
    
    /* Scroll hints - indicadores visuais */
    .servicos-grid::after,
    .tecnologias-grid::after,
    .depoimentos-grid::after,
    .systems-grid::after,
    .sobre-cards::after,
    .clientes-grid::after {
        content: "";
        position: sticky;
        right: 0;
        top: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(90deg, transparent, var(--black));
        pointer-events: none;
    }
}

/* Scroll para telas muito pequenas (até 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hero h2 {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .servico-card {
        flex: 0 0 260px;
    }
    
    .tecnologia-item {
        flex: 0 0 120px;
    }
    
    .depoimento-card {
        flex: 0 0 280px;
    }
    
    .system-card {
        flex: 0 0 300px;
    }
    
    .valor-card {
        flex: 0 0 240px;
    }
    
    .card {
        flex: 0 0 260px;
    }
    
    .cliente-card {
        flex: 0 0 140px;
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* Barra de scroll personalizada */
@media (max-width: 992px) {
    .servicos-grid::-webkit-scrollbar,
    .tecnologias-grid::-webkit-scrollbar,
    .depoimentos-grid::-webkit-scrollbar,
    .systems-grid::-webkit-scrollbar,
    .sobre-cards::-webkit-scrollbar,
    .clientes-grid::-webkit-scrollbar,
    .valores-scroll::-webkit-scrollbar {
        height: 4px;
    }
    
    .servicos-grid::-webkit-scrollbar-track,
    .tecnologias-grid::-webkit-scrollbar-track,
    .depoimentos-grid::-webkit-scrollbar-track,
    .systems-grid::-webkit-scrollbar-track,
    .sobre-cards::-webkit-scrollbar-track,
    .clientes-grid::-webkit-scrollbar-track,
    .valores-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .servicos-grid::-webkit-scrollbar-thumb,
    .tecnologias-grid::-webkit-scrollbar-thumb,
    .depoimentos-grid::-webkit-scrollbar-thumb,
    .systems-grid::-webkit-scrollbar-thumb,
    .sobre-cards::-webkit-scrollbar-thumb,
    .clientes-grid::-webkit-scrollbar-thumb,
    .valores-scroll::-webkit-scrollbar-thumb {
        background: var(--neon-green);
        border-radius: 10px;
    }
}

/* Dica visual de que pode rolar */
.scroll-indicator-hint {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--gray);
    gap: 5px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .scroll-indicator-hint {
        display: flex;
    }
    
    .scroll-indicator-hint i {
        animation: scrollHint 1.5s ease infinite;
    }
    
    @keyframes scrollHint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
}
/* ============ NAVBAR - VERSÃO MELHORADA ============ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 220, 120, 0.2);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 12px 60px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: var(--neon-green);
}

.logo h1 {
    font-family: 'Lastica', 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--white), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-family: 'Lastica', 'Montserrat', sans-serif;
    font-size: 10px;
    color: var(--neon-green);
    letter-spacing: 3px;
    font-weight: 400;
}

/* Menu desktop */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--neon-green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--neon-green), #00b060);
    border-radius: 30px;
    text-decoration: none;
    color: var(--black);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 220, 120, 0.4);
}

/* Menu toggle (hambúrguer) */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--neon-green);
    background: none;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(0, 220, 120, 0.1);
    transform: scale(1.05);
}

/* ============ RESPONSIVO MOBILE ============ */
@media (max-width: 992px) {
    .navbar {
        padding: 12px 30px;
    }
    
    .navbar.scrolled {
        padding: 10px 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    
    .navbar.scrolled {
        padding: 10px 20px;
    }
    
    /* Botão menu hambúrguer */
    .menu-toggle {
        display: flex;
    }
    
    /* Logo menor */
    .logo h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .logo p {
        font-size: 8px;
        letter-spacing: 2px;
    }
    
    /* Botão Começar */
    .btn-nav {
        padding: 8px 18px;
        font-size: 12px;
        margin-right: 5px;
    }
    
    /* Menu mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1001;
        padding: 40px 20px;
        border-left: 1px solid rgba(0, 220, 120, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Delay para cada item do menu */
    .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.3s; }
    
    .nav-links a {
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .nav-links a::after {
        bottom: 5px;
    }
    
    /* Overlay escuro quando menu está aberto */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Botão de fechar no menu */
    .nav-links::before {
        content: "✕";
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: var(--neon-green);
        cursor: pointer;
        display: none;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s;
    }
    
    .nav-links.active::before {
        display: flex;
    }
    
    .nav-links.active::before:hover {
        background: rgba(0, 220, 120, 0.1);
        transform: rotate(90deg);
    }
}
