    /* Enhanced CSS Variables */
:root {
  --primary-blue: #0052cc;
  --primary-blue-dark: #003d99;
  --primary-blue-light: #e6f0ff;
  --secondary-orange: #ffba08;
  --secondary-orange-dark: #ff9500;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #64748b;
  --background-light: #f8fafc;
  --background-white: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, #0066ff 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-orange-dark) 100%);
  --gradient-success: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FIXED: Enhanced Navigation - NAVBAR FIXED */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: fixed !important; /* Force fixed positioning */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
/* Instant Loan Section */
.instant-loan {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.instant-loan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.instant-loan-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-secondary);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.instant-loan-badge i {
    font-size: 1.1rem;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.instant-loan h2 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 15px;
}

.instant-loan-subtitle {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,82,204,0.1);
}

.instant-loan-desc {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Features Section with Two-Row Layout */
.instant-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 35px 0;
    padding: 0;
}

.instant-feature {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    padding: 12px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.instant-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Row 1: Icon + h4 */
.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-header h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
}

/* Row 2: Description */
.feature-description {
    align-self: center;
}

.feature-description p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Buttons Section */
.instant-buttons {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 50px;
}

.instant-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.instant-stat {
    text-align: center;
}

.instant-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.instant-stat .stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Visual Section */
.instant-loan-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instant-phone {
    position: relative;
    width: 300px;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 8px solid #1f2937;
    background: #000;
}

.phone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
}
.properani {
    position: absolute;
    top: 60%;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1000%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    
}

.phone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,82,204,0.4), rgba(0,102,255,0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 22px;
}

.approval-animation {
    animation: slideInUp 2s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.check-circle {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    animation: checkBounce 2s ease infinite;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.approval-animation p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.approval-animation span {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-orange);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.floating-card i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.card-1 {
    top: 20%;
    left: -20%;
    animation: float1 3s ease-in-out infinite;
}

.card-2 {
    top: 60%;
    right: -25%;
    animation: float2 3s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 15%;
    left: -15%;
    animation: float3 3s ease-in-out infinite 2s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-15px) translateX(-10px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-25px) translateX(15px); }
}

/* Background Shapes */
.instant-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,82,204,0.1), rgba(0,102,255,0.05));
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -50px;
    animation: shapeFloat 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation: shapeFloat 18s ease-in-out infinite 5s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .instant-loan {
        padding: 80px 0;
    }
    .properani {
    position: absolute;
    top: 60%;
    left: 90%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1000%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    
}

    .instant-loan-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .instant-loan h2 {
        font-size: 2.5rem;
    }

    .instant-loan-subtitle {
        font-size: 1.8rem;
    }

    .instant-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 0 30px 0;
    }

    .feature-description {
        padding-left: 0; /* Remove left padding on mobile for better alignment */
        text-align: center;
    }
    
    .feature-header {
        justify-content: center; /* Center align on mobile */
    }

    .instant-buttons {
        justify-content: center;
    }

    .instant-stats {
        justify-content: center;
        gap: 30px;
    }

    /* Mobile Phone Frame */
    .instant-phone {
        width: 260px !important;
        height: 460px !important;
        border-radius: 35px !important;
        border: 10px solid #1a1a1a !important;
        background: #1a1a1a !important;
        box-shadow: 0 25px 60px rgba(0,0,0,0.3), 
                    inset 0 1px 0 rgba(255,255,255,0.2) !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .phone-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 25px !important;
        display: block !important;
    }

    .phone-overlay {
        border-radius: 25px !important;
        background: linear-gradient(135deg, rgba(0,82,204,0.85), rgba(0,102,255,0.85)) !important;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .instant-loan h2 {
        font-size: 2rem;
    }


    .instant-loan-subtitle {
        font-size: 1.5rem;
    }

    .instant-buttons {
        flex-direction: column;
        align-items: center;
    }

    .instant-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    

    /* Small Mobile Phone Frame */
    .instant-phone {
        width: 220px !important;
        height: 400px !important;
        border-radius: 30px !important;
        border: 8px solid #1a1a1a !important;
        background: #1a1a1a !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.25), 
                    inset 0 1px 0 rgba(255,255,255,0.2) !important;
    }

    .phone-image {
        border-radius: 22px !important;
    }

    .phone-overlay {
        border-radius: 22px !important;
    }

    .approval-animation p {
        font-size: 1.2rem;
    }

    .approval-animation span {
        font-size: 1.6rem;
    }

    .check-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .instant-phone {
        width: 200px !important;
        height: 360px !important;
        border-radius: 28px !important;
        border: 6px solid #1a1a1a !important;
    }

    .phone-image {
        border-radius: 22px !important;
    }


    .phone-overlay {
        border-radius: 22px !important;
    }
    .properani {
    position: absolute;
    top: 60%;
    left: 90%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1000%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    
}
}


