/********** Template CSS **********/
:root {
    --primary: #1e3a8a;
    --secondary: #1e40af;
    --light: #F6F7F8;
    --dark: #0f172a;
}

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


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Progress Bar ***/
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-secondary,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

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

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

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

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

.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;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 10px 0;
    color: #696E77;
    font-weight: 400;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 45px;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(1, 10, 53, .5);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

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

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}


/*** Facts ***/
.facts {
	position: relative;
}

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

.facts::after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
    background: rgba(1, 10, 53, .8);
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .container.quote .quote-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.quote .quote-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.quote .quote-text,
.container.quote .quote-form {
	position: relative;
}

.container.quote .quote-text *,
.container.quote .quote-form * {
	position: relative;
	z-index: 1;
}

.container.quote .quote-text::after,
.container.quote .quote-form::after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.container.quote .quote-text::after {
    background: rgba(1, 10, 53, .8);
}

.container.quote .quote-form::after {
    background: rgba(255, 255, 255, .8);
}

.container.quote .quote-text .h-100,
.container.quote .quote-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/*** Service ***/
.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}


/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(1, 10, 53, .8);
    transition: .5s;
}

.team-item .team-img::after {
    left: auto;
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/
.animated.pulse {
    animation-duration: 1.5s;
}

.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}


/*** Footer ***/
.footer {
    color: #7F8499;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #7F8499;
    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: #7F8499;
    margin-right: 10px;
}

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

.footer .btn.btn-square {
    color: #7F8499;
    border: 1px solid #7F8499;
}

.footer .btn.btn-square:hover {
    color: var(--light);
    border-color: var(--primary);
}

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

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

.footer .copyright a:hover {
    color: #FFFFFF;
}

/*** Copyright ***/
.copyright .btn.btn-link {
    color: #A2A7B1;
}

.copyright .btn.btn-link:hover {
    color: var(--primary);
}

.copyright .btn.btn-link::after {
    position: relative;
    content: "";
    display: inline-block;
    height: 2px;
    width: 0;
    left: 0;
    -webkit-transition: width 0.35s ease;
    -moz-transition: width 0.35s ease;
    -o-transition: width 0.35s ease;
    transition: width 0.35s ease;
    background: var(--primary);
}

.copyright .btn.btn-link:hover::after {
    width: 100%;
}

.copyright .btn.btn-link:not(:last-child) {
    margin-right: 30px;
}

@media (max-width: 575.98px) {
    .copyright .btn.btn-link {
        margin-bottom: 8px;
    }
    
    .copyright .btn.btn-link:not(:last-child) {
        margin-right: 0;
    }
}


/*** Stats Section ***/
.facts {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 64, 175, 0.9)), url('../images/banner/carousel-1.png') center/cover no-repeat;
}

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

.facts .btn-lg-square i {
    font-size: 24px;
}

.facts .display-4 {
    font-weight: 700;
    color: var(--primary);
}

.facts .text-primary {
    font-weight: 600;
}

/*** Gallery Section ***/
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    height: 280px;
    margin-bottom: 30px;
    border: 3px solid transparent;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-item:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

/* Efeito de loading progressivo para imagens */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    opacity: 0;
    transform: scale(1.1);
}

.gallery-item img.loaded {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Loading shimmer effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(240, 240, 240, 0.8) 25%, 
        rgba(230, 230, 230, 0.8) 50%, 
        rgba(240, 240, 240, 0.8) 75%
    );
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s infinite;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.gallery-item img.loaded ~ .gallery-item::before,
.gallery-item img.loaded + .gallery-item::before {
    opacity: 0;
}

@keyframes loadingShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Overlay com informações */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.95), 
        rgba(30, 64, 175, 0.9),
        rgba(30, 58, 138, 0.85)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 25px;
    transform: translateY(20px);
    transition: all 0.4s ease;
    position: relative;
    z-index: 3;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h5 {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.gallery-content h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.4s ease;
}

.gallery-item:hover .gallery-content h5::after {
    width: 50px;
}

.gallery-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

.gallery-content .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid white;
    background: transparent;
    color: white;
}

.gallery-content .btn:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.05);
}

/* Efeito de borda brilhante */
.gallery-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--secondary), 
        var(--primary)
    );
    border-radius: 17px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.gallery-item:hover::after {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(30, 58, 138, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(30, 64, 175, 0.8);
    }
}

/* Grid responsivo para galeria */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Efeito shimmer adicional */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    animation: shimmerMove 1.5s ease-in-out;
    z-index: 4;
    pointer-events: none;
}

