/* ======================
   RESET & GLOBAL STYLES 
   ====================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Jost', sans-serif;
    line-height: 1.7;
    color: #D1D5DB;
    background-color: #121829;
    -webkit-font-smoothing: antialiased;
  }
  
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
  }
  
  a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
  }
  

/* Preloader full-screen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999; /* Make it VERY high */
  transition: opacity 0.3s ease;
}


/* Spinning circle */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #e2e8f0;
  border-top: 6px solid #38bdf8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* TOP BAR DARK THEME - MOBILE FRIENDLY */
.top-bar {
  background: linear-gradient(90deg, #598be1, #4c6aac, #2d64a8);
  color: #e6e6e6;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  flex-wrap: wrap;
}

.top-bar-left, .top-bar-items {
  display: flex;
  align-items: center;
  gap: 0; /* Remove gap for custom dividers */
}

.top-bar .item {
  color: #e6e6e6;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  padding: 0 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom dividers with animation */
.top-bar .item:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 15px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.3s ease;
}

.top-bar .item:hover:after {
  height: 20px;
  background: linear-gradient(to bottom, transparent, #4cc9f0, transparent);
}

.top-bar a.item {
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-bar a.item:hover {
  color: #4cc9f0;
  transform: translateY(-1px);
}

/* Enhanced Login Button */
.login-link {
 
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  
  margin-left: 10px;
}

.login-link:hover {
  background: linear-gradient(135deg, #e77700 0%, #e79a00 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: rgb(255, 255, 255);
}

/* Feedback Button */
.feedback-button {
  background: linear-gradient(135deg, #366fa0 0%, #3688f2 100%);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.feedback-button:hover {
  background: linear-gradient(135deg, #1d587a 0%, #294d70 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }
  
  .top-bar .container {
    justify-content: center;
    padding: 5px 10px;
  }
  
  .top-bar-items {
    width: 100%;
    justify-content: space-around;
    overflow-x: auto;
    white-space: nowrap;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
    margin-top: -8px;
  }
  
  .top-bar .item {
    padding: 0 8px;
    font-size: 12px;
  }
  
  .top-bar .item:after {
    height: 12px;
  }
  
  .login-link, .feedback-button {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 15px;
    margin-left: 5px;
  }
  
  /* Hide dividers on buttons */
  .login-link:after, .feedback-button:after {
    display: none;
  }
}

/* Glow effect on hover */
.top-bar a.item:hover {
  text-shadow: 0 0 8px rgba(76, 201, 240, 0.6);
}

/* Active state for buttons */
.login-link:active, .feedback-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}

.item i {
  color: #f2f2f2; /* icon color */
  font-size: 18px; /* icon size */
  gap: 80px; /* adjust as needed */

}

.item {
  display: inline-flex;
  gap: 8px; /* adjust as needed */
}


/* ======================
   CORE HEADER STYLING & FIXES
====================== */
.main-header {
    /* Use a slightly darker, more opaque background */
    background: rgba(18, 24, 41, 0.95);
    padding: 10px 0; /* Consistent vertical padding */
    position: fixed;
    top: 40px; /* Start below top bar */
    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;
}

.main-header.scrolled {
    top: 0 !important; /* Moves to the top on scroll */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Max-width container needed for proper centering, assumed to be elsewhere */
}

/* ======================
   LOGO STYLING
====================== */
.logo {
    color: #E76F51;
    font-size: 1.1rem; /* Slightly larger for better visibility */
    font-weight: 600;
    margin-left: 0; /* Reset margins to standard flow */
    letter-spacing: 1.5px;
    animation: neon-glow 2s ease-in-out infinite alternate;
    /* The logo should be contained within the header flow, not negatively positioned */
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 4px #E76F51, 0 0 8px #E76F51; }
    100% { text-shadow: 0 0 8px #E76F51, 0 0 16px #E76F51; }
}

/* ======================
   MAIN NAVIGATION & HOVER EFFECT (Cleaned)
====================== */
.main-nav ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.main-nav ul li {
    margin-left: 30px; /* Increased spacing */
}

.main-nav ul li a {
    color: #b0cee3;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding: 8px 0; /* Add vertical padding for clickable area */
    display: inline-block; /* Required for padding to work */
    transition: color 0.3s ease;
    letter-spacing: -0.2px;
    font-family: 'Jost', sans-serif;
}

/* --- NEW HOVER EFFECT (Pulsating Highlight) --- */
.main-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Center the initial hover line */
    transform: translateX(-50%);
    width: 0; /* Starts hidden */
    height: 3px; /* Thicker line */
    background: #2A9D8F; /* Solid color for elegance */
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #2A9D8F; /* Primary highlight color */
}

.main-nav ul li a:hover::before {
    width: 80%; /* Expands to 80% of the link width */
    /* Optional: Add a subtle pulse/shadow on hover */
    box-shadow: 0 0 8px rgba(42, 157, 143, 0.6);
}


/* ======================
   SUBMENU STYLING
====================== */
.main-nav ul li.has-submenu {
    position: relative;
}

.main-nav ul li .submenu {
    display: none;
    position: absolute;
    top: calc(100% + 5px); /* Position slightly below the main link */
    left: 0;
    background: #121829;
    padding: 8px 0;
    min-width: 200px;
    border-radius: 6px; /* Smoother border */
    box-shadow: 0 8px 20px rgba(0,0,0,0.5); /* Stronger shadow */
    z-index: 1002;
    overflow: hidden; /* Clean up hover overflow */
}

.main-nav ul li .submenu li {
    margin: 0;
}

.main-nav ul li .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #9dabc5;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.main-nav ul li .submenu li a:hover {
    background: #202b4d; /* Subtle dark hover background */
    color: #2A9D8F; /* Highlight text color */
}

.main-nav ul li.has-submenu:hover .submenu {
    display: block;
}

.submenu-arrow {
    margin-left: 6px;
    font-size: 0.6rem;
    color: #51e7e0;
    transition: transform 0.3s ease;
}

/* Rotate the arrow when hovering */
.main-nav ul li.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}


/* ======================
   MOBILE NAVIGATION TOGGLE (Hamburger)
====================== */
.hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    /* Position the hamburger correctly relative to the header, not absolutely to the viewport */
    position: relative; 
}

/* Duplicated and conflicting .humburger class removed */
/* Duplicated absolute positioning removed */


.hamburger span {
    width: 100%;
    height: 6px;
    background-color: #bdcee7;
    margin: 3px 0; /* Clean up vertical spacing */
    transition: all 0.4s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ======================
   MEDIA QUERIES (Mobile & Tablet)
====================== */

@media (max-width: 768px) {
    /* --- MOBILE HEADER POSITION --- */
    .main-header {
        top: 0 !important; /* Forces header to the top immediately on mobile */
        padding: 1px 0; /* More padding on mobile */
        padding-top: 12px;
    }

    /* --- MOBILE NAV TOGGLE DISPLAY --- */
    .main-nav {
        /* This is the panel that slides out */
        display: none;
        position: absolute;
        top: 100%; /* Position it right below the header */
        left: 0;
        width: 100%;
        background: #121829; /* Solid background for mobile menu */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        padding-bottom: 20px;
    }
    
    .main-nav.open {
        display: block;
    }
    
    /* --- MOBILE NAV LIST LAYOUT --- */
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start; /* Align all links to the left */
        padding-top: 10px;
    }

    .main-nav ul li {
        width: 100%;
        margin-left: 0;
        margin-bottom: 5px;
    }

    .main-nav ul li a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0px 15px; /* Generous padding for tapping */
        font-size: 1rem;
        letter-spacing: 0;
    }

    /* Remove hover line for mobile links for cleaner look */
    .main-nav ul li a::before {
        display: none; 
    }
    
    /* --- MOBILE HAMBURGER VISIBILITY --- */
    .hamburger {
        display: flex;
      
    }

    /* --- MOBILE SUBMENU FIXES --- */
    .main-nav ul li.has-submenu .submenu {
        position: static; /* Stack sub-menus vertically */
        background: none;
        box-shadow: none;
        padding-left: 20px;
        padding-top: 0;
    }

    .main-nav ul li.has-submenu .submenu li a {
        padding: 8px 10px; /* Adjust padding for nested links */
        font-size: 0.95rem;
    }

    /* Fix logo position on small screens */
    .logo {
        margin-left: 0; 
    }
}

/* Target tablets (mid-range width adjustments) */
@media (min-width: 601px) and (max-width: 1024px) {
    .main-nav ul li {
        margin-left: 20px; /* Slightly tighter spacing on tablets */
    }
}


/* ==========HOME PAGE STARTS=========== */

/* 🌟 HERO SLIDER STYLES */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 900px;
  min-height: 600px;
  overflow: hidden;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .hero-carousel {
    height: 100vh;
  }
}