/* Enhanced Logo Styles */
.logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  text-decoration: none;
  gap: 12px; /* Space between logo and text */
}

.logo-img {
  height: 40px; /* Adjust height as needed */
  width: auto; /* Maintains aspect ratio */
  max-width: 120px; /* Maximum width to prevent overflow */
  object-fit: contain; /* Ensures logo scales properly */
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05); /* Subtle hover effect */
}

/* Remove the old icon styles */
.logo i {
  display: none; /* Hide the font-awesome icon */
}

/* Mobile responsive logo */
@media (max-width: 768px) {
  .logo-img {
    height: 32px; /* Smaller on mobile */
    max-width: 100px;
  }
  
  .logo {
    font-size: 1.6rem;
  }
}


.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-menu li a {
  font-weight: 500;
  color: var(--text-light);
  padding: 12px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  transform: translateY(-2px);
}

.nav-cta {
  background: var(--gradient-primary) !important;
  color: white !important;
  padding: 14px 30px !important;
  border-radius: 30px !important;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: var(--primary-blue-light);
}

/* Enhanced Hero Section */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: 160px 0 120px; /* Added padding-top to account for fixed navbar */
  position: relative;
  overflow: hidden;
}

.hero::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"><defs><radialGradient id="grad1" cx="20%" cy="30%" r="40%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.15);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></radialGradient><radialGradient id="grad2" cx="80%" cy="70%" r="60%"><stop offset="0%" style="stop-color:rgba(255,186,8,0.2);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,186,8,0);stop-opacity:1" /></radialGradient></defs><circle cx="200" cy="300" r="200" fill="url(%23grad1)"/><circle cx="800" cy="700" r="300" fill="url(%23grad2)"/></svg>');
  animation: float 25s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(15px) rotate(240deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary-orange);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 50px;
  opacity: 0.95;
  line-height: 1.7;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* FIXED: Enhanced Stats Section - 2x2 GRID LAYOUT */
.stats {
  background: var(--background-white);
  padding: 80px 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats-container {
  background: white;
  border-radius: 25px;
  box-shadow: var(--shadow-2xl);
  padding: 60px 40px;
  border: 1px solid var(--border-light);
}

/* FIXED: Stats Grid - 2x2 layout instead of 4 in a row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
  gap: 50px;
  text-align: center;
  max-width: 800px; /* Limit width for better centering */
  margin: 0 auto;
}

.stat-item {
  position: relative;
  padding: 30px 20px;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 15px;
  line-height: 1;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 1rem;
  color: var(--text-light);
}

/* Enhanced EMI Calculator */
.calculator-section {
  background: var(--background-light);
  padding: 100px 0;
}

.calculator-container {
  background: white;
  border-radius: 25px;
  box-shadow: var(--shadow-xl);
  padding: 60px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.calculator-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

.calculator-header {
  text-align: center;
  margin-bottom: 50px;
}

.calculator-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.calculator-header p {
  font-size: 1.3rem;
  color: var(--text-light);
}

/* Fix calculator form layout */
.calculator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.emi-result {
  background: var(--gradient-primary);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  margin-top: 40px;
  box-shadow: var(--shadow-xl);
}

.emi-amount {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.emi-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.emi-detail-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.emi-detail-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-orange);
  margin-bottom: 8px;
}

.emi-detail-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Enhanced Services Section */
.services {
  padding: 120px 0;
  background: var(--background-white);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 25px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.4rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  border-radius: 25px;
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-blue);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: white;
  font-size: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.service-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.service-desc {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 8px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 30px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.1rem;
}

/* New Partnership Section */
.partnership {
  padding: 100px 0;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.partnership::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 300"><path d="M0,100 Q250,50 500,100 T1000,100 L1000,300 L0,300 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: wave 20s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateX(0px) scaleY(1); }
  50% { transform: translateX(-100px) scaleY(0.8); }
}

.partnership-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.partnership h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.partnership p {
  font-size: 1.3rem;
  margin-bottom: 50px;
  opacity: 0.95;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.partner-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.partner-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.partner-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-orange);
}

.partner-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.partner-type {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Enhanced Loan Types */
.loan-types {
  padding: 120px 0;
  background: var(--background-light);
}

.loan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.loan-card {
  background: white;
  border-radius: 25px;
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.loan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.loan-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-blue);
}

.loan-card:hover::before {
  transform: scaleX(1);
}

