/* Variables */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --dark-blue: #1e40af;
    --light-gray: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-yellow) !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 15px;
    padding: 10px 0 !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: 1px solid var(--primary-blue);
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 58, 138, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(59, 130, 246, 0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-feature-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-feature-image:hover {
    transform: scale(1.05);
}

/* Card Images */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.value-card:hover .card-image,
.loan-card:hover .card-image {
    transform: scale(1.05);
}

.loan-image .card-image {
    height: 150px;
}

/* Form Header Image */
.form-header-image {
    width: 100%;
    max-width: 600px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* Value and Loan Cards Updates */
.value-card, .loan-card {
    overflow: hidden;
}

.value-image, .loan-image {
    overflow: hidden;
    border-radius: 10px;
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Navbar Improvements */
@media (max-width: 991px) {
    .navbar-nav {
        background: var(--white);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        margin: 8px 0;
        text-align: center;
        padding: 10px 0 !important;
    }
}

/* Image Loading Animation */
.card-image, .hero-feature-image, .hero-bg-image, .form-header-image {
    opacity: 0;
    animation: fadeInImage 0.8s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Staggered Animation for Cards */
.value-card:nth-child(1) .card-image { animation-delay: 0.2s; }
.value-card:nth-child(2) .card-image { animation-delay: 0.4s; }
.value-card:nth-child(3) .card-image { animation-delay: 0.6s; }

.loan-card:nth-child(1) .card-image { animation-delay: 0.3s; }
.loan-card:nth-child(2) .card-image { animation-delay: 0.5s; }
.loan-card:nth-child(3) .card-image { animation-delay: 0.7s; }
.loan-card:nth-child(4) .card-image { animation-delay: 0.9s; }
    font-size: 15rem;
    color: var(--accent-yellow);
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b, var(--accent-yellow));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-blue);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-button {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Value Cards */
.value-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-icon i {
    font-size: 2rem;
    color: var(--white);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
}

.value-card:hover .value-icon i {
    color: var(--primary-blue);
}

.value-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Loan Cards */
.loan-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.loan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
}

.loan-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.loan-icon i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.loan-card:hover .loan-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.loan-card:hover .loan-icon i {
    color: var(--white);
}

.loan-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.loan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.loan-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #f3f4f6;
}

.loan-features li:last-child {
    border-bottom: none;
}

/* Form Styles */
.loan-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.form-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

/* Contact Info */
.contact-info {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info h5 {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5, .footer h6 {
    color: var(--accent-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer ul li a:hover {
    color: var(--accent-yellow);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.footer-description {
    max-width: 500px;
    margin: 0 auto 2rem;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image i {
        font-size: 8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .loan-form {
        padding: 2rem 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .value-card, .loan-card {
        margin-bottom: 2rem;
    }
    
    .loan-form {
        padding: 1.5rem 1rem;
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Thank You Page Styles */
.thank-you-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-gray), #ffffff);
}

.thank-you-content {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.thank-you-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.next-steps h3 {
    color: var(--primary-blue);
    font-weight: 600;
}

.step-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-info-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
}

.contact-info-box h4 {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-info-box p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-box i {
    color: var(--accent-yellow);
    width: 20px;
}

.action-buttons .btn {
    margin: 0.5rem;
}

/* Responsive adjustments for thank you page */
@media (max-width: 768px) {
    .thank-you-content {
        padding: 2.5rem 2rem;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .action-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Legal Pages Styles */
.legal-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--light-gray);
}

.legal-content {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-yellow);
    padding-bottom: 1rem;
}

.legal-block {
    margin-bottom: 2.5rem;
}

.legal-block h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-yellow);
    padding-left: 1rem;
}

.legal-block h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 1.5rem 0 1rem 0;
}

.legal-block p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-block ul {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-block ul li {
    margin-bottom: 0.5rem;
}

.legal-block a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-block a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.legal-update {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Page Hero Styles */
.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-gray), #ffffff);
}

.page-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* About Page Styles */
.about-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    height: 100%;
}

.feature-box h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Loan Detail Styles */
.loan-detail-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.loan-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.loan-icon-large i {
    font-size: 3rem;
    color: var(--white);
}

.loan-detail-card h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.loan-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.loan-benefits li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f3f4f6;
}

.loan-benefits li:last-child {
    border-bottom: none;
}

/* Application Steps */
.application-steps {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}

.step-item {
    padding: 1rem;
}

.step-item.active .step-number {
    background: var(--primary-blue);
    color: var(--white);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #e5e7eb;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.step-item h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.contact-form h2 {
    color: var(--primary-blue);
    font-weight: 700;
}

/* FAQ Styles */
.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.faq-item h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 2.5rem 2rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-block h2 {
        font-size: 1.3rem;
    }
    
    .legal-block ul {
        padding-left: 1.5rem;
    }
    
    .page-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .loan-detail-card,
    .contact-form-container {
        padding: 2rem;
    }
    
    .loan-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .loan-icon-large i {
        font-size: 2.5rem;
    }
}