/**
 * Modern Fintech Style for Front Lender
 * Professional, Clean, Trust-building Design
 */

/* ========================
   CSS Variables & Theme
   ======================== */
:root {
	/* Primary Colors - Professional Blue */
	--primary-color: #2D55FF;
	--primary-dark: #1A3ACC;
	--primary-light: #5C7DFF;

	/* Secondary Colors - Trust Green */
	--secondary-color: #14965A;
	--secondary-dark: #0D6B3F;
	--secondary-light: #1DB76F;

	/* Accent Colors */
	--accent-orange: #FF7832;
	--accent-purple: #7C3AED;

	/* Neutral Colors */
	--text-primary: #1A1A2E;
	--text-secondary: #64748B;
	--text-light: #94A3B8;
	--bg-white: #FFFFFF;
	--bg-light: #F8FAFC;
	--bg-gray: #F1F5F9;
	--border-color: #E2E8F0;
	--border-light: #F1F5F9;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	--shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);

	/* Spacing */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--spacing-xl: 3rem;
	--spacing-2xl: 4rem;

	/* Border Radius */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;

	/* Typography */
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-display: 'Playfair Display', serif;

	/* Transitions */
	--transition-fast: 0.15s ease;
	--transition-base: 0.3s ease;
	--transition-slow: 0.5s ease;
}

/* ========================
   Global Reset & Base
   ======================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-primary);
	color: var(--text-primary);
	background: var(--bg-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition-base);
}

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--spacing-md);
	color: var(--text-primary);
}

h1 {
	font-size: 3.5rem;
	font-family: var(--font-display);
}

h2 {
	font-size: 2.5rem;
	font-family: var(--font-display);
}

h3 {
	font-size: 1.75rem;
}

h4 {
	font-size: 1.25rem;
}

p {
	margin-bottom: var(--spacing-md);
	color: var(--text-secondary);
	line-height: 1.7;
}

/* ========================
   Utility Classes
   ======================== */
.section-padding {
	padding: 100px 0;
}

.bg-light {
	background: var(--bg-light);
}

.text-center {
	text-align: center;
}

.text-white {
	color: var(--bg-white) !important;
}

/* ========================
   Buttons
   ======================== */
.btn-primary,
.btn-secondary {
	display: inline-block;
	padding: 14px 32px;
	font-weight: 600;
	font-size: 16px;
	border-radius: var(--radius-md);
	transition: all var(--transition-base);
	border: none;
	cursor: pointer;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: var(--primary-color);
	color: var(--bg-white);
	box-shadow: 0 4px 12px rgba(45, 85, 255, 0.3);
}

.btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(45, 85, 255, 0.4);
}

.btn-secondary {
	background: transparent;
	color: var(--bg-white);
	border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
	background: var(--bg-white);
	color: var(--primary-color);
}

.btn-large {
	padding: 18px 40px;
	font-size: 18px;
}

.btn-block {
	display: block;
	width: 100%;
}

/* ========================
   Preloader
   ======================== */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--bg-white);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

#preloader-status {
	width: 50px;
	height: 50px;
	border: 4px solid var(--border-light);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ========================
   Header & Navigation
   ======================== */
.modern-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: var(--bg-white);
	box-shadow: var(--shadow-md);
	transition: var(--transition-base);
}

.header-topbar {
	background: var(--text-primary);
	color: var(--bg-white);
	padding: 12px 0;
	font-size: 14px;
}

.topbar-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.topbar-left,
.topbar-right {
	display: flex;
	align-items: center;
	gap: var(--spacing-lg);
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.contact-item i {
	color: var(--primary-light);
}

.social-links {
	display: flex;
	gap: 12px;
}

.social-links a {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	transition: var(--transition-base);
}

.social-links a:hover {
	background: var(--primary-color);
	transform: translateY(-2px);
}

.phone-number {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.main-navigation {
	padding: 20px 0;
}

.nav-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand-logo img {
	height: 50px;
	width: auto;
}

.nav-menu-container {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: var(--spacing-xl);
	margin: 0;
	padding: 0;
}

.nav-link {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 16px;
	position: relative;
	padding: 8px 0;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--primary-color);
	transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
	width: 100%;
}

.header-cta .btn-primary {
	padding: 12px 28px;
}

/* ========================
   Hero Section
   ======================== */
.hero-section {
	margin-top: 138px;
	position: relative;
}

.hero-slide {
	height: 650px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	position: relative;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 700px;
	animation: fadeInUp 1s ease;
}

.hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	color: var(--bg-white);
	padding: 10px 24px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: var(--spacing-md);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
	color: var(--bg-white);
	font-size: 4rem;
	margin-bottom: var(--spacing-md);
	line-height: 1.1;
}

.hero-subtitle {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.25rem;
	margin-bottom: var(--spacing-xl);
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	gap: var(--spacing-md);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================
   Stats Bar
   ======================== */
.stats-bar {
	background: var(--bg-white);
	padding: 40px 0;
	box-shadow: var(--shadow-lg);
	position: relative;
	z-index: 10;
	margin-top: -60px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--spacing-lg);
}

