/* ========================================================
   DIGITAL SERVICES & PORTFOLIO STYLES
======================================================== */

:root {
  --nj-primary: #2563eb;
  --nj-primary-dark: #1d4ed8;
  --nj-bg: #f8fafc;
  --nj-card-bg: #ffffff;
  --nj-border: #e2e8f0;
  --nj-text-main: #0f172a;
  --nj-text-muted: #64748b;
}

body.dark {
  --nj-primary: #60a5fa;
  --nj-primary-dark: #93c5fd;
  --nj-bg: #0f172a;
  --nj-card-bg: #1e293b;
  --nj-border: #334155;
  --nj-text-main: #f8fafc;
  --nj-text-muted: #94a3b8;
}

.srv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.srv-tab {
  background: var(--nj-bg);
  border: 1px solid var(--nj-border);
  color: var(--nj-text-main);
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  gap: 10px;
  flex: 0 0 auto !important;
}

.srv-tab span {
  white-space: nowrap;
}

.srv-tab i {
  color: var(--nj-primary);
  font-size: 16px;
  transition: color 0.3s;
}

.srv-tab:hover {
  border-color: var(--nj-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.srv-tab.active {
  background: var(--nj-primary);
  color: #ffffff;
  border-color: var(--nj-primary);
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.srv-tab.active i {
  color: #ffffff;
}

.srv-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.srv-panel.active {
  display: block;
}

.srv-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  align-items: start;
}

/* Service Info Sidebar */
.srv-info {
  background: var(--nj-card-bg);
  border: 1px solid var(--nj-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: sticky;
  top: 100px;
}

.srv-icon-big {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nj-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

.srv-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--nj-text-main);
}

.srv-info p {
  color: var(--nj-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.srv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.srv-tags span {
  background: var(--nj-bg);
  border: 1px solid var(--nj-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nj-text-main);
}

.srv-delivery {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--nj-text-main);
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.srv-order-btn, .srv-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  gap: 10px;
  border: none;
}

.srv-order-btn {
  background: var(--nj-primary);
  color: #fff;
  margin-bottom: 12px;
}
.srv-order-btn:hover {
  background: var(--nj-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37,99,235,0.3);
}

.srv-call-btn {
  background: transparent;
  border: 2px solid var(--nj-border);
  color: var(--nj-text-main);
}
.srv-call-btn:hover {
  border-color: var(--nj-primary);
  color: var(--nj-primary);
  background: var(--nj-bg);
}

/* Service Items Grid */
.srv-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.si-card {
  background: var(--nj-card-bg);
  border: 1px solid var(--nj-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.si-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--nj-primary);
}

.si-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e11d48;
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-bottom-left-radius: 12px;
  letter-spacing: 1px;
}

.si-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.si-icon {
  width: 50px;
  height: 50px;
  background: var(--nj-bg);
  color: var(--nj-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.si-left strong {
  display: block;
  font-size: 16px;
  color: var(--nj-text-main);
  margin-bottom: 4px;
}

.si-left span {
  display: block;
  font-size: 13px;
  color: var(--nj-text-muted);
  line-height: 1.4;
}

.si-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--nj-primary);
  margin-left: 15px;
  white-space: nowrap;
}

/* Projects Grid inside panel */
.srv-projects-list h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--nj-text-main);
  display: flex;
  align-items: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
}

.project-media-wrap {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nj-bg);
}
.project-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-icon-wrap {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background: var(--nj-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.project-category {
  font-weight: 700;
  font-size: 14px;
}

.project-title {
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}
.project-author {
  font-size: 13px;
  color: var(--nj-text-muted);
  display: block;
}
.project-desc {
  font-size: 13px;
  color: var(--nj-text-muted);
  margin-top: 8px;
  display: block;
  line-height: 1.5;
}

.project-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nj-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
}
.project-view-btn:hover {
  background: var(--nj-primary);
  color: #fff;
}

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: var(--nj-card-bg);
  border: 1px solid var(--nj-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-8px);
}

.portfolio-header {
  padding: 40px 20px;
  text-align: center;
  color: #fff;
}
.portfolio-header i { margin-bottom: 15px; }
.portfolio-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.portfolio-header span { font-size: 14px; opacity: 0.9; }

