/* 
  Theme: QSITE Dark Modern (SaaS Style)
  Base: Bootstrap 5.3 Overrides
  Focus: Dark Mode, Rounded Blocks, Vibrant Accents.
*/

:root {
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;

    /* Layout Variables */
    --radius-xl: 32px;
    /* Super Rounded */
    --radius-lg: 24px;

    /* Dark Theme Palette */
    --bg-body: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);

    /* Accents */
    --color-primary: #8E2DE2;
    /* Roxo da referência */
    --color-primary-hover: #4A00E0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-body);
    /* Same background as Bio Module */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
}

/* Headings */
h1,
h2,
h3,
h4,
.display-1,
.display-2,
.display-3 {
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* CARDS DARK MODE */
.card,
.p-4.rounded-3,
.p-5.rounded-3,
.bg-card-custom {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    color: var(--text-primary);
    box-shadow: none !important;
}

/* NAVBAR "FLOATING ISLAND" STYLE */
.navbar {
    background-color: rgba(15, 15, 15, 0.7) !important;
    /* Mais translúcido */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Borda sutil em toda a volta */
    border: 1px solid rgba(255, 255, 255, 0.08);

    /* Posicionamento Flutuante Correto */
    position: fixed !important;
    /* Força fixed sobre sticky se houver conflito */
    top: 20px !important;

    /* Centralização Segura (Sem transform para não quebrar Offcanvas) */
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;

    width: 95%;
    /* Mobile: descola das bordas */
    max-width: 1200px;
    /* Desktop limit */
    z-index: 1030;

    /* Forma e Tamanho */
    border-radius: 100px;
    padding: 10px 20px;

    /* Espaço embaixo */
    margin-bottom: 0;

    /* Sombra para destaque */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* Offcanvas adjustment for Floating Nav */
.offcanvas {
    z-index: 1055 !important;
    /* Above nav */
}

/* Hero Buttons Mobile Stack */
@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0 !important;
        font-size: 0.95rem;
        /* Ajuste de fonte mobile */
        padding: 0.6rem 1rem;
        /* Ajuste de padding mobile */
    }
}

/* BOTÕES MODERNOS ROXOS */
.btn-primary {
    background-color: var(--color-primary) !important;
    border: none !important;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

/* APRESENTAÇÃO DOS LOGOS */
.logo-footer {
    height: 30px;
    width: auto;
}

.logo-nav {
    height: 50px;
    width: auto;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover) !important;
}

.btn-white {
    background-color: #fff;
    color: #000 !important;
    /* Force Black Text on White Button */
    border-radius: 50px;
}

/* DARK ACCORDION */
.accordion-dark .accordion-item {
    background-color: transparent !important;
    border: none;
    margin-bottom: 1rem;
}

.accordion-dark .accordion-button {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: none !important;
    font-weight: 600;
}

.accordion-dark .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-dark .accordion-button::after {
    filter: invert(1) brightness(200%);
    background-size: 1.1rem;
}

.accordion-dark .accordion-body {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 1rem 1.5rem;
    border: none;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* UTILITÁRIOS */
.tracking-wide {
    letter-spacing: 0.1em;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Gradientes Textuais */
.text-gradient {
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ajustes Específicos do Template que estavam hardcoded white */
.text-dark {
    color: #fff !important;
}

.bg-dark {
    background-color: #000 !important;
}

/* Carousel Inner Border Fix */
.carousel-inner {
    border-radius: var(--radius-xl);
}

/* Icon Boxes */
.icon-squircle {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Social Icons Hover */
.social-icon-link:hover {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    opacity: 1 !important;
}

/* Dark Mode Inputs */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(142, 45, 226, 0.25);
    /* Roxo */
}

/* Placeholder color fix */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Floating Labels fix */
.form-floating label {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Esconder placeholder quando não tem foco para não encavalar com o Label */
.form-floating>.form-control:not(:focus)::placeholder {
    color: transparent !important;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: rgba(255, 255, 255, 0.8) !important;
}