/* Modern Enhancements for All Pages - Viresh Patel Financial Advisory */

/* CSS Variables */
:root {
    --primary-blue: #1968B1;
    --primary-green: #6FA84E;
    --primary-yellow: #F1BF39;
    --gradient-primary: linear-gradient(135deg, #1968B1, #6FA84E);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.7s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.7s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.03);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(25, 104, 177, 0.3);
}

/* Glass Morphism */
.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.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #F1BF39, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Modern Buttons */
.btn-modern {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-modern-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-modern-outline:hover {
    background: currentColor;
    color: white !important;
}

/* Modern Cards */
.card-modern {
    border-radius: 20px;
    border: none;
    background: white;
    transition: var(--transition);
}

.card-modern-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Badge Styles */
.badge-modern {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.badge-outline {
    background: transparent;
    border: 2px solid currentColor;
}

/* Timeline */
.timeline-connector {
    position: relative;
}

.timeline-connector::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 60px;
    bottom: -20px;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-primary);
    position: absolute;
    left: 14px;
    top: 30px;
    box-shadow: 0 0 0 4px rgba(25, 104, 177, 0.2);
}

/* Section Dividers */
.divider-gradient {
    height: 3px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 3px;
    opacity: 0.6;
}

/* Icon Styles */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}

/* Grid Background */
.bg-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #ffffff 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* Progress Bar */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar-modern {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Spacing Utilities */
.section-spacing {
    padding: 80px 0;
}

.section-spacing-sm {
    padding: 60px 0;
}

.section-spacing-lg {
    padding: 100px 0;
}

/* Text Shadow */
.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-md {
    text-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive Tables */
.table-modern {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-modern thead {
    background: var(--gradient-primary);
    color: white;
}

.table-modern tbody tr:hover {
    background: rgba(25, 104, 177, 0.05);
    transition: var(--transition);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 0;
    }
    
    .section-spacing-lg {
        padding: 70px 0;
    }
    
    .btn-modern {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .icon-box, .icon-circle {
        width: 45px;
        height: 45px;
    }
    
    .icon-box i, .icon-circle i {
        font-size: 1.2rem !important;
    }
    
    .hover-lift:hover {
        transform: none;
    }
    
    .timeline-connector::before {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.15rem !important; }
    h5 { font-size: 1.05rem !important; }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .badge-modern {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
        --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
        --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
        --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    }
}

/* Accessibility */
.focus-visible:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .hover-lift,
    .hover-scale,
    .hover-glow {
        transform: none !important;
    }
    
    .shadow,
    .shadow-sm,
    .shadow-md,
    .shadow-lg {
        box-shadow: none !important;
    }
}
