/* Base Styles */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --success-color: #4cc9f0;
  --warning-color: #f72585;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  background-color: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-color);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.btn-card {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.9rem;
  margin-top: 15px;
}

.btn-card:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Header Styles */
.header {
 
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 10px;
}

.logo h1, .logo h3 {
  font-weight: 700;
  font-size: 1.5rem;
}

.logo span {
  color: var(--primary-color);
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.navbar a:hover {
  color: var(--primary-color);
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a.active {
  color: var(--primary-color);
}

.navbar a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--gray-color);
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* About Section */
.about {
  background-color: white;
}

.about .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.pattern-bg {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern-bg.png');
  background-size: cover;
  z-index: 0;
  border-radius: 10px;
}

.about-content {
  flex: 1;
}

.about-content p {
  margin-bottom: 30px;
  color: var(--gray-color);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  padding: 20px;
  background-color: var(--light-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--gray-color);
}

/* Services Section */
.services {
  background-color: #f5f7fa;
}

.bank-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
}

.bank-logo {
  width: 80px;
  height: 80px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px;
}

.bank-logo img {
  max-width: 100%;
  max-height: 100%;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.card ul {
  list-style: none;
}

.card ul li {
  margin-bottom: 10px; 
  display: flex;
  align-items: center;
}

.card ul li i {
  /* margin-right: 10px; */
  color: var(--primary-color);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #37c958c7 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact .container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--gray-color);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  background-color: var(--light-color);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: white;
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
  padding: 0 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: white;
  opacity: 0.7;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.legal-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container, 
  .about .container,
  .contact .container {
    flex-direction: column;
  }
  
  .hero-content, 
  .about-content, 
  .about-image,
  .contact-info,
  .contact-form {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .info-item, 
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header .container {
    padding: 10px 15px;
  }
  
  .navbar {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .navbar.active {
    left: 0;
  }
  
  .navbar a {
    margin: 10px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
}

@keyframes clickPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

.btn-clicked {
  animation: clickPulse 0.3s ease;
}


/* Modern Calculator Link Styling */
.calc-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.calc-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
  border-color: transparent;
}

.calc-link:hover .link-icon i,
.calc-link:hover .link-arrow i {
  color: white;
}

.link-icon {
  width: 30px;
  height: 30px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.calc-link:hover .link-icon {
  background: rgba(255, 255, 255, 0.2);
}

.link-icon i {
  color: var(--primary-color);
  font-size: 14px;
  transition: all 0.3s ease;
}

.link-text {
  flex: 1;
  font-weight: 500;
  transition: all 0.3s ease;
}

.link-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.calc-link:hover .link-arrow {
.amortization-table th 
  opacity: 1;
  transform: translateX(0);
}

.link-arrow i {
  color: var(--gray-color);
  font-size: 12px;
}

.amortization-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.1);
}

.amortization-table thead {
  background-color: #4361ee;
  color: white;
}

.amortization-table th, 
.amortization-table td {
  padding: 14px 16px;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 15px;
}

.amortization-table tbody tr:nth-child(even) {
  background-color: #f4f6ff;
}

.amortization-table tbody tr:hover {
  background-color: #e0e7ff;
  cursor: default;
}

.amortization-table td {
  color: #1a1a2e;
  font-weight: 500;
}

/* Slider with filled track */
input[type="range"] {
  background: linear-gradient(to right, #4361ee 0%, #4361ee var(--value, 50%), #e9ecef var(--value, 50%), #e9ecef 100%);
}

input[type="range"]::-webkit-slider-thumb {
  background: #4361ee;
}

input[type="range"]::-moz-range-thumb {
  background: #4361ee;
}


.calculator-inputs button {
  display: block;
  margin: 20px auto 0;
}
.calculator-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  gap: 20px; /* spacing between image and text */
}

.calculator-header img {
  margin: 0;
  width: 80px;
  height: 80px;
}
#calculateBtn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

#calculateBtn:hover {
  background: var(--secondary-color);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
  transform: scale(1.05);
}


/* Reusable animated button */
.btn {
  border: none;
  width: 15em;
  height: 5em;
  border-radius: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #1C1A1C;
  cursor: pointer;
  transition: all 450ms ease-in-out;
  margin-top: 20px;
}

.sparkle {
  fill: #AAAAAA;
  transition: all 800ms ease;
}

.text {
  font-weight: 600;
  color: #AAAAAA;
  font-size: medium;
}

.btn:hover {
  background: linear-gradient(0deg,#A47CF3,#683FEA);
  box-shadow: inset 0px 1px 0px rgba(255,255,255,0.4),
              inset 0px -4px 0px rgba(0,0,0,0.2),
              0px 0px 0px 4px rgba(255,255,255,0.2),
              0px 0px 180px #9917FF;
  transform: translateY(-2px);
}

.btn:hover .text {
  color: white;
}

.btn:hover .sparkle {
  fill: white;
  transform: scale(1.2);
}

.btn.btn-animate-click {
  transform: scale(0.96);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
@keyframes clickPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.btn.clicked {
  animation: clickPulse 0.25s ease;
}

.calculator-header-section {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 20px 10px 20px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.calculator-body-section {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.fee-tooltip {
  margin-left: 6px;
  color: #888;
  cursor: pointer;
  position: relative;
}

.fee-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2a2a2a;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.fee-tooltip::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: #2a2a2a;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.fee-tooltip:hover::after,
.fee-tooltip:hover::before {
  opacity: 1;
}






.glassy-header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 20px 20px;
  padding: 15px 0;
}

.fancy-nav .nav-btn {
  padding: 10px 18px;
  margin: 0 8px;
  font-weight: 500;
  color: var(--dark-color);
  text-decoration: none;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(67, 97, 238, 0.05);
}

.fancy-nav .nav-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.fancy-nav .nav-btn.active {
  background-color: var(--secondary-color);
  color: white;
}

.fancy-nav .get-started {
  background: linear-gradient(135deg, #4361ee, #4895ef);
  color: white;
  font-weight: 600;
  border: none;
}

.fancy-nav .get-started:hover {
  background: var(--warning-color);
  box-shadow: 0 6px 15px rgba(247, 37, 133, 0.3);
}
