/**
 * Finolead Solutions - Premium Fintech Design System
 * Custom theme styles utilizing Slate, Royal Blue, and Teal.
 * High-performance, modern animations, glassmorphism, and interactive layouts.
 */

/* Root Variables */
:root {
    --primary: #0F172A;
    --primary-rgb: 15, 23, 42;
    --secondary: #2563EB;
    --secondary-rgb: 37, 99, 235;
    --accent: #14B8A6;
    --accent-rgb: 20, 184, 166;
    --bg-light: #F8FAFC;
    --bg-dark: #0B0F19;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Base Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.2px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

p {
    line-height: 1.65;
    color: var(--text-muted);
}

/* Colors & Gradients */
.text-primary-color { color: var(--primary) !important; }
.text-secondary-color { color: var(--secondary) !important; }
.text-accent-color { color: var(--accent) !important; }
.bg-primary-color { background-color: var(--primary) !important; }
.bg-secondary-color { background-color: var(--secondary) !important; }
.bg-accent-color { background-color: var(--accent) !important; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gradient-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
}

.bg-gradient-flow {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    transition: var(--transition-smooth);
    letter-spacing: -0.1px;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
}

.btn-accent:hover {
    background: #0d9488;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.25);
}

.btn-dark-fintech {
    background-color: var(--primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark-fintech:hover {
    background-color: #1e293b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

/* Glassmorphism Styles */
.glass-nav {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: var(--shadow-sm);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Dark glass variant */
.dark-glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.dark-glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Mega Menu */
.navbar-expand-lg .navbar-nav .dropdown-menu {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    animation: fadeInUp 0.3s ease;
}

.mega-menu {
    width: 600px;
    left: -150px !important;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.mega-menu-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.mega-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.mega-menu-item:hover .mega-menu-icon {
    background: var(--secondary);
    color: white;
}

.mega-menu-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.mega-menu-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Interactive Cards & CRM Boxes */
.crm-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    background: white;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    height: 100%;
}

.crm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.crm-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.crm-card:hover .crm-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.navbar-brand img{
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Dashboard Mockup Showcase */
.dashboard-mockup {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 80px rgba(37, 99, 235, 0.15);
    overflow: hidden;
}

.mockup-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-tab {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 8px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mockup-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.mockup-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px;
}

.dashboard-mockup .text-muted,
.mockup-card .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

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

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    right: -100px;
    z-index: 1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20,184,166,0.06) 0%, rgba(255,255,255,0) 70%);
    bottom: -100px;
    left: -100px;
    z-index: 1;
    pointer-events: none;
}

/* Trusted Logos */
.trusted-logo {
    filter: grayscale(100%) opacity(40%);
    transition: var(--transition-fast);
    max-height: 35px;
}

.trusted-logo:hover {
    filter: grayscale(0%) opacity(80%);
}

/* Accordion Custom */
.accordion-item {
    border-radius: 14px !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.03);
    color: var(--secondary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 99, 235, 0.1);
}

/* Stat Counter */
.counter-box {
    text-align: center;
    padding: 20px;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

/* Testimonial slider & cards */
.testimonial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid rgba(37, 99, 235, 0.1);
}

/* Premium Slick dots styling */
.slick-dots {
    bottom: -35px;
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.slick-dots li {
    margin: 0 6px;
    transition: var(--transition-smooth);
}

.slick-dots li button {
    border: none;
    background: rgba(37, 99, 235, 0.15);
    text-indent: -9999px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.slick-dots li.slick-active button {
    background: var(--secondary);
    width: 28px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
}

/* Slick Slider slide spacing & equal-height flexbox stretch */
.slick-slide {
    height: inherit !important;
    display: flex !important;
}

.slick-slide > div {
    display: flex;
    width: 100%;
}

/* Footer modern dark */
.footer-dark {
    background: #090D16;
    color: #94A3B8;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-dark h5 {
    color: white;
    font-weight: 600;
}

.footer-dark a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-dark a:hover {
    color: var(--accent);
}

/* Forms & Security Styling */
.form-control, .form-select {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    font-size: 0.95rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Career Listings card */
.job-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    transition: var(--transition-smooth);
    margin-bottom: 16px;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Blog item styles */
.blog-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    z-index: 10;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Accessibility & Contrast: Ensure paragraphs and text-muted inside dark sections have high readability */
.page-header p.text-muted,
.page-header span.text-muted,
.page-header .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-dark p.text-muted,
.footer-dark .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.bg-primary-color p.text-muted,
.bg-gradient-premium p.text-muted,
.dark-glass-card p.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Ensure global p elements inside dark backgrounds inherit correct light tones rather than text-muted gray */
.bg-primary-color p,
.bg-gradient-premium p,
.bg-dark p,
.footer-dark p,
.text-white p,
.text-light p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.page-header h1 {
    color: white;
}

.page-header-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20,184,166,0.1) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    right: -100px;
    z-index: 1;
}

/* Admin Dashboard layout */
.admin-sidebar {
    background: #0f172a;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-sidebar .nav-link:hover, 
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-sidebar .nav-link.active {
    border-left: 4px solid var(--accent);
}

.admin-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px;
}
