@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Variáveis do Tema */
:root {
    /* Tema Colorido (Padrão) */
    --primary-color: hsl(250, 66%, 75%);
    --primary-gradient-start: hsl(250, 66%, 75%);
    --primary-gradient-end: hsl(280, 66%, 85%);
    --secondary-gradient-start: hsl(250, 66%, 75%);
    --secondary-gradient-end: hsl(280, 66%, 75%);
    --star-color: #fff;
    --star-alt-color: hsl(250, 66%, 75%);
    --star-alt-color-2: #a8d8ff;
}

body.mono-theme {
    /* Tema Monocromático */
    --primary-color: #fff;
    --primary-gradient-start: #f5f5f5;
    --primary-gradient-end: #fff;
    --secondary-gradient-start: #e0e0e0;
    --secondary-gradient-end: #fff;
    --star-color: #888;
    --star-alt-color: #666;
    --star-alt-color-2: #555;
    background: #0a0a0a;
}

html{
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    position: relative;
    scroll-behavior: smooth;
    outline: 0;
}

body{
    background-color: #000;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.5s ease, opacity 0.2s ease;
}

/* Ensure content stays on top of the astronaut hands */
main section {
    position: relative;
    z-index: 20;
}

/* Transições globais para mudança de tema */
* {
    transition: color 0.5s ease, background 0.5s ease, border-color 0.5s ease, filter 0.5s ease;
}

.topo-do-site .img-topo-site img {
    transition: transform 0.8s ease, opacity 0.4s ease, filter 0.5s ease;
}

.img-sobre img, .carousel-track {
    transition: transform 0.5s ease, filter 0.5s ease;
}

button, .btn-enviar input[type=submit] {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.5s ease, color 0.5s ease;
}


.container{
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1; 
}