@keyframes shimmerMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Estado carregado da imagem */
.gallery-item.image-loaded::before {
    opacity: 0 !important;
}

.gallery-item.hovered {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 64, 175, 0.9)), url('../images/banner/carousel-1.png') center/cover no-repeat;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/*** Product Categories ***/
.product-category-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.product-category-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-category-item .btn-lg-square {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.product-category-item:hover .btn-lg-square {
    transform: scale(1.1) rotate(5deg);
}

.product-category-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(30, 64, 175, 0.1));
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
}

.product-category-item.active .btn-lg-square {
    background: var(--primary);
    transform: scale(1.1);
}

/*** Product Items ***/
.product-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-item img {
    transition: all 0.5s ease;
    border-radius: 10px;
    max-height: 200px;
    object-fit: cover;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-item p {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.product-item .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
}

.product-item .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.product-item .text-primary {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Product section dividers */
.container-xxl:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-item {
        margin-bottom: 20px;
    }
    
    .product-category-item {
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .product-item img {
        max-height: 150px;
    }
}

/*** Product Modal Styles ***/
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--primary), #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.product-image-container img {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.product-image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Garantir que a imagem seja visível */
#modalProductImage {
    min-height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 10px;
}

#modalProductImage[src=""] {
    display: none;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    border: 2px dashed #dee2e6;
}

.product-details h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.product-features ul li:hover {
    background: rgba(0, 123, 255, 0.05);
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.modal-footer {
    border-top: 2px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.modal-footer .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animações do modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .product-image-container img {
        max-height: 200px;
    }
}

/* Estilos para os botões de detalhes */
.btn-primary.btn-sm {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-primary.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    background: white;
    color: var(--primary);
}

.btn-primary.btn-sm:active {
    transform: translateY(0);
}

/* Estilos para os cards de produtos */
.product-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.product-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-item img {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.product-item:hover img {
    transform: scale(1.05);
}

/* Estilos para as categorias de produtos */
.product-category-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-category-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.product-category-item.active-category {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary);
}

.product-category-item.active-category i {
    color: white !important;
}

/* Loading state para botões */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Tooltip personalizado */
.tooltip-inner {
    background-color: var(--primary);
    border-radius: 8px;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primary);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--primary);
}

