/* Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Touch Optimization */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #ffffff 0%, #ffffff 50%, #f59e0b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================
   SATELLITE SCANNING ANIMATIONS
   ================================ */

/* Radar Sweep Removed */



/* Horizontal Scan Line */
.scan-line-horizontal {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(245, 158, 11, 0.1) 20%,
            rgba(245, 158, 11, 0.6) 50%,
            rgba(245, 158, 11, 0.1) 80%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: scanHorizontal 5s ease-in-out infinite;
}

@keyframes scanHorizontal {

    0%,
    100% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* Vertical Scan Line */
.scan-line-vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(245, 158, 11, 0.1) 20%,
            rgba(245, 158, 11, 0.6) 50%,
            rgba(245, 158, 11, 0.1) 80%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: scanVertical 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes scanVertical {

    0%,
    100% {
        left: 10%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        left: 90%;
        opacity: 0;
    }
}

/* Coordinate Markers */
.coordinate-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    animation: markerPulse 3s ease-in-out infinite;
}

.coordinate-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(245, 158, 11, 0.8);
    border-radius: 50%;
}

.coordinate-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    animation: markerRing 2s ease-out infinite;
}

.coordinate-marker.active {
    border-color: #22c55e;
}

.coordinate-marker.active::before {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.coordinate-marker.active::after {
    border-color: rgba(34, 197, 94, 0.3);
}

@keyframes markerPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes markerRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Data Particles */
.data-particle {
    position: absolute;
    left: var(--x);
    top: -10px;
    width: 3px;
    height: 3px;
    background: rgba(245, 158, 11, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    animation: dataFall 5s linear infinite;
    animation-delay: var(--delay);
}

@keyframes dataFall {
    0% {
        top: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100vh;
        opacity: 0;
    }
}

/* ================================
   GENERAL ANIMATIONS
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Selection Color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* Mobile Optimizations */
@media (max-width: 640px) {


    .coordinate-marker {
        width: 8px;
        height: 8px;
    }

    .coordinate-marker::before {
        width: 3px;
        height: 3px;
    }

    .coordinate-marker::after {
        width: 16px;
        height: 16px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {


    .scan-line-horizontal,
    .scan-line-vertical,
    .coordinate-marker,
    .data-particle {
        animation: none;
    }
}

/* ================================
   LEAFLET MAP STYLES
   ================================ */

#hero-map {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    filter: saturate(0.8) brightness(0.8) contrast(1.1);
}

#hero-map .leaflet-tile-pane {
    filter: hue-rotate(-5deg);
}

/* Pulsing map markers */
.map-marker-pulse {
    animation: mapMarkerPulse 2s ease-in-out infinite;
}

@keyframes mapMarkerPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ================================
   WHATSAPP FLOATING BUTTON
   ================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4),
        0 0 0 0 rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(15, 23, 42, 0.95);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-icon svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}