/* Custom Styles & Performance Optimizations */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #E0E0E0;
    cursor: default;
    /* FIX: Mover o overflow-x para o body é a melhor prática para evitar a rolagem dupla. */
    overflow-x: hidden;
}

/* OPTIMIZATION: Replaced body background radial-gradient with a hardware-accelerated div for performance */
#cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
}

header, footer {
    position: relative;
    z-index: 2;
}

/* FIX: Ocultar o conteúdo principal inicialmente para evitar o "flash" antes do preloader terminar. */
main {
    position: relative;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}

/* OPTIMIZATION: Add will-change to animated elements to promote them to their own compositor layer, preventing "jank" */
[data-gsap], .service-icon, [data-gsap="process-step"], [data-gsap="reveal-image"] {
    will-change: transform, opacity;
}

/* Custom Gold Colors & Gradients */
.text-gold {
    color: #D4AF37;
}

.bg-gold {
    background-color: #D4AF37;
}

.border-gold {
    border-color: #D4AF37;
}

.ring-gold {
    --tw-ring-color: #D4AF37;
}

.gold-gradient-text {
    background: linear-gradient(90deg, #b38728, #fcf6ba, #b38728);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.gold-shadow {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), 0 0 5px rgba(212, 175, 55, 0.2);
}

.glass-card {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b89b3c;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    overflow: hidden;
}

#preloader .preloader-text {
    opacity: 0;
    transform: translateY(20px);
}

/* Custom Button Styles */
.btn-primary {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    transition: all 0.3s ease-in-out;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(212, 175, 55, 0.25);
}

/* Swiper Styles */
.swiper-slide {
    background-position: center;
    background-size: cover;
}

.swiper-pagination-bullet {
    background: #D4AF37 !important;
}


#mobile-menu-button.active .top-line {
    transform: rotate(45deg) translate(5px, 6px);
}

#mobile-menu-button.active .middle-line {
    opacity: 0;
}

#mobile-menu-button.active .bottom-line {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Section Title Animation */
.section-title-wrapper {
    opacity: 0;
}

.section-title-line {
    width: 0;
    height: 2px;
    background-color: #D4AF37;
    margin-bottom: 0.5rem;
}

/* Custom Header Design */
#header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    background-color: #000000;
    overflow: hidden;
}

#header .container {
    position: relative;
    z-index: 2;
}

#header::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 30px;
    background-color: #D4AF37;
    transform: skewX(-45deg);
    transform-origin: bottom right;
    transition: all 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
}

#header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 15px;
    background-color: #D4AF37;
    transform: skewX(45deg);
    transform-origin: bottom left;
    transition: all 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
}

#header:hover::before {
    width: 350px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

#header:hover::after {
    width: 180px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

#header nav a {
    transition: all 0.3s ease;
}

#header nav a:hover {
    color: #D4AF37;
    transform: scale(1.1);
}

/* Fixed Action Buttons */
.fixed-action-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.fixed-action-btn:hover {
    transform: scale(1.1);
}

#whatsapp-button {
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

#whatsapp-button:hover {
    animation: none;
}

#regulamento-button {
    bottom: 25px;
    left: 25px;
    background-color: #D4AF37;
    color: #0a0a0a;
    font-size: 1.8rem;
    animation: pulse-gold 2s infinite;
}

#regulamento-button:hover {
    background-color: #b89b3c;
    animation: none;
}

/* NEW: Tooltip Balloon for Regulamento Button */
.tooltip-balloon {
    position: absolute;
    bottom: 50%;
    left: calc(100% + 15px);
    transform: translateY(50%);
    background-color: #D4AF37;
    color: #0a0a0a;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Allows clicks to pass through to the button */
}

/* NEW: Arrow for the Balloon */
.tooltip-balloon::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #D4AF37 transparent transparent;
}

/* NEW: Show balloon on hover */
#regulamento-button:hover .tooltip-balloon {
    visibility: visible;
    opacity: 1;
}

#scrollTopBtn {
    bottom: 95px;
    right: 25px;
    background-color: #D4AF37;
    color: #0a0a0a;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background-color: #b89b3c;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
}

/* Section Background Patterns */
.section-with-pattern {
    position: relative;
}