/*** Simulator Styles ***/
.simulator-display {
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.simulator-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.equipment-unit {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: unitAppear 0.5s ease-out;
}

.equipment-unit:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

@keyframes unitAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.form-select, .form-control {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.input-group-text {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
}

#calculateBtn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#calculateBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#calculateBtn:hover::before {
    left: 100%;
}

#calculateBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.equipment-info {
    background: rgba(0, 123, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.equipment-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.table {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: scale(1.01);
}

/* Loading animation for calculation */
.calculating {
    position: relative;
    pointer-events: none;
}

.calculating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive simulator adjustments */
@media (max-width: 768px) {
    .simulator-display {
        min-height: 150px !important;
    }
    
    .equipment-unit {
        width: 15px;
        height: 15px;
    }
    
    .result-item {
        padding: 8px;
    }
    
    .equipment-info {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .equipment-unit {
        width: 12px;
        height: 12px;
        margin: 0.5px;
    }
    
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/*** Events Carousel Section ***/
.events-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 15px; /* Adiciona espaçamento horizontal entre os itens */
}

.events-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.events-item img {
    transition: all 0.5s ease;
}

.events-item:hover img {
    transform: scale(1.05);
}

.events-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.events-item:hover .events-overlay {
    opacity: 1;
}

.events-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.events-content h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.events-content p {
    font-size: 14px;
    margin: 0;
}

/*** Owl Carousel Customization ***/
.events-carousel {
    padding: 0 20px; /* Adiciona padding no carousel para mais espaçamento */
}

.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary) !important;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-nav button:hover {
    background: var(--secondary) !important;
    transform: translateY(-50%) scale(1.1);
}

.owl-carousel .owl-nav button.owl-prev {
    left: -25px;
}

.owl-carousel .owl-nav button.owl-next {
    right: -25px;
}

@media (max-width: 768px) {
    .owl-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .owl-carousel .owl-nav button.owl-prev {
        left: -20px;
    }
    
    .owl-carousel .owl-nav button.owl-next {
        right: -20px;
    }
}

/*** CTA Section ***/
.cta {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 64, 175, 0.9)), url('../images/banner/carousel-2.png') center/cover no-repeat;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cta-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cta-item .btn-lg-square {
    width: 60px;
    height: 60px;
}

.cta-item .btn-lg-square i {
    font-size: 24px;
}

.cta h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta .btn:hover::before {
    left: 100%;
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/*** Particle Effects ***/
.particle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/*** Typing Effect ***/
.typed {
    border-right: 2px solid var(--primary);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

/*** Enhanced Service Item Animations ***/
.service-item img {
    transition: all 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item .service-icon {
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/*** Floating Animation ***/
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/*** Shake Animation ***/
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/*** Pulse Animation ***/
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/*** Why Choose Us Section ***/
.why-choose {
    background: var(--light);
}

.why-choose .about-text {
    background: white;
}

.why-choose .btn-lg-square {
    width: 50px;
    height: 50px;
}

.why-choose .btn-lg-square i {
    font-size: 20px;
}

/*** WhatsApp Button ***/
.whatsapp-btn {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 100px;
    z-index: 99;
    background: #25d366;
    border-color: #25d366;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/*** Enhanced Animations ***/
.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-item .service-icon {
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-item {
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: scale(1.02);
}

/*** Parallax Effects ***/
.quote-text,
.quote-form {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*** Loading Animation ***/
.loading {
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*** Image Loading ***/
img {
    /* opacity: 0; */
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/*** Smooth Scrolling ***/
html {
    scroll-behavior: smooth;
}

/*** Enhanced Form Styling ***/
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
}

/*** Responsive Enhancements ***/
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .whatsapp-btn {
        right: 20px;
        bottom: 80px;
    }
    
    .facts .btn-lg-square {
        width: 50px;
        height: 50px;
    }
    
    .facts .btn-lg-square i {
        font-size: 20px;
    }
}

/*** Contact Page Styles ***/
.contact-form {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.contact-form .form-floating {
    margin-bottom: 20px;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
    background: #fff;
    transform: translateY(-2px);
}

.contact-form .form-floating label {
    color: #6c757d;
    font-weight: 500;
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.contact-form .form-floating > .form-select ~ label {
    color: var(--primary);
    font-weight: 600;
}

.contact-form .btn {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-form .btn:hover::before {
    left: 100%;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.contact-form .btn-loading {
    display: none;
}

.contact-form .btn.loading .btn-text {
    display: none;
}

.contact-form .btn.loading .btn-loading {
    display: inline-block;
}

/* Contact Info Cards */
.contact-info-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.contact-info-card .btn-lg-square {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-info-card:hover .btn-lg-square {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.contact-info-card h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-info-card span {
    color: #6c757d;
    font-size: 14px;
}

/* Map Section */
.map-section {
    position: relative;
    overflow: hidden;
}

.map-section iframe {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-section .bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.contact-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Form Validation Styles */
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.valid-feedback {
    display: block;
    color: #198754;
    font-size: 12px;
    margin-top: 5px;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideInDown 0.5s ease;
}

.success-message .fa-check-circle {
    color: #155724;
    font-size: 24px;
    margin-right: 10px;
}

/* Responsive Contact Adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
        margin-top: 30px;
    }
    
    .contact-info-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .contact-info-card .btn-lg-square {
        width: 50px;
        height: 50px;
    }
    
    .map-section iframe {
        height: 300px;
    }
    
    .contact-cta .display-6 {
        font-size: 2rem;
    }
}

/*** Enhanced Dynamic Animations ***/
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.6);
        transform: scale(1.05);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

@keyframes rotate-3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Floating elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

.floating-delay-1 {
    animation-delay: 0.5s;
}

.floating-delay-2 {
    animation-delay: 1s;
}

.floating-delay-3 {
    animation-delay: 1.5s;
}

/* Glowing elements */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    animation: pulse-glow 1s ease-in-out infinite;
}

/* Slide animations */
.slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

.slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

/* Bounce animations */
.bounce-in {
    animation: bounce-in 0.8s ease-out;
}

/* Wave animation */
.wave-animation {
    animation: wave 2s ease-in-out infinite;
}

/* Shimmer effect */
.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* 3D rotation */
.rotate-3d {
    animation: rotate-3d 4s linear infinite;
}

/* Enhanced hover effects */
.service-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Dynamic background gradients */
.dynamic-bg {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), #17a2b8, var(--primary));
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Parallax scrolling enhancement */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Interactive cursor effects */
.cursor-glow {
    position: relative;
    overflow: hidden;
}

.cursor-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cursor-glow:hover::before {
    width: 200px;
    height: 200px;
}

/* Loading animations */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Magnetic effect */
.magnetic {
    transition: transform 0.3s ease;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced button animations */
.btn-dynamic {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-dynamic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-dynamic:hover::before {
    left: 100%;
}

.btn-dynamic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Particle system */
.particle {
    position: absolute;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 3s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-100%);
    animation: text-reveal 1.5s ease-in-out;
}

@keyframes text-reveal {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.text-body {
    color: #cfd1d9 !important; 
}

/* Video Gallery Styles */
.video-item {
    margin-bottom: 30px;
}

.video-item video {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    height: 450px; /* Altura fixa para evitar mudanças */
    object-fit: cover; /* Mantém proporção e corta se necessário */
    background-color: #000; /* Fundo preto para área não coberta */
}

.video-item video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-content {
    text-align: center;
    padding: 20px;
}

.video-content h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-content p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.8)), url('../img/painel-evento-1.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive adjustments for video gallery */
@media (max-width: 768px) {
    .video-content h5 {
        font-size: 1.2rem;
    }
    
    .video-content p {
        font-size: 0.9rem;
    }
    
    .video-item {
        margin-bottom: 20px;
    }
    
    .video-item video {
        height: 450px; /* Altura menor para tablets */
    }
}

@media (max-width: 576px) {
    .video-item video {
        height: 180px; /* Altura ainda menor para mobile */
    }
}

/* Product Category Items Hover Effects */
.product-category-item.hover-effect {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-category-item.hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.2);
    background-color: #f8f9fa !important;
}

.product-category-item.hover-effect:hover .btn-lg-square {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.product-category-item.hover-effect:hover h5 {
    color: var(--primary) !important;
    transition: color 0.3s ease;
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

/* 
.text-primary{
    color: #fff !important;
} */

/* Estilos para o Modal de Zoom de Imagem */
#imageZoomModal .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#imageZoomModal .modal-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

#imageZoomModal .modal-body {
    background: transparent;
    position: relative;
}

.zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#zoomImage {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, cursor 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#zoomImage:hover {
    cursor: zoom-in;
}

.zoom-controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zoom-controls .btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zoom-controls .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-controls .btn:active {
    transform: translateY(0);
}

/* Indicador de zoom */
.zoom-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animações para o modal de zoom */
#imageZoomModal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#imageZoomModal.show .modal-dialog {
    transform: scale(1);
}

/* Responsividade para o zoom */
@media (max-width: 768px) {
    #imageZoomModal .modal-dialog {
        margin: 10px;
    }
    
    .zoom-controls {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 10px;
        justify-content: center;
        display: flex;
    }
    
    .zoom-controls .btn {
        margin: 0 5px;
    }
    
    #zoomImage {
        max-height: 60vh;
    }
}

@media (max-width: 576px) {
    #zoomImage {
        max-height: 50vh;
    }
    
    .zoom-controls .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Efeito de loading para a imagem do zoom */
#zoomImage[src=""] {
    opacity: 0;
}

#zoomImage:not([src=""]) {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Cursor personalizado para diferentes estados de zoom */
.zoom-container.zoomed #zoomImage {
    cursor: grab;
}

.zoom-container.zoomed #zoomImage:active {
    cursor: grabbing;
}

/* === PINCH-TO-ZOOM STYLES === */
#imageZoomModal .modal-dialog {
    margin: 0;
    max-width: 100vw;
    height: 100vh;
}

#imageZoomModal .modal-content {
    height: 100vh;
    border: none;
    border-radius: 0;
}

#imageZoomModal .modal-body {
    padding: 0;
    height: calc(100vh - 60px);
    overflow: hidden;
    touch-action: none;
}

.zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#zoomImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.mobile-zoom-hint {
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Touch device optimizations */
@media (max-width: 768px) {
    #imageZoomModal .modal-header {
        padding: 1rem;
    }
    
    #imageZoomModal .modal-header h5 {
        font-size: 1.1rem;
    }
    
    .zoom-controls {
        display: none !important;
    }
    
    .mobile-zoom-hint {
        display: block !important;
    }
    
    #zoomImage {
        cursor: grab;
    }
    
    #zoomImage:active {
        cursor: grabbing;
    }
    
    #imageZoomModal .modal-dialog {
        margin: 0;
        max-width: 100vw;
        height: 100vh;
    }
    
    #imageZoomModal .modal-content {
        height: 100vh;
        border: none;
        border-radius: 0;
    }
    
    #imageZoomModal .modal-body {
        height: calc(100vh - 60px);
        padding: 0;
    }
}

/* Prevent text selection and context menu on touch devices */
.zoom-container,
#zoomImage {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth zoom transitions */
#zoomImage {
    transition: transform 0.1s ease-out;
}

/* Loading state for images */
#zoomImage[src=""] {
    opacity: 0;
}

#zoomImage:not([src=""]) {
    opacity: 1;
    transition: opacity 0.3s ease;
}