/********** Template CSS **********/
:root {
    --primary: #f38f07;
    --second: #e12227;
    --light: #F8F8F8;
    --dark: #252525;
}

.text-p {
    color: var(--primary) !important;
}

.text-s {
    color: var(--second) !important;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** overlay ***/
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--second);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pulse-icon img {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn.btn-primary:hover,
.btn.btn-secondary:hover {
    color: #FFFFFF;
    background-color: var(--second);
    border-color: var(--second);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 38px;
    height: 38px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: #fff;
    border-color: #fff;
}

.btn-outline-body:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}


/*** Navbar ***/
.navbar-custom {
    background-color: var(--primary);
    transition: background-color 1s ease-in-out, transform 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 1;
    transform: translateY(0);
    transition: 0.5s;
}

/* Barra de navegação visível ao scrolar */
.navbar-custom.scrolled {
    opacity: 1;
    transform: translateY(0);
    background-color: #ff4900;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: #ffffff;
    font-weight: bold;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .nav-link:hover {
    color: #fff;
    filter: brightness(0.8);
    letter-spacing: 1px;
}

.contact-bar {
    background-color: #fff;
    color: white;
    padding: 10px 0;
}

.contact-bar .contact-info {
    color: white;
}

.contact-bar .emergencia {
    color: #e74c3c;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
    border-radius: 30px;
}

.whatsapp-btn:hover {
    filter: brightness(0.8);
    color: white;
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.custom-width {
    width: 65%;
    margin: 0 auto;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    background-color: var(--second);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.dropdown-menu .dropdown-item {
    color: white;
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--primary);
    color: #fff;
    letter-spacing: 0.5px;
}

.offcanvas {
    background-color: var(--primary);
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    z-index: 1200;
}

/* Define a largura personalizada para o offcanvas em mobile */
@media (max-width: 992px) {
    .offcanvas-start {
        width: 280px !important;
        height: 500px !important;
        border-radius: 20px !important;
        margin-left: 10px;
    }
}

.offcanvas-body {
    flex: 1 1 auto;
    overflow-y: auto;
    height: 10px;
    padding-bottom: 40px;
}

.offcanvas .nav-link,
.offcanvas .dropdown-item {
    color: white;
    font-weight: bold;
}

.offcanvas .nav-link:hover,
.offcanvas .dropdown-item:hover {
    color: #fff;
}

.custom-toggler {
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Vídeo Home */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Vídeo de fundo (agora para o iframe) */
.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.8);
}

@media (min-aspect-ratio: 16/9) {
    .video-background iframe {
        /* A altura é o fator limitante */
        height: 56.25vw;
        /* 100 * 9 / 16 */
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background iframe {
        /* A largura é o fator limitante */
        width: 177.78vh;
        /* 100 * 16 / 9 */
    }
}


/* Estilo do conteúdo */
.content {
    position: relative;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.85);
    /* fundo branco translúcido */
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Estilo do título */
.content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

/* Estilo do texto */
.content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
}

/* Estilo do botão */
.content .btn {
    padding: 14px 30px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    transition: background-color 0.3s ease, filter 0.3s ease;
}

.content .btn:hover {
    filter: brightness(0.8);
}

/* Ondas */
.onda {
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: 0;
    background-image: url('https://www.grupomardeitapua.com.br/img/onda.png');
    background-size: 1000px 100px;
    background-repeat: repeat-x;
    animation: ondaFlutuante 5s ease-in-out infinite alternate,
        ondaMovimento linear infinite;
}

#onda1 {
    z-index: 2;
    opacity: 1;
    animation-duration: 4s, 10s;
    animation-delay: 0s, 0s;
    animation-name: ondaFlutuante, ondaDesloca1;
}

#onda2 {
    z-index: 1;
    opacity: 0.5;
    animation-duration: 6s, 15s;
    animation-delay: 0s, 0s;
    animation-name: ondaFlutuante, ondaDesloca2;
}

#onda3 {
    z-index: 0;
    opacity: 0.3;
    animation-duration: 7s, 20s;
    animation-delay: 0s, 0s;
    animation-name: ondaFlutuante, ondaDesloca3;
}

#onda4 {
    z-index: 0;
    opacity: 0.8;
    animation-duration: 5s, 12s;
    animation-delay: 0s, 0s;
    animation-name: ondaFlutuante, ondaDesloca4;
}

/* Animação de sobe e desce */
@keyframes ondaFlutuante {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(10px);
    }
}

/* Movimento lateral contínuo */
@keyframes ondaDesloca1 {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

@keyframes ondaDesloca2 {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: -1000px;
    }
}

@keyframes ondaDesloca3 {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 800px;
    }
}

@keyframes ondaDesloca4 {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: -800px;
    }
}