.section-with-pattern::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Applying unique patterns and positions */
#about::before, #assistencia::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3e%3cpath d='M0 300 H800 M0 500 H800 M300 0 V800 M500 0 V800' stroke='%23D4AF37' stroke-width='2'/%3e%3ccircle cx='400' cy='400' r='100' fill='none' stroke='%23D4AF37' stroke-width='2'/%3e%3ccircle cx='400' cy='400' r='50' fill='none' stroke='%23D4AF37' stroke-width='1'/%3e%3c/svg%3e");
}

#about::before {
    top: -150px;
    right: -200px;
    transform: rotate(25deg);
}

#vantagens::before, #features::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3e%3cpath d='M100 50 L50 100 L100 150 L150 100 Z M200 150 L150 200 L200 250 L250 200 Z M400 250 L350 300 L400 350 L450 300 Z' fill='none' stroke='%23D4AF37' stroke-width='1.5'/%3e%3cpath d='M125 125 L175 175 M225 225 L375 275' stroke='%23D4AF37' stroke-width='1'/%3e%3c/svg%3e");
}

#vantagens::before {
    bottom: -200px;
    left: -200px;
    transform: rotate(-15deg);
}

#processo::before, #faq::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3e%3cpath d='M0 100 C 100 0, 300 200, 400 100' stroke='%23D4AF37' stroke-width='2' fill='none'/%3e%3cpath d='M0 200 C 100 100, 300 300, 400 200' stroke='%23D4AF37' stroke-width='1.5' fill='none'/%3e%3cpath d='M0 300 C 100 200, 300 400, 400 300' stroke='%23D4AF37' stroke-width='2' fill='none'/%3e%3c/svg%3e");
}

#processo::before {
    top: 50%;
    right: -250px;
    transform: translateY(-50%) rotate(90deg);
}

#assistencia::before {
    bottom: -200px;
    left: -250px;
    transform: rotate(-35deg);
}

#features::before {
    top: -100px;
    right: -200px;
    transform: rotate(45deg);
}

#faq::before {
    bottom: -150px;
    left: -200px;
    transform: rotate(-90deg);
}

#service::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3e%3cg fill='none' stroke='%23D4AF37' stroke-width='1'%3e%3ccircle cx='100' cy='100' r='3'/%3e%3ccircle cx='300' cy='150' r='3'/%3e%3ccircle cx='500' cy='100' r='3'/%3e%3ccircle cx='150' cy='300' r='3'/%3e%3ccircle cx='450' cy='300' r='3'/%3e%3ccircle cx='100' cy='500' r='3'/%3e%3ccircle cx='300' cy='450' r='3'/%3e%3ccircle cx='500' cy='500' r='3'/%3e%3cpath d='M100 100 L300 150 L500 100 M100 100 L150 300 L100 500 M500 100 L450 300 L500 500 M150 300 L300 150 L450 300 L300 450 Z'/%3e%3c/g%3e%3c/svg%3e");
    top: -100px;
    left: -200px;
    transform: rotate(15deg);
}

#testimonials::before {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3e%3cg fill='none' stroke='%23D4AF37' stroke-width='1.5'%3e%3ccircle cx='200' cy='200' r='150'/%3e%3ccircle cx='400' cy='400' r='180'/%3e%3ccircle cx='300' cy='300' r='80'/%3e%3c/g%3e%3c/svg%3e");
    bottom: -200px;
    right: -200px;
    transform: rotate(-25deg);
}

footer#contact::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3e%3cpath d='M 0 50 H 200 M 50 0 V 200' stroke='%23D4AF37' stroke-width='0.5' /%3e%3c/svg%3e");
    opacity: 0.03;
    width: 400px;
    height: 400px;
    top: 0;
    left: -150px;
    transform: rotate(45deg);
}

/* Hover effect for patterns */
#about:hover::before { transform: rotate(30deg) scale(1.05); }
#vantagens:hover::before { transform: rotate(-10deg) scale(1.05); }
#processo:hover::before { transform: translateY(-50%) rotate(95deg) scale(1.05); }
#assistencia:hover::before { transform: rotate(-30deg) scale(1.05); }
#features:hover::before { transform: rotate(50deg) scale(1.05); }
#faq:hover::before { transform: rotate(-85deg) scale(1.05); }
#service:hover::before { transform: rotate(20deg) scale(1.05); }
#testimonials:hover::before { transform: rotate(-20deg) scale(1.05); }
footer#contact:hover::before { transform: rotate(50deg) scale(1.05); }