.stat-item {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
	padding: var(--spacing-md);
	border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
	border-right: none;
}

.stat-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bg-white);
	font-size: 28px;
	flex-shrink: 0;
}

.stat-number {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--text-primary);
	margin: 0;
	line-height: 1;
}

.stat-label {
	font-size: 14px;
	color: var(--text-secondary);
	margin: 0;
	margin-top: 4px;
}

/* ========================
   Section Headers
   ======================== */
.section-header {
	margin-bottom: var(--spacing-2xl);
}

.section-title {
	font-size: 2.75rem;
	color: var(--text-primary);
	margin-bottom: var(--spacing-md);
}

.section-subtitle {
	font-size: 1.125rem;
	color: var(--text-secondary);
	max-width: 700px;
	margin: 0 auto;
}

/* ========================
   Features Section
   ======================== */
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-xl);
}

.feature-card {
	background: var(--bg-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: var(--transition-base);
}

.feature-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
}

.feature-image {
	height: 220px;
	overflow: hidden;
}

.feature-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-slow);
}

.feature-card:hover .feature-image img {
	transform: scale(1.1);
}

.feature-content {
	padding: var(--spacing-xl);
}

.feature-icon {
	width: 64px;
	height: 64px;
	margin-top: -50px;
	background: var(--bg-white);
	border-radius: var(--radius-md);
	padding: 12px;
	box-shadow: var(--shadow-md);
	margin-bottom: var(--spacing-md);
}

.feature-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.feature-title {
	font-size: 1.5rem;
	margin-bottom: var(--spacing-sm);
}

.feature-badge {
	display: inline-block;
	background: var(--bg-light);
	color: var(--primary-color);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: var(--spacing-md);
}

.feature-list {
	list-style: none;
	padding: 0;
}

.feature-list li {
	padding: 8px 0;
	padding-left: 24px;
	position: relative;
	color: var(--text-secondary);
}

.feature-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--secondary-color);
	font-weight: bold;
}

/* ========================
   Why Choose Us Section
   ======================== */
.why-choose-section {
	padding: 100px 0;
	background: var(--bg-white);
}

.benefits-list {
	margin-top: var(--spacing-xl);
}

.benefit-item {
	display: flex;
	gap: var(--spacing-lg);
	padding: var(--spacing-lg);
	background: var(--bg-light);
	border-radius: var(--radius-md);
	margin-bottom: var(--spacing-md);
	transition: var(--transition-base);
}

.benefit-item:hover {
	background: var(--bg-white);
	box-shadow: var(--shadow-card);
}

.benefit-icon {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
}

.benefit-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.benefit-content h3 {
	font-size: 1.25rem;
	margin-bottom: var(--spacing-sm);
}

.benefit-content ul {
	list-style: none;
	padding: 0;
}

.benefit-content ul li {
	padding: 4px 0;
	padding-left: 20px;
	position: relative;
	color: var(--text-secondary);
	font-size: 15px;
}

.benefit-content ul li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: bold;
}

.video-wrapper {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-xl);
}

.video-thumbnail {
	width: 100%;
	height: auto;
}

/* ========================
   Services Section
   ======================== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-lg);
}

.service-card {
	background: var(--bg-white);
	padding: var(--spacing-xl);
	border-radius: var(--radius-lg);
	border: 2px solid var(--border-light);
	transition: var(--transition-base);
	text-align: center;
}

.service-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-5px);
	box-shadow: var(--shadow-card);
}

.service-icon-box {
	width: 80px;
	height: 80px;
	margin: 0 auto var(--spacing-md);
	background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bg-white);
	font-size: 36px;
	transition: var(--transition-base);
}

.service-card:hover .service-icon-box {
	transform: rotateY(360deg);
}

.service-title {
	font-size: 1.25rem;
	margin-bottom: var(--spacing-md);
}

.service-features {
	list-style: none;
	padding: 0;
	text-align: left;
}

.service-features li {
	padding: 8px 0;
	padding-left: 24px;
	position: relative;
	color: var(--text-secondary);
	font-size: 15px;
}

.service-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--secondary-color);
	font-weight: bold;
}

/* ========================
   About Section
   ======================== */
.about-section {
	padding: 100px 0;
}

.about-image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-xl);
}

.about-image img {
	width: 100%;
	height: auto;
}

.about-content {
	padding-left: var(--spacing-2xl);
}

.about-text {
	font-size: 1.0625rem;
	line-height: 1.8;
	margin-bottom: var(--spacing-xl);
}

.ceo-signature {
	padding: var(--spacing-lg);
	background: var(--bg-light);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--primary-color);
}

.ceo-name {
	font-size: 1.25rem;
	margin-bottom: 4px;
}

.ceo-title {
	color: var(--text-secondary);
	font-size: 14px;
	margin: 0;
}

/* ========================
   Consultation Form Section
   ======================== */
