/* ============================
   CUSTOM VARIABLES & THEME
   ============================ */
:root {
    --primary-color: #0073e6;
    --primary-dark: #0056b3;
    --secondary-color: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 115, 230, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================
   GLOBAL STYLES
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

.lead {
    font-size: 1.15rem;
    font-weight: 500;
}

/* ============================
   NAVBAR STYLING
   ============================ */
.navbar {
    background-color: #ffffff !important;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f1ff 100%);
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-image-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-box {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 115, 230, 0.1) 0%, rgba(0, 115, 230, 0.05) 100%);
    border-radius: 20px;
    z-index: 1;
}

.hero-image-container .card {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.hero-image-container .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 115, 230, 0.2) !important;
}

.stats-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* ============================
   CTA BUTTONS
   ============================ */
.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 115, 230, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 115, 230, 0.4);
    color: white;
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button-secondary {
    background-color: white !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.cta-button-secondary:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* ============================
   FEATURE ICONS
   ============================ */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.feature-icon.bg-primary {
    background-color: var(--primary-color);
}

.feature-icon.bg-success {
    background-color: #28a745;
}

/* ============================
   BENEFITS SECTION
   ============================ */
#benefits {
    padding: 80px 0;
}

.benefit-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.benefit-card h5 {
    color: var(--text-dark);
    transition: var(--transition);
}

.benefit-card:hover h5 {
    color: var(--primary-color);
}

/* ============================
   LOAN CATEGORIES (GRADIENT BG)
   ============================ */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

#categories {
    position: relative;
}

#categories > .container-lg {
    position: relative;
    z-index: 2;
}

.loan-card {
    transition: var(--transition);
    border: none;
    background: white;
}

.loan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 115, 230, 0.2) !important;
}

.loan-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.loan-card .card-title {
    color: var(--text-dark);
}

/* ============================
   PROCESS SECTION
   ============================ */
.process-step {
    transition: var(--transition);
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotateZ(5deg);
}

.process-step h5 {
    color: var(--text-dark);
}

/* ============================
   FAQ SECTION
   ============================ */
#faq {
    padding: 80px 0;
}

.accordion-item {
    background-color: white;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: white;
    color: var(--text-dark);
    border: none;
    padding: 1.25rem;
    font-size: 1rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 115, 230, 0.15);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230073e6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================
   CTA SECTION (FOOTER CTA)
   ============================ */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background-color: #1a1a1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .fab,
footer .fas {
    font-size: 1.25rem;
}

/* ============================
   UTILITY CLASSES
   ============================ */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white {
    color: white;
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-image-container {
        height: auto;
        margin-top: 2rem;
    }

    .cta-button,
    .cta-button-secondary {
        width: 100%;
    }

    .d-flex.flex-column.flex-sm-row {
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 60px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .container-lg {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .benefit-card {
        padding: 1.5rem !important;
    }

    .process-step {
        margin-bottom: 2rem;
    }
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card {
    animation: slideInUp 0.6s ease-out;
}

/* ============================
   SCROLLBAR STYLING
   ============================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
