/* =====================================================
   NDALO TECHNOLOGIES - UPGRADE STYLES
   All new modal, service, price, footer enhancements
   ===================================================== */

/* ---- MODAL OVERLAY ---- */
.ndalo-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: ndaloFadeIn 0.25s ease;
}
.ndalo-overlay.active { display: flex; align-items: center; justify-content: center; }

@keyframes ndaloFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ndaloSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.ndalo-modal {
  background: #fff;
  border-radius: 4px;
  max-width: 620px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: ndaloSlideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ndalo-modal-header {
  background: #009EE3;
  color: #fff;
  padding: 28px 30px 24px;
  position: relative;
}
.ndalo-modal-header h2 {
  color: #fff;
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ndalo-modal-header p {
  margin: 6px 0 0;
  opacity: 0.88;
  font-size: 14px;
}
.ndalo-modal-header .modal-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
  opacity: 0.9;
}

.ndalo-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.ndalo-modal-close:hover { background: rgba(255,255,255,0.35); }

.ndalo-modal-body {
  padding: 28px 30px 24px;
}

.ndalo-feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.ndalo-feature-list li {
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  color: #555;
  font-size: 15px;
}
.ndalo-feature-list li:last-child { border-bottom: none; }
.ndalo-feature-list li:before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: #009EE3;
  font-size: 13px;
  top: 11px;
}

.ndalo-price-badge {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ndalo-price-badge .currency { font-size: 20px; color: #009EE3; font-weight: 700; }
.ndalo-price-badge .amount { font-size: 42px; line-height: 1; color: #009EE3; font-weight: 700; }
.ndalo-price-badge .period { font-size: 13px; color: #888; }

.btn-ndalo-order {
  display: block;
  width: 100%;
  background: #009EE3;
  color: #fff !important;
  text-align: center;
  padding: 15px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s;
  text-decoration: none;
  margin-top: 6px;
}
.btn-ndalo-order:hover { background: #0085C2; color: #fff !important; }

/* ---- SERVICE CARDS clickable ---- */
.service-item {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 20px 15px;
  border-radius: 4px;
}
.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,158,227,0.15);
}
.service-item .service-badge {
  display: inline-block;
  background: #009EE3;
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- PRICE TABLES clickable ---- */
.price-table {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-table:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}
.price-table ul li:last-child a {
  cursor: pointer;
  font-weight: 600;
}

/* ---- DEVELOPER PROFILE MODAL ---- */
.dev-profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009EE3 0%, #0062a3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  margin: 0 auto 16px;
  font-weight: 700;
  letter-spacing: -1px;
  border: 4px solid rgba(255,255,255,0.3);
}
.dev-profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
}
.dev-profile-title {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  text-align: center;
  margin-top: 4px;
}

.dev-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.dev-skill-tag {
  background: #f0f8ff;
  border: 1px solid #cce8f8;
  color: #0085C2;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.dev-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.dev-stat {
  flex: 1;
  text-align: center;
  background: #f8f8f8;
  border-radius: 4px;
  padding: 12px 6px;
}
.dev-stat .stat-num { font-size: 22px; font-weight: 700; color: #009EE3; display: block; }
.dev-stat .stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }

.dev-contact-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.dev-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
}
.dev-contact-item i { color: #009EE3; width: 18px; text-align: center; }

/* ---- CONTACT FORM STATES ---- */
.contact-form-msg {
  display: none;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}
.contact-form-msg.success {
  background: #e8f8f0;
  border: 1px solid #a8e0be;
  color: #2e7d52;
}
.contact-form-msg.error {
  background: #fff0f0;
  border: 1px solid #f5c0c0;
  color: #c0392b;
}

/* ---- NEWSLETTER ---- */
.subscribe-form .newsletter-success {
  display: none;
  color: #a0f0c0;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* ---- FOOTER COPYRIGHT LINK ---- */
#footer a { color: #009EE3; }
#footer .dev-link {
  cursor: pointer;
  color: #009EE3;
  text-decoration: underline dotted;
  border: none;
  background: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
#footer .dev-link:hover { color: #fff; }

/* ---- SUBMIT BUTTON LOADING STATE ---- */
#submit.loading { opacity: 0.7; pointer-events: none; }
#submit.loading:after { content: " ..." ; }

/* ---- MODAL SCROLLBAR ---- */
.ndalo-modal::-webkit-scrollbar { width: 5px; }
.ndalo-modal::-webkit-scrollbar-track { background: #f1f1f1; }
.ndalo-modal::-webkit-scrollbar-thumb { background: #009EE3; border-radius: 3px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .ndalo-modal { width: 96%; max-height: 92vh; }
  .ndalo-modal-header, .ndalo-modal-body { padding: 20px; }
  .dev-stat-row { flex-wrap: wrap; }
}
