/* ==========================================================================
   ONEFLOW CORE STYLES, LOADERS & ANIMATIONS
   Brand Palette:
     - Primary Dark:   #1C2B36
     - Deep Dark:      #111A22
     - Accent Green:   #89C73B
     - Light Green:    #A2E050
     - Accent Teal:    #42A6AF
   ========================================================================== */

/* Typography & Layout Setup */
body {
    background-color: #111A22;
    color: #e2e8f0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

body[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

/* Background Utility */
.bg-oneflow-dark {
    background-color: #111A22 !important;
}

/* Page Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111A22;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.loader-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #89C73B;
    border-right-color: #42A6AF;
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

.loader-symbol {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(137, 199, 59, 0.5));
}

.loader-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #89C73B;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Global Loader Overlay Styles */
.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 26, 34, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99990;
}

.loader-logo {
    max-width: 180px;
    height: auto;
}

/* Navbar & Brand Branding */
.navbar-oneflow {
    background-color: rgba(28, 43, 54, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.of-brand-logo {
    height: 60px;
    width: 120px;
    
}

.of-brand-logo-sm {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    border-radius: 6px;
}

.nav-link-custom:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-oneflow-primary {
    background: linear-gradient(135deg, #89C73B 0%, #6EA42D 100%);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-oneflow-primary:hover {
    background: linear-gradient(135deg, #9AD948 0%, #7CB833 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(137, 199, 59, 0.35);
    color: #ffffff;
}

/* Interactive Card Elevate & Hover Effects */
.bg-light.border, 
.bg-white.shadow-sm,
.p-4.border.rounded-3 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s ease;
}

.bg-light.border:hover,
.p-4.border.rounded-3:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    border-color: #89C73B !important;
}

/* System Pulse Animation */
.of-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #89C73B;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(137, 199, 59, 0.7);
    animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(137, 199, 59, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(137, 199, 59, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(137, 199, 59, 0);
    }
}

/* Section Backgrounds & Glow Cards */
.of-hero-section {
    background: radial-gradient(circle at 50% 20%, rgba(137, 199, 59, 0.15) 0%, rgba(17, 26, 34, 1) 70%);
    position: relative;
}

.of-glow-card {
    background-color: #16232D;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.of-glow-card:hover {
    border-color: rgba(137, 199, 59, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(137, 199, 59, 0.15);
}

.of-flow-card {
    background-color: #16232D;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.of-flow-card:hover {
    background-color: #1c2b36;
    border-color: #89C73B;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.of-icon-box {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.35rem;
}

/* Gradient Text & Accent Utilities */
.text-gradient-primary,
.text-gradient-green {
    background: linear-gradient(135deg, #ffffff 0%, #89C73B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-soft-green,
.badge-soft-blue {
    background-color: rgba(137, 199, 59, 0.12);
    color: #89C73B;
    border: 1px solid rgba(137, 199, 59, 0.25);
}

/* Floating Labels Styling Overrides for Dark Mode */
.form-floating > .form-control,
.form-floating > .form-select {
    background-color: #111A22 !important;
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #89C73B;
    box-shadow: 0 0 0 0.25rem rgba(137, 199, 59, 0.25);
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.6);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: #89C73B;
}

/* Keyframe Animations */
.of-floating-hero {
    animation: floating-hero 6s ease-in-out infinite;
}

@keyframes floating-hero {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.of-float-badge-1 {
    animation: float-badge-1 5s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes float-badge-1 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.of-float-badge-2 {
    animation: float-badge-2 5s ease-in-out infinite 1s;
    backdrop-filter: blur(10px);
}

@keyframes float-badge-2 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Call To Action Button Pulse Glow Effect */
.of-btn-pulse {
    box-shadow: 0 0 0 0 rgba(137, 199, 59, 0.7);
    animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(137, 199, 59, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(137, 199, 59, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(137, 199, 59, 0);
    }
}

/* Mobile Navigation Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #1C2B36;
        padding: 1.25rem;
        border-radius: 12px;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    }
}