/*
Theme Name: Jay Digital Pro — Airo Elementor
Theme URI: https://jaydigitalpro.com
Author: Jay Digital Pro
Description: The production WordPress edition of the approved Jay Digital Pro agency design.
Version: 4.0.17
Text Domain: jay-digital-pro-final
*/

body { font-family: "DM Sans", Arial, Helvetica, sans-serif; }
h1, h2, h3, h4, h5, h6, .brand-name { font-family: "Manrope", "DM Sans", Arial, sans-serif; }
.admin-bar .site-header { top: 32px; }
.footer-socials .social-disabled { width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; display: grid; place-items: center; color: #9ca6bc; font-size: .65rem; opacity: .35; cursor: default; }
.footer-socials a[aria-label="PeoplePerHour"] { width: auto; min-width: 42px; padding: 0 8px; font-size: .58rem; font-weight: 800; }
.footer-socials a[aria-label="Facebook"] svg { width: 18px; height: 18px; display: block; }
.footer-legal { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 22px; white-space: nowrap; }
.contact-form .notice { grid-column: 1 / -1; padding: 14px 16px; background: rgba(57,119,255,.1); color: #1d4ed8; border-left: 3px solid #3977ff; }
.contact-form .notice.error { background: rgba(220,38,38,.08); color: #b91c1c; border-color: #dc2626; }
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-visible { opacity: 1; transform: none; }
.legal a { color: var(--agency-blue, #3977ff); text-decoration: underline; text-underline-offset: 3px; }
.prose-card { min-height: 45vh; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 520px) { .footer-bottom { align-items: flex-start; gap: 16px; } .footer-legal { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .reveal-ready { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   INTERACTIVE LIVE PORTFOLIO & DEVICE PREVIEW SYSTEM
   ========================================================================== */

/* Portfolio Filters */
.jdpf-portfolio-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-bottom: 40px !important;
}

.jdpf-portfolio-filters a,
.jdpf-portfolio-filters .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  color: #4b5563 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
  cursor: pointer !important;
}

.jdpf-portfolio-filters a:hover,
.jdpf-portfolio-filters .elementor-element.is-active a,
.jdpf-portfolio-filters a.is-active {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15) !important;
}

.jdpf-portfolio-filters .filter-count {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-weight: 700;
  transition: all 0.2s ease;
}

.jdpf-portfolio-filters .elementor-element.is-active .filter-count,
.jdpf-portfolio-filters a.is-active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Portfolio Card Container */
.jdpf-portfolio-card {
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.jdpf-portfolio-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(57, 119, 255, 0.3) !important;
  box-shadow: 0 20px 40px rgba(57, 119, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Browser Mockup Frame Header on Cards */
.jdpf-browser-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 12px 12px 0 0;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  margin: -24px -24px 0 -24px;
}

.jdpf-browser-dots {
  display: flex;
  gap: 5px;
}

.jdpf-browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.jdpf-browser-dots span:nth-child(1) { background: #ef4444; }
.jdpf-browser-dots span:nth-child(2) { background: #f59e0b; }
.jdpf-browser-dots span:nth-child(3) { background: #10b981; }

.jdpf-browser-url {
  margin-left: 8px;
  flex: 1;
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #64748b;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #e2e8f0;
}

/* Visual Image & Live Badge */
.jdpf-portfolio-card .elementor-widget-image,
.jdpf-card-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 18px 0;
  background: #f8fafc;
  min-height: 200px;
}

.jdpf-portfolio-card .elementor-widget-image img,
.jdpf-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 12px;
}

.jdpf-portfolio-card:hover .elementor-widget-image img,
.jdpf-portfolio-card:hover .jdpf-card-media img {
  transform: scale(1.04);
}

/* Pulsing Live Site Badge */
.jdpf-live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.jdpf-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: jdpf-pulse 2s infinite;
}

@keyframes jdpf-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Card Content Styling */
.jdpf-portfolio-card h2,
.jdpf-portfolio-card h3 {
  font-size: 1.35rem !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  margin: 4px 0 10px 0 !important;
  line-height: 1.3 !important;
}

.jdpf-portfolio-card p {
  color: #64748b !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  margin-bottom: 16px !important;
}

/* Tech Stack Tags */
.jdpf-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px 0;
}

.jdpf-tech-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Key Metric Result Pill */
.jdpf-project-result,
.jdpf-card-metric {
  margin-top: auto;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(57, 119, 255, 0.08) 0%, rgba(55, 214, 255, 0.08) 100%);
  border: 1px solid rgba(57, 119, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 18px;
}

.jdpf-project-result h3,
.jdpf-card-metric b {
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  color: #1e40af !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dual Action Buttons on Cards */
.jdpf-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.jdpf-btn-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #3977ff 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.jdpf-btn-preview:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  color: #ffffff !important;
}

.jdpf-btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  color: #0f172a !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jdpf-btn-visit:hover {
  background: #ffffff;
  border-color: #94a3b8;
  transform: translateY(-2px);
  color: #1e293b !important;
}

/* ==========================================================================
   INTERACTIVE LIVE PREVIEW MODAL
   ========================================================================== */
.jdpf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.jdpf-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.jdpf-modal-window {
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  background: #0f172a;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jdpf-modal-backdrop.is-open .jdpf-modal-window {
  transform: scale(1) translateY(0);
}

/* Modal Chrome Bar */
.jdpf-modal-chrome {
  padding: 12px 18px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jdpf-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jdpf-modal-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.jdpf-modal-category {
  font-size: 0.75rem;
  padding: 3px 8px;
  background: rgba(57, 119, 255, 0.2);
  color: #93c5fd;
  border-radius: 6px;
  font-weight: 600;
}

/* Device Switcher Controls */
.jdpf-device-switcher {
  display: flex;
  background: #0f172a;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jdpf-device-btn {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.jdpf-device-btn:hover {
  color: #ffffff;
}

.jdpf-device-btn.is-active {
  background: #3977ff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(57, 119, 255, 0.4);
}

/* Modal Actions */
.jdpf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jdpf-modal-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.jdpf-modal-visit:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #37d6ff;
}

.jdpf-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jdpf-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Modal Body / Viewport Frame */
.jdpf-modal-body {
  flex: 1;
  background: #020617;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 20px;
  position: relative;
}

.jdpf-viewport-container {
  height: 100%;
  width: 100%;
  max-width: 100%;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.jdpf-viewport-container.view-tablet {
  width: 768px;
  border-radius: 24px;
  border: 10px solid #1e293b;
}

.jdpf-viewport-container.view-mobile {
  width: 390px;
  border-radius: 36px;
  border: 12px solid #1e293b;
}

.jdpf-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Iframe Loading Spinner */
.jdpf-preview-loader {
  position: absolute;
  inset: 0;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  gap: 14px;
  z-index: 5;
  transition: opacity 0.25s ease;
}

.jdpf-preview-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.jdpf-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(57, 119, 255, 0.2);
  border-top-color: #3977ff;
  border-radius: 50%;
  animation: jdpf-spin 0.8s linear infinite;
}

@keyframes jdpf-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .jdpf-card-actions { grid-template-columns: 1fr; }
  .jdpf-device-switcher { display: none; }
  .jdpf-modal-window { height: 96vh; border-radius: 14px; }
  .jdpf-modal-body { padding: 8px; }
}
