﻿/* =========================================================
   Starlight Tecnologia - site.css
   Paleta: Azul elétrico / Ciano / Cinza espacial / Branco
   Tipografia: Orbitron (logo), Poppins (textos)
   ========================================================= */

/* ---------- CSS Variables (theme) ---------- */
:root {
    --bg-dark: #0A0F1F; /* fundo principal */
    --bg-dark-2: #071025; /* gradiente escuro */
    --blue-electric: #007BFF; /* azul principal */
    --ciano: #00E5FF; /* destaque ciano */
    --space-gray: #1C1C1E; /* cinza escuro */
    --white: #FFFFFF;
    --muted: #A9B3C2;
    --accent-gold: #FFD700; /* opcional */
    --glass: rgba(255,255,255,0.03);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 8px 24px rgba(2,6,23,0.6);
    --glow: 0 0 12px rgba(0,229,255,0.12), 0 0 28px rgba(0,123,255,0.06);
    --transition: 240ms cubic-bezier(.2,.9,.3,1);
}

/* ---------- Base / Reset ---------- */
* {
    box-sizing: border-box
}

html, body, #app {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg,var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
}

/* Utility */
.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-muted {
    color: whitesmoke;
}

/* ---------- Topbar / Navbar ---------- */
.topbar {
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 8px 0;
}

.navbar-starlight {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

    .brand .logo-square {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: linear-gradient(135deg,var(--bg-dark-2), rgba(0,0,0,0.12));
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-soft);
    }

        .brand .logo-square img {
            width: 28px;
            height: 28px;
            display: block;
        }

    .brand .brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1;
    }

        .brand .brand-text .title {
            font-family: "Orbitron",sans-serif;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: var(--white);
            font-size: 18px;
        }

        .brand .brand-text .subtitle {
            font-size: 11px;
            color: var(--muted);
            margin-top: 2px;
        }

/* Nav links */
.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

    .nav-links a {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        /*padding: 8px 10px;*/
        border-radius: 8px;
        transition: var(--transition)
    }

        .nav-links a:hover {
            background: var(--glass);
            transform: translateY(-2px)
        }

.navbar-nav .nav-item .nav-link.active {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    line-height: 1.25rem !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    color: #00e5ff !important;
    border-bottom: 2px solid #00e5ff;
}

html {
    scroll-behavior: smooth;
}

/* Corrige o offset para seções âncoras (por causa do fixed-top) */
section {
    scroll-margin-top: 100px; /* ajuste conforme a altura da navbar */
}

/* CTA */
.btn-cta {
    background: linear-gradient(90deg,var(--ciano), var(--blue-electric));
    color: var(--space-gray);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: var(--glow);
    border: none;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 70px 0 56px;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    gap: 48px;
    align-items: center;
}

.hero-left {
    flex: 1;
    max-width: 760px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Headline */
.hero-title {
    font-size: 44px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--white);
    line-height: 1.06;
}

    .hero-title .highlight {
        color: var(--ciano);
        font-weight: 700
    }

.hero-sub {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 20px;
}

/* Feature list under hero */
.hero-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.feature-pill {
    background: rgba(255,255,255,0.02);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.025);
}

/* Hero logo preview */
.hero-logo {
    width: 320px;
    height: 320px;
    background: linear-gradient(180deg, rgba(0,0,0,0.12), transparent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

    .hero-logo img {
        width: 60%;
        height: auto;
    }

@media (max-width:992px) {
    .hero {
        padding: 56px 0;
    }

    .hero-inner {
        flex-direction: column-reverse;
        gap: 22px
    }

    .hero-logo {
        width: 220px;
        height: 220px
    }

    .hero-title {
        font-size: 30px
    }

    .brand .brand-text .title {
        font-size: 16px
    }

    .nav-links {
        display: none
    }
    /* collapse to burger - handled by Blazor/Bootstrap */
}

/* ---------- Section: About / Features ---------- */
.section {
    padding: 56px 0;
    border-top: 1px solid rgba(255,255,255,0.02)
}

    .section .section-title {
        font-size: 26px;
        margin-bottom: 12px;
        font-weight: 600
    }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px
}

@media (max-width:992px) {
    .grid-3 {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:600px) {
    .grid-3 {
        grid-template-columns: 1fr
    }
}

/* Card */
.card-starlight {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.03);
}

    .card-starlight .card-title {
        font-weight: 600;
        margin-bottom: 8px
    }

    .card-starlight .card-desc {
        color: var(--muted);
        font-size: 14px;
        margin-bottom: 12px
    }

    .card-starlight .chip {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(0,229,255,0.06);
        color: var(--ciano);
        font-weight: 600;
        font-size: 13px
    }

/* Small project preview */
.project-thumb {
    height: 160px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,123,255,0.06), rgba(0,229,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.02);
}

