/* Theme: Molten Core 
  Base: Midnight Oil (#0B1120)
  Accent: Safety Amber (#FF6B00)
  Fonts: Syne (Headings), Outfit (Body)
*/

:root {
    --midnight: #0B1120;
    --midnight-light: #151e32;
    --amber: #FF6B00;
    --amber-glow: rgba(255, 107, 0, 0.4);
    --white-mute: #e2e8f0;
    --grid-line: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: auto; /* Disabled for Lenis Smooth Scroll */
}

body {
    background-color: var(--midnight);
    color: var(--white-mute);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Default cursor restored */
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Industrial Texture Overlay (Noise) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--midnight);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--amber);
}

/* Utilities */
.text-amber { color: var(--amber); }
.bg-amber { background-color: var(--amber); }
.border-amber { border-color: var(--amber); }

.glass-panel {
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   ANIMATIONS (For Fleet Section)
   ========================= */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes spin-reverse-slow {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}
.animate-spin-reverse {
    animation: spin-reverse-slow 15s linear infinite;
}

/* 3D Card Styling */
.perspective-1000 {
    perspective: 1000px;
}
.transform-style-3d {
    transform-style: preserve-3d;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Liquid Background Animation */
.liquid-bg {
    background: linear-gradient(45deg, #0B1120, #1a2333, #0B1120);
    background-size: 400% 400%;
    animation: liquidFlow 15s ease infinite;
}

@keyframes liquidFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Liquid Loader */
.liquid-fill {
    position: relative;
    overflow: hidden;
}
.liquid-fill::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--amber);
    transition: height 0.5s ease;
    z-index: -1;
}

/* Hover Trigger for JS interactions (if needed) */
.hover-trigger {
    cursor: pointer;
}

/* =========================
   FUEL GAUGE SCROLL BAR
   ========================= */
#fuel-gauge-container {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* =========================
   SAFETY SHIELD CURSOR
   ========================= */
/* Cursor hidden styles removed to fix usability issues */

#cursor-shield {
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 9999; /* Ensure it's on top if visible */
}

/* Expanded state for cursor */
body.hovering #cursor-shield .cursor-ring {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 0, 0.1);
    border-color: var(--amber);
}

body.hovering #cursor-shield .shield-icon {
    opacity: 1;
}

/* =========================
   CARD SLIDER
   ========================= */
.swiper-slide {
    height: auto;
    display: flex;
}

.swiper-pagination-bullet {
    background: var(--white-mute);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--amber);
    opacity: 1;
}

/* Swiper Navigation Customization */
.card-slider .swiper-button-next,
.card-slider .swiper-button-prev {
    color: var(--amber);
    background: rgba(11, 17, 32, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide default Swiper arrows since we are using Remix Icons */
.card-slider .swiper-button-next:after,
.card-slider .swiper-button-prev:after {
    content: none;
}

.card-slider .swiper-button-next:hover,
.card-slider .swiper-button-prev:hover {
    background: var(--amber);
    color: var(--midnight);
    border-color: var(--amber);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

/* =========================
   OIL DROP ANIMATION
   ========================= */

/* Container for the animation */
.oil-animation-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%; /* Occupies the right half of the screen */
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Behind text if overlap occurs */
    overflow: hidden;
}

@media (max-width: 768px) {
    .oil-animation-wrapper {
        width: 100%;
    }
}

/* The Falling Drop */
.oil-drop {
    position: absolute;
    top: -150px;
    left: 50%; /* Center of the right half */
    width: 50px; /* Increased size */
    height: 70px; /* Increased size */
    background: linear-gradient(to bottom, #ff9100, #ff4f00); /* Brighter gradient */
    border-radius: 50% 50% 60% 60%;
    transform: translateX(-50%);
    animation: dropFall 4s infinite ease-in;
    filter: drop-shadow(0 0 10px #ff7a00);
}

/* Animation: Drop Falling */
@keyframes dropFall {
    0% { transform: translate(-50%, -150px) scale(1); opacity: 0; }
    10% { opacity: 1; }
    55% { transform: translate(-50%, 75vh) scale(1); opacity: 1; } /* Impacts at 75% viewport height */
    58% { transform: translate(-50%, 75vh) scale(1.5, 0.5); opacity: 0; } /* Squash effect */
    100% { opacity: 0; transform: translate(-50%, 75vh); }
}

/* The Glow at Impact */
.oil-impact-glow {
    position: absolute;
    left: 50%;
    top: 75vh; /* Match impact point */
    width: 400px; /* Larger glow */
    height: 140px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255,107,0,0.8) 0%, rgba(255,107,0,0.2) 50%, transparent 70%); /* Brighter core */
    opacity: 0;
    animation: glowPulse 4s infinite ease-out;
    filter: blur(40px);
}

@keyframes glowPulse {
    0%, 55% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    58% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); } /* Start dim */
    65% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } /* Peak brightness */
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.0); } /* Spread out */
}

/* The Ripples */
.oil-ripple {
    position: absolute;
    left: 50%;
    top: 75vh; /* Match impact point */
    width: 30px;
    height: 15px; /* Flattened oval */
    border: 3px solid rgba(255, 107, 0, 0.8); /* Brighter border */
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    animation: rippleExpand 4s infinite ease-out;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5); /* Add glow to ripple */
}

@keyframes rippleExpand {
    0%, 55% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); border-width: 4px; }
    60% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(8); border-width: 0px; } /* Wider spread */
}

/* =========================
   TRUCK MASKING (Medical Scan)
   ========================= */
#truck-solid-mask {
    height: 0%; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#truck-solid {
    transform: translateY(0); 
}

#truck-wireframe {
    opacity: 0.3;
}