/* Applying the Inter font to the whole page */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Custom class for a subtle text shadow to improve readability on images */
.text-shadow {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
/* Style for the character animation */
#loader-text {
    opacity: 0; /* Initially hide to prevent FOUC */
}
#loader-text .char {
    display: inline-block;
}
/* Adds perspective for the 3D card animation on entry */
.services-container {
    perspective: 1500px;
}

/* styles for the interactive card effect */
.service-card {
    position: relative;
    overflow: hidden; /* Important for the border effect */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ef4444; /* Tailwind's red-500 */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-card:hover::after {
    transform: scaleX(1);
}
.service-card .card-icon svg {
    transition: transform 0.3s ease-out;
}
.service-card:hover .card-icon svg {
    transform: scale(1.1);
}
/* Styles for the "Why Us" section animation */
.reason-item {
    position: relative;
    overflow: hidden;
}
.reason-item .reveal-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ef4444; /* red-500 */
    z-index: 1;
}
.reason-item .reason-content {
    opacity: 0;
}
/* Styles for the new CTA sonar effect */
.cta-sonar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    overflow: hidden;
    background-color: #111827; /* bg-gray-900 */
}
.cta-ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.5); /* red-500 with opacity */
    pointer-events: none;
    transform: scale(0);
    opacity: 1;
}
/* Styles for the scrolled header */
#header-wrapper.header-scrolled #top-bar {
    background-color: #ef4444; /* red-500 */
    color: #ffffff; /* white */
    border-bottom: 1px solid #dc2626; /* red-600 */
}
#header-wrapper.header-scrolled #top-bar a {
    color: #ffffff; /* white */
}
#header-wrapper.header-scrolled #top-bar a:hover {
    color: #fca5a5; /* red-300 */
}
#header-wrapper.header-scrolled #main-header {
    background-color: #ffffff; /* white */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#header-wrapper.header-scrolled #main-header nav ul, 
#header-wrapper.header-scrolled #main-header .mobile-menu-icon {
    color: #1f2937; /* text-gray-800 */
}
#header-wrapper.header-scrolled #main-header nav a:hover {
    color: #ef4444; /* text-red-500 */
}
/* Styles for Logo transition */
#header-wrapper.header-scrolled .logo .logo-white {
    opacity: 0;
}
#header-wrapper.header-scrolled .logo .logo-red {
    opacity: 1;
}
/* Styles for the Floating Action Button (FAB) */
#fab-main-button, .btn-pulse {
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
/* Styles for the Timeline section */
.timeline-line-progress {
    transform-origin: top;
}
.timeline-content {
    position: relative;
    overflow: visible !important; /* Allow emoji to pop out */
}
.timeline-emoji {
    position: absolute;
    top: 50%;
    width: 3.5rem;
    height: 3.5rem;
    z-index: 0;
    transform: translateY(-50%) scale(0); /* Initial state for animation */
}
.timeline-emoji img.emoji {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Positioning for items with text on the LEFT (emoji on the RIGHT) */
.md\:flex-row-reverse .timeline-emoji {
    right: -2.5rem;
    left: auto;
}
/* Positioning for items with text on the RIGHT (emoji on the LEFT) */
.md\:flex:not(.md\:flex-row-reverse) .timeline-emoji {
    left: -2.5rem;
    right: auto;
}

/* Positioning for mobile */
@media (max-width: 767px) {
    /* The user requested removing the icons on mobile devices.
       Using display: none is better than the original repositioning logic.
       The HTML was also updated with `hidden md:block` as a robust alternative.
    */
    .timeline-emoji {
        display: none;
    }
}
/* Styles for Testimonial Slider */
.testimonial-slider {
    position: relative;
    height: 320px; /* Altura ajustada de 380px para 320px */
    perspective: 1500px;
}
.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
/* Styles for the new Numbers Section */
.number-item {
    border: 1px solid #374151; /* gray-700 */
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.number-item:hover {
    background-color: #1f2937; /* gray-800 */
    transform: translateY(-8px);
}
/* Styles for the Fleet Section Map */
.fleet-animation-container {
    perspective: 1000px;
}
.fleet-map-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: auto;
    aspect-ratio: 1 / 1;
    transform-style: preserve-3d;
}
.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ef4444;
    border: 3px solid white;
    transform: translate(-50%, -50%);
}
.map-pin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #ef4444;
    animation: map-pulse 1.5s infinite;
}
@keyframes map-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(2.5);
        opacity: 0;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}
.fleet-title-word {
    display: inline-block;
}
/* Styles for the Regulation FAB */
#regulation-main-button {
    animation: bounce-subtle 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.fab-label {
    pointer-events: none;
}
/* Styles for Location Section */
.location-map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem; /* rounded-lg */
    padding: 2px;
    background: linear-gradient(45deg, #ef4444, #374151);
    -webkit-mask: 
         linear-gradient(#fff 0 0) content-box, 
         linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-glow 5s linear infinite;
}

@keyframes rotate-glow {
    0% {
        background: linear-gradient(45deg, #ef4444, #374151);
    }
    50% {
        background: linear-gradient(45deg, #374151, #ef4444);
    }
    100% {
        background: linear-gradient(45deg, #ef4444, #374151);
    }
}

/* Styles for the new Hero Background Canvas */
#hero-background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* New styles for loader logo animation */
#loader-logo {
    opacity: 0; /* Hide initially to prevent FOUC */
    animation: logo-pulse 2s infinite ease-in-out;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(220, 38, 38, 0));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.6));
    }
}

/* Custom styles for file input */
.file-input-label {
    cursor: pointer;
}
.file-input-label:hover .file-input-icon {
    transform: translateY(-2px);
}
.file-input-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles for Cookie Banner */
#cookie-banner {
    background-color: rgba(23, 37, 51, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Styles for FAQ section */
.faq-answer {
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Styles for Developer Credit */
.developer-credit {
    display: inline-block;
    font-weight: 600;
    background: linear-gradient(90deg, #f87171, #fb923c, #facc15, #a3e635, #4ade80, #38bdf8, #818cf8, #f472b6, #f87171);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 5s linear infinite;
    transition: transform 0.3s ease;
}

.developer-credit:hover {
    transform: scale(1.1);
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}
