/* Base */
:root {
    --primary: #aa0000;
    --dark: #0A0A0A;
    --dark-card: #111111;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a31616;
}

/* Background Effects */
.noise {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.035;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.gradient-bg {
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 0%, rgba(222, 74, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(222, 74, 74, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Fireworks */
.firework {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.firework-rocket {
    position: absolute;
    width: 2px;
    height: 10px;
    transform-origin: center;
    will-change: transform;
    border-radius: 0 0 1px 1px;
    box-shadow: none !important;
}

.firework-rocket-trail {
    position: absolute;
    width: 1px;
    height: 5px;
    transform-origin: center;
    will-change: transform, opacity;
    border-radius: 1px;
    box-shadow: none !important;
}

.firework-line {
    position: absolute;
    width: 15px;
    height: 2px;
    transform-origin: left center;
    will-change: transform, opacity;
    box-shadow: none !important;
}

/* Estilo para afinar as pontas das linhas */
.tapered-line {
    border-radius: 0 50% 50% 0;
    background: linear-gradient(to right, currentColor 60%) !important;
    box-shadow: none !important;
}

.firework-explosion {
    display: none;
}

.firework-flash {
    display: none;
}

.firework-particle {
    display: none;
}

.firework-particle-trail {
    display: none;
}

.firework-spark {
    display: none;
}

.firework-trail {
    display: none;
}

.firework-glow {
    display: none;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(10);
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-fade-up {
    animation: fadeUp 0.8s var(--animation-timing) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s var(--animation-timing) forwards;
}

.animate-fade-right {
    animation: fadeRight 0.8s var(--animation-timing) forwards;
}

.animate-fade-left {
    animation: fadeLeft 0.8s var(--animation-timing) forwards;
}

.animate-scale-up {
    animation: scaleUp 0.8s var(--animation-timing) forwards;
}

/* Staggered animations for grid items */
.stagger-grid > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Shimmer effect for cards */
.shimmer-hover:hover {
    background: linear-gradient(
        90deg,
        rgba(17, 17, 17, 0.5) 25%,
        rgba(222, 74, 74, 0.1) 50%,
        rgba(17, 17, 17, 0.5) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Glass Effect */
.glass {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar-box {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeDown 0.6s ease-out forwards;
}

.navbar-box:hover {
    border-color: rgba(222, 74, 74, 0.3);
    box-shadow: 0 4px 30px rgba(222, 74, 74, 0.1);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Links */
.navbar-box a {
    position: relative;
    color: white;
    transition: color 0.3s ease;
    text-decoration: none;
}

.navbar-box a:hover {
    color: var(--primary);
    box-shadow: none;
    transform: none;
}

.navbar-box a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s var(--animation-timing);
    transform: translateX(-50%);
}

.navbar-box a:hover::after {
    width: 100%;
}

/* Cards */
.card {
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.5s var(--animation-timing);
    opacity: 0;
    transform: translateY(20px);
}

.card.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.2);
}

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Gradients */
.gradient-text {
    background: linear-gradient(to right, var(--primary), #a31616);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background-position 0.5s var(--animation-timing);
}

.gradient-text:hover {
    background-position: right center;
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    border-radius: inherit;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
.hover-scale {
    transition: transform 0.4s var(--animation-timing), box-shadow 0.4s var(--animation-timing);
}

.hover-scale:not(img):not(a):hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(222, 74, 74, 0.4);
}

.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(222, 74, 74, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--animation-timing);
    pointer-events: none;
    z-index: 1;
}

.hover-glow:hover::after {
    opacity: 1;
}

/* Custom Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 20%, rgba(222, 74, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(222, 74, 74, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-white-red {
    color: var(--primary);
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.text-gradient-white-red:hover {
    color: #c52222;
    text-shadow: 0 0 5px rgba(222, 74, 74, 0.3);
}

/* Content */
.content {
    position: relative;
    z-index: 2;
}

/* Typing Animation */
@keyframes typing {
    0%, 5% {
        width: 0;
    }
    20%, 30% {
        width: 30%;
    }
    100% {
        width: 54%;
        border-right-color: transparent;
    }
}

@keyframes blink {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary);
    }
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    width: 0;
    animation: typing 3s steps(15) forwards, blink 1s step-end 8 forwards;
    max-width: 100%;
    font-weight: 500;
    text-align: left;
}

/* Input Styling */
.input-url {
    border: 1px solid rgba(222, 74, 74, 0.3);
    transition: all 0.3s ease;
}

.input-url:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(222, 74, 74, 0.2);
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Button Styling */
button.hover-scale {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--animation-timing);
    z-index: 1;
}

button.hover-scale:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.6s var(--animation-timing);
    z-index: -1;
}

button.hover-scale:hover:before {
    transform: translateX(0);
}

button.hover-scale:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(222, 74, 74, 0.4);
}

/* Input Container */
.input-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background-color: #000;
}

.input-container:hover {
    box-shadow: 0 0 15px rgba(222, 74, 74, 0.2);
}

.input-container button {
    height: 100%;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(222, 74, 74, 0.3);
    font-weight: 500;
    background: linear-gradient(to right, #de4a4a, #c52222);
}

.input-container button:hover {
    transform: translateY(0) !important;
    box-shadow: none !important;
    background: linear-gradient(to right, #c52222, #a31616);
}

/* Logo Styling */
.navbar-box img.hover-scale {
    transition: transform 0.3s ease;
}

.navbar-box img.hover-scale:hover {
    transform: scale(1.1);
    box-shadow: none;
}

/* Improved section transitions */
section {
    transition: all 0.8s var(--animation-timing);
}

/* Improved testimonial cards */
.card.testimonial {
    transition: all 0.4s var(--animation-timing);
}

.card.testimonial:hover {
    transform: translateY(-5px) scale(1.03);
}

/* Partner cards enhanced effect */
.card.partner-card {
    transition: all 0.5s var(--animation-timing);
}

.card.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(222, 74, 74, 0.3);
}

/* Icon pulse effect */
.icon-container {
    position: relative;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(222, 74, 74, 0.3);
    border-radius: inherit;
    z-index: -1;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s var(--animation-timing);
}

.card:hover .icon-container::before {
    transform: scale(1.2);
    opacity: 1;
}

/* Mobile Menu Styles */
#mobile-menu {
    border-top: 1px solid rgba(222, 74, 74, 0.1);
    margin-top: 10px;
    padding-top: 10px;
}

#mobile-menu a {
    display: block;
    transition: all 0.3s ease;
}

#mobile-menu a:hover {
    background-color: rgba(222, 74, 74, 0.1);
    transform: translateX(5px);
}

#mobile-menu-button {
    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
}

#mobile-menu-button:hover {
    background-color: rgba(222, 74, 74, 0.2);
    transform: scale(1.05);
}

#mobile-menu-button i {
    transition: all 0.3s ease;
}

/* Animação para o ícone do menu */
@keyframes rotateMenu {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(90deg); }
}

#mobile-menu-button.active i {
    animation: rotateMenu 0.3s forwards;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    .navbar-box {
        padding: 12px 16px;
    }
}

/* Navbar Styles */
header {
    transition: all 0.3s ease;
}

header.scrolled .navbar-box {
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-box {
    transition: all 0.3s ease;
    border: 1px solid rgba(222, 74, 74, 0.1);
}