* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav {
    box-shadow: 0 8px 24px rgba(55, 101, 228, 0.15);
}

.button1 {
    background-color: #3765e4;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    color: #ebebeb;
    border: #3765e4 solid 2px;
    font-family: Arial;
    font-size: 15px;
    padding: 12px 25px;
    text-decoration: none;
    text-shadow: 0px 0px 0px #000000;

    &:hover {
        transition: 0.5s;
        background-color: #25408d;
        border: #25408d solid 2px;
    }
}

.button2 {
    background-color: transparent;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    border: #3765e4 solid 2px;
    color: #3765e4;
    font-family: Arial;
    font-size: 15px;
    padding: 12px 25px;
    text-decoration: none;
    text-shadow: 0px 0px 0px #000000;

    &:hover {
        transition: 0.5s;
        background-color: #3765e4;
        color: #ebebeb;
    }
}

main {
    & section {
        & .header {
            & h1 {
                font-size: clamp(40px, 5vw, 60px);
            }

            & p {
                font-size: clamp(20px, 3vw, 30px);
            }
        }

        & figure {
            & img {
                border: #3765e4 solid 1px;
                box-shadow: 0 8px 24px rgba(55, 101, 228, 0.15);
                width: min(400px, 90vw) !important;
                height: min(400px, 90vw) !important;
                object-fit: cover;
            }
        }
    }
}

@media (max-width: 768px) {
    .button1, .button2 {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #contato .col-12 {
        flex-direction: column;
    }

    #contato .button1, #contato .button2 {
        width: 80%;
    }
}

.azule {
    background-color: #070d18;
}

.azulc {
    background-color: #0b1220;
}

main .azule,
main .azulc,
footer.azule {
    position: relative;
    overflow: hidden;
}

main .azule::before,
main .azulc::before,
footer.azule::before {
    content: "";
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(circle at 28% 28%, rgba(34, 211, 238, 0.22), transparent 55%),
        radial-gradient(circle at 72% 62%, rgba(55, 101, 228, 0.20), transparent 58%),
        radial-gradient(circle at 55% 45%, rgba(34, 211, 238, 0.10), transparent 62%);
    filter: blur(30px);
    opacity: 0.06;
    transform: scale(1);
    animation: breatheGlow 9.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

main .azule::after,
main .azulc::after,
footer.azule::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    opacity: 0.26;
    animation: breatheDim 9.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

main .azule > *,
main .azulc > *,
footer.azule > * {
    position: relative;
    z-index: 1;
}

@keyframes breatheGlow {
    0% {
        opacity: 0.05;
        transform: scale(1) translate3d(-0.8%, -0.6%, 0);
    }
    50% {
        opacity: 0.14;
        transform: scale(1.05) translate3d(0.8%, 0.6%, 0);
    }
    100% {
        opacity: 0.05;
        transform: scale(1) translate3d(-0.8%, -0.6%, 0);
    }
}

@keyframes breatheDim {
    0% {
        opacity: 0.34;
    }
    50% {
        opacity: 0.14;
    }
    100% {
        opacity: 0.34;
    }
}

.card {
    overflow: hidden;
    height: 100%;
}

.img-card {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.swiper-pagination-bullet {
    background: #3765e4;
}

.swiper-button-next,
.swiper-button-prev {
    color: #3765e4;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

.button1:hover {
    transition: 0.5s;
    background-color: #25408d;
    border: #25408d solid 2px;
    color: #ebebeb;
}

.button2:hover {
    transition: 0.5s;
    background-color: #3765e4;
    color: #ebebeb;
}

.button1:focus-visible,
.button2:focus-visible {
    outline: 3px solid rgba(55, 101, 228, 0.5);
    outline-offset: 3px;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -200px;
    background:
        radial-gradient(circle at 30% 30%, rgba(55, 101, 228, 0.35), transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.18), transparent 55%);
    filter: blur(20px);
    animation: heroFloat 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

@keyframes heroFloat {
    from {
        transform: translate3d(-40px, -20px, 0) scale(1);
    }
    to {
        transform: translate3d(40px, 20px, 0) scale(1.05);
    }
}

#samantha-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.9);
    color: #22d3ee;
    border: 2px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1200;
}

#samantha-fab:hover {
    transform: translateY(-2px);
    transition: transform 180ms ease;
}

#samantha-panel {
    position: fixed;
    right: 18px;
    bottom: 86px;
    width: min(360px, calc(100vw - 36px));
    height: 420px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.samantha-open #samantha-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#samantha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#samantha-title {
    color: #ebebeb;
    font-weight: 700;
    letter-spacing: 0.6px;
}

