/* ===================================
   PURE LIFE - ENTERPRISE WEBSITE
   Premium CSS Design System (WP Version)
   =================================== */

:root {
    /* Brand Colors - Matching original design */
    --color-primary: #2D5A4D;
    --color-primary-dark: #1F3D35;
    --color-primary-light: #3D7A66;
    --color-secondary: #7BAF6B;
    --color-secondary-light: #9FD08F;
    --color-accent: #E67E22;
    --color-accent-light: #F39C12;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-off-white: #F8FAF9;
    --color-light-gray: #EDF2F0;
    --color-gray: #A0AEC0;
    --color-dark-gray: #4A5568;
    --color-dark: #1A202C;
    --color-black: #0D1117;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary-dark) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Spacing & Radius */
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ===================================
   BOOTSTRAP OVERRIDES & ENHANCEMENTS
   =================================== */

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.bg-primary { background-color: var(--color-primary) !important; }
.text-primary { color: var(--color-primary) !important; }
.btn-primary { 
    background: var(--gradient-accent); 
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
    background: var(--gradient-accent);
}

/* ===================================
   PRELOADER
   =================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================
   NAVIGATION (Bootstrap Integrated)
   =================================== */

.navbar {
    transition: all var(--transition-base);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s;
}

.navbar.scrolled .nav-link { color: var(--color-dark) !important; }
.nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    background: var(--color-primary-dark);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(29, 45, 35, 0.85) 0%, rgba(45, 90, 77, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   GLASS CARDS & STATS
   =================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* ===================================
   ANIMATIONS
   =================================== */

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}
