/* 
   Mudra Finance / Dhaani Finance
   Home Page Specific Styles
   Theme: Saffron, Green, Blue, White
*/

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    position: relative;
    height: 600px; /* Increased height for better impact */
    overflow: hidden;
    background: #000; /* Fallback */
}

.hero-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; /* Changed to absolute for stacking */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth transition */
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55); /* Consistent overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Above overlay */
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.3s; /* Content animation */
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    color: var(--white);
    font-weight: 700;
}

.hero-phone {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-content h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 400;
    color: #f0f0f0;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-content h1 { font-size: 48px; }
    .hero-content h2 { font-size: 28px; }
}

/* =========================================
   Quick Apply Form
   ========================================= */
.quick-apply-section {
    position: relative;
    margin-top: -80px;
    z-index: 100;
    padding-bottom: 60px;
}

.quick-apply-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #2E5A34; /* Green Top Border */
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h4 {
    color: #2E5A34; /* Green Title */
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .full-width {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.form-group label i {
    color: #2E5A34; /* Green Icon */
}

.required {
    color: #d32f2f;
    margin-left: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
    color: #333;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2E5A34;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 90, 52, 0.1);
}

/* Range Slider Styling */
.range-container {
    margin-top: 10px;
    padding: 0 5px;
}

input[type=range] {
    height: 4px;
    background: #e0e0e0;
    width: 100%;
}

input[type=range]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: #2E5A34; /* Green Thumb */
    box-shadow: 0 0 0 2px rgba(46, 90, 52, 0.2);
}

.range-labels {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Button Styling */
.glow-button {
    background: linear-gradient(135deg, #2E5A34 0%, #3e7b46 100%); /* Green Gradient */
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px; /* Matched to input radius */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(46, 90, 52, 0.2);
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(46, 90, 52, 0.3);
    background: linear-gradient(135deg, #3e7b46 0%, #2E5A34 100%);
}

/* =========================================
   Loan Types
   ========================================= */
.loan-types-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.loan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .loan-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.loan-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.03);
}

.loan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Gradient border bottom effect */
.loan-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF9933, #000080, #138808);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.loan-card:hover::after {
    transform: scaleX(1);
}

.loan-card .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 128, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.loan-card:hover .icon-box {
    background: #000080;
    transform: rotateY(180deg);
}

.loan-card .icon-box i {
    font-size: 32px;
    color: #000080;
    transition: all 0.5s ease;
}

.loan-card:hover .icon-box i {
    color: #ffffff;
    transform: rotateY(-180deg); /* Keep icon facing forward */
}

.loan-card span {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    transition: color 0.3s;
}

.loan-card:hover span {
    color: #FF9933; /* Saffron on hover */
}

.loan-card .arrow-icon {
    font-size: 18px;
    color: #ccc;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.loan-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
    color: #000080;
}

.apply-now-wrapper {
    text-align: center;
}

/* =========================================
   About Section (Home)
   ========================================= */
.about-section {
    padding: 80px 0;
}

.about-section .row {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image-wrapper {
    position: relative;
    padding: 15px; /* Space for offset border if needed */
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.about-image-wrapper:hover img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    animation: float 3s ease-in-out infinite;
}

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

.experience-badge .years {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 500;
}

.about-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section .section-title::after {
    display: none; /* Remove old underline */
}

.about-section h2 {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-section p.lead {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 120px;
}

.stat-item i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item .count {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.stat-item .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-top: 5px;
}

.mt-3 {
    margin-top: 1rem;
}

.whatsapp-wrapper {
    margin-top: 30px;
    text-align: center;
}

@media (min-width: 992px) {
    .about-section .row {
        flex-direction: row;
        align-items: center;
    }
    .about-section .col-img, .about-section .col-text {
        flex: 1;
    }
    .whatsapp-wrapper { text-align: left; }
    
    .experience-badge {
        left: -20px;
        padding: 20px 30px;
    }
}

/* =========================================
   Services Section
   ========================================= */
.services-section {
    padding: 80px 0;
    background: #f4f7fa;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-color);
}

.service-box .icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 153, 51, 0.1); /* Light Saffron */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.service-box:hover .icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-box .icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.service-box:hover .icon i {
    color: var(--white);
}

.service-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color); /* Blue Title */
    margin-bottom: 15px;
}

.service-box p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1; /* Pushes button down */
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* =========================================
   Why Choose Us
   ========================================= */
.why-choose-us {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

/* Background Decoration */
.why-choose-us::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,153,51,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.why-choose-us .upper-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.why-choose-us .text-content {
    flex: 1;
}

.why-choose-us .section-title {
    font-size: 18px;
    font-weight: 800; /* Bold Title */
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.why-choose-us .text-content h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
    font-weight: 800; /* Bolder font weight */
}

.why-choose-us .text-content h2 span {
    color: #000080; /* Navy Blue */
    position: relative;
    display: inline-block;
}

.why-choose-us .text-content h2 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 153, 51, 0.2); /* Saffron Highlight */
    z-index: -1;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.check-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.check-list li i {
    color: #FF9933; /* Saffron */
    font-size: 20px;
    background: rgba(255, 153, 51, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.why-choose-us .img-content {
    flex: 1;
    position: relative;
    padding: 20px;
}

/* Image Background Blob */
.why-choose-us .img-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: #000080; /* Navy Blue */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.05;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.why-choose-us .img-content img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.why-choose-us .img-content:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.floating-box {
    position: absolute;
    bottom: 50px;
    left: -30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid #FF9933; /* Saffron */
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.floating-box i {
    font-size: 28px;
    color: #FF9933;
}

.floating-box span {
    font-weight: 800;
    color: #000080;
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF9933, #000080);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-box .icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.feature-box:hover .icon-wrapper {
    background: #000080;
    transform: rotate(360deg);
}

.feature-box .icon-wrapper i {
    font-size: 28px;
    color: #000080;
    transition: all 0.5s ease;
}

.feature-box:hover .icon-wrapper i {
    color: #ffffff;
}

.feature-box h4 {
    color: #333;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.feature-box p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.slide-left {
    transform: translateX(30px);
}

.slide-left.visible {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .why-choose-us .upper-content {
        flex-direction: row;
        align-items: center;
    }
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials-section {
    padding: 60px 0;
    background: #ffffff; /* White Background */
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,153,51,0.05) 0%, rgba(0,0,128,0.05) 100%); /* Very subtle tint */
    pointer-events: none;
}

.testimonials-section .section-header h2 {
    color: var(--accent-color); /* Dark Blue Heading */
    position: relative;
    z-index: 2;
}

.testimonials-section .section-header .sub-title {
    color: var(--primary-color); /* Saffron Subtitle */
    position: relative;
    z-index: 2;
}

.testimonial-marquee {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    border-left: 5px solid var(--primary-color); /* Saffron Accent */
    width: 350px;
    flex-shrink: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    color: #333;
}

.testimonial-item:hover {
    transform: translateY(-10px);
}

.quote-icon {
    font-size: 40px;
    opacity: 0.1;
    margin-bottom: 0;
    color: var(--accent-color);
    position: absolute;
    top: 20px;
    right: 20px;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    position: relative;
    z-index: 1;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info .name {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color); /* Blue Name */
    margin-bottom: 4px;
}

.author-info .role {
    font-size: 13px;
    color: var(--primary-color); /* Saffron Role */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-img {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

