/* Theme variables */
:root {
    --color-surmount-orange: #ee601e;
    --color-surmount-yellow: #f59e0b;
    --color-surmount-orange-rgb: 238, 96, 30;
    --color-surmount-yellow-rgb: 245, 158, 11;
}

/* Custom styling resets & transitions */
body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.glass {
    background: rgba(239, 241, 244, 0.50);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass {
    background: rgba(10, 12, 16, 0.45);
}

.glass-card {
    background: rgba(239, 241, 244, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(238, 96, 30, 0.12);
}

.dark .glass-card {
    background: rgba(21, 24, 30, 0.65);
    border: 1px solid rgba(238, 96, 30, 0.08);
}

/* Micro animations: Scroll reveal utility */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Micro animations: Concentric GPS rings pulsing */
@keyframes wcs-pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.wcs-gps-pulse-ring {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid rgba(238, 96, 30, 0.5);
    animation: wcs-pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

.wcs-gps-pulse-ring-delayed {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid rgba(238, 96, 30, 0.3);
    animation: wcs-pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    animation-delay: 1.5s;
    pointer-events: none;
}

/* Micro animations: Steerable moving truck path travel */
@keyframes truck-travel {
    0% {
        offset-distance: 0%;
    }
    100% {
        offset-distance: 100%;
    }
}

.moving-truck-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    /* Translate anchors coordinates to center of element */
    transform: translate(-50%, -50%);
    margin-left: 0;
    margin-top: 0;
    offset-path: path("M 40 360 C 100 290, 160 140, 240 180 C 300 200, 310 100, 360 40");
    offset-rotate: auto;
    animation: truck-travel 16s linear infinite;
}

/* Cargo Flow Terminal Visual Animations */
@keyframes flow-dash {
    to {
        stroke-dashoffset: -20;
    }
}

.flow-path {
    stroke-dasharray: 6, 4;
    animation: flow-dash 1.2s linear infinite;
}

.flow-path-reverse {
    stroke-dasharray: 6, 4;
    animation: flow-dash 1.2s linear infinite reverse;
}

@keyframes node-glow {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.3;
    }
}

.node-glow-ring {
    transform-origin: center;
    animation: node-glow 2.5s ease-in-out infinite;
}

/* Horizontal driving truck overlay keyframe animation */
@keyframes drive-across {
    0% {
        left: -180px;
    }
    100% {
        left: 100%;
    }
}

/* Subtle floating animation for 3D Container SVG */
@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f3f4f6;
}
.dark ::-webkit-scrollbar-track {
    background: #0a0c10;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #374151;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-surmount-orange);
}