.loan-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: white;
  font-size: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.loan-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.loan-rate {
  font-size: 1.2rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loan-features {
  list-style: none;
  margin-bottom: 25px;
}

.loan-features li {
  padding: 8px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 25px;
}

.loan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.loan-cta {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
}

.loan-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* New Testimonials Section */
.testimonials {
  padding: 120px 0;
  background: var(--background-white);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all 0.3s ease;
  overflow: visible;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-blue-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.rating {
  color: #fbbf24;
  margin-top: 10px;
}

/* Enhanced CTA */
.cta {
  background: linear-gradient(135deg, var(--text-dark) 0%, #334155 100%);
  color: white;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::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 400"><path d="M0,150 C200,100 300,200 500,150 C700,100 800,200 1000,150 L1000,400 L0,400 Z" fill="rgba(255,186,8,0.15)"/><path d="M0,200 C150,250 350,150 500,200 C650,250 850,150 1000,200 L1000,400 L0,400 Z" fill="rgba(16,185,129,0.1)"/></svg>');
  animation: wave 18s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.cta p {
  font-size: 1.4rem;
  margin-bottom: 50px;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FIXED: Enhanced Modal - NON-SCROLLABLE */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh; /* Full viewport height */
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  overflow: hidden; /* Prevent modal backdrop from scrolling */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  position: fixed; /* Fixed positioning */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the modal */
  padding: 40px;
  border-radius: 25px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh; /* Limit height */
  overflow-y: auto; /* Allow internal scrolling if needed */
  box-shadow: var(--shadow-2xl);
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    transform: translate(-50%, -30%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Enhanced Form Styles */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 18px 25px;
  border: 2px solid var(--border-light);
  border-radius: 15px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: 'Inter', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
  transform: translateY(-2px);
}

/* Fix form row layout */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Fix modal close button */
.close {
  position: absolute;
  right: 25px;
  top: 25px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--background-light);
}

.close:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  transform: rotate(90deg);
}

/* Enhanced Notification */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-xl);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  min-width: 350px;
  max-width: 450px;
  border-left: 5px solid rgba(255, 255, 255, 0.3);
  word-wrap: break-word;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.notification.success {
  background: var(--gradient-success);
}

.notification.error {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
}

.notification.warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.notification i {
  margin-right: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Enhanced Buttons */
.btn {
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  z-index: 1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Fix hero buttons layout */
.hero-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-buttons .btn {
  min-width: 200px;
}

/* Progress Bar Enhancement */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Fix range slider styles */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  outline: none;
  transition: background 0.3s ease;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

.range-value {
  text-align: center;
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 10px;
  font-size: 1.1rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 50px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 997;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: ripple 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.whatsapp-float::after {
  content: 'Chat with us on WhatsApp';
  position: absolute;
  right: 85px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.whatsapp-float:hover::after {
  opacity: 1;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  transition: transform 0.3s ease;
  z-index: 998;
}

.scroll-top.show {
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* FIXED: Footer Layout */
footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Fixed minmax value */
  gap: 40px;
  margin-bottom: 50px;
}

.footer-section h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--secondary-orange);
}

.footer-section p,
.footer-section li {
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li a {
  color: #cbd5e1;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  padding: 5px 0;
}

.footer-section ul li a:hover {
  transform: translateX(5px);
  color: var(--secondary-orange);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 40px;
  text-align: center;
  color: #94a3b8;
}

/* Enhanced Fade Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(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;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fix scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Performance optimization */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Fix any overflow issues */
.container,
.nav-container,
.stats-container,
.calculator-container {
  overflow: visible;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 85px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 140px 0 100px; /* Adjusted for mobile */
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .tagline {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  /* FIXED: Mobile stats grid - maintain 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .services-grid,
  .loan-grid,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .calculator-container {
    padding: 25px 15px;
    margin: 10px;
  }

  .stats-container {
    padding: 40px 25px;
  }

  .service-card,
  .loan-card {
    padding: 35px 25px;
  }

  .notification {
    right: 15px;
    min-width: 300px;
    max-width: calc(100vw - 30px);
  }

  .calculator-form {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .emi-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .emi-amount {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .whatsapp-float {
    bottom: 50px;
    right: 20px;
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }

  .whatsapp-float::after {
    right: 75px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* FIXED: Very small screens - single column for stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .btn {
    padding: 15px 35px;
    font-size: 1rem;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    bottom: 70px;
    right: 15px;
  }

  .whatsapp-float::after {
    display: none;
  }

  .modal-content {
    padding: 10px 10px;
    margin: 10px 10px;
  }

  .calculator-container {
    padding: 25px 15px;
  }

  .emi-amount {
    font-size: 2rem;
  }
}