/* ================================================
   Aastha Capital Finance - Glassmorphism Dark Theme
   Bootstrap 5 Custom Styles
   ================================================ */

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #06b6d4;
    --color-accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-dark-2: #1e1b4b;
    --bg-dark-3: #312e81;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #6366f1, #06b6d4); border-radius: 10px; }

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
}
.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ---- Gradients ---- */
.gradient-hero { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #1e1b4b 100%); }
.gradient-text { background: linear-gradient(135deg, #6366f1, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-card-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.gradient-card-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.gradient-card-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.gradient-card-4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.gradient-card-5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.gradient-card-6 { background: linear-gradient(135deg, #f97316, #f59e0b); }
.gradient-primary { background: linear-gradient(135deg, #667eea, #764ba2); }

/* ---- Buttons ---- */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff; padding: 0.75rem 2rem; border-radius: 9999px;
    font-weight: 600; border: none; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); display: inline-block;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6); color: #fff; }
.btn-outline-glass {
    background: transparent; color: #fff; padding: 0.75rem 2rem;
    border-radius: 9999px; font-weight: 600; border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease; display: inline-block;
}
.btn-outline-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); color: #fff; }

/* ---- Navbar ---- */
.navbar-glass { background: transparent; transition: all 0.3s ease; }
.navbar-glass.scrolled {
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.navbar-glass .nav-link {
    color: #cbd5e1; font-weight: 500; font-size: 0.875rem;
    padding: 0.5rem 0.85rem; margin: 0 0.2rem;
    border-radius: 9999px; transition: all 0.3s ease;
    white-space: nowrap;
}
.navbar-glass .nav-link:hover, .navbar-glass .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.navbar-glass .dropdown-menu {
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem;
    padding: 0.5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.navbar-glass .dropdown-item { color: #cbd5e1; border-radius: 0.5rem; padding: 0.6rem 1rem; transition: all 0.2s ease; }
.navbar-glass .dropdown-item:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.navbar-glass .dropdown-item i { width: 20px; }

/* ---- Sections ---- */
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 5rem 0; } }
.section-dark { background: var(--bg-dark); position: relative; }
.section-gradient { background: linear-gradient(180deg, var(--bg-dark) 0%, #1e1b4b 50%, var(--bg-dark) 100%); position: relative; }

/* ---- Page Header (keeps space from fixed navbar) ---- */
.page-header { padding-top: 7rem; padding-bottom: 3rem; }
.page-header-breadcrumb { padding-top: 8rem; padding-bottom: 4rem; }

/* ---- Floating Orbs ---- */
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.15; pointer-events: none; }
.orb-1 { width: 300px; height: 300px; background: #6366f1; top: 10%; left: 5%; animation: floatOrb 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: #06b6d4; bottom: 10%; right: 5%; animation: floatOrb 8s ease-in-out infinite 2s; }
.orb-3 { width: 250px; height: 250px; background: #8b5cf6; top: 50%; left: 50%; animation: floatOrb 8s ease-in-out infinite 4s; }

/* ---- Animations ---- */
@keyframes floatOrb { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-25px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); } 50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); } }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-float { animation: floatOrb 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

/* ---- Icon Boxes ---- */
.icon-box { width: 56px; height: 56px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.glass-card:hover .icon-box { transform: scale(1.1); }

/* ---- Badge ---- */
.badge-glass {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); padding: 0.4rem 1rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block;
}

/* ---- Forms ---- */
.form-control-glass, .form-select-glass {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff; border-radius: 0.75rem; padding: 0.75rem 1rem; transition: all 0.3s ease;
}
.form-control-glass::placeholder { color: #64748b; }
.form-control-glass:focus, .form-select-glass:focus {
    background: rgba(255, 255, 255, 0.08); border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); color: #fff;
}
.form-select-glass option { background: #1e293b; color: #fff; }
.form-label-glass { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }

/* ---- Accent Bars ---- */
.accent-bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; border-radius: 1.5rem 1.5rem 0 0; }
.accent-bar-indigo { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.accent-bar-cyan { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.accent-bar-emerald { background: linear-gradient(90deg, #10b981, #06b6d4); }
.accent-bar-amber { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.accent-bar-pink { background: linear-gradient(90deg, #ec4899, #8b5cf6); }
.accent-bar-orange { background: linear-gradient(90deg, #f97316, #f59e0b); }

/* ---- Progress ---- */
.progress-gradient { background: rgba(255, 255, 255, 0.05); border-radius: 9999px; height: 8px; overflow: hidden; }
.progress-gradient .progress-bar { background: linear-gradient(90deg, #6366f1, #06b6d4); border-radius: 9999px; }

/* ---- Table ---- */
.table-glass { color: #e2e8f0; }
.table-glass thead th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 1rem 1.5rem; }
.table-glass tbody td { border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 1rem 1.5rem; vertical-align: middle; }
.table-glass tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ---- Footer ---- */
.footer-dark { background: linear-gradient(135deg, #0f172a, #1e1b4b); position: relative; overflow: hidden; }
.footer-dark a { color: var(--text-muted); transition: color 0.3s ease; }
.footer-dark a:hover { color: #818cf8; }

/* ---- Social ---- */
.social-icon {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-muted); transition: all 0.3s ease;
}
.social-icon:hover { background: rgba(99, 102, 241, 0.3); color: #fff; transform: translateY(-3px); }

/* ---- Calculator ---- */
.range-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, 0.1); outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #06b6d4); cursor: pointer; box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
.range-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #06b6d4); cursor: pointer; border: none; box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .navbar-glass .navbar-collapse {
        background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; padding: 1rem; margin-top: 0.5rem;
    }
}

/* ---- Mobile Responsiveness ---- */
@media (max-width: 767.98px) {
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.5rem; }
    .section-padding { padding: 2rem 0; }
    .glass-card { border-radius: 1rem; }
    .glass-card:hover { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
    .btn-gradient, .btn-outline-glass { width: 100%; text-align: center; padding: 0.85rem 1.5rem; }
    .icon-box { width: 48px; height: 48px; }
    .stats-slider { padding: 0.75rem 0; }
    .stat-item { gap: 0.4rem; }
    .stat-icon { width: 28px; height: 28px; font-size: 0.7rem; }
    .stat-text { font-size: 0.75rem; }
    .footer-dark .row { gap: 1rem; }
    .orb { display: none; }
}

/* ---- Mobile Scroll Animations ---- */
@media (max-width: 767.98px) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
    .reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active { opacity: 1; transform: translateY(0); }
    .glass-card { opacity: 0; transform: translateY(15px); transition: all 0.4s ease; }
    .glass-card.active { opacity: 1; transform: translateY(0); }
}

/* ---- Testimonial Slider ---- */
.testimonial-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; padding: 0.5rem 0 1.5rem; scrollbar-width: none; -ms-overflow-style: none; }
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-slide { min-width: 320px; max-width: 380px; scroll-snap-align: start; flex-shrink: 0; }
@media (max-width: 767.98px) { .testimonial-slide { min-width: 280px; max-width: 85vw; } }
.testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all 0.3s; cursor: pointer; }
.testimonial-dot.active { background: #6366f1; width: 24px; border-radius: 4px; }

/* ---- Loan Popup ---- */
.loan-popup-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1rem; }
.loan-popup-overlay.show { display: flex; }
.loan-popup { background: rgba(15, 23, 42, 0.97); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 1.5rem; padding: 2rem; max-width: 550px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.popup-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255, 255, 255, 0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: background 0.3s ease; }
.popup-close:hover { background: rgba(239, 68, 68, 0.5); }

/* ---- Accordion ---- */
.accordion-button { padding: 1.25rem 1.5rem; font-size: 0.95rem; }
.accordion-button:not(.collapsed) { background: transparent; color: #fff; }
.accordion-button::after { filter: invert(1); }
.accordion-button:focus { box-shadow: none; }

/* ---- Misc ---- */
.text-muted-custom { color: var(--text-muted); }
.border-glass { border: 1px solid rgba(255, 255, 255, 0.1); }
.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.5rem; }
.shadow-glow { box-shadow: 0 0 30px rgba(99, 102, 241, 0.15); }

/* ---- Loan Type Buttons (Calculator) ---- */
.loan-type-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8; border-radius: 0.75rem; font-size: 0.8rem; font-weight: 500; transition: all 0.3s ease;
}
.loan-type-btn:hover, .loan-type-btn.active { background: rgba(99,102,241,0.3); border-color: #6366f1; color: #fff; }


/* ---- Stats Slider ---- */
.stats-slider {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.12));
    border-top: 1px solid rgba(99,102,241,0.15);
    border-bottom: 1px solid rgba(6,182,212,0.15);
    padding: 1.25rem 0;
    overflow: hidden;
    width: 100%;
}
.stats-scroll {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: statsScroll 25s linear infinite;
}
.stats-scroll-reverse {
    animation: statsScrollReverse 25s linear infinite;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}
.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.stat-item:nth-child(1) .stat-icon, .stat-item:nth-child(7) .stat-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.stat-item:nth-child(2) .stat-icon, .stat-item:nth-child(8) .stat-icon { background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; }
.stat-item:nth-child(3) .stat-icon, .stat-item:nth-child(9) .stat-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.stat-item:nth-child(4) .stat-icon, .stat-item:nth-child(10) .stat-icon { background: linear-gradient(135deg, #ec4899, #8b5cf6); color: #fff; }
.stat-item:nth-child(5) .stat-icon, .stat-item:nth-child(11) .stat-icon { background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff; }
.stat-item:nth-child(6) .stat-icon, .stat-item:nth-child(12) .stat-icon { background: linear-gradient(135deg, #f97316, #f59e0b); color: #fff; }
.stat-text {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
@keyframes statsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes statsScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ---- Testimonial Section ---- */
.testimonial-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background: linear-gradient(135deg, #0f172a, #1e1b4b 30%, #312e81 50%, #1e1b4b 70%, #0f172a);
    border-top: 1px solid rgba(99,102,241,0.1);
    border-bottom: 1px solid rgba(6,182,212,0.1);
}


/* ---- Scroll Reveal Animations ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* ---- Enhanced Hover Effects ---- */
.glass-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.glass-card:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15), 0 10px 20px rgba(0,0,0,0.2); }

/* ---- Icon Box Pulse on Hover ---- */
.glass-card:hover .icon-box { animation: iconPulse 0.6s ease; }
@keyframes iconPulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1.1); } }

/* ---- Gradient Border Glow ---- */
.btn-gradient { position: relative; overflow: hidden; }
.btn-gradient::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent); animation: shimmer 3s linear infinite; opacity: 0; transition: opacity 0.3s; }
.btn-gradient:hover::before { opacity: 1; }
@keyframes shimmer { 100% { transform: rotate(360deg); } }

/* ---- Counter Animation ---- */
.counter-value { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---- Smooth Section Transitions ---- */
section { position: relative; }
section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent); }
