/* ==========================================================================
   BPAL Software - Centralized Theme Styles & CSS Variables (Light Theme First)
   Change theme variables in :root to update colors site-wide instantly.
   ========================================================================== */

:root {
    /* Main Brand Colors (Extracted directly from logo.jpg) */
    --bpal-navy: #162E69;           /* Deep Royal Navy (Primary Logo 'b' Symbol) */
    --bpal-navy-dark: #0F172A;      /* Deep Dark Blue for Text & Strong Accents */
    --bpal-navy-light: #1E3A8A;     /* Primary Brand Accent */
    
    --bpal-cyan: #0284C7;           /* Vibrant Sky Cyan (Upper 'p' ring in logo) */
    --bpal-cyan-light: #0EA5E9;     /* Sky Cyan Highlight */
    
    --bpal-lime: #65A30D;           /* Fresh Lime Green (Lower 'p' stem in logo) */
    --bpal-lime-bright: #84CC16;    /* Bright Lime Accent */

    /* Light Theme Backgrounds & Neutral Tokens */
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-card: #FFFFFF;
    
    /* Text Color Tokens */
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-inverse: #FFFFFF;

    /* Border & Separator Tokens */
    --border-light: #E2E8F0;
    --border-accent: rgba(2, 132, 199, 0.2);

    /* Shadow & Glow Effects */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed navbar */
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 5px;
    border: 2px solid #F1F5F9;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bpal-cyan);
}

/* Brand Theme Utility Classes */
.bg-bpal-navy { background-color: var(--bpal-navy); }
.bg-bpal-cyan { background-color: var(--bpal-cyan); }
.bg-bpal-lime { background-color: var(--bpal-lime); }
.bg-bpal-alt { background-color: var(--bg-alt); }

.text-bpal-navy { color: var(--bpal-navy); }
.text-bpal-cyan { color: var(--bpal-cyan); }
.text-bpal-lime { color: var(--bpal-lime); }
.text-bpal-muted { color: var(--text-muted); }

.border-bpal-cyan { border-color: var(--bpal-cyan); }
.border-bpal-lime { border-color: var(--bpal-lime); }
.border-bpal-light { border-color: var(--border-light); }

/* Gradient Texts using CSS Variables */
.gradient-text-bpal {
    background: linear-gradient(135deg, var(--bpal-navy) 0%, var(--bpal-cyan) 60%, var(--bpal-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-cyan-navy {
    background: linear-gradient(135deg, var(--bpal-navy) 0%, var(--bpal-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Light Navigation & Cards */
.glass-nav-light {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover-effect:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.3);
}

/* Hero Light Background Pattern */
.hero-pattern-light {
    background-color: #FFFFFF;
    background-image: 
        radial-gradient(rgba(2, 132, 199, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(22, 46, 105, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
}

/* Custom Glow Pills */
.badge-bpal {
    background: rgba(2, 132, 199, 0.08);
    color: var(--bpal-cyan);
    border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-lime {
    background: rgba(101, 163, 13, 0.08);
    color: var(--bpal-lime);
    border: 1px solid rgba(101, 163, 13, 0.25);
}

/* Active Nav State */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bpal-navy), var(--bpal-cyan));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-link.active-nav::after,
.nav-link:hover::after {
    width: 80%;
}
.nav-link.active-nav {
    color: var(--bpal-navy) !important;
}

/* Button Styles using Brand Variables */
.btn-bpal-primary {
    background: linear-gradient(135deg, var(--bpal-navy) 0%, var(--bpal-cyan) 100%);
    color: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}
.btn-bpal-primary:hover {
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
    transform: translateY(-2px);
}

.btn-bpal-secondary {
    background: #FFFFFF;
    color: var(--bpal-navy);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.btn-bpal-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--bpal-cyan);
    color: var(--bpal-cyan);
}

/* Step Badge Circle */
.step-number {
    background: linear-gradient(135deg, var(--bpal-navy) 0%, var(--bpal-cyan) 100%);
    color: #FFFFFF;
    font-weight: 800;
}

/* ==========================================================================
   Interactive Hero Layer Stack & Responsive 3D Separation Animation
   ========================================================================== */
.perspective-1000 {
    perspective: 1200px;
}

#hero-stack-wrapper {
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-10deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
    #hero-stack-wrapper {
        transform: scale(0.82) rotateX(10deg) rotateY(-5deg);
    }
}

.hero-stack-layer {
    transform-style: preserve-3d;
    will-change: transform, opacity;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.hero-stack-layer:hover {
    box-shadow: 0 30px 60px -20px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   Industry Card High-Contrast Hover Styles (100% Reliable Icon Contrast)
   ========================================================================== */
.industry-card {
    background-color: #F8FAFC !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.industry-card:hover {
    background-color: #FFFFFF !important;
    border-color: var(--bpal-cyan) !important;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.18) !important;
    transform: translateY(-4px) !important;
}

.industry-card-icon {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #162E69 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.industry-card-icon svg,
.industry-card-icon svg *,
.industry-card-icon i {
    stroke: #162E69 !important;
    color: #162E69 !important;
    transition: all 0.3s ease !important;
}

/* Hover State - Solid Deep Navy Icon Box with Solid White SVG Icon */
.industry-card:hover .industry-card-icon,
.industry-card-icon:hover {
    background-color: #162E69 !important;
    border-color: #162E69 !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 16px rgba(22, 46, 105, 0.35) !important;
}

.industry-card:hover .industry-card-icon svg,
.industry-card:hover .industry-card-icon svg *,
.industry-card:hover .industry-card-icon i,
.industry-card-icon:hover svg,
.industry-card-icon:hover svg * {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

.industry-card-title {
    color: #1E293B !important;
    transition: color 0.3s ease !important;
}

.industry-card:hover .industry-card-title {
    color: #162E69 !important;
}

/* ==========================================================================
   Alive Scroll Reveal Animations & Micro-Interactions
   ========================================================================== */

/* 1. General Fade Up Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Prominent Left-to-Right Slide Reveal (Featured Case Studies) */
.reveal-slide-left {
    opacity: 0;
    transform: translateX(-90px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 3. Pop-In Scale Reveal (Industries We Serve Tiles) */
.reveal-pop-in {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-pop-in.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Toast Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.animate-toast {
    animation: slideUp 0.3s ease forwards;
}
