/* Core Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Common Elements */
section {
    position: relative;
    padding: 5rem 0;
}

.section-title {
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Animation Prep */
.loan-illustration {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* Loan Products Section */
.loan-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.loan-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: -1;
    transition: transform 0.5s ease;
}

.loan-card:hover::before {
    transform: rotate(0deg);
}

.loan-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.loan-card:hover .loan-icon {
    transform: rotateY(180deg);
}

.loan-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.loan-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.loan-features li i {
    margin-right: 0.75rem;
}

/* Testimonial Section */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: '\201D';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 120px;
    color: rgba(37, 99, 235, 0.05);
    font-family: serif;
    line-height: 0;
    z-index: 0;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-200);
    border-radius: 50%;
}

/* Eligibility Check Section */
#eligibilityResult {
    transition: all 0.3s ease;
}

.eligibility-success {
    color: var(--success-color);
}

.eligibility-warning {
    color: var(--warning-color);
}

.eligibility-danger {
    color: var(--danger-color);
}

/* Application Form Section */
.step {
    position: relative;
    width: 100%;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-300);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.step-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-step {
    transition: all 0.3s ease;
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    background-color: white;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 99, 235, 0.1);
}

.accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.2s ease;
}

/* Contact Section */
.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.contact-info:hover .contact-icon {
    transform: scale(1.1);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 3D Animation Effects */
.hero-section {
    perspective: 1000px;
}

.loan-illustration {
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateZ(0) translateY(0);
    }
    50% {
        transform: translateZ(20px) translateY(-10px);
    }
    100% {
        transform: translateZ(0) translateY(0);
    }
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
    z-index: 0;
}

.btn-primary:hover::after {
    transform: rotate(0deg);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}