/* 
   OPRISA LOGISTICS - PREMIUM LOGISTICS LOCALIZATION STYLE SHEET
   Incorporates glassmorphism, floating ambient neon mint orbs, and interactive dropdowns.
*/

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #121414;
}
::-webkit-scrollbar-thumb {
    background: #333535;
    border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00ff9f;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #121414;
    color: #e2e2e2;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
}

/* --- Ambient Floating Neon Glow Orbs --- */
.neon-glow-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: screen;
}

.orb-1 {
    top: 5%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: #00ff9f;
    animation: pulse-glow-1 12s infinite alternate ease-in-out;
}

.orb-2 {
    top: 35%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: #007144;
    animation: pulse-glow-2 16s infinite alternate ease-in-out;
}

.orb-3 {
    bottom: 10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: #00ff9f;
    animation: pulse-glow-1 20s infinite alternate ease-in-out;
}

@keyframes pulse-glow-1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.08;
    }
    100% {
        transform: translate(50px, 80px) scale(1.2);
        opacity: 0.16;
    }
}

@keyframes pulse-glow-2 {
    0% {
        transform: translate(0, 0) scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: translate(-60px, -40px) scale(0.9);
        opacity: 0.18;
    }
}

/* --- Premium Glassmorphic Panels --- */
.glass-panel {
    background: rgba(22, 24, 24, 0.55);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(0, 255, 159, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 159, 0.05);
}

/* --- Scroll Progress Bar --- */
.progress-bar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background-color: #00ff9f;
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px #00ff9f;
}

/* --- Micro-Animations --- */
.animate-float {
    animation: float-y 6s infinite ease-in-out;
}

.animate-float-delayed {
    animation: float-y 6s infinite ease-in-out 1.5s;
}

@keyframes float-y {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* --- Input Focus glow states --- */
input:focus, select:focus, textarea:focus {
    border-color: #00ff9f !important;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.15) !important;
    background-color: #282a2b !important;
}

.input-invalid {
    border-color: #ffb4ab !important;
    box-shadow: 0 0 15px rgba(255, 180, 171, 0.2) !important;
}

.input-valid {
    border-color: #00ff9f !important;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.15) !important;
}

/* --- Custom Checkboxes Override --- */
input[type="checkbox"]:checked {
    background-color: #00ff9f !important;
    border-color: #00ff9f !important;
    color: #121414 !important;
}

/* --- WhatsApp Chat Drawer Overlay --- */
.whatsapp-chat-overlay {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 255, 159, 0.15);
}

.whatsapp-chat-overlay.hidden {
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    display: none;
}

.whatsapp-chat-overlay:not(.hidden) {
    display: flex;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(120%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --- Interactive Language dropdown Switcher --- */
.lang-dropdown-container {
    position: relative;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 140px;
    background: rgba(22, 24, 24, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
}

/* Bridge invisible element to prevent mouse hover loss on the 8px margin-top gap */
.lang-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.lang-dropdown-container:hover .lang-dropdown-menu,
.lang-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