.wow {
    visibility: hidden;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/slider/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}


/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--primary);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5s;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}


/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}


/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item * {
    color: #FFFFFF;
    transition: .5s;
}


.service-item .btn {
    width: 140px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark) !important;
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item .service-text {
    background: rgba(0, 0, 0, .7);
    transition: .5s;
}

@media (min-width: 992px) {
    .service-item .service-text {
        background: var(--light);
    }

    .service-item:hover .service-text {
        background: rgba(0, 0, 0, .7);
    }

    .service-item * {
        color: #252525;
    }

    .service-item:hover * {
        color: #FFFFFF;
    }

    .service-item .btn {
        width: 40px;
    }

    .service-item:hover .btn {
        width: 140px;
    }
}

/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
    color: #000;
}

.project .nav .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.bg-footer {
    background-color: #252525 !important;
}

.bg-footer2 {
    background-color: var(--second) !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

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

@media (max-width: 768px) {
    .mt-m-0 {
        margin-top: 0 !important;
    }
}

/* Btn WhatsApp */
#whatsapp .wtsapp:focus {
    border: 0;
    outline: 0;
}

#whatsapp .wtsapp {
    position: fixed;
    transition: all .5s ease;
    background: #25d366;
    display: block;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    border-right: 0;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border: 0;
    z-index: 999;
    width: 60px;
    height: 60px;
    line-height: 61px;
    left: 25px;
    bottom: 25px;
}

#whatsapp .wtsapp:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    -webkit-animation: pulse-border 1500ms ease-out infinite;
    animation: pulse-border 1500ms ease-out infinite;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

/* Btn Whatsapp 2 */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #20b358;
    color: white;
}

.whatsapp-button i {
    margin-right: 8px;
    font-size: 20px;
}


.ratio-16x9 {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 992px) {
    .img-servico {
        width: 100% !important;
    }

    .navbar a {
        margin: 0px;
        padding: 0px;

    }
}

/* Planos */
.pricing .pricing-tem {
    background-color: var(--surface-color);
    box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
    padding: 40px 20px;
    text-align: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

@media (min-width: 1200px) {
    .pricing .pricing-tem:hover {
        transform: scale(1.1);
        box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
    }
}

.pricing h3 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.pricing .price {
    font-size: 36px;
    color: var(--heading-color);
    font-weight: 600;
    font-family: var(--heading-font);
}

.pricing .price sup {
    font-size: 20px;
    top: -15px;
    left: -3px;
}

.pricing .price span {
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    font-size: 16px;
    font-weight: 300;
}

.pricing .icon {
    padding: 20px 0;
}

.pricing .icon i {
    font-size: 48px;
}

.pricing ul {
    padding: 0;
    list-style: none;
    color: var(--default-color);
    text-align: center;
    line-height: 26px;
    font-size: 16px;
    margin-bottom: 25px;
}

.pricing ul li {
    padding-bottom: 10px;
}

.pricing ul .na {
    color: color-mix(in srgb, var(--default-color), transparent 70%);
    text-decoration: line-through;
}

.pricing .btn-buy {
    display: inline-block;
    padding: 8px 40px 10px 40px;
    border-radius: 50px;
    color: var(--accent-color);
    transition: none;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--heading-font);
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid var(--accent-color);
}

.pricing .btn-buy:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.pricing .featured {
    width: 200px;
    position: absolute;
    top: 18px;
    right: -68px;
    transform: rotate(45deg);
    z-index: 1;
    font-size: 14px;
    padding: 1px 0 3px 0;
    background: var(--accent-color);
    color: var(--contrast-color);
}

.p-btn {
    padding: 10px 10px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    transition: background-color 0.3s ease, filter 0.3s ease;
}

.p-btn:hover {
    filter: brightness(0.8);
    color: white;
}

/* Video */
.video1 {
    overflow-x: hidden;
    position: relative;
    padding: 0;
    margin: 0;
}

