/* 
 * Fintax Premium Design System 
 * Inspired by JSR Time CMS 60-40-10 Principle
 */

:root {
    /* 60% - Base (Backgrounds, Surfaces) */
    --base-light: #f8fafc;
    --base-white: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.7);
    
    /* 30% - Secondary (Text, Accents, Secondary Elements) */
    --text-primary: #0f172a;   /* Slate 900 */
    --text-muted: #64748b;     /* Slate 500 */
    --secondary: #475569;      /* Slate 600 */
    --border-light: rgba(0, 0, 0, 0.05);
    
    /* 10% - Primary/Accent (CTAs, Key Highlights) */
    --primary: #2563eb;        /* Blue 600 */
    --primary-hover: #1d4ed8;  /* Blue 700 */
    --accent: #10b981;         /* Emerald 500 */
    
    /* Global System Effects */
    --glass: blur(12px) saturate(180%);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-pill: 50px;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--base-light);
    line-height: 1.6;
    padding-top: 70px; /* Fixed header compensation */
    overflow-x: hidden;
}

.font-outfit { font-family: 'Outfit', sans-serif; }

/* Fixed Glassmorphism Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--surface-glass);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header.scrolled {
    background: var(--base-white);
    box-shadow: var(--shadow-premium);
    height: 60px;
}

/* Navigation Links */
.nav-link-custom {
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.nav-link-custom:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after { width: 50%; }

/* Buttons & Branding */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px rgba(37, 99, 235, 0.4);
}

/* Glass Cards */
.glass-card {
    background: var(--base-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed; inset: 0;
    background: var(--base-white);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}

.mobile-menu-overlay.active { transform: translateX(0); }

/* Search Overlay */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center; justify-content: center;
}

.search-overlay.active { display: flex; }

/* Sections */
.hero-section-premium {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover) !important; }

.object-fit-cover { object-fit: cover; }
.letter-spacing-1 { letter-spacing: 1px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--base-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Dashboard Specifics */
.logo-circle-sm { width: 32px; height: 32px; font-size: 0.8rem; }
.card { border: none; border-radius: var(--radius); transition: var(--transition); }
.shadow-premium { box-shadow: var(--shadow-premium) !important; }

/* Mobile Optimizations */
@media (max-width: 991px) {
    .site-header { height: 65px; }
    body { padding-top: 65px; }
    .nav-link-custom { padding: 8px 12px; font-size: 0.85rem; }
}

@media (max-width: 768px) {
    .display-3 { font-size: 2.25rem !important; line-height: 1.2; }
    .display-4 { font-size: 2rem !important; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero-section { min-height: auto !important; padding: 4rem 0 !important; }
    .hero-stat { border-left: 2px solid var(--primary); padding-left: 12px; }
    .hero-stat h4 { font-size: 1.25rem; }
    
    .btn-premium { padding: 10px 20px; font-size: 0.9rem; }
    
    .section-padding { padding: 3rem 0; }
    
    /* Force stack for complex layouts */
    .row > * { margin-bottom: 1.5rem; }
    .row > *:last-child { margin-bottom: 0; }
}

@media (max-width: 576px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .display-3 { font-size: 2rem !important; }
    .fs-5 { font-size: 1rem !important; }
    .hero-image-wrapper { max-width: 280px; margin: 0 auto; }
}

/* Fix for horizontal overflow */
.row { margin-left: 0; margin-right: 0; }
.container { overflow-x: hidden; }
