/* Custom CSS Variables */
:root {
    --primary: #A855F7;
    --primary-dark: #8B4367;
    --accent: #EC4899;
    --success: #10B981;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --green: #10B981;
    --orange: #F59E0B;
    --text-primary: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --bg-light: #F9FAFB;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

.logo-img {
    height: 64px;
    width: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #fff, rgba(168, 85, 247, 0.1), #fff);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-background::before,
.hero-background::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero-background::before {
    top: -160px;
    right: -160px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    animation: float 20s infinite ease-in-out;
}

.hero-background::after {
    bottom: -160px;
    left: -160px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(20px, 20px) scale(1.2) rotate(90deg); }
}

/* Badge */
.badge-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.badge-white {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Benefit Cards */
.benefit-card {
    padding: 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.bg-primary-light {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
}

.benefit-content {
    font-size: 0.875rem;
}

/* Avatar Images */
.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    margin-left: -8px;
}

/* Loan Form */
.loan-form-wrapper {
    position: relative;
}

.loan-form-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.loan-form-card::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 2rem;
    filter: blur(20px);
    opacity: 0.2;
    z-index: -1;
}

.form-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--accent));
    padding: 2rem;
}

.loan-form {
    padding: 2rem;
}

/* Employment Toggle */
.employment-toggle {
    position: relative;
    background: rgba(168, 85, 247, 0.1);
    padding: 4px;
    border-radius: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.employment-toggle[data-type="self-employed"] .toggle-slider {
    transform: translateX(100%);
}

.toggle-btn {
    position: relative;
    z-index: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.toggle-btn.active {
    color: white;
}

/* Form Controls */
.form-floating {
    position: relative;
}

.form-floating .currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-muted);
    z-index: 3;
    pointer-events: none;
}

.form-floating input:focus ~ .currency-symbol,
.form-floating input:not(:placeholder-shown) ~ .currency-symbol {
    top: 1.5rem;
    font-size: 0.75rem;
    color: var(--primary);
}

.form-floating input.has-currency {
    padding-left: 2.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}

/* Primary Gradient Button */
.btn-primary-gradient {
    background: linear-gradient(to right, var(--primary), var(--primary-dark), var(--accent));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(168, 85, 247, 0.4);
    color: white;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--accent), var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-gradient:hover::before {
    opacity: 1;
}

.btn-primary-gradient span,
.btn-primary-gradient i {
    position: relative;
    z-index: 1;
}

/* Success Overlay */
.success-overlay {
    position: absolute;
    inset: 0;
    background: white;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1.5rem;
}

.success-overlay.show {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

/* Eligibility Section */
.eligibility-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.floating-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.eligibility-card {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 1px solid #BFDBFE;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.eligibility-card:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.eligibility-card:nth-child(2) {
    background: linear-gradient(135deg, #F3E8FF, #E9D5FF);
    border-color: #D8B4FE;
}

.eligibility-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bg-blue {
    background: linear-gradient(135deg, var(--blue), #2563EB);
}

.bg-purple {
    background: linear-gradient(135deg, var(--purple), #7C3AED);
}

/* EMI Calculator Section */
.emi-section {
    background: linear-gradient(to bottom, white, rgba(168, 85, 247, 0.05), white);
    position: relative;
    overflow: hidden;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.calculator-card::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 2rem;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.form-range {
    height: 8px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary);
    border: none;
    width: 20px;
    height: 20px;
}

.form-range::-moz-range-thumb {
    background: var(--primary);
    border: none;
    width: 20px;
    height: 20px;
}

.emi-result-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(168, 85, 247, 0.3);
}

.result-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon i {
    font-size: 1.5rem;
    color: white;
}

.breakdown-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.breakdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.bg-blue-light {
    background: rgba(59, 130, 246, 0.1);
}

.text-blue {
    color: var(--blue);
}

.bg-orange-light {
    background: rgba(245, 158, 11, 0.1);
}

.text-orange {
    color: var(--orange);
}

.total-payment-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.total-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-icon i {
    font-size: 2rem;
    color: white;
}

/* How It Works Section */
.how-it-works-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.75;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.step-card {
    position: relative;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.step-icon i {
    font-size: 2.5rem;
}

.bg-green {
    background: linear-gradient(135deg, var(--green), #059669);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(to bottom, #fff, rgba(168, 85, 247, 0.05), #fff);
    position: relative;
}

.testimonial-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.1;
}

.quote-icon i {
    font-size: 4rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar span {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.verified-badge {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    color: var(--primary);
}

.stat-item {
    padding: 1rem;
}

/* Footer */
.footer-section {
    background: linear-gradient(to bottom, #fff, rgba(168, 85, 247, 0.05));
    border-top: 1px solid var(--border);
    position: relative;
}

.footer-logo {
    height: 56px;
    width: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(168, 85, 247, 0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(168, 85, 247, 0.4);
}

.scroll-to-top i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .loan-form-card {
        margin-top: 2rem;
    }
    
    .floating-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