.bolhas{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Overlay de atmosfera/neblina sutil */
.bolhas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 100%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(168, 216, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.bolhas span{
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(0.5px);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    bottom: 0;
    opacity: 0;
    animation: flutuar-particula 22s ease-in-out infinite;
    will-change: transform, opacity;
}

.bolhas span:nth-of-type(3n){
    background: rgba(138, 43, 226, 0.6);
    width: 6px;
    height: 6px;
    filter: blur(0.5px);
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

.bolhas span:nth-of-type(5n){
    background: rgba(168, 216, 255, 0.5);
    width: 4px;
    height: 4px;
    filter: blur(0.5px);
    box-shadow: 0 0 6px rgba(168, 216, 255, 0.4);
}

/* Animacao de flutuacao suave - sobe devagar com movimento lateral */
@keyframes flutuar-particula {
    0% {
        transform: translate3d(0, 0, 0) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
        transform: translate3d(10px, -5vh, 0) scale(1);
    }
    25% {
        transform: translate3d(-20px, -25vh, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(25px, -50vh, 0) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translate3d(-15px, -75vh, 0) scale(0.7);
        opacity: 0.5;
    }
    100% {
        transform: translate3d(10px, -100vh, 0) scale(0.4);
        opacity: 0;
    }
}

@keyframes piscar {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}



/* Astronaut Hands Background - Based on Quasar Landing Page */
.astronaut-hands {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120vh; /* Increased height to prevent top cut-off */
    /* max-height removed */
    transform: translateY(0); 
    z-index: 0;
    pointer-events: none;
    
    background-image: url(https://cdn.quasar.dev/img/landing-page/astronaut-left-hand.png), url(https://cdn.quasar.dev/img/landing-page/astronaut-right-hand.png);
    background-size: 60vw, 60vw;
    /* Adjusted vertical position to lower the right hand slightly */
    background-position: left bottom, calc(100% + 25px) calc(100% - 12vw);
    background-repeat: no-repeat, no-repeat;
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .astronaut-hands {
        background-size: 45vw, 45vw; 
        background-position: left bottom, calc(100% + 40px) calc(100% - 14vw);
    }
}

/* Hide legacy elements if they remain in DOM */
.astronaut-hand {
    display: none;
}

.interface{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 29px;
}

.btn-contato button{
    padding: 12px 28px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contato button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.music {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.title {
    font-size: 10px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player {
    display: flex;
    align-items: center;
}

.btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btns span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s ease;
}

.btns span:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btns span.playPause {
    width: 32px;
    height: 32px;
}

.btns span ion-icon {
    font-size: 14px;
}

.btns span.playPause ion-icon {
    font-size: 16px;
}

.btn-contato-topo {
    margin-top: 40px;
}

.btn-contato-topo button{
    padding: 16px 35px;
    font-size: 15px;
    color: #000;
    font-weight: 600;
    background: linear-gradient(135deg, var(--secondary-gradient-start), var(--secondary-gradient-end));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

.btn-contato-topo button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.5);
}

.btn-contato-topo button i{
    margin-right: 8px;
    font-size: 16px;
}

button:hover,
form .btn-enviar input:hover[type=submit],
.btn-social button:hover {
    box-shadow: 0px 0px 8px var(--primary-color);
    transform: scale(1.05);
}

header .interface .logo a:hover img {
    filter: drop-shadow(0px 0px 20px var(--primary-color));
    transform: scale(1.05);
}

h2.titulo{
    color: #fff;
    font-size: 38px;
    text-align: center;
    margin-top: 80px;
}

h2.titulo span{
    color: var(--primary-color);
}

header{
    padding: 30px 4%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, background 0.4s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

header > .interface{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.logo img {
    max-width: 120px;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

.menu-desktop {
    display: flex;
}

.menu-desktop ul{
    list-style: none;
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.menu-desktop a{
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.menu-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.menu-desktop a:hover{
    color: #fff;
}

.menu-desktop a:hover::after {
    width: 100%;
}

.btn-abrir-menu {
    display: none;
}

.btn-abrir-menu i{
    color: var(--primary-color);
    font-size: 40px;
    cursor: pointer;
}

.btn-abrir-menu:hover{
    transform: scale(1.1);
}

.menu-mobile{
    background-color: #000;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0%;
    overflow: hidden;
    transition: .5s;
}

.menu-mobile.abrir-menu{
    width: 45%;
}

.menu-mobile.abrir-menu ~ .overlay-menu{
    display: block;
}

.menu-mobile nav ul{
    text-align: right;
}

.menu-mobile nav ul li a{
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    padding: 20px 8%;
    display: block;
    overflow: hidden;
}

.menu-mobile nav ul li a:hover{
    background-color: var(--primary-color);
    color: #000;
}

.overlay-menu{
    background-color: #000000a7;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
}

.menu-mobile .btn-fechar{
    padding: 20px 5%;
    cursor: pointer;
}

.menu-mobile .btn-fechar i{
    color: var(--primary-color);
    font-size: 30px;
}

.menu-mobile-theme {
    padding: 25px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    display: block;
}

.theme-switcher-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.theme-label-mobile {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-label-mobile:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.switch-mobile {
    position: relative;
    width: 54px;
    height: 28px;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.switch-mobile:active {
    transform: scale(0.95);
}

.switch-mobile input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider-mobile {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s;
    border-radius: 4px;
}

.slider-mobile:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    transition: all 0.4s;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.switch-mobile input:checked + .slider-mobile {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.switch-mobile input:checked + .slider-mobile:before {
    transform: translateX(26px);
    background: #fff;
}

.slider-mobile:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 480px) {
    .theme-label-mobile {
        font-size: 14px;
    }

    .switch-mobile {
        width: 50px;
        height: 26px;
    }

    .slider-mobile:before {
        height: 18px;
        width: 18px;
    }

    .switch-mobile input:checked + .slider-mobile:before {
        transform: translateX(24px);
    }

    .carousel-container {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn i {
        font-size: 20px;
    }

    .img-port {
        height: 350px;
    }
}

.topo-do-site {
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.topo-do-site .interface {
    width: 100%;
}

section .topo-do-site .flex{
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.topo-do-site .txt-topo-site{
    flex: 1 1 auto;
    max-width: 750px;
    min-width: 0;
}

.topo-do-site h1{
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 20px;
}

.topo-do-site .txt-topo-site span{
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.topo-do-site p{
    color: #ccc;
    margin: 25px 0;
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
}

.topo-do-site .img-topo-site{
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    margin-left: auto;
}

.topo-do-site .img-topo-site img{
    position: relative;
    animation: flutuar 3s ease-in-out infinite alternate;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
    transition: transform 0.8s ease, opacity 0.4s ease;
    cursor: pointer;
    will-change: transform;
}

@keyframes flutuar {
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(-20px);
    }
}

.especialidades{
    padding: 100px 4%;
}

section.especialidades .flex{
    gap: 60px;
}

.especialidades .especialidades-box{
    color: #fff;
    padding: 45px 35px;
    border-radius: 20px;
    margin-top: 45px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.especialidades .especialidades-box:hover{
    transform: translateY(-10px);
    background: rgba(138, 43, 226, 0.05);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
}

.especialidades .especialidades-box i{
    font-size: 60px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.especialidades .especialidades-box:hover i{
    transform: scale(1.1);
}

.especialidades .especialidades-box h3{
    font-size: 26px;
    margin: 20px 0 15px;
    font-weight: 600;
}

.especialidades .especialidades-box p{
    color: #ccc;
    line-height: 1.7;
    font-size: 15px;
}

section .flex img{
    border-radius: 50%;
    position: relative;
    animation: flutuar 4s ease-in-out infinite alternate;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.2);
    transition: transform 0.8s ease;
    cursor: pointer;
    will-change: transform;
}

.sobre{
    padding: 120px 4%;
    background: rgba(255, 255, 255, 0.01);
}

section .sobre .flex{
    align-items: center;
    gap: 60px;
}

.sobre .txt-sobre{
    color: #fff;
}

.sobre .txt-sobre h2{
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 600;
}

.sobre .txt-sobre h2 span{
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.sobre .txt-sobre p{
    margin: 20px 0;
    text-align: justify;
    color: #ccc;
    line-height: 1.8;
    font-size: 16px;
}


.btn-social button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.btn-social button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}


.portfolio{
    padding: 100px 4%;
}

/* Carrossel de Projetos */
.carousel-container {
    position: relative;
    margin-top: 60px;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 0; /* Sem borda arredondada */
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-item {
    min-width: calc((100% - 60px) / 3);
    flex-shrink: 0;
    height: 460px; /* Altura fixa para todos os cards */
}

.carousel-item .img-port {
    width: 100%;
    height: 100%; /* Preenche todo o container */
    max-width: none; /* Remove limite de largura */
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn i {
    font-size: 28px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.15);
}

.carousel-btn:focus,
.carousel-btn:active {
    outline: none;
    box-shadow: none;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 40px;
    border-radius: 20px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.img-port{
    width: 100%;
    max-width: 360px;
    height: 460px;
    background-size: cover;
    background-position: 100% 0%; /* Volta ao efeito de scroll original */
    cursor: pointer;
    border-radius: 0; /* Teste: Sem borda arredondada */
    position: relative;
    overflow: hidden;
    transition: background-position 2.5s ease-in-out, transform 0.3s ease;
    border: none; /* Remove a linha branca */
}

.img-port:hover{
    background-position: 100% 100%;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--main-color);
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay mais leve */
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overlay h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.overlay p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 90%;
}

.overlay .status-test {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.overlay button {
    padding: 10px 24px;
    font-size: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.overlay button:hover {
    transform: scale(1.05);
    background: #fff;
}

.overlay:hover{
    opacity: 1;
}

.formulario{
    padding: 100px 4%;
}

form{
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

form input, form textarea{
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: 0;
    padding: 18px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus{
    border-color: var(--primary-color);
    background: rgba(138, 43, 226, 0.05);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

form input::placeholder, form textarea::placeholder{
    color: #888;
}

form textarea{
    resize: vertical;
    min-height: 150px;
}

form .btn-enviar{
    margin-top: 10px;
    text-align: center;
}

form .btn-enviar input[type=submit]{
    width: 180px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--secondary-gradient-start), var(--secondary-gradient-end));
    color: #000;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

form .btn-enviar input[type=submit]:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.5);
}


footer{
    padding: 80px 4% 40px;
    background: transparent;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.logo-footer img {
    max-width: 140px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-bottom i {
    color: var(--primary-color);
    font-size: 16px;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.btn-up{
    position: fixed;
    bottom: 200px;
    right: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    border: none;
    background-color: transparent;
}

.btn-up.show {
    opacity: 1;
    visibility: visible;
}

.btn-up img{
    max-width: 74px;
    transition: transform 0.4s;
}

.btn-up img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

a {
    cursor: pointer;
    text-decoration: none;
}

@media screen and (max-width: 1020px) {
    .flex{
        flex-direction: column-reverse;
    }

    h2.titulo{
        font-size: 34px;
        line-height: 30px;
    }
    
    .menu-desktop, .btn-contato{
        display: none;
    }

    header > .interface {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
    }

    .logo {
        grid-column: 1;
        justify-self: start;
    }

    .music {
        grid-column: 2;
        justify-self: center;
    }

    .music .title {
        font-size: 8px;
    }

    .btns {
        gap: 6px;
    }

    .btns span {
        width: 24px;
        height: 24px;
    }

    .btns span ion-icon {
        font-size: 12px;
    }

    .btns span.playPause {
        width: 28px;
        height: 28px;
    }

    .btns span.playPause ion-icon {
        font-size: 14px;
    }

    .btn-abrir-menu {
        display: block;
        grid-column: 3;
        justify-self: end;
    }

    .theme-switcher {
        display: none !important;
    }

    header .theme-switcher {
        display: none !important;
    }

    body.mono-theme .music .title {
        color: #fff;
        letter-spacing: 2.5px;
        font-weight: 600;
    }

    body.mono-theme .overlay {
        letter-spacing: 3px;
    }

    .topo-do-site .flex{
        gap: 50px;
    }

    .topo-do-site .txt-topo-site{
        max-width: 100%;
    }

    .topo-do-site {
        min-height: auto;
        padding: 60px 0;
    }
    
    .topo-do-site h1{
        font-size: 32px;
        line-height: 1.3;
    }
    
    .topo-do-site p {
        font-size: 16px;
    }
    
    .topo-do-site .img-topo-site{
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 350px;
        margin: 0 auto;
        margin-left: auto;
        margin-right: auto;
    }

    .topo-do-site .img-topo-site img{
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .especialidades{
        padding: 40px 8%;
    }

    .sobre{
        padding: 80px 8%;
    }

    .sobre .txt-sobre h2{
        font-size: 34px;
        line-height: 35px;
        text-align: center;
    }

    .btn-social{
        text-align: center;
    }

    .img-sobre img{
        width: 100%;
    }

    .portfolio{
        padding: 80px 8%;
    }

    .carousel-container {
        padding: 0 50px;
    }

    .carousel-item {
        min-width: 100%;
    }

    .carousel-track {
        gap: 0;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 24px;
    }

    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }

    .img-port{
        width: 100%;
        max-width: 100%;
        height: 400px;
        margin: 0 auto;
    }

    .carousel-dots {
        margin-top: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    footer {
        padding: 60px 4% 30px;
    }

    .btn-up{
        position: fixed;
        bottom: 230px;
        right: 20px;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
        border: none;
        background-color: transparent;
    }

    .btn-up img{
        width: 50px;
    }
    

}

::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-thumb{
    width: 10px;
    background-color: var(--primary-color);
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.theme-label {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-label:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.switch {
    position: relative;
    width: 50px;
    height: 26px;
    transition: transform 0.2s ease;
}

.switch:active {
    transform: scale(0.95);
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
    border-radius: 4px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    transition: all 0.4s;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background: #fff;
}

.slider:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   TEMA MONOCROMÁTICO - MUDANÇAS DE LAYOUT
   ======================================== */

body.mono-theme {
    font-family: 'Courier New', monospace;
}

/* Header mais compacto e minimalista */
body.mono-theme header {
    background: #000;
    border-bottom: 2px solid #333;
    backdrop-filter: none;
}

body.mono-theme .theme-label {
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

body.mono-theme .theme-label:hover {
    color: #aaa;
}

body.mono-theme .logo img {
    filter: grayscale(100%) brightness(1.2);
}

/* Menu com estilo minimalista */
body.mono-theme .menu-desktop a {
    color: #aaa;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

body.mono-theme .menu-desktop a::after {
    height: 2px;
    background: #fff;
}

body.mono-theme .menu-desktop a:hover {
    color: #fff;
}

/* Botões com estilo angular */
body.mono-theme .btn-contato button,
body.mono-theme .btn-contato-topo button {
    border-radius: 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 #333;
}

body.mono-theme .btn-contato button:hover,
body.mono-theme .btn-contato-topo button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #333;
}

/* Topo do site com layout grid */
body.mono-theme .topo-do-site h1 {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    text-transform: uppercase;
}

body.mono-theme .topo-do-site p {
    color: #999;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

body.mono-theme .topo-do-site .img-topo-site{
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    margin-left: auto;
}

body.mono-theme .topo-do-site .img-topo-site img {
    filter: grayscale(100%) contrast(1.2);
    border-radius: 50%;
    border: none;
    box-shadow: none;
    animation: none;
    clip-path: none;
    transition: transform 0.8s ease, opacity 0.4s ease;
    cursor: pointer;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Títulos com estilo minimalista */
body.mono-theme h2.titulo {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

body.mono-theme h2.titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
}

body.mono-theme h2.titulo span {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

/* Especialidades com layout grid diferente */
body.mono-theme .especialidades .especialidades-box {
    border-radius: 0;
    background: #000;
    border: 2px solid #333;
    box-shadow: 6px 6px 0 #1a1a1a;
    transition: all 0.3s ease;
}

body.mono-theme .especialidades .especialidades-box:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #1a1a1a;
    border-color: #fff;
    background: #111;
}

body.mono-theme .especialidades .especialidades-box i {
    color: #fff;
}

body.mono-theme .especialidades .especialidades-box h3 {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.mono-theme .especialidades .especialidades-box p {
    color: #999;
    font-family: 'Courier New', monospace;
}

/* Seção Sobre com layout alterado */
body.mono-theme .sobre {
    background: #000;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

body.mono-theme .sobre .txt-sobre h2,
body.mono-theme .sobre .txt-sobre h2 span {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

body.mono-theme .sobre .txt-sobre p {
    color: #aaa;
    font-family: 'Courier New', monospace;
}

body.mono-theme .sobre .flex img {
    border-radius: 50%;
    border: none;
    box-shadow: none;
    filter: grayscale(100%) contrast(1.2);
    animation: flutuar 4s ease-in-out infinite alternate;
    transition: transform 0.8s ease;
    cursor: pointer;
}

/* Botões sociais quadrados */
body.mono-theme .btn-social button {
    border-radius: 0;
    border: 2px solid #fff;
    background: #000;
    width: 45px;
    height: 45px;
    box-shadow: 4px 4px 0 #333;
}

body.mono-theme .btn-social button:hover {
    background: #fff;
    color: #000;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #333;
}

/* Portfólio com grid alterado */
body.mono-theme .carousel-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: none;
}

body.mono-theme .carousel-btn:hover,
body.mono-theme .carousel-btn:hover i {
    color: #fff;
}

body.mono-theme .carousel-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

body.mono-theme .carousel-wrapper {
    border-radius: 0;
}

body.mono-theme .dot {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #555;
    border-radius: 0;
}

body.mono-theme .dot.active {
    background: #fff;
    border-color: #fff;
    border-radius: 0;
}

body.mono-theme .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

body.mono-theme .img-port {
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.5s ease;
    filter: grayscale(100%) contrast(1.3);
    background-position: center top;
}

body.mono-theme .img-port:hover {
    transform: translateY(-5px);
    box-shadow: none;
    background-position: center center;
}

body.mono-theme .overlay {
    background: rgba(0, 0, 0, 0.98);
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.5s ease;
    border: none;
    padding: 20px;
}

body.mono-theme .img-port:hover .overlay {
    opacity: 0;
}

/* Mobile - overlay com opacidade reduzida para ver a imagem */
@media screen and (max-width: 1020px) {
    body.mono-theme .overlay {
        opacity: 0 !important;
        background: rgba(0, 0, 0, 0.85);
        font-size: 18px;
        padding: 15px;
    }

    body.mono-theme .img-port:active .overlay {
        opacity: 1 !important;
    }

    /* Garantir que as imagens apareçam no mobile monocromático */
    body.mono-theme .img-port {
        background-position: center center;
    }
}

/* Formulário minimalista */
body.mono-theme form input,
body.mono-theme form textarea {
    border-radius: 0;
    background: #000;
    border: 2px solid #333;
    color: #fff;
    font-family: 'Courier New', monospace;
}

body.mono-theme form input:focus,
body.mono-theme form textarea:focus {
    border-color: #fff;
    background: #111;
    box-shadow: 4px 4px 0 #333;
}

body.mono-theme form .btn-enviar input[type=submit] {
    border-radius: 0;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    box-shadow: 6px 6px 0 #333;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.mono-theme form .btn-enviar input[type=submit]:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #333;
}

/* Footer minimalista */
body.mono-theme footer {
    background: #000;
    border-top: 2px solid #333;
}

body.mono-theme .footer-bottom {
    border-top: 2px solid #333;
}

body.mono-theme .footer-bottom p {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

body.mono-theme .logo-footer img {
    filter: grayscale(100%) brightness(1.2);
}

/* Estrelas mais sutis */
body.mono-theme .bolhas span {
    opacity: 0.3;
    filter: none;
    background: #666;
}

body.mono-theme .bolhas span:nth-of-type(3n) {
    background: #555;
    filter: none;
}

body.mono-theme .bolhas span:nth-of-type(5n) {
    background: #444;
    filter: none;
}

/* Scrollbar minimalista */
body.mono-theme::-webkit-scrollbar-thumb {
    background-color: #fff;
}

/* Menu mobile */
body.mono-theme .menu-mobile {
    background: #000;
    border-left: 2px solid #333;
}

body.mono-theme .menu-mobile nav ul li a {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}

body.mono-theme .menu-mobile nav ul li a:hover {
    background: #fff;
    color: #000;
}

body.mono-theme .menu-mobile-theme {
    border-top: 2px solid #333;
}

body.mono-theme .theme-label-mobile {
    font-family: 'Courier New', monospace;
    color: #fff;
    letter-spacing: 3px;
}

body.mono-theme .theme-label-mobile:hover {
    color: #aaa;
}

body.mono-theme .slider-mobile {
    border: 2px solid #555;
    background: rgba(255, 255, 255, 0.05);
}

body.mono-theme .slider-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
}


body.mono-theme .btn-up img {
    filter: grayscale(100%) brightness(1.5);
    border-radius: 50%;
    border: none;
}

body.mono-theme .btn-up img:hover {
    transform: scale(1.2);
    filter: grayscale(100%) brightness(1.8) drop-shadow(0 0 15px #fff);
}

/* Player de música minimalista */
body.mono-theme .music .title {
    font-family: 'Courier New', monospace;
    color: #666;
}

body.mono-theme .btns span {
    border-radius: 0;
    border: none;
    background: transparent;
}

body.mono-theme .btns span:hover {
    background: transparent;
    color: #fff;
    border: none;
}

/* Sistema Solar no tema monocromático */
body.mono-theme .solar {
    padding: 400px 4%;
}

body.mono-theme .sun {
    filter: grayscale(100%) brightness(1.5);
    box-shadow: 0 0 40px #fff, 0 0 80px #aaa;
}

body.mono-theme .mercury,
body.mono-theme .venus,
body.mono-theme .earth,
body.mono-theme .mars,
body.mono-theme .jupiter,
body.mono-theme .saturn,
body.mono-theme .urans,
body.mono-theme .neptune {
    filter: grayscale(100%) brightness(1.2);
    box-shadow: 0 0 20px #888;
}

body.mono-theme .saturn {
    box-shadow: none;
}

body.mono-theme .earth-inner {
    background: #fff;
    box-shadow: 0 0 5px #fff;
}

body.mono-theme .earth-circle {
    border-color: #666;
}

body.mono-theme .solar .interface p {
    color: #ccc;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Footer positioning context for astronaut hands */
footer {
    position: relative;
    z-index: 10;
    overflow: visible; /* Allow hands to extend upwards */
}