.consultation-section {
	padding: 100px 0;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	position: relative;
	background-image: linear-gradient(135deg, rgba(45, 85, 255, 0.95), rgba(26, 58, 204, 0.95)), url('../img/consult_bg.jpg');
	background-size: cover;
	background-position: center;
}

.consultation-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(45, 85, 255, 0.9), rgba(26, 58, 204, 0.9));
	z-index: 1;
}

.consultation-form-wrapper {
	position: relative;
	z-index: 2;
}

.consultation-form {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: var(--spacing-xl);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
	margin-bottom: var(--spacing-md);
}

.form-control {
	width: 100%;
	padding: 14px 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.95);
	font-size: 16px;
	transition: var(--transition-base);
}

.form-control:focus {
	outline: none;
	border-color: var(--bg-white);
	background: var(--bg-white);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
	color: var(--text-light);
}

select.form-control {
	cursor: pointer;
}

textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

/* ========================
   Products Section
   ======================== */
.products-carousel .owl-item {
	padding: 10px;
}

.product-card {
	background: var(--bg-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: var(--transition-base);
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-xl);
}

.product-image {
	height: 250px;
	overflow: hidden;
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-slow);
}

.product-card:hover .product-image img {
	transform: scale(1.1);
}

.product-content {
	padding: var(--spacing-lg);
	text-align: center;
}

.product-title {
	font-size: 1.125rem;
	margin: 0;
}

/* ========================
   Testimonials Section
   ======================== */
.testimonials-section {
	padding: 100px 0;
	background: var(--bg-white);
}

.testimonials-carousel .owl-item {
	padding: 10px;
}

.testimonial-card {
	background: var(--bg-light);
	padding: var(--spacing-xl);
	border-radius: var(--radius-lg);
	border: 2px solid var(--border-light);
	transition: var(--transition-base);
	height: 100%;
}

.testimonial-card:hover {
	border-color: var(--primary-color);
	box-shadow: var(--shadow-card);
}

.testimonial-rating {
	margin-bottom: var(--spacing-md);
	color: #FFC107;
	font-size: 18px;
}

.testimonial-text {
	font-size: 1.0625rem;
	color: var(--text-secondary);
	margin-bottom: var(--spacing-lg);
	line-height: 1.7;
	font-style: italic;
}

.testimonial-author {
	border-top: 2px solid var(--border-light);
	padding-top: var(--spacing-md);
}

.author-name {
	font-size: 1.125rem;
	margin-bottom: 4px;
}

.author-role {
	color: var(--text-light);
	font-size: 14px;
	margin: 0;
}

/* ========================
   Footer
   ======================== */
.modern-footer {
	background: var(--text-primary);
	color: rgba(255, 255, 255, 0.8);
}

.footer-main {
	padding: 80px 0 40px;
}

.footer-column {
	margin-bottom: var(--spacing-xl);
}

.footer-logo img {
	height: 50px;
	margin-bottom: var(--spacing-md);
}

.footer-description {
	margin-bottom: var(--spacing-lg);
	line-height: 1.7;
}

.footer-social {
	display: flex;
	gap: 12px;
}

.footer-social a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: var(--bg-white);
	transition: var(--transition-base);
}

.footer-social a:hover {
	background: var(--primary-color);
	transform: translateY(-3px);
}

.footer-title {
	color: var(--bg-white);
	font-size: 1.25rem;
	margin-bottom: var(--spacing-lg);
	font-weight: 700;
}

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 12px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.7);
	transition: var(--transition-base);
}

.footer-links a:hover {
	color: var(--bg-white);
	padding-left: 5px;
}

.footer-contact .contact-item {
	display: flex;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-md);
}

.contact-icon {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--primary-light);
}

.contact-text p {
	margin: 0;
	line-height: 1.6;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: var(--spacing-lg) 0;
}

.footer-bottom-content {
	text-align: center;
}

.footer-bottom-content p {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
}

/* ========================
   Owl Carousel Customization
   ======================== */
.owl-theme .owl-nav {
	margin-top: var(--spacing-lg);
}

.owl-theme .owl-nav button {
	width: 50px;
	height: 50px;
	background: var(--primary-color) !important;
	color: var(--bg-white) !important;
	border-radius: 50%;
	font-size: 24px;
	transition: var(--transition-base);
}

.owl-theme .owl-nav button:hover {
	background: var(--primary-dark) !important;
	transform: scale(1.1);
}

.owl-theme .owl-dots {
	margin-top: var(--spacing-lg);
}

.owl-theme .owl-dots .owl-dot span {
	width: 12px;
	height: 12px;
	background: var(--border-light);
	transition: var(--transition-base);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
	background: var(--primary-color);
	width: 30px;
	border-radius: 6px;
}

/* ========================
   Animations
   ======================== */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ========================
   Scroll to Top Button
   ======================== */
.scrollup {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--primary-color);
	color: var(--bg-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition-base);
	box-shadow: var(--shadow-lg);
	z-index: 999;
}

.scrollup.active {
	opacity: 1;
	visibility: visible;
}

.scrollup:hover {
	background: var(--primary-dark);
	transform: translateY(-5px);
}