.portfolio-card.web .portfolio-header { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.portfolio-card.student-portal .portfolio-header { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.portfolio-card.certificates .portfolio-header { background: linear-gradient(135deg, #10b981, #059669); }
.portfolio-card.cards .portfolio-header { background: linear-gradient(135deg, #f59e0b, #d97706); }
.portfolio-card.banners .portfolio-header { background: linear-gradient(135deg, #ef4444, #dc2626); }
.portfolio-card.logos .portfolio-header { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.portfolio-card.resumes .portfolio-header { background: linear-gradient(135deg, #ec4899, #db2777); }

.portfolio-body {
  padding: 25px;
  text-align: center;
}
.portfolio-body p {
  color: var(--nj-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Order Modal */
#orderModalOverlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px);
  z-index: 9999; opacity: 0; visibility: hidden; transition: 0.3s;
}
#orderModalOverlay.open { opacity: 1; visibility: visible; }

.ds-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  width: 90%; max-width: 600px; max-height: 90vh;
  background: var(--nj-card-bg); z-index: 10000;
  border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.ds-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.dsm-header {
  padding: 20px 25px; border-bottom: 1px solid var(--nj-border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--nj-bg);
}
.dsm-title { font-size: 18px; font-weight: 800; margin: 0; color: var(--nj-text-main); }
.dsm-close {
  background: var(--nj-border); border: none; width: 36px; height: 36px;
  border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--nj-text-main);
  display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.dsm-close:hover { background: #ef4444; color: white; }

.dsm-body { padding: 25px; overflow-y: auto; flex: 1; }

.dsm-body form .fg { margin-bottom: 15px; }
.dsm-body form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.dsm-body form input[type="text"], 
.dsm-body form input[type="tel"], 
.dsm-body form input[type="email"], 
.dsm-body form input[type="date"], 
.dsm-body form select, 
.dsm-body form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--nj-border); border-radius: 8px;
  background: var(--nj-bg); color: var(--nj-text-main); font-family: inherit; font-size: 15px;
}
.dsm-body form input:focus, .dsm-body form select:focus, .dsm-body form textarea:focus {
  outline: none; border-color: var(--nj-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.dsm-body form button {
  width: 100%; padding: 14px; background: var(--nj-primary); color: #fff;
  border: none; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer;
}
.dsm-body form button:hover { background: var(--nj-primary-dark); }

/* Trap */
.trap { position: absolute; left: -9999px; }

/* Section Headings */
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nj-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--nj-text-main);
  margin-bottom: 15px;
}
.section-desc {
  font-size: 16px;
  color: var(--nj-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pricing Grid Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.price-card {
  background: var(--nj-card-bg);
  border: 1px solid var(--nj-border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.pc-icon {
  width: 52px;
  height: 52px;
  background: rgba(37,99,235,0.1);
  color: var(--nj-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}
.price-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--nj-text-main);
}
.price-card p {
  font-size: 13px;
  color: var(--nj-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.pc-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--nj-primary);
  margin-bottom: 20px;
}
.pc-amount span {
  font-size: 16px;
  color: var(--nj-text-muted);
}
.pc-btn {
  background: transparent;
  border: 1px solid var(--nj-border);
  color: var(--nj-text-main);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}
.pc-btn:hover {
  background: var(--nj-primary);
  color: #fff;
  border-color: var(--nj-primary);
}

/* Divisions Grid Section */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.division-card {
  background: var(--nj-card-bg);
  border: 1px solid var(--nj-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
}
.division-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.division-card-header {
  padding: 25px 22px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 1px solid var(--nj-border);
}
.division-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(37,99,235,0.1);
  color: var(--nj-primary);
}
/* Removing the custom gradients to keep it standard like course-card */
.division-card-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--nj-text-main);
  margin: 0;
}
.division-list {
  list-style: none;
  padding: 20px 25px;
  margin: 0;
}
.division-list li {
  margin-bottom: 12px;
  color: var(--nj-text-main);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.division-list li:last-child {
  margin-bottom: 0;
}
.division-list li i {
  color: #10b981;
  font-size: 14px;
  margin-top: 3px;
}

/* Process Section */
.ds-process {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}
.dsp-step {
  flex: 1;
  min-width: 150px;
  position: relative;
}
.dsp-num {
  width: 30px;
  height: 30px;
  background: var(--nj-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin: 0 auto 15px;
}
.dsp-icon {
  font-size: 32px;
  color: var(--nj-text-muted);
  margin-bottom: 15px;
}
.dsp-step h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--nj-text-main);
  margin-bottom: 10px;
}
.dsp-step p {
  font-size: 13px;
  color: var(--nj-text-muted);
  line-height: 1.5;
}
.dsp-arrow {
  font-size: 24px;
  color: var(--nj-border);
}

/* Responsive */
@media (max-width: 992px) {
  .srv-layout { grid-template-columns: 1fr; }
  .srv-info { position: static; }
}
@media (max-width: 768px) {
  .srv-tabs { padding-bottom: 10px; }
  .srv-tab { padding: 12px; border-radius: 50%; width: 44px; height: 44px; gap: 0; }
  .srv-tab span { display: none; }
  .si-card { flex-direction: column; align-items: flex-start; gap: 15px; }
  .si-price { margin-left: 0; align-self: flex-end; }
  .dsp-arrow { display: none; }
  .ds-process { flex-direction: column; }
  .dsp-step { margin-bottom: 30px; }
}

