/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8f9fb;
  color: #222;
}

header {
  background-color: #6dc0d1;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 3%;
  height: 100px;
}

.logo img {
  height: 160px;
  width: 200px;
}

/* ------------------------------
   NAV LINKS
------------------------------ */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0D1B2A;
}

/* Hover underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ------------------------------
   APPLY NOW BUTTON
------------------------------ */
.nav-links .apply-btn {
  background-color: #FF7F50;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links .apply-btn:hover {
  background-color: #0047B3;
  color: white;
  transform: scale(1.05);
}

/* ------------------------------
   DROPDOWN MENU
------------------------------ */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #0d1b2a;
  top: 40px;
  left: 0;
  min-width: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-10px);
  transition: all 0.35s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: white;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: #0d1b2a;
  color: #fff;
}

/* Toggle Dropdown Active */
.dropdown.active .dropdown-menu {
  display: block;
  transform: translateY(0);
}

/* ------------------------------
   MOBILE MENU TOGGLE (HAMBURGER)
------------------------------ */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  transition: 0.3s ease;
}

.menu-toggle span {
  background: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Hamburger to "X" animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ------------------------------
   RESPONSIVE DESIGN
------------------------------ */
@media (max-width: 1060px) {
  .navbar {
    padding: 25px 2%;
  }
}

@media (max-width: 990px) {
  .navbar {
    padding: 25px 1%;
  }
}

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top:100px;
    left: -100%;
    width: 80%;
    height: 580px;
    flex-direction: column;
    background: #1b263b;
    text-align: center;
    transition: all 0.4s ease;
    color: white;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-links li {
    margin: 13px 0;
  }

  .dropdown-menu {
    position: static;
    background: #2e3a59;
    box-shadow: none;
  }

  .menu-toggle {
    display: flex;
  }
}


.block1 {
  background: url("images/img6.jpg") center center / cover no-repeat;
  height: 300px;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s ease-in-out;
}

.block1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}


.bl {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  animation: slideUp 1.2s ease-out;
}

.head {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  animation: fadeDown 1.5s ease-out;
}

.bl p {
  font-size: 1rem;
  font-weight: 300;
  color: #f2f2f2;
  margin-bottom: 30px;
  line-height: 1.6;
  animation: fadeIn 1.8s ease-in-out;
}



@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 🖥️ Large Screens / Monitors */
@media (min-width: 1200px) {
  .block1 {
    height: 400px;
  }

  .head {
    font-size: 3.2rem;
  }

  .bl p {
    font-size: 1.1rem;
  }

}

/* 💻 Laptops & Tablets */
@media (max-width: 1024px) {
  .block1 {
    height: 400px;
  }

  .head {
    font-size: 2.4rem;
  }

  .bl p {
    font-size: 0.95rem;
  }
}

/* 📱 Mobile Devices */
@media (max-width: 600px) {
  .block1 {
    height: 400px;
    background-attachment: scroll;
    padding: 20px;
  }

  .head {
    font-size: 1.8rem;
  }

  .bl p {
    font-size: 0.9rem;
  }

}
/* ===== Base Styling ===== */
.loan-calculator {
  font-family: "Roboto", sans-serif;
  width: 600px;
  margin: 80px auto;
  background: #e0f7ff; /* Light pastel blue background */
  box-shadow: 0 12px 50px -11px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  color: #14213d; /* Dark text for contrast */
  overflow: hidden;
  padding: 30px;
  animation: fadeInUp 1s ease forwards;
}

.loan-calculator *,
.loan-calculator *::before,
.loan-calculator *::after {
  box-sizing: border-box;
}

/* ===== Top Section ===== */
.loan-calculator .top {
  background: #00cfff; /* Neon cyan header for contrast */
  color: #0d1b2a; /* Dark text for readability */
  padding: 32px;
  text-align: center;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 -4px 10px rgba(0, 207, 255, 0.15);
  animation: slideInDown 1s ease;
}

.loan-calculator .head1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* ===== Form Inputs ===== */
.loan-calculator form {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
}

.loan-calculator .title {
  margin-bottom: 16px;
  font-weight: 500;
}

.loan-calculator form input {
  font-size: 20px;
  padding: 10px 20px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #00cfff;
  background: #ffffff;
  color: #0d1b2a;
  transition: all 0.4s ease;
}

.loan-calculator form input:focus {
  outline: none;
  border-color: #0d1b2a;
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.5);
  transform: scale(1.02);
}

/* ===== Calculate Button ===== */
.loan-calculator .calculate-btn {
  background: #0d1b2a;
  color: #00cfff;
  border: none;
  padding: 10px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  margin: 24px 0;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 207, 255, 0.3);
}

.loan-calculator .calculate-btn:hover {
  background: #00cfff;
  color: #0d1b2a;
  border: 2px solid #0d1b2a;
  transform: scale(1.08) rotateZ(1deg);
  box-shadow: 0 10px 30px rgba(0, 207, 255, 0.5);
  animation: buttonGlow 1.5s infinite alternate;
}

/* ===== Result Section ===== */
.loan-calculator .result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  animation: fadeIn 1s ease forwards;
}

.loan-calculator .result .left {
  width: 100%;
  padding: 8px 32px;
}

.loan-calculator .left h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #14213d;
}

.loan-calculator .result .value {
  font-size: 30px;
  font-weight: 900;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 33, 61, 0.2);
  color: #0d1b2a;
  transition: color 0.4s ease, transform 0.4s ease;
}

.loan-calculator .result .value::before {
  content: "$";
  font-size: 24px;
  font-weight: 400;
  margin-right: 6px;
  opacity: 0.5;
}

.loan-calculator .result .value.animate {
  animation: valuePop 0.5s ease forwards;
}

/* ===== Right Section (if any) ===== */
.loan-calculator .right {
  width: 50%;
}

/* ===== Keyframe Animations ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
  0% { opacity: 0; transform: translateY(-60px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes buttonGlow {
  0% { box-shadow: 0 8px 20px rgba(0, 207, 255, 0.3); }
  50% { box-shadow: 0 12px 30px rgba(0, 207, 255, 0.6); }
  100% { box-shadow: 0 8px 20px rgba(0, 207, 255, 0.3); }
}

@keyframes valuePop {
  0% { transform: scale(1); color: #0d1b2a; }
  50% { transform: scale(1.3); color: #00cfff; }
  100% { transform: scale(1); color: #0d1b2a; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive Design ===== */
@media (max-width: 650px) {
  .loan-calculator { width: 90%; max-width: 500px; }
  .loan-calculator form { flex-direction: column; gap: 20px; }
  .loan-calculator .result { flex-direction: column; text-align: center; }
}

.footer {
  background-color: #111b31;
  color: #d3d3d3;
  padding: 60px 10%;
  animation: fadeInUp 1.2s ease-in-out;
}

.footer-con {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* ===============================
   BRAND SECTION
=============================== */
.footer-section.brand p {
  max-width: 300px;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #b5b5b5;
  transition: color 0.3s ease;
}

.footer-section.brand p:hover {
  color: #fff;
}

/* ===============================
   HEADINGS
=============================== */
.footer-section h2,
.footer-section h3 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-section h2 {
  font-size: 1.6rem;
  display: flex;
  gap: 10px;
  transition: color 0.3s ease;
}

.footer-section h3 {
  font-size: 1.2rem;
}

/* ===============================
   QUICK LINKS
=============================== */
.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #b5b5b5;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-section ul li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ===============================
   CONTACT INFO
=============================== */
.footer-section.contact ul li {
  margin-bottom: 12px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #b5b5b5;
}

.footer-section.contact i {
  color: #3a7bff;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.footer-section.contact i:hover {
  transform: scale(1.2);
}

/* ===============================
   SOCIAL ICONS
=============================== */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a {
  color: #b5b5b5;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: white;
  background-color: #3a7bff;
  transform: translateY(-5px);
}

/* ===============================
   FOOTER BOTTOM
=============================== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #999;
}

.footer-bottom p {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
}

/* ===============================
   ANIMATIONS
=============================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVE DESIGN
=============================== */
@media (max-width: 1024px) {
  .footer-con {
    justify-content: center;
  }

  .footer-section {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 6%;
  }

  .footer-section {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-section h2 {
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  .footer-section.brand p {
    margin: 0 auto;
  }

  .footer-section.contact ul li {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 5%;
  }

  .footer-section h2 {
    font-size: 1.4rem;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .social-icons a {
    font-size: 1rem;
    padding: 8px;
  }
}


/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  animation: floatPulse 2s infinite ease-in-out;
}

/* Icon Hover Effects */
.whatsapp-float:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
  background-color: #20b358;
}

/* WhatsApp Pulse Animation */
@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  }
}

/* Optional glow ring animation */
.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.25);
  z-index: -1;
  animation: ringGlow 2.5s infinite;
}

@keyframes ringGlow {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Adjust position for mobile */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
}