/* Individual Slides */
.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 12, 17, 0.99) 0%, rgba(28, 13, 51, 0.85) 100%);
  z-index: 1;
}

/* Text Content */
.hero-text {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: rgb(211, 227, 238);
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
  padding: 0 20px;
  margin-top: -50px;
  will-change: transform, opacity;
}

.hero-text h1 {
  font-family: "Poppins", sans-serif;
  font-size: 3.4rem;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.2;
}

.hero-text h5 {
  font-size: 1.4rem;
  margin-bottom: -4px;
  font-family: 'Poppins',sans-serif;
  font-weight: 400;
  color: #b9ccea;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  color: #c2d4e0;
}

.active .hero-text {
  transform: translateY(0);
  opacity: 1;
}

/* Navigation Arrows - Redesign */
.carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  transform: translateY(-50%);
  pointer-events: none;
}

.arrow {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  margin: 0 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}

.arrow:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.arrow:hover::before {
  left: 100%;
}

.arrow:active {
  transform: translateY(-2px) scale(0.98);
}

/* Left arrow specific styling */
.arrow-prev {
  transform: perspective(500px) rotateY(15deg);
}

/* Right arrow specific styling */
.arrow-next {
  transform: perspective(500px) rotateY(-15deg);
}

.arrow-prev:hover, .arrow-next:hover {
  transform: perspective(500px) rotateY(0deg) translateY(-5px) scale(1.05);
}

/* Arrow icon animation */
.arrow i {
  transition: transform 0.3s ease;
}

.arrow-prev:hover i {
  transform: translateX(-5px);
}

.arrow-next:hover i {
  transform: translateX(5px);
}

/* Pulse animation on focus */
.arrow:focus {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255,255,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

/* Navigation Dots */
.carousel-dots {
  position: absolute;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: white;
  transform: scale(1.2);
  border-color: rgba(255,255,255,0.8);
}

.dot:hover {
  transform: scale(1.2);
  background: rgba(255,255,255,0.7);
}

/* Bottom Info Boxes */
.bottom-info {
  position: absolute;
  bottom: 110px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
  padding: 0 20px;
  box-sizing: border-box;
  will-change: transform, opacity;
}

.active .bottom-info {
  opacity: 1;
  transform: translateY(0);
}

.info-box {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px 25px;
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 250px;
  width: 100%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.info-box h6 {
 font-size: 0.9rem;
}

/* Button Styles */
.hero-btn {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(45deg, #6e45e2, #88d3ce);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0px;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive Adjustments */
@media (max-width: 868px) {
  .hero-carousel {
    min-height: 500px;
    height: 80vh;
  }

  .hero-text {
    margin-top: -30px;
    padding: 0 30px;
  }

  .hero-text h1 {
    font-size: 2.1rem;
    margin-bottom: 10px;
    margin-top: -10px;
    letter-spacing: -0.32px;
  }

  .hero-text h5 {
    font-size: 0.96rem;
    margin-top: -23px;
    margin-bottom: 13px;
  }

  .hero-text p {
    font-size: 0.89rem;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .carousel-arrows {
    padding: 0 5px;
  }

  .arrow {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin: 0 5px;
    position: relative;
    top: -50px;
  }

  .carousel-dots {
    bottom: 10px;
  }

  .bottom-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    bottom: 111px;
    padding: 0 30px;
    
  }

  .info-box {
    max-width: 300px;
    padding: 15px 20px;
  
  }

  .hero-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-text {
    margin-top: -50px;
    line-height: 1.2;
  }

  .hero-text h1 {
    font-size: 2.0rem;
    margin-top: -10px;
    margin-bottom: 10px;
  }

  .hero-text h5 {
    font-size: 1rem;
    margin-top: -39px;
    margin-bottom: 16px;
  }

  .arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -30px;
    margin-top: 100px;
  }

  .carousel-dots {
    bottom: 15px;
  }

  .bottom-info {
    bottom: 48px;
  }

  .dot {
    width: 20px;
    height: 0px;
  }
}


/* COMPACT TOOLS SECTION STYLING */
.tools-section {
  padding: 1.5rem 0; /* reduced from 2rem */
  width: 100%;
  margin: 0;
  font-family: 'Jost', sans-serif;
  background: linear-gradient(135deg, #171f32 0%, #180a18 100%);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tools-heading {
  text-align: center;
  margin-bottom: 1.5rem; /* reduced from 2rem */
  color: #a5d1f7;
  font-size: 1.8rem; /* slightly smaller */
  font-weight: 500;
  padding: 0 1rem;
  letter-spacing: -0.3px;
}

.tools-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem; /* reduced from 1.5rem */
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 1200px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem; /* reduced from 1.5rem */
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px; /* slightly smaller */
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-item .tool-icon {
  font-size: 1.8rem; /* reduced from 2rem */
  margin-bottom: 0.8rem; /* reduced */
  color: #cddfef;
}

.tool-title {
  font-size: 1rem; /* reduced from 1.1rem */
  color: #b5c5f1;
  margin-bottom: 1.5rem; /* reduced from 3rem */
  font-weight: 500;
  margin-top: -10px; /* slightly less negative */
  line-height: 1.2;
}

/* Borders & hover effects remain the same but adjusted for compact size */
.tool-item::before, .tool-item::after,
.tool-item .border-bottom, .tool-item .border-left {
  z-index: 1;
}

@media (max-width: 768px) {
  .tools-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem; /* reduced */
  }

  .tools-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .tool-item {
    padding: 0.8rem; /* reduced */
    background: rgba(255, 255, 255, 0.05);
  }

  .tool-icon {
    font-size: 2rem; /* slightly smaller on mobile */
  }

  .tool-title {
    font-size: 0.9rem;
    margin-top: -12px;
    margin-bottom: 20px;
  }
}

/* COMPACT TOOLS SECTION WITH HOVER EFFECTS */
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Effects */
.tool-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.tool-item:hover .tool-icon {
  color: #00c1d4;
  text-shadow: 0 0 10px rgba(0, 193, 212, 0.6);
  animation: iconBounce 0.6s ease;
}

/* Bounce animation for icons */
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
}

/* Border animations (already exist, just keeping for hover glow) */
.tool-item::before, .tool-item::after,
.tool-item .border-bottom, .tool-item .border-left {
  transition: all 0.3s ease;
}

/* Optional: subtle gradient glow behind the item on hover */
.tool-item::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border-radius: 12px;
  background: linear-gradient(135deg, #8a2be2, #00c1d4, #46498b, #8a2be2);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
}

.tool-item:hover::after {
  opacity: 0.25;
}



  /* SERVICES SECTION HOME PAGE */
     .services-section {
      padding: 66px 0;
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 50%, #80deea 100%);
    }
    
    .services-section::before,
    .services-section::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
    }
    
  .section1-title {
    font-size: 2.4rem;
    letter-spacing: -1.4px;
    font-family: 'Poppins', sans-serif;
    color: #102538;
    text-align: center;
    margin: 0 auto 16px auto; /* top: 0, bottom: 16px, auto horizontal */
    position: relative;
    display: block; /* ensures it takes full width */
}

  .section1-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #E76F51, #058aaf);
  }
  
  .section1-description {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.4px;
    color: #364654;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
  }
  
  .services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
  
  .service-item {
    padding: 32px;
    background: #252F4A;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(42, 157, 143, 0.2);
  }
  
  .service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 157, 143, 0.3), transparent);
    transition: left 0.5s ease;
  }
  
  .service-item:hover::before {
    left: 100%;
  }
  
  .service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
    border-color: rgba(42, 157, 143, 0.4);
  }

  .service-item {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  /* keep your existing styles */
}

.service-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

  
  .service-icon {
    margin-bottom: 16px;
    transition: transform 0.4s ease;
    color: #2A9D8F;
    font-size: 1.0rem;
  }
  
  .service-item:hover .service-icon {
    transform: rotateY(180deg);
  }
  
  .service-title {
    font-size: 1.5rem;
    color: #c4d6f8;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
  }
  
  .service-description {
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    color: #b3c8d7;
  }
  
  /* ======================
     ABOUT SECTION 
     ====================== */
  .about-section {
    padding: 96px 0;
    background: #171E33;
    position: relative;
  }
  
  .about-container {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
  }
  
  .about-image {
    flex: 1;
    min-width: 340px;
    padding: 24px;
    position: relative;
  }
  
  .about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #2A9D8F;
    border-radius: 12px;
    z-index: -1;
    transform: rotate(5deg);
    opacity: 0.5;
  }
  
  .about-image img {
    width: 100%;
    max-width:1080px;
    border-radius: 12px;
    border: 0px solid #2A9D8F;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
  }

  
  .about-image img:hover {
    transform: scale(1.04);
    box-shadow: 0 0 24px rgba(42, 157, 143, 0.5);
  }
  
  .about-content {
    flex: 1;
    min-width: 320px;
    padding: 40px;
    background: #252F4A;
    margin-top: -45px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(42, 157, 143, 0.1);
  }
  
  .subheading {
    font-size: 1rem;
    color: #E76F51;
    text-transform: uppercase;
    margin-bottom: -8px;
    letter-spacing: -0.1px;
    font-weight: 600;
  }
  
  .main-heading {
    font-size: 2rem;
    color: #bdd0f5;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.7px;
    margin-bottom: 16px;
  }

.highlight-brand {
  color: #1bd7e8; /* Brand color */
  position: relative;
  display: inline-block;
  padding-bottom: 12px; 
  font-weight: 600;
  font-family: 'Jost', sans-serif;
}

/* Common styles for both arches */
.highlight-brand::before,
.highlight-brand::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;            /* line thickness */
  border-radius: 50% / 100%; /* arch shape */
  background-color: #00ddff;
  pointer-events: none;
}

/* Top thin arch */
.highlight-brand::before {
  bottom: 6px;            /* distance from text */
  height: 2px;            /* thinner line */
  background-color: #00ddff;
}

/* Bottom thin arch */
.highlight-brand::after {
  bottom: 0;              /* closer to baseline */
  height: 2px;
  background-color: #0099cc;
  opacity: 0.7;
}

  .description {
    color: #b5c1d5;
    line-height: 1.55;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: -0.20px;
    
  }

.cta-btn2 {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 28px;
  
  /* Typography */
  font-size: 0.98rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: white;
  text-decoration: none;
  letter-spacing: -0.3px;
  
  /* Styling */
  background: linear-gradient(135deg, #4361EE, #3A0CA3);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  
  /* Effects */
  box-shadow: 
    0 4px 20px rgba(67, 97, 238, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  
  /* Animation */
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* 3D Depth Effect */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Hover Effect (Glow + Gradient Shift) */
.cta-btn2:hover {
  background: linear-gradient(135deg, #3A0CA3, #4361EE);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(67, 97, 238, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Click Animation (Subtle press) */
.cta-btn2:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    0 2px 8px rgba(67, 97, 238, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Optional: Ripple Effect (Advanced) */
.cta-btn2::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  border-radius: 100%;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.5s, transform 0.5s;
  z-index: -1;
}

.cta-btn2:hover::after {
  transform: translate(-50%, -50%) scale(20);
  opacity: 1;
}


  @media (max-width: 768px) {

    .description {
      font-size: 0.9rem;
      line-height: 1.53;
    }
    .subheading {
      font-size: 0.8rem;
      margin-bottom: 1px;
    }

  }
  
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
  gap: 20px;
  margin: 40px 0;
}

.stat-item {
    position: relative;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.stat-item h3 {
  text-align: center;
  font-size: 2.4rem;
}

    .stat-item p {
     line-height: 1.1;
     color: #bacbd3;
     text-align: center;}

/* Desktop-only effects */
@media (min-width: 769px) {
    .stat-item {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .stat-item::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(141, 174, 241, 0.15) 0%, transparent 70%);
        transform: rotate(30deg);
        z-index: -1;
        transition: all 0.6s ease;
    }
    
    .stat-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        border-color: rgba(141, 174, 241, 0.3);
    }
    
    .stat-item:hover::before {
        transform: rotate(0deg) scale(1.2);
    }
    
    /* Animated underline effect */
    .stat-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #8daef1, #c3d3ff);
        transition: width 0.4s ease-out;
    }
    
    .stat-item:hover::after {
        width: 100%;
    }
}

.counter {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #8daef1 0%, #c3d3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(107, 136, 166, 0.75);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Jost', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr); /* 2 items horizontal */
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    /* Disable animations on mobile */
    .counter.animated {
        animation: none;
    }
}

@media (max-width: 480px) {
    .stat-item {
        padding: 22px 16px;
    }
    
    .counter {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
       
    }

    .stat-item h3 {
  text-align: center;
  font-size: 2.0rem;
}

    .stat-item p {
     line-height: 1.1;
     color: #bacbd3;
     font-size: 0.88rem;
     text-align: center;
}
}

/* Keep counter animation for desktop only */
@media (min-width: 769px) {
    @keyframes countUp {
        from { 
            opacity: 0;
            transform: translateY(10px);
        }
        to { 
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .counter.animated {
        animation: countUp 0.8s ease-out forwards;
    }
}



  .cta-btn {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(45deg, #E76F51, #2A9D8F);
    color: #fafbff;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 0 16px rgba(42, 157, 143, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 24px rgba(42, 157, 143, 0.6);
  }



/* IMAGE LINKS PORTALS SECTION */

.image-portals-section {
  position: relative;
}

.section-header {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 5%;
  z-index: 2;
}

.section-header h2 {
  font-size: 2.4rem;
  color: #e6f1ff;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: #8c96ae;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
}

/*PORTAL CARDS LINKS SECTIONS*/

/* Main Section Container */
.image-portals-section {
  background: radial-gradient(ellipse at top, #0a192f 0%, #020c1b 100%);
  min-height: 100vh;
  padding: 180px 5% 120px; /* Added top padding for header */
  position: relative;
}

/* Section Header */
.portals-section-header {
  text-align: center;
  margin-bottom: 0px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -80px;
}

.gradient-title {
  font-size: 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.7px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: #f3e4e4;
  
  /* Gradient text */
  background: linear-gradient(90deg, #aad0fd, #c5d3ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-title .highlight {
  /* Different color for the center word */
  color: #5ab7ed;
  -webkit-text-fill-color: initial; 
  background: none;
  text-shadow: none;

  /* Underline with curved double lines */
  position: relative;
  cursor: default;
}

.gradient-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px; 
  width: 100%;
  height: 8px;  /* height for the underline area */
  pointer-events: none;
  /* Use SVG path as background for double curved lines */
  background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="8" viewBox="0 0 100 8"><path fill="none" stroke="%23f39c12" stroke-width="2" d="M0 2 Q25 6 50 2 T100 2"/><path fill="none" stroke="%23f39c12" stroke-width="2" d="M0 6 Q25 2 50 6 T100 6"/></svg>') repeat-x;
  background-size: auto 8px;
}


.portals-section-header p {
  font-size: 1.2rem;
  color: #93a6be;
  line-height: 1.3;
  max-width: 700px;
  letter-spacing: -0.5px;
  margin: 0 auto;
  margin-bottom: 60px;
  margin-top: 10px;
}

/* Portals Grid */
.image-portals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card Styles (unchanged from your original) */
.image-portals-container {
  background: linear-gradient(145deg, #1a2a3a 0%, #0e1621 100%);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-bottom: 30px;
}

/* Glow effect */
.image-portals-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,255,0) 0%, rgba(100,149,237,0.6) 50%, rgba(0,212,255,0) 100%);
  z-index: -1;
  opacity: 0;
  animation: glowEnter 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

/*popup*/
.image-portals-container {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.5s ease, opacity 0.6s ease;
  /* keep your existing styles */
}

.image-portals-container.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive Grid */
@media (max-width: 992px) {
  .image-portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .image-portals-section {
    padding: 150px 5% 80px;
  }
}

@media (max-width: 576px) {
  .image-portals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .image-portals-section {
    padding: 120px 5% 60px;
  }
  
  .portals-section-header h2 {
    font-size: 1.5rem;
  }
  
  .portals-section-header p {
    font-size: 0.95rem;
  }
}

/* Card Content Styles (unchanged) */
.image-portals-container img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
  filter: grayscale(20%) contrast(110%);
  transition: filter 0.3s ease;
}

.image-portals-container h3 {
  margin: 15px 0 0px;
  font-size: 1.3rem;
  font-family: 'Poppins', sans-serif;
  color: #9ac9e9;
  letter-spacing: -0.3px;
  font-weight: 700;
  margin-top: -10px;
}

.image-portals-container p {
  font-size: 0.9rem;
  color: #9daec4;
  margin-bottom: 20px;
  letter-spacing: -0.1px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.image-portals-icon-btn {
  background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
  border: none;
  color: white;
  padding: 12px 14px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 85, 204, 0.3);
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

/* Hide text by default */
.image-portals-icon-btn .btn-text {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.4s ease, opacity 0.4s ease;
  display: inline-block;
  font-size: 15px;
}

/* When the card is hovered, expand text */
.image-portals-container:hover .image-portals-icon-btn .btn-text {
  max-width: 100px;
  opacity: 1;
}

/* Optional: animate button size on container hover */
.image-portals-container:hover .image-portals-icon-btn {
  padding-right: 20px;
  border-radius: 30px;
}


@media (Max-Width: 768px)  {
  .image-portals-container p {
    font-size: 0.9rem;
    margin-top: 6px;
  }

}

/* Hover Effects (unchanged) */
@media (hover: hover) and (pointer: fine) {
  .image-portals-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 91, 234, 0.2);
    border-color: rgba(0, 119, 255, 0.3);
  }
  
  .image-portals-container:hover img {
    filter: grayscale(0%) contrast(120%);
  }
  
  .image-portals-icon-btn:hover {
    background: linear-gradient(135deg, #f49803 0%, #f45703 100%);
    box-shadow: 0 6px 16px rgba(0, 119, 255, 0.5);
  }
  
  .image-portals-icon-btn:hover i,
  .image-portals-icon-btn:hover svg {
    animation: spinIcon 0.6s linear;
  }
}

/* Animations (unchanged) */
@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glowEnter {
  0% { opacity: 0; width: 0%; }
  50% { opacity: 1; }
  100% { opacity: 0.8; width: 100%; }
}


/* MODULES LIST SECTION*/
.who-we-work-with {
  text-align: center;
  padding: 60px 20px;
  background-color: #131822;
  overflow: hidden;
  position: relative;
}

/* Keep original heading styles */
.section-titlemodule {
  font-size: 2.0rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #b0c5e7;
  margin-bottom: 10px;
}

/* Enhanced divider (original structure) */
.divider {
  width: 80px;
  height: 3px;
  background-color: #0066cc;
  margin: 0 auto 40px auto;
  position: relative;
  overflow: hidden;
}

.divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Original grid layout preserved */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid #2d3748;
  border-left: 1px solid #2d3748;
}

/* Original item structure - enhanced effects */
.work-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  border-right: 1px solid #2d3748;
  border-bottom: 1px solid #2d3748;
  background: #1e293b;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Holographic hover effect */
.work-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(0,102,204,0) 0%,
    rgba(0,102,204,0.1) 50%,
    rgba(0,102,204,0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.work-item:hover {
  background: #2d3748;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.work-item:hover::before {
  opacity: 1;
  animation: hologram 1.5s linear infinite;
}

@keyframes hologram {
  0% { transform: translateY(-50%) rotate(30deg); }
  100% { transform: translateY(0%) rotate(30deg); }
}

/* Icon animations (preserve original markup) */
.work-item i {
  font-size: 35px;
  color: #3f72c5;
  margin-bottom: 15px;
  transition: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform: rotate(0deg) scale(1);
}

.work-item:hover i {
  color: #ee750b;
  transform: rotate(15deg) scale(1.2);
  filter: drop-shadow(0 0 8px rgba(238, 117, 11, 0.4));
}

/* Text animation */
.work-item p {
  font-weight: 500;
  color: #b2c1dc;
  font-family: 'Jost', sans-serif;
  text-align: center;
  letter-spacing: -0.1px;
  margin: 0;
  font-size: 0.88em;
  transition: all 0.4s ease;
  transform: translateY(0);
}

.work-item:hover p {
  color: #ffffff;
  letter-spacing: 0.5px;
  transform: translateY(2px);
}

/* Sequential entrance animation */
@keyframes itemEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations via JS when scrolled into view */
.animate-item {
  animation: itemEntrance 0.6s forwards;
}

/* Original responsive adjustments preserved */
@media (max-width: 780px) {
  .section-titlemodule {
    font-size: 1.4em;
  }

  .work-item {
    padding: 20px 10px;
  }

  .work-item i {
    font-size: 32px;
  }

  .work-item p {
    font-size: 0.95em;
  }

  /* Force 2 items per row on mobile */
  .work-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}



/* === WEBSITE & PORTAL SECTION === */

.website-portal-ad {
  background-color: #384867;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.website-portal-ad__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.website-portal-ad__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  background-color: rgba(21, 32, 55, 0.92);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

.website-portal-ad__text {
  width: 40%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.website-portal-ad__subheader {
  font-size: 0.95rem;
  color: #ea890a;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.website-portal-ad__headline {
  font-size: 2.4rem;
  margin: 0 0 20px;
  line-height: 1.2;
  color: #c2d1f2;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.website-portal-ad__description {
  font-size: 0.9rem;
  color: #9eabc7;
  line-height: 1.53;
  margin-bottom: 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.website-portal-ad__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #2080c9;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 260px;
}

.website-portal-ad__button:hover {
  background-color: #0f298f;
}

/*popup reveal*/
.website-portal-ad__subheader,
.website-portal-ad__headline,
.website-portal-ad__description,
.website-portal-ad__button {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.5s ease, opacity 0.6s ease;
}

.website-portal-ad__subheader.in-view,
.website-portal-ad__headline.in-view,
.website-portal-ad__description.in-view,
.website-portal-ad__button.in-view {
  opacity: 1;
  transform: translateY(0);
}


.website-portal-ad__image {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #14233c;
}

.website-portal-ad__image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin-top: -80px;
  margin-right: -200px;
}

/* Responsive */
@media (max-width: 768px) {
  .website-portal-ad__container {
    flex-direction: column;
  }

  .website-portal-ad__text,
  .website-portal-ad__image {
    width: 100%;
    padding: 14px;
    text-align: center;
    padding-top: 40px;
  }

  .website-portal-ad__image {
    padding: 0;
  }

  .website-portal-ad__subheader {
    font-size: 0.85rem;
  }

  .website-portal-ad__headline {
    font-size: 1.5rem;
    margin-top: -8px;
    line-height: 1.2;

  }

  .website-portal-ad__description {
    font-size: 0.87rem;
    line-height: 1.4;
  }

.website-portal-ad__button {
  max-width: 80%;
  margin-left: 22px;
  margin-bottom: 30px;
}

  .website-portal-ad__image img {
    margin-right: 0px;
    margin-top: -40px;
  }
}


/* BENEFITS HEADER AND DESCRIPTION */
.benefits-section {
  padding: 60px 20px;
  background: #111e28;
  font-family: 'Segoe UI', sans-serif;
  padding-top: 150px;
  position: relative;
  overflow: hidden;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  align-items: flex-start; /* Changed from center to flex-start */
  justify-content: space-between;
}

.benefits-heading {
  flex: 1 1 100%; /* Changed from 40% to 100% */
  min-width: 0;
  order: 1; /* Ensure heading comes first */
}

.benefits-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #aec3f5;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 0 0 20px 0; /* Added bottom margin */
  word-wrap: break-word;
  text-align: right; 

}

.benefits-description {
  flex: 1 1 100%; /* Changed from 55% to 100% */
  min-width: 0;
  order: 2; /* Ensure description comes after heading */
}

.benefits-description p {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #9cafc7;
  letter-spacing: -0.2px;
  font-family: 'Inter', sans-serif;
  margin: 0;
  text-align: left; /* Center align on all screens */
}

/* Desktop layout */
@media (min-width: 769px) {
  .benefits-grid {
    align-items: center; /* Center vertically on desktop */
  }
  
  .benefits-heading {
    flex: 1 1 40%; /* Revert to original width */
    order: 1;
    text-align: left; /* Left align on desktop */
  }
  
  .benefits-description {
    flex: 1 1 55%; /* Revert to original width */
    order: 2;
    text-align: left; /* Left align on desktop */
  }
  
  .benefits-heading h2 {
    text-align: left; /* Left align on desktop */
    margin-bottom: 10px; /* Reduced margin for desktop */
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .benefits-section {
    padding-top: 100px; /* Reduced top padding */
  }
  
  .benefits-heading h2 {
    font-size: 1.9rem; /* Slightly larger on mobile */
    margin-bottom: 15px; /* More space between heading and description */
    text-align: center; 
  }
  
  .benefits-description p {
    font-size: 0.9rem; /* Slightly larger text on mobile */
    line-height: 1.39; /* More readable line height */
    text-align: center; 
  }
}

/* WHY IMFUNDO SECTION */
.why-imfundo-section {
  padding: 60px 20px;
  background: #111e28;
  position: relative;
  overflow: hidden;
  padding-bottom: 100px;
  box-sizing: border-box;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
  100% { transform: translate(-5%, -5%); }
}

.why-imfundo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
  padding: 0 15px;
  box-sizing: border-box;
}

.why-imfundo-column {
  flex: 1 1 calc(25% - 20px);
  min-width: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: -30px;
  box-sizing: border-box;
}

.why-imfundo-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.why-imfundo-column:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 10px 25px -5px rgba(59, 130, 246, 0.2),
    0 8px 10px -6px rgba(59, 130, 246, 0.1);
}

.why-imfundo-column:hover::before {
  transform: scaleX(1);
}

.why-imfundo-icon-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  position: relative;
  border-radius: 18px;
  background: rgb(191, 235, 255);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
  transition: all 0.35s ease;
}

.why-imfundo-column:hover .why-imfundo-icon-container {
  transform: translateY(-5px) rotate(2deg);
  box-shadow: 
    0 7px 14px rgba(59, 130, 246, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.why-imfundo-icon-container::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.why-imfundo-column:hover .why-imfundo-icon-container::after {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

.why-imfundo-icon {
  font-size: 28px;
  color: #3b82f6;
  transition: all 0.35s ease;
}

.why-imfundo-column:hover .why-imfundo-icon {
  color: rgb(47, 15, 87);
  transform: scale(1.1);
}

.why-imfundo-title {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 8px;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.35s ease;
  letter-spacing: -0.8px;
}

.why-imfundo-column:hover .why-imfundo-title {
  color: #1e437e;
}

.why-imfundo-text {
  font-size: clamp(0.96rem, 1.5vw, 1rem);
  color: #64748b;
  line-height: 1.3;
  transition: all 0.35s ease;
  letter-spacing: -0.3px;
}

.why-imfundo-column:hover .why-imfundo-text {
  color: #475569;
}

/* Responsive Design */
@media (max-width: 991px) {
  .why-imfundo-column {
    flex: 1 1 calc(50% - 20px);
    min-width: 0;
  }

  .why-imfundo-title {
    font-size: 1.2rem;
  }

  .why-imfundo-text {
    font-size: 0.98rem;
    line-height: 1.2;
  }
}

@media (max-width: 600px) {
  .why-imfundo-column {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 23px;
  }

  .why-imfundo-section {
    padding-top: 0;
    padding-bottom: 60px;
  }

  .why-imfundo-icon-container {
    width: 50px;
    height: 50px;
  }

  .why-imfundo-icon {
    font-size: 24px;
  }
}


  /* ======================
     CALL TO ACTION SECTION 
     ====================== */
  .cta-new-section {
  position: relative;
  overflow: hidden;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/cta-bg.jpg') no-repeat center center/cover;
}

.cta-new-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.2), transparent);
  animation: pulse 12s infinite ease-in-out;
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 34, 44, 0.8);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 2rem;
  max-width: 600px;
}

.cta-subheading {
  font-size: 1rem;
  color: #ff9a0c;
  text-transform: uppercase;
  margin-bottom: -10px;
  letter-spacing: 1px;
  font-weight: 700;
}

.cta-heading {
  font-size: 2.8rem;
  color: #b3d8f3;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.9px;
  margin-bottom: 30px;
  line-height: 1.18;
  margin-top: 15px;
}

.cta-description {
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  color: #acbad8;
  max-width: 640px;
  line-height: 1.4;
  margin: 0 auto 32px;
  letter-spacing: -0.2px;
  font-weight: 400;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.4; }
  50%  { transform: scale(1.3); opacity: 0.2; }
  100% { transform: scale(1);   opacity: 0.4; }
}

  .cta-btn3 {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #3d497d, #3A0CA3);
    color: #fafbff;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 0 16px rgba(42, 157, 143, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .cta-btn3:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 24px rgba(42, 157, 143, 0.6);
  }

  /* popup from below for all */
/* Initial hidden state */
.cta-subheading,
.cta-heading,
.cta-description,
.cta-btn3 {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Animated visible state */
.cta-animate .cta-subheading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.cta-animate .cta-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.cta-animate .cta-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.cta-animate .cta-btn3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}




@media (max-width: 768px) {
  .cta-new-section {
    height: 70vh;
    padding-left: 16px;
    padding-right: 16px;
  }



  .cta-description {
    font-size: 0.92rem;
    line-height: 1.35;
  }
}


/* ===== MODERN DIASPORA SECTION ===== */
.diaspora-section {
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(6, 99, 161, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(231, 111, 81, 0.08) 0%, transparent 50%),
    linear-gradient(#0d1117, #0d1117);
  color: #b4c7e8;
  padding: 140px 20px;
  position: relative;
  overflow: hidden;
}

/* Animated floating dots background */
.diaspora-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(144, 193, 227, 0.03) 0%, transparent 2%),
    radial-gradient(circle at 80% 70%, rgba(231, 111, 81, 0.03) 0%, transparent 2%);
  background-size: 300px 300px;
  animation: float 12s infinite linear;
  z-index: 0;
}

@keyframes float {
  0% { background-position: 0 0, 100px 150px; }
  100% { background-position: 300px 300px, 400px 450px; }
}

.diaspora-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Image column with 3D parallax effect */
.diaspora-image-column {
  flex: 1;
  min-width: 300px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.diaspora-image-column img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(144, 193, 227, 0.1);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.diaspora-image-column:hover img {
  transform: rotateY(0deg) rotateX(0deg);
  box-shadow: 
    0 35px 60px -10px rgba(6, 99, 161, 0.3),
    0 0 0 1px rgba(144, 193, 227, 0.2);
}

/* Text column with animated underline */
.diaspora-text-column {
  flex: 1;
  min-width: 300px;
}

.diaspora-text-column .sub-heading {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  color: #E76F51;
  letter-spacing: -0.1px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  position: relative;
}

.diaspora-text-column .sub-heading::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #E76F51, transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.diaspora-text-column:hover .sub-heading::after {
  transform: scaleX(1);
}

/* Glowing heading effect */
.diaspora-text-column .main-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
  color: #90c1e3;
  margin-top: -5px;
  line-height: 1.2;
  text-shadow: 
    0 0 8px rgba(144, 193, 227, 0.2),
    0 0 16px rgba(144, 193, 227, 0.1);
  transition: text-shadow 0.4s ease;
}

.diaspora-text-column:hover .main-heading {
  text-shadow: 
    0 0 12px rgba(144, 193, 227, 0.3),
    0 0 24px rgba(144, 193, 227, 0.15);
}

.diaspora-text-column .description {
  color: #8d99b6;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: -0.3px;
  font-weight: 500;
  line-height: 1.53;
}

/* Animated feature list */
.features-list1 {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.features-list1 li {
  font-family: 'Jost', sans-serif;
  margin-bottom: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  color: #8ca7c1;
  padding-left: 32px;
  position: relative;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInRight 0.6s forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animation */
.features-list li:nth-child(1) { animation-delay: 0.1s; }
.features-list li:nth-child(2) { animation-delay: 0.2s; }
.features-list li:nth-child(3) { animation-delay: 0.3s; }
.features-list li:nth-child(4) { animation-delay: 0.4s; }

.features-list1 i {
  color: #0463a1;
  position: absolute;
  left: 0;
  font-size: 18px;
  transition: all 0.4s ease;
}

.features-list1 li:hover {
  color: #c3d6eb;
  transform: translateX(5px);
}

.features-list1 li:hover i {
  color: #E76F51;
  transform: scale(1.2) rotate(10deg);
}

.cta-btn3D {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb); /* Blue gradient */
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.cta-btn3D:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #db8801, #e6a706);
}

.cta-btn3D:active {
  transform: scale(0.97);
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .diaspora-section {
    padding: 90px 20px;
  }
  
  .diaspora-image-column img {
    transform: none !important;
  }
  
  /* Keep original mobile text sizes */
  .diaspora-text-column .sub-heading {
    margin-top: -390px;
    font-size: 0.91rem;
  }
  .diaspora-text-column .main-heading {
    font-size: 26px;
    margin-top: -9px;
    line-height: 1.2;
  }
  .diaspora-text-column .description {
    font-size: 0.87rem;
    line-height: 1.45;
  }
  
  /* Disable some animations on mobile */
  .features-list1 li {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }

  .features-list1 li {
    font-size: 0.94rem;
    line-height: 1.3;
     margin-bottom: 15px;
  }

  .features-list1 i {
    font-size: 1.4rem;
  }

  .diaspora-text-column {
  margin-top: -30px;
}

.cta-btnD {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb); /* Blue gradient */
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}



}

/* === IMPLEMENTATION SECTION === */

.implementation-ad {
  background-color: #0f1624; /* Dark navy */
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

/* Background Overlay Image */
.implementation-ad__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Inner Container */
.implementation-ad__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  background-color: rgba(20, 35, 60, 0.92);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

/* Text Column: LEFT (40%) */
.implementation-ad__text {
  width: 40%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.implementation-ad__subheader {
  font-size: 0.95rem;
  color: #E76F51;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.implementation-ad__headline {
  font-size: 2.4rem;
  margin: 0 0 20px;
  line-height: 1.2;
  color: #c2d1f2;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.implementation-ad__description {
  font-size: 0.9rem;
  color: #9eabc7;
  line-height: 1.53;
  margin-bottom: 30px;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  font-weight: 500;
}

.implementation-ad__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #1e90ff;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 260px;
}

.implementation-ad__button:hover {
  background-color: #033e7d;
}

/*popup*/
/* Scroll Reveal Setup */
.implementation-ad__subheader,
.implementation-ad__headline,
.implementation-ad__description,
.implementation-ad__button {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.5s ease, opacity 0.6s ease;
}

.implementation-ad__subheader.in-view,
.implementation-ad__headline.in-view,
.implementation-ad__description.in-view,
.implementation-ad__button.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* Image Column: RIGHT (60%) */
.implementation-ad__image {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #14233c;
}

.implementation-ad__image img {
  max-width: 57%;
  height: auto;
  border-radius: 0;
  display: block;
  margin-top: 10px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .implementation-ad__container {
    flex-direction: column;
  }

  .implementation-ad__text,
  .implementation-ad__image {
    width: 100%;
    padding: 10px;
    padding-bottom: 23px;
    padding-top: 30px;
    text-align: center;
  
  }

  .implementation-ad__image {
    padding: 0;
   
  }

  .implementation-ad__headline {
    font-size: 1.5rem;
    margin-top: -10px;
  }

  .implementation-ad__description {
    font-size: 0.87rem;
    line-height: 1.4;
  }

  .implementation-ad__button {
    max-width: 80%;
    margin-left: 26px;
    margin-bottom: 8%;
  }


.implementation-ad__image img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  margin-top: 10px;
}


}


  /* ======================
     FAQ SECTION 
     ====================== */
  .two-column-faq {
    padding: 96px 0;
    background: #1C253D;
    position: relative;
  }
  
  .two-column-faq::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #121829, transparent);
    z-index: 0;
  }
  
  .two-column-faq .container {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }
  
  .column-content {
    flex: 1;
    min-width: 320px;
  }
  
  .column-image {
    flex: 1;
    padding-top: 100px;
    min-width: 320px;
  }

  @media (max-width: 768px) {
    .column-image {
      padding-top: 10px;
    }
  }
  
  .column-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    border: 2px solid #2A9D8F;
    box-shadow: 0 0 16px rgba(42, 157, 143, 0.3);
    transition: transform 0.5s ease;
  }
  
  .column-image img:hover {
    transform: scale(1.04);
  }
  
  .subheader {
    font-size: 1rem;
    color: #E76F51;
    text-transform: uppercase;
    margin-bottom: -10px;
    letter-spacing: 1px;
  }
  
  .header {
    font-size: 2.4rem;
    color: #F3F4F6;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.9px;
    margin-bottom: 24px;
  }
  
  .faq-item {
    margin-bottom: 16px;
    background: #252F4A;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(42, 157, 143, 0.1);
  }
  
  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    background: #313c54;
    border: none;
    font-size: 1rem;
    color: #cad6f0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-family: 'Jost', sans-serif;
  }
  
  .faq-question:hover {
    background: #007c9b;
    transform: translateX(4px);
  }
  
  .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #E76F51;
  }
  
  .faq-question.active .toggle-icon {
    transform: rotate(180deg);
    color: #ffffff;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
  }
  
  .faq-answer-content {
    padding: 0 24px;
    font-size: 0.86rem;
    color: #a4afc8;
    background: #252F4A;
    margin-top: 20px;
    margin-bottom: 20px;
    letter-spacing: -0.1px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.55;
  }

  @media (max-width: 768px) {
    .header {
      font-size: 2.0rem;
    }
    .faq-question {
      font-family: "Inter", sans-serif;
      font-size: 0.88rem;
      text-align: left;
      margin: 0; /* Optional: removes unintended spacing */
      line-height: 1.4;
    }
    
    .faq-answer-content {
      font-size: 0.9rem;
      line-height: 1.6;
    }
      
  }
  


  
  /* ======================
     RESPONSIVE DESIGN 
     ====================== */
  @media (max-width: 768px) {
    /* Navigation */
    .main-nav {
      display: none;
      position: fixed;
      top: 64px;
      left: 0;
      width: 100%;
      background: #121829;
      padding: 16px 0;
      z-index: 1000;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
  
    .main-nav.active {
      display: block;
    }
  
    .main-nav ul {
      flex-direction: column;
      align-items: center;
    }
  
    .main-nav ul li {
      margin: 12px 0;
    }
  
    .hamburger {
      display: flex;
      margin-top: -20px;
    }
  
    /* Hero Section */
    .hero {
      min-height: 75vh;
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .hero-content p {
      font-size: 1rem;
    }
    
    /* About Section */
    .about-container {
      flex-direction: column;
      padding-left: 8px;
      padding-right: 8px;
    }
    
  
    .about-content {
      padding: 24px;
    }
  
    /* FAQ SECTION */
    .two-column-faq .container {
      flex-direction: column;
    }
  
    /* Features Section */
    .features-section .container {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 780px) {
    /* Hero Section */
    .hero-content h1 {
      font-size: 2rem;
      line-height: 1.3;
    }
  
    .hero-content p {
      font-size: 1rem;
      line-height: 1.3;
    }
  
    /* Section Titles */
    .section1-title {
      font-size: 1.6rem;
    }
  
    .section1-description {
      font-size: 0.86rem;
      margin-top: -5px;
    }
  
    .service-description {
      font-size: 0.82rem;
      line-height: 1.4;
    }
  
    .section-title, .main-heading, .cta-heading {
      font-size: 1.6rem;
    }
  
    /* Services */
    .services-container {
      grid-template-columns: 1fr;
    }
  
    /* Buttons */
    .hero-btn, .cta-btn {
      padding: 10px 28px;
      font-size: 0.95rem;
    }

    .service-title {
      font-size: 1.4rem;
    }
  
  }

/* ==== CONTACT SECTION ==== */
:root {
  --column-padding-vertical: 40px;
  --column-padding-horizontal: 30px;
}

.contact-section-container {
  width: 100%;
  background: linear-gradient(135deg, #2b325b 0%, #1a2038 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.contact-section-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(241,158,2,0.08) 0%, transparent 50%);
  z-index: 0;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 30px auto;
  background: rgba(20, 47, 77, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeIn 0.6s ease-out forwards;
}

.contact-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.column {
  flex: 1;
  min-width: 280px;
  padding: var(--column-padding-vertical) var(--column-padding-horizontal);
  box-sizing: border-box;
}

.column:nth-child(2) {
  background: rgba(24, 31, 51, 0.6);
  border-left: 1px solid rgba(255,255,255,0.05);
}

.column-header {
  font-size: 22px;
  margin-bottom: 20px;
  color: #b3d4ff;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  padding-bottom: 12px;
  position: relative;
}

.column-header:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #f19e02 0%, #ff6b00 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.column:hover .column-header:after {
  width: 60px;
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(221, 221, 221, 0.15);
  border-radius: 6px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f0;
  transition: all 0.3s ease;
}

.contact-form textarea {
  height: 100px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f19e02;
  box-shadow: 0 0 0 2px rgba(241, 158, 2, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form button {
  background: linear-gradient(135deg, #ee8f00 0%, #f05a00 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
  width: 100%;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #f08c00 0%, #f04500 100%);
  box-shadow: 0 5px 15px rgba(238, 143, 0, 0.3);
}

/* Contact Details */
.contact-details {
  margin-top: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.3s; }
.contact-item:nth-child(3) { animation-delay: 0.4s; }

.contact-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0093ef 0%, #024b8f 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #7e9dce;
  font-weight: 500;
}

.contact-text p, 
.contact-text a {
  color: #d1d1e9;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

/* Description */
.description-Contact {
  color: #8ea6c8;
  font-size: 0.87rem;
  line-height: 1.65;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
  font-family: 'Inter', sans-serif;
}

/* About Company */
.about-nav-link {
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #3498db;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.about-nav-link:hover {
  background-color: #3498db;
  color: #fff;
  transform: translateY(-2px);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f19e02;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #f19e02;
  color: white;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== RESPONSIVE FIXES FOR MOBILE DEVICES ==== */
@media (max-width: 768px) {
  :root {
    --column-padding-vertical: 30px;
  }

  .contact-section {
    margin-left: 15px;
    margin-right: 15px;
    box-shadow: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    animation: none !important;
  }

  .column:nth-child(2) {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .column-header:after {
    transition: none !important;
  }

  .column:hover .column-header:after {
    width: 50px !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    transition: none !important;
    box-shadow: none !important;
  }

  .contact-item {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .social-links a,
  .about-nav-link {
    transition: none !important;
    transform: none !important;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  :root {
    --column-padding-vertical: 25px;
    --column-padding-horizontal: 20px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }

  .contact-section-container {
    padding: 40px 15px;
  }
}


/* ==== FAQs CTA Section ==== */
.faqs-cta {
  background: linear-gradient(135deg, #0f1624, #1a2436);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  color: #e0e6f5;
  text-align: center;
  /* Will-change optimizes for animations */
  will-change: transform;
}

/* Subtle animated gradient overlay */
.faqs-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(31, 144, 255, 0.1) 0%,
    rgba(31, 144, 255, 0) 50%,
    rgba(10, 101, 196, 0.1) 100%
  );
  opacity: 0.5;
  z-index: 1;
  animation: gradientShift 12s ease infinite alternate;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Subtle floating dots in background */
.faqs-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(165, 199, 233, 0.1) 1px, transparent 1px),
                      radial-gradient(circle at 80% 70%, rgba(165, 199, 233, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: 1;
  animation: float 60s linear infinite;
}

@keyframes float {
  0% {
    background-position: 0 0, 30px 30px;
  }
  100% {
    background-position: 300px 300px, 330px 330px;
  }
}

.faqs-cta__container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faqs-cta__headline,
.faqs-cta__text,
.faqs-cta__button {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.5s ease, opacity 0.6s ease;
}

/* Reveal when in view */
.faqs-cta__headline.in-view,
.faqs-cta__text.in-view,
.faqs-cta__button.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Glow animation remains */
.faqs-cta__headline {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #a5c7e9;
  letter-spacing: -0.5px;
  line-height: 1.2;
  animation: textGlow 6s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  50% {
    text-shadow: 0 2px 8px rgba(165, 199, 233, 0.3);
  }
  100% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

.faqs-cta__text {
  font-size: 0.95rem !important;
  color: #8c9db8;
  margin-bottom: 30px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  letter-spacing: -0.3px;
  margin-top: -8px;
}

.faqs-cta__button {
  display: inline-block;
  background-color: #1e90ff;
  color: white;
  padding: 14px 68px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faqs-cta__button:hover {
  background-color: #0b64c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* Ripple effect on click */
.faqs-cta__button:active:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faqs-cta__headline {
    font-size: 1.7rem;
    animation: none;
    opacity: 1;
    transform: none;
    line-height: 1.2;
  }

  .faqs-cta__text {
    font-size: 0.85rem;
    animation: none;
    opacity: 1;
    transform: none;
    line-height: 1.4;
  }
  
  .faqs-cta__button {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  /* Simplify background effects on mobile */
  .faqs-cta::before,
  .faqs-cta::after {
    animation: none;
    opacity: 0.1;
  }
}




/* FOOTER SECTION */
/* ==== MODERN FOOTER SECTION (Dark Mode) ==== */
.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 */
  }
}




/* 🚀 Ultra-Modern WhatsApp Float - Premium 2024 Design */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 68px;
  height: 68px;
  background: radial-gradient(circle at 65% 35%, 
              rgba(93, 247, 119, 0.95) 0%, 
              rgba(37, 211, 102, 0.9) 45%, 
              rgba(18, 140, 126, 0.85) 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 30px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1.5px rgba(255, 255, 255, 0.2) inset;
  z-index: 9999;
  cursor: pointer;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.6s ease,
    border-radius 0.4s ease;
  overflow: hidden;
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

/* 3D Depth Layer */
.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, 
              rgba(255, 255, 255, 0.4) 0%, 
              transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Floating Orb Effect */
.whatsapp-float::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  filter: blur(6px);
  z-index: -1;
  transition: all 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-8px) rotate(12deg);
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(37, 211, 102, 0.7),
    0 8px 20px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.25) inset;
}

.whatsapp-float:hover::before {
  opacity: 1;
}

.whatsapp-float:hover::after {
  transform: translate(12px, 12px) scale(1.5);
  opacity: 0;
}

.whatsapp-float:active {
  transform: scale(0.96) translateY(2px);
  transition-duration: 0.1s;
}

/* Icon Styling */
.whatsapp-float img {
  width: 34px;
  height: 34px;
  filter: 
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3))
    brightness(1.15)
    contrast(1.1);
  transition: 
    transform 0.7s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    filter 0.4s ease;
  z-index: 2;
}

.whatsapp-float:hover img {
  transform: scale(1.2) rotate(-8deg);
}

@media (Max-Width: 768px)  {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 10px;
  }
  .whatsapp-float img {
    height: 28px;
    width: 28px;
  }
}


/* 💬 Premium Chat Bubble */
.whatsapp-popup {
  position: fixed;
  bottom: 110px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(145deg, 
              rgba(37, 211, 102, 0.98) 0%, 
              rgba(18, 140, 126, 0.98) 100%);
  color: white;
  padding: 20px;
  border-radius: 20px;
  font-size: 15px;
  font-family: 'Inter', -apple-system, sans-serif;
  box-shadow:
    0 20px 50px rgba(37, 211, 102, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(25px) scale(0.95);
  transition:
    opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 9998;
  max-width: 320px;
  overflow: hidden;
}

/* Bubble Tail */
.whatsapp-popup::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 30px;
  width: 24px;
  height: 24px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: rotate(45deg);
  z-index: -1;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

/* Agent Profile Section */
.popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.agent-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s ease;
}

.agent-info {
  flex: 1;
}

.agent-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.agent-status {
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Status Indicator */
.agent-status::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: #5df777;
  border-radius: 50%;
  box-shadow: 0 0 8px #5df777;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.popup-text {
  line-height: 1.6;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ✅ Bigger Close Button (Improved) */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; /* Larger size */
  height: 32px; /* Larger size */
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px; /* Bigger icon */
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 
    all 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.2s ease;
  backdrop-filter: blur(2px);
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: rotate(90deg) scale(1.1);
}

.popup-close:active {
  transform: rotate(90deg) scale(0.9);
}

/* Show State */
.whatsapp-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: bubble-float 6s ease-in-out infinite;
}

/* Floating Animation */
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
}

/* ✨ Particle System */
.whatsapp-particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: float-particle 5s ease-in-out infinite;
}

@keyframes float-particle {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(random(100) - 50px, -150px) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Performance Mode */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .whatsapp-float, 
  .whatsapp-popup {
    transform: none !important;
  }
}




.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%;
}