/* ---------- Project showcase (carousel / list) ---------- */
.projects-list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px
}

    .projects-list::-webkit-scrollbar {
        height: 8px
    }

    .projects-list::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.06);
        border-radius: 6px
    }

.navbar-brand {
    color: #00e5ff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* ===== Navbar Starlight ===== */
/*.starlight-nav {
    background: linear-gradient(90deg, #020617, #041029);
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
    z-index: 1000;
}*/

/* Enforce logo sizing so bootstrap or inline image size doesn't break layout */
/*.starlight-logo {
    display: block;
    height: 36px;*/ /* explicit height for navbar */
    /*max-height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px #00e5ff);
}

.navbar-brand {
    color: #00e5ff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}*/
/* Corrige o desalinhamento e estilo do link ativo */
/*.navbar .nav-item .nav-link.active,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.active {
    color: #00e5ff !important;
    font-weight: 500 !important;
    background: none !important;
    border-bottom: 2px solid #00e5ff !important;
    padding-bottom: 4px !important;
    transform: none !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
}*/


/* Mantém os outros links uniformes */
/*.navbar .nav-item .nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;*/
    /*padding: 8px 12px;*/
    /*transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}*/

    /* Efeito hover com brilho */
    /*.navbar .nav-item .nav-link:hover {
        color: #00bcd4 !important;
        transform: translateY(-1px);
    }*/

/* ======== MENU SUPERIOR STARLIGHT ======== */
.starlight-nav {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, #0b0c10 0%, #111827 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.starlight-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.6));
}

/* ======= CORREÇÃO FINAL DO NAVBAR STARLIGHT ======= */

/* Corrige o alinhamento vertical em telas grandes */
.navbar-nav {
    display: flex;
    align-items: center;
}

    /* Uniformiza todos os links (inclusive o ativo) */
    .navbar-nav .nav-item .nav-link,
    .navbar-nav .nav-item .nav-link.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center;
        color: #e0e0e0 !important;
        font-weight: 500;
        padding: 0.6rem 1rem !important;
        line-height: 1.5 !important;
        height: 100%;
        transition: color 0.25s ease, border-color 0.25s ease;
        background: none !important;
        border: none !important;
    }

        /* Corrige o link ativo do Blazor/Bootstrap */
        .navbar-nav .nav-item .nav-link.active {
            color: #00e5ff !important;
            border-bottom: 2px solid #00e5ff !important;
            padding-bottom: calc(0.6rem - 2px) !important;
        }

        /* Hover glow */
        .navbar-nav .nav-item .nav-link:hover {
            color: #00bcd4 !important;
        }

/* Ajusta a logo e mantém tudo no mesmo eixo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00e5ff !important;
    font-weight: 600;
    text-decoration: none;
    margin-right: 1rem;
}

/* Garante que o container do navbar centralize tudo bem */
.starlight-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Corrige diferença entre modo mobile e desktop */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        align-items: center !important;
    }
}



/* ===== Ajustes Gerais ===== */
body {
    padding-top: 70px; /* espaço pra navbar fixa */
    background-color: #0b0f1f;
    color: #f3f4f6;
}

