/* wwwroot/css/site.css */
:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff10" points="0,1000 1000,0 1000,1000"/></svg>');
        z-index: 1;
    }

    .hero-section .container {
        position: relative;
        z-index: 2;
    }

.min-vh-50 {
    min-height: 50vh;
}

/* Floating Elements Animation */
.floating-elements {
    position: relative;
    height: 200px;
}

.floating-card {
    position: absolute;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.card-3 {
    top: 10%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Loan Cards */
.loan-card {
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

    .loan-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    }

    .loan-card .loan-icon {
        transition: all 0.3s ease;
    }

    .loan-card:hover .loan-icon i {
        transform: scale(1.1);
        color: var(--secondary-color) !important;
    }

.loan-features {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

/* Feature Cards */
.feature-card {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2);
}

/* Value Cards */
.value-card {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

    .value-card:hover {
        transform: translateY(-5px);
    }

.value-icon {
    transition: all 0.3s ease;
}

.value-card:hover .value-icon i {
    transform: scale(1.1) rotateY(360deg);
    transition: transform 0.6s ease;
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
}

    .team-card:hover {
        transform: translateY(-5px);
    }

.team-avatar {
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar i {
    transform: scale(1.1);
}

/* Form Styles */
.form-step {
    display: none;
}

    .form-step.active {
        display: block;
        animation: fadeInUp 0.5s ease;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    }

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

    .btn-success:hover {
        background-color: #059669;
        border-color: #059669;
    }

/* Contact and Info Cards */
.contact-card, .stat-card, .info-card {
    transition: all 0.3s ease;
}

    .contact-card:hover, .stat-card:hover {
        transform: scale(1.05);
        background-color: rgba(255, 255, 255, 0.2) !important;
    }

/* Sticky Navigation Fix */
.navbar.fixed-top {
    backdrop-filter: blur(10px);
    background-color: rgba(37, 99, 235, 0.95) !important;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }

/* Progress Bar */
.progress {
    background-color: #e5e7eb;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
}

    .accordion-button:not(.collapsed) {
        color: var(--primary-color);
        background-color: rgba(37, 99, 235, 0.1);
    }

/* Alert Animations */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

/* Footer Styles */
footer a {
    transition: color 0.3s ease;
}

    footer a:hover {
        color: var(--secondary-color) !important;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .loan-card {
        margin-bottom: 2rem;
    }

    .floating-elements {
        display: none;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .card-body.p-5 {
        padding: 2rem !important;
    }
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Success Page Styles */
.success-hero {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.info-card {
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* EMI Calculator Styles */
.loan-calculator {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #1d4ed8;
    }