#samantha-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #ebebeb;
}

#samantha-log {
    padding: 12px 14px;
    overflow: auto;
    flex: 1;
    color: rgba(235, 235, 235, 0.9);
    font-size: 14px;
    line-height: 1.35;
}

.s-msg {
    margin-bottom: 10px;
    display: flex;
}

.s-msg.user {
    justify-content: flex-end;
}

.s-msg.bot {
    justify-content: flex-start;
}

.s-bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.s-msg.user .s-bubble {
    border-color: rgba(55, 101, 228, 0.45);
    background: rgba(55, 101, 228, 0.15);
}

.s-msg.bot .s-bubble {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.10);
}

#samantha-form {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#samantha-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    color: #ebebeb;
    outline: none;
}

#samantha-input:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

#samantha-send {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.12);
    color: #ebebeb;
}

#samantha-send:hover {
    background: rgba(34, 211, 238, 0.18);
}

#samantha-mic {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.12);
    color: #ebebeb;
    min-width: 44px;
}

#samantha-mic:hover {
    background: rgba(0, 0, 0, 0.18);
}

#reactor-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1600;
}

#reactor-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), rgba(55, 101, 228, 0.85), rgba(34, 211, 238, 0.55));
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
    transition: width 120ms linear;
}

header {
    position: sticky;
    top: 0;
    z-index: 1500;
}

main,
footer {
    position: relative;
    z-index: 1;
}

#hud-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1100;
}

#hud-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 60px 60px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 60px 60px;
    opacity: 0.14;
}

#hud-overlay::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.14), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(55, 101, 228, 0.12), transparent 45%);
    filter: blur(14px);
    opacity: 0.55;
}

#hud-top-left,
#hud-top-right,
#hud-bottom-left,
#hud-bottom-right {
    position: absolute;
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(34, 211, 238, 0.85);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.25);
    padding: 12px 14px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.25);
    backdrop-filter: blur(6px);
}

#hud-top-left {
    top: 84px;
    left: 12px;
}

#hud-top-right {
    top: 84px;
    right: 12px;
}

#hud-bottom-left {
    bottom: 12px;
    left: 12px;
}

#hud-bottom-right {
    bottom: 12px;
    right: 12px;
}

.holo {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

.holo::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.14), transparent 45%),
        radial-gradient(circle at 90% 70%, rgba(55, 101, 228, 0.12), transparent 45%);
    opacity: 0.0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.holo::after {
    content: "";
    position: absolute;
    left: -120%;
    top: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.16), transparent);
    opacity: 0.0;
    pointer-events: none;
}

.holo:hover {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}

.holo:hover::before {
    opacity: 1;
}

.holo:hover::after {
    opacity: 1;
    animation: scanSweep 1.2s ease-in-out;
}

.holo.tilting::before {
    opacity: 1;
}

@keyframes scanSweep {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(240%);
    }
}

body.scan #hud-overlay::before {
    opacity: 0.22;
}

body.scan #hud-overlay {
    animation: hudFlicker 2.8s ease-in-out infinite;
}

@keyframes hudFlicker {
    0% { opacity: 1; }
    8% { opacity: 0.92; }
    10% { opacity: 1; }
    55% { opacity: 0.96; }
    56% { opacity: 1; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero::before {
        animation: none;
    }

    #samantha-fab:hover {
        transform: none;
    }

    .holo,
    .holo:hover {
        transform: none;
        transition: none;
    }

    .holo:hover::after {
        animation: none;
    }

    body.scan #hud-overlay {
        animation: none;
    }
    main .azule::before,
    main .azulc::before,
    footer.azule::before,
    main .azule::after,
    main .azulc::after,
    footer.azule::after {
        animation: none;
    }
}