/* ===== Hero Section ===== */
.hero {
    background: radial-gradient(circle at top left, #00112a, #010713);
    /*background-image: url('../images/banner-bg.png');*/
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 140px 20px;
    text-align: center;
    color: #ffffff;
}

    .hero h1 {
        font-size: 3rem;
        color: #00e5ff;
        text-shadow: 0 0 10px #00e5ff;
    }

    .hero .subtitle {
        color: #b0c7ff;
        font-size: 1.3rem;
        margin-top: 1rem;
    }

.hero-btn {
    margin-top: 2rem;
    background-color: #00e5ff !important;
    color: #0b0f1f !important;
    border-radius: 8px;
    transition: transform 0.3s;
}

    .hero-btn:hover {
        transform: scale(1.05);
    }

/* ===== Serviços ===== */
.services {
    background: linear-gradient(180deg, #0b0f1f, #0f1629);
    padding: 80px 0;
    text-align: center;
}

    .services h2 {
        color: #00e5ff;
        margin-bottom: 40px;
    }

.service-card {
    background: #111a30;
    color: #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-6px);
    }

    .service-card .icon {
        font-size: 2rem;
        color: #00e5ff;
        margin-bottom: 10px;
    }

/* ===== Footer ===== */
.footer {
    background-color: #020617;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ---------- Favicon / small logo (square) ---------- */
.favicon-square {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--bg-dark-2), rgba(0,0,0,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.02);
}

/* ---------- Decorative: circuit background (subtle) ---------- */
.circuit-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: radial-gradient(circle at 10% 10%, rgba(0,229,255,0.08) 0px, transparent 30%), linear-gradient(180deg, transparent, transparent);
    mix-blend-mode: screen;
}

/* ---------- Small animations ---------- */
.pulse {
    animation: pulseGlow 2.8s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(0,229,255,0.06)
    }

    50% {
        box-shadow: 0 0 22px rgba(0,229,255,0.12)
    }

    100% {
        box-shadow: 0 0 0 rgba(0,229,255,0.06)
    }
}



/* Ajusta CTA e títulos no mobile */
@media (max-width: 480px) {

    .hero-title {
        font-size: 1.8rem !important;
        line-height: 2.1rem !important;
        padding: 0 10px;
        word-wrap: break-word;
    }

    .hero-sub {
        font-size: 1rem !important;
        padding: 0 12px;
        max-width: 100%;
        word-wrap: break-word;
    }

    .btn-cta {
        font-size: 0.9rem !important;
        padding: 12px 8px !important;
        display: block;
        width: 100%;
        white-space: normal; /* Permite quebrar linha */
        word-break: break-word;
    }

    #contact .btn-cta {
        font-size: 0.85rem !important;
        padding: 10px !important;
    }

    .section-title {
        padding: 0 10px;
        word-wrap: break-word;
    }
}


/* ---------- Utility small helpers ---------- */
.text-ciano {
    color: var(--ciano)
}

.small {
    font-size: 13px
}

.kicker {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--muted)
}

/* ---------- Accessibility: focus states ---------- */
a:focus, button:focus, input:focus {
    outline: 2px dashed rgba(0,229,255,0.14);
    outline-offset: 3px;
    transition: outline-offset 100ms;
}

/* ---------- MatBlazor tweaks (optional) ----------
   If MatBlazor components need override, add rules here.
   Example: make MatButton use our CTA style */
.mat-button {
    border-radius: 10px !important;
    text-transform: none !important;
}

/* ---------- Carrousel ---------- */
/* ===== Carousel Services ===== */
#servicesCarousel .carousel-inner {
    padding: 20px 0;
}

#servicesCarousel .carousel-item {
    transition: transform 0.8s ease, opacity 0.8s ease;
}

#servicesCarousel .service-card {
    background: linear-gradient(180deg, #111a30, #0f1629);
    border: 1px solid rgba(0,229,255,0.08);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    color: #e5e7eb;
}

#servicesCarousel .icon {
    font-size: 2.4rem;
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff;
}

#servicesCarousel .carousel-control-prev-icon,
#servicesCarousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 6px rgba(0,229,255,0.8));
}

#servicesCarousel .carousel-indicators button {
    background-color: #00e5ff;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

#servicesCarousel .carousel-indicators .active {
    background-color: #00bcd4;
}

/* botão checkbox estilo Starlight */
.btn-outline-ciano {
    color: #00e5ff;
    border-color: rgba(0,229,255,0.18);
}

    .btn-outline-ciano:hover,
    .btn-outline-ciano:focus {
        color: #001022;
        background: linear-gradient(90deg, #00e5ff, #007bff);
        border-color: rgba(0,229,255,0.28);
        color: #fff;
        box-shadow: 0 6px 18px rgba(0,229,255,0.06);
    }

/* estado ativo (quando .btn-check is checked + label gets active via :checked sibling) */
.btn-check:checked + .btn-outline-ciano {
    background: linear-gradient(90deg, rgba(0,229,255,1), rgba(0,123,255,1));
    color: #041123;
    border-color: rgba(0,229,255,0.9);
    box-shadow: 0 6px 28px rgba(0,229,255,0.12);
}

/* small tweak to keep labels consistent on mobile */
.btn-outline-ciano {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem;
    border-radius: 8px;
}

input.form-control {
    min-height: 38px; /* altura padrão do Bootstrap */
    padding: 0.375rem 0.75rem;
}
