/* ===============================
   ENTRY INTENT – SECTION STYLE
================================ */

.entry-intent {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.88);
  backdrop-filter: blur(6px);
}

.entry-intent-box {
  width: 92%;
  max-width: 1360px;
  padding: 60px 40px;
  border-radius: 20px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);

  text-align: center;

  animation: intentFadeUp 0.5s ease forwards;
}

@keyframes intentFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-intent-box h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.entry-intent-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Grid like service-grid */
.entry-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Force 3 in one row */
  gap: 28px;
  margin-top: 40px;
}

/* Card like service-card */
.entry-intent-card {
  background: #0f172a;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 30px;
  text-align: left;
  text-decoration: none;
  color: var(--text-light);

  transition: 0.3s ease;
}

.entry-intent-card i {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 14px;
}

.entry-intent-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.entry-intent-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.entry-intent-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Close */
/* ===============================
   CLOSE BUTTON – MICRO INTERACTION
================================ */

.entry-intent-close {
  position: absolute;
  top: 20px;
  right: 24px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;

  color: #fff;
  font-size: 26px;
  cursor: pointer;

  opacity: 0;
  transform: scale(0.8) rotate(-90deg);

  animation: closeBtnIn 0.6s ease forwards;
  animation-delay: 0.4s;

  transition:
    transform 0.35s cubic-bezier(.25,.8,.25,1),
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Entry animation */
@keyframes closeBtnIn {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Hover */
.entry-intent-close:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Click feedback */
.entry-intent-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Glow ring */
.entry-intent-close::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(211,84,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.entry-intent-close:hover::after {
  opacity: 1;
}

/* Sync with modal exit */
.entry-intent.hidden .entry-intent-close {
  opacity: 0;
  transform: scale(0.7) rotate(-90deg);
  transition: all 0.25s ease;
}


/* Mobile */
@media (max-width: 600px) {
  .entry-intent-box {
    padding: 40px 24px;
  }
}
/* Modal hidden state */
.entry-intent.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ===============================
   MODAL = SERVICES SECTION STYLE
================================ */

/* Modal container behaves like .section.services */
.entry-intent-box {
  background: transparent;
  border: none;
  box-shadow: none;
  animation: fadeUp 0.8s ease forwards;
}

/* Grid = service-grid */
.entry-intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* Card = service-card */
.entry-intent-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  padding: 34px;
  border-radius: 20px;
  text-align: center;
  color: var(--text-light);
  text-decoration: none;

  transition: all 0.5s cubic-bezier(.25,.8,.25,1);
  position: relative;
  overflow: hidden;

  transform: translateY(20px) scale(0.96);
  opacity: 0;

  animation: modalCardReveal 0.8s ease forwards;
}

/* Stagger like services */
.entry-intent-card:nth-child(1) { animation-delay: 0.2s; }
.entry-intent-card:nth-child(2) { animation-delay: 0.35s; }
.entry-intent-card:nth-child(3) { animation-delay: 0.5s; }

/* Rotating gradient ring (SAME AS service-card) */
.entry-intent-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.entry-intent-card:hover::before {
  opacity: 0.6;
  animation: rotateRing 3s linear infinite;
}

/* Icon animation */
.entry-intent-card i {
  font-size: 38px;
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

.entry-intent-card:hover i {
  transform: rotateY(360deg);
}

/* Hover = service-card hover */
.entry-intent-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

/* Entry animation */
@keyframes modalCardReveal {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}



/* ===============================
   ENTRY FORM – SERVICE STYLE
================================ */

.entry-form-grid {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

.entry-form-card {
  text-align: left;
  animation-delay: 0.25s;
}

/* Form layout */
.entry-form {
  display: grid;
  gap: 18px;
}

.entry-form-group input,
.entry-form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-light);

  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;

  outline: none;
  transition: all 0.3s ease;
}

/* Focus glow */
.entry-form-group input:focus,
.entry-form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(211,84,0,0.25);
  background: rgba(255,255,255,0.08);
}

/* Button */
.entry-form-btn {
  margin-top: 10px;
  width: 100%;
}

/* Mobile */
@media (max-width: 600px) {
  .entry-form-grid {
    max-width: 100%;
  }
}