.video1 video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sempre igual ÃƒÂ  altura do vÃƒÂ­deo */
    background: rgba(0, 0, 0, 0.5);
    /* Fundo semitransparente */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.icones {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

.icones .item {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.icon-wrapper {
    font-size: 2rem;
    color: var(--second-color);
    margin-bottom: 10px;
}

.title-icon {
    font-size: 2rem;
    color: var(--second-color);
}

@media (max-width: 768px) {
    .video1 video1 {
        height: auto;
    }

    .icon-wrapper {
        font-size: 1.8rem;
    }

    .icones .item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .icon-wrapper {
        font-size: 1.5rem;
    }

    .title-icon {
        font-size: 1.2rem;
    }

    .icones {
        justify-content: space-between;
        gap: 0px;
    }
}

/*** Galeira ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/* Artigo */
.artigo-sumario {
    background-color: #f0f4f8;
    padding: 15px;
    border-left: 4px solid #004b87;
    border-radius: 4px;
    margin-bottom: 30px;
}

.artigo-sumario ul {
    list-style: none;
    padding-left: 0;
}

.artigo-sumario li {
    margin-bottom: 8px;
}

.artigo-sumario a {
    text-decoration: none;
    color: #004b87;
    font-weight: 500;
}

.artigo-sumario a:hover {
    text-decoration: underline;
}

.bg-artigo {
    background-color: #1e1d300a !important;
}

/* Links do sumário */
.sticky-container {
    position: sticky;
    top: 100px;
    z-index: 10;
    height: 100vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sticky-container {
        position: static !important;
        height: auto;
        overflow: visible;
    }
}

main {
    flex-grow: 1;
}

aside ul li a {
    transition: color 0.3s ease;
}

aside ul li a:hover {
    color: #002f63;
    font-weight: bold !important;
    letter-spacing: 1px;
}

/* Ajustes no texto do artigo */
article p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* Estilos para os tópicos complementares */
.topic-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.topic-image {
    width: 59px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}

.topic-text {
    font-size: 0.8rem;
    line-height: initial;
}

.topic-text:hover {
    color: #002f63;
    font-weight: bold !important;
}

/* Spotify Button */
#spotify-btn .spotify-button:focus {
    border: 0;
    outline: 0;
}

#spotify-btn .spotify-button {
    position: fixed;
    transition: all .5s ease;
    background: linear-gradient(135deg, var(--primary), var(--second));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(243, 143, 7, 0.4);
    border-radius: 12px;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    z-index: 1000;
    width: 45px;
    height: 85px;
    right: -1vh;
    bottom: 40vh;
    cursor: pointer;
}

#spotifyModal.show~#spotify-btn .spotify-button {
    right: calc(450px - 1vh);
}

#spotify-btn .spotify-button .mp3-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#spotify-btn .spotify-button:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 45px;
    height: 85px;
    background: linear-gradient(135deg, var(--primary), var(--second));
    border-radius: 12px;
    -webkit-animation: pulse-border-spotify 2000ms ease-out infinite;
    animation: pulse-border-spotify 2000ms ease-out infinite;
}

@keyframes pulse-border-spotify {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#spotify-btn .spotify-button:hover {
    background: linear-gradient(135deg, var(--second), var(--primary));
    box-shadow: 0 6px 20px rgba(243, 143, 7, 0.6);
    transform: scale(1.05) translateY(-2px);
}

#spotify-btn .spotify-button:hover .mp3-text {
    letter-spacing: 4px;
    transform: scale(1.1);
}

#spotify-btn .spotify-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(243, 143, 7, 0.3);
}

/* Spotify Modal Customization */
#spotifyModal .modal-dialog {
    position: fixed;
    right: -450px;
    bottom: calc(40vh - 42.5px);
    margin: 0;
    max-width: 450px;
    width: 450px;
    transition: right 0.5s ease-out;
}

#spotifyModal.show .modal-dialog {
    right: 0;
}

#spotifyModal .modal-content {
    border-radius: 15px 0 0 15px;
    border: none;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    top: 40vh;
    background: #434343;
}

#spotifyModal .modal-backdrop {
    display: none !important;
}

#spotifyModal .modal-header {
    background: #434343;
    color: white;
    border-radius: 15px 0 0 0;
    border-bottom: none;
}

#spotifyModal .modal-title {
    font-weight: 600;
    color: white;
}

#spotifyModal .btn-close {
    filter: invert(1);
}

#spotifyModal .modal-body {
    padding: 0;
}

#spotifyModal .modal-body iframe {
    border-radius: 0 0 0 15px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #spotifyModal .modal-dialog {
        position: fixed;
        right: -100vw;
        bottom: calc(40vh - 42.5px);
        margin: 0;
        max-width: 90vw;
        width: 90vw;
        transition: right 0.5s ease-out;
    }
    
    #spotifyModal.show .modal-dialog {
        right: 5vw;
    }

    #spotifyModal .modal-content {
        border-radius: 15px 0 0 15px;
        background: #434343;
    }

    #spotifyModal .modal-header {
        border-radius: 15px 0 0 0;
        background: #434343;
    }

    #spotifyModal .modal-body iframe {
        border-radius: 0 0 0 15px;
    }

    #spotifyModal .modal-backdrop {
        display: none !important;
    }
    
    #spotify-btn .spotify-button {
        width: 35px;
        height: 70px;
        right: 2vw;
    }
    
    #spotifyModal.show~#spotify-btn .spotify-button {
        right: calc(90vw + 2vw);
    }
}