/* ===== HEADER STYLES ===== */

.imf360-header {
  background: rgba(18, 24, 41, 0.95);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: top 0.3s ease;
}

.imf360-header.scrolled {
  top: 0 !important;
}

.imf360-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Logo */

.imf360-logo a {
  display: flex;
  align-items: center;
}

.imf360-logo-img {
  height: 42px;
  width: auto;
  transition: transform 0.3s ease;
}

.imf360-logo-img:hover {
  transform: scale(1.05);
}

/* Navigation */

.imf360-nav-list {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 0;
  align-items: center;
}

.imf360-nav-item {
  margin-left: 25px;
}

.imf360-nav-link {
  color: #b0cee3;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.3s ease;
  letter-spacing: -0.2px;
  font-family: 'Jost', sans-serif;
  text-decoration: none;
}

/* Hover underline */

.imf360-nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #2A9D8F;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.imf360-nav-link:hover {
  color: #2A9D8F;
}

.imf360-nav-link:hover::before {
  width: 80%;
}

/* Hamburger */

.imf360-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 33px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.imf360-hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #bdcee7;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.imf360-hamburger.open .imf360-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.imf360-hamburger.open .imf360-hamburger-line:nth-child(2) {
  opacity: 0;
}

.imf360-hamburger.open .imf360-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE ===== */

@media screen and (max-width: 980px) {

  .imf360-header-container {
    padding: 0 15px;
  }

  .imf360-hamburger {
    display: flex;
  }

  .imf360-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #121829;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .imf360-nav.open {
    display: block;
  }

  .imf360-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .imf360-nav-item {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .imf360-nav-item:last-child {
    border-bottom: none;
  }

  .imf360-nav-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
  }

  .imf360-nav-link::before {
    display: none;
  }
}

/* Small mobile */

@media screen and (max-width: 480px) {

  .imf360-logo-img {
    height: 35px;
  }

}

.imf360-nav.open {
  display: block !important;
}


/* =======FOOTER SECTION FOR ALL PAGES==== */

.footer-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #b5c7e3;
  padding: 60px 20px 30px;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Animated background elements */
.footer-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.06) 0%, transparent 70%);
  animation: float 15s infinite ease-in-out;
  z-index: -1;
}

.footer-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(156, 66, 245, 0.05) 0%, transparent 70%);
  animation: float 18s infinite ease-in-out reverse;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* COLUMN LAYOUT - 4 columns on desktop, 2 columns on mobile */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #cdddf1;
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-title:hover::after {
  width: 60px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.3px;
}

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-links i {
  margin-right: 6px;
  color: #60a5fa;
  font-size: 0.98rem;
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.footer-links a {
  text-decoration: none;
  color: #7788a3;
  transition: all 0.3s ease;
  font-weight: 400;
  position: relative;
  line-height: 1.3;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #60a5fa;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #e0f2fe;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links li:hover i {
  color: #8b5cf6;
  transform: scale(1.1);
}

/* Social media icons special effect */
.footer-links li.social-item i {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bottom section */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  text-align: center;
  font-size: 0.88rem;
  color: #7c91b6;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
}

/* RESPONSIVE - 2 columns on mobile */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr); /* Strictly 2 columns */
    gap: 1.8rem;
  }

  .footer-section::before,
  .footer-section::after {
    animation: none;
    opacity: 0.3;
  }

  .footer-links li:hover {
    transform: none;
  }

  .footer-links a {
    font-size: 0.89rem;
    line-height: 1.3;
    font-weight: 400;
   
  
  }

  .footer-links i {
    font-size: 0.89rem;
  }

  .footer-title {
    font-size: 0.99rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    color: #a2a9ef;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .footer-section {
    padding: 50px 20px 25px;
  }
  
  .footer-columns {
    gap: 1.5rem; /* Tighter gap on very small screens */
  }
}



/* ======================
   WHATSAPP FLOATING BUTTON - COMPACT
   ====================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  opacity: 0;
  transform: scale(0.8);
  animation: whatsappAppear 0.5s ease forwards 0.5s;
}

.whatsapp-float img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

/* Hover effect */
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, #22c15e, #0e7a6b);
}

.whatsapp-float:hover img {
  transform: rotate(8deg) scale(1.1);
}

/* Active/Tap effect */
.whatsapp-float:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
  transition: all 0.1s ease;
}

/* Gentle pulse animation */
.whatsapp-float::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  z-index: -1;
  animation: whatsappPulse 2s infinite;
}

/* Entrance animation */
@keyframes whatsappAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation */
@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Small bounce on page load (after appear) */
.whatsapp-float {
  animation: 
    whatsappAppear 0.5s ease forwards 0.5s,
    whatsappBounce 0.5s ease 1s;
}

@keyframes whatsappBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Mobile optimization */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 44px;
    height: 44px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float img {
    width: 22px;
    height: 22px;
  }
  
  /* Gentler pulse on mobile to reduce battery drain */
  .whatsapp-float::after {
    animation: whatsappPulseMobile 2.5s infinite;
  }
  
  @keyframes whatsappPulseMobile {
    0% {
      transform: scale(1);
      opacity: 0.2;
    }
    50% {
      transform: scale(1.2);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 0.2;
    }
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .whatsapp-float {
    width: 40px;
    height: 40px;
    bottom: 12px;
    right: 12px;
  }
  
  .whatsapp-float img {
    width: 20px;
    height: 20px;
  }
}

/* Optional: Add a subtle tooltip on hover */
.whatsapp-float::before {
  content: 'Chat with us';
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a2e;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.whatsapp-float:hover::before {
  opacity: 1;
  visibility: visible;
  right: 70px;
}

/* Hide tooltip on mobile */
@media (max-width: 768px) {
  .whatsapp-float::before {
    display: none;
  }
}



.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 10px;
  background-color: #252627;
  color: #dae5ff;
  padding: 12px;
  border-radius: 50%;
  font-size: 16px;
  display: none;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  overflow: visible;
}

.back-to-top:hover {
  background-color: #06eafa;
  transform: translateY(-3px);
  color: #1a1f29;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  will-change: transform;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  pointer-events: none;
  
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.35s ease;
  transform-origin: 50% 50%;
}

/* Hide tooltip on mobile */
@media (max-width: 768px) {
.back-to-top {
  
  bottom: 13px;
  }
}