/* --- 3. Full Screen Modal Overlay --- */
#openBtn {
  border: 2px solid transparent;
  transition: all 0.2s linear;
  /* display: flex; */
  justify-items: center;
}
#openBtn:hover {
  transition: all 0.1s linear;
  padding-right: 12px;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 35, 0.6); /* Dark semi-transparent */
  backdrop-filter: blur(8px); /* Blur effect on background */
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible State */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- 4. Modal Content Container --- */
.modal-container {
  background: white;
  width: 90%;
  max-width: 1100px; /* Wide layout */
  max-height: 90vh;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto; /* Scrollable if screen is small */

  /* Initial Animation State */
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect */
}

/* Active Animation State */
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Header Styling */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.modal-header h2 {
  margin: 0;
  font-size: 2rem;
  background: linear-gradient(to right, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.close-btn {
  background: #f1f5f9;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 24px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #e2e8f0;
  color: #ef4444;
  transform: rotate(90deg);
}

/* --- 5. Modern Grid Layout --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* --- 6. Card Styling --- */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px;
  text-decoration: none;
  color: #334155;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* Hover Effect for Cards */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}
.card:nth-child(1):hover {
  background: url("https://i.postimg.cc/tR24HTGQ/erp.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; /* Optional: centers the image */
}
.card:nth-child(1):hover :is(.card-title, .card-icon, .card-desc) {
  opacity: 0;
  /* Optional: Add transition if you want them to fade out smoothly */
  transition: opacity 0.3s ease;
}
.card:nth-child(2):hover {
  background: url("https://i.postimg.cc/3xYP3xnn/aitutor.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; /* Optional: centers the image */
}
.card:nth-child(2):hover :is(.card-title, .card-icon, .card-desc) {
  opacity: 0;
  /* Optional: Add transition if you want them to fade out smoothly */
  transition: opacity 0.3s ease;
}
.card:nth-child(3):hover {
  background: url("https://i.postimg.cc/7hr2jdwL/dental.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; /* Optional: centers the image */
}
.card:nth-child(3):hover :is(.card-title, .card-icon, .card-desc) {
  opacity: 0;
  /* Optional: Add transition if you want them to fade out smoothly */
  transition: opacity 0.3s ease;
}
.card:nth-child(4):hover {
  background: url("https://i.postimg.cc/B6BF9N6H/firstfasion.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; /* Optional: centers the image */
}
.card:nth-child(4):hover :is(.card-title, .card-icon, .card-desc) {
  opacity: 0;
  /* Optional: Add transition if you want them to fade out smoothly */
  transition: opacity 0.3s ease;
}
.card:nth-child(5):hover {
  background: url("https://i.postimg.cc/rmw4Txrr/jaihosolution.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; /* Optional: centers the image */
}
.card:nth-child(5):hover :is(.card-title, .card-icon, .card-desc) {
  opacity: 0;
  /* Optional: Add transition if you want them to fade out smoothly */
  transition: opacity 0.3s ease;
}
.card:nth-child(6):hover {
  background: url("https://i.postimg.cc/Hxv61pjw/Mall-Product-Finder.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; /* Optional: centers the image */
}
.card:nth-child(6):hover :is(.card-title, .card-icon, .card-desc) {
  opacity: 0;
  /* Optional: Add transition if you want them to fade out smoothly */
  transition: opacity 0.3s ease;
}
/* Decorative gradient line on top of card */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 15px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.3s;
}

.card:hover .card-icon {
  background: #eff6ff;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.card-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .modal-container {
    padding: 25px;
    width: 85%;
  }
  .modal-header h2 {
    font-size: 1.5rem;
  }
}
.popuScial {
  display: flex;
  gap: 1rem;
  justify-items: center;
  padding-top: 2rem;

  & img {
    border: 2px solid black;
    border-radius: 50%;
    padding: 3px;
    transition: all 0.3s linear;
  }
}
.popuScial img:hover {
  scale: 1.2;
}
