/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00FFFF;
    --primary-dark: #00CCCC;
    --accent: #FF0000;
    --bg-dark: #0A0A1A;
    --bg-darker: #050510;
    --bg-card: rgba(10, 10, 26, 0.9);
    --text: #FFFFFF;
    --text-light: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 255, 255, 0.2);
    --glow: 0 0 20px rgba(0, 255, 255, 0.4);
    --glow-strong: 0 0 30px rgba(0, 255, 255, 0.6);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .hero-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        min-width: 100%;
        min-height: 100%;
    }
    
    .hero-background-wrapper {
        width: 100%;
        height: 100%;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Ajustes para desktop */
@media (min-width: 1025px) {
    .hero-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Para telas muito largas (ultrawide) */
@media (min-width: 1920px) {
    .hero-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Para orientação paisagem em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-background {
        object-position: center center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 0.8) 0%,
        rgba(10, 10, 26, 0.4) 30%,
        rgba(10, 10, 26, 0.4) 70%,
        rgba(10, 10, 26, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.logo-hero {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo-img-hero {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(var(--glow));
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    padding: 1.25rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.services {
    background: var(--bg-darker);
}

.tracking {
    background: var(--bg-dark);
}

.contact {
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--bg-dark);
    box-shadow: var(--glow);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tracking Section */
.tracking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tracking-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    height: fit-content;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group label i {
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.map-wrapper {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 500px;
    position: relative;
}

.map {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    z-index: 1;
    position: relative;
}

/* Leaflet Map Styles */
.leaflet-container {
    background: var(--bg-darker);
    font-family: 'Inter', sans-serif;
    border-radius: 20px;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.leaflet-map-pane {
    z-index: 1;
}

.leaflet-tile-pane {
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0 !important;
    max-width: 250px !important;
}

.leaflet-popup-content {
    color: var(--text) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    width: auto !important;
    font-size: 14px !important;
}

.leaflet-popup-content p {
    color: var(--text) !important;
    margin: 4px 0 !important;
}

.leaflet-popup-content h3 {
    color: var(--primary) !important;
    margin: 0 !important;
}

.leaflet-popup-content strong {
    color: var(--text) !important;
}

.leaflet-popup-content div {
    color: var(--text) !important;
}

.leaflet-popup-tip {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
}

.custom-popup .leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    max-width: 250px !important;
}

.leaflet-control-zoom a {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.leaflet-control-zoom a:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.leaflet-control-attribution {
    background: rgba(10, 10, 26, 0.8);
    color: var(--text-light);
    font-size: 0.75rem;
}

.vehicle-marker {
    background: transparent !important;
    border: none !important;
}

/* Animação de pulso para o marcador do veículo */
@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(0,255,255,0.8), 0 0 30px rgba(0,255,255,0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(0,255,255,1), 0 0 50px rgba(0,255,255,0.6);
    }
    100% {
        box-shadow: 0 0 15px rgba(0,255,255,0.8), 0 0 30px rgba(0,255,255,0.4);
    }
}

.map-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    z-index: 10;
    pointer-events: none;
}

.map-info.hidden {
    display: none;
}

.map-info i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    border: 1px solid;
}

.status-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
    display: block;
}

.status-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
    display: block;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--glow);
}

.contact-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-main {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: var(--glow);
}

.footer-main p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .logo-img-hero {
        height: 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tracking-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tracking-form {
        padding: 1.5rem;
    }
    
    .map-wrapper {
        min-height: 400px;
    }
    
    .map {
        height: 400px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .tracking-form {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
}

/* Animações suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.6s ease backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.btn:active {
    transform: scale(0.98);
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
