/* ===========================
   DIGIKRAFT 360 — SHARED CSS v3.0
   Mega Menu + Service Pages
   =========================== */

/* ===== MEGA MENU ===== */
.nav-item-dropdown { position: relative; }
.nav-link-services {
  display: flex; align-items: center; gap: 4px;
}
.chevron-icon {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-item-dropdown:hover .chevron-icon { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 800px;
  background: rgba(4, 4, 12, 0.98);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 24px;
  padding: 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  z-index: 2000;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 80px rgba(124,58,237,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}
.mega-menu::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px;
  background: rgba(8,8,16,0.98);
  border-top: 1px solid rgba(139,92,246,0.2);
  border-left: 1px solid rgba(139,92,246,0.2);
  transform: translateX(-50%) rotate(45deg);
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.mega-col-title {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139,92,246,0.8);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 4px;
}
.mega-link:hover {
  background: rgba(139,92,246,0.1);
  transform: translateX(4px);
}
.mega-link-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(0,180,255,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-link-icon svg { width: 16px; height: 16px; color: #00b4ff; }
.mega-link strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.mega-link span {
  display: block;
  color: rgba(148,163,184,0.7);
  font-size: 0.75rem;
}
.mega-cta-box {
  background: linear-gradient(135deg, rgba(0,180,255,0.08), rgba(139,92,246,0.12));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 14px;
  padding: 20px;
  margin-top: 12px;
}
.mega-cta-title {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.mega-cta-box p {
  color: rgba(148,163,184,0.8);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.mega-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #00c8ff, #7c3aed, #f43f8e);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.mega-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(124,58,237,0.5);
}

/* Mobile mega menu */
@media (max-width: 768px) {
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    background: rgba(15,15,26,0.95);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    padding: 16px;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
  }
  .mega-menu.open { display: block; }
  .mega-menu::before { display: none; }
  .mega-menu-inner { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== SERVICE PAGE HERO ===== */
.service-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}
.service-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.service-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.service-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,5,8,0.9) 0%, rgba(5,5,8,0.7) 50%, rgba(5,5,8,0.95) 100%);
  z-index: 1;
}
.service-hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(0,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.service-hero-content {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}
.service-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  color: rgba(148,163,184,0.6);
  margin-bottom: 24px;
}
.service-hero-breadcrumb a {
  color: rgba(148,163,184,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.service-hero-breadcrumb a:hover { color: #00b4ff; }
.service-hero-breadcrumb .sep { color: rgba(255,255,255,0.2); }
.service-hero-breadcrumb .current { color: #8b5cf6; }
.service-hero-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(0,180,255,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 0 40px rgba(139,92,246,0.2);
}
.service-hero-icon svg { width: 36px; height: 36px; color: #00b4ff; }
.service-hero-title {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.service-hero-desc {
  color: rgba(148,163,184,0.9);
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 36px;
}
.service-hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
}

/* ===== SERVICE FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative; z-index: 1;
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,180,255,0.05), transparent, rgba(139,92,246,0.05));
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(139,92,246,0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-num {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #00b4ff, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
}
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(0,180,255,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: all 0.35s;
}
.feature-card:hover .feature-icon {
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
  background: linear-gradient(135deg, rgba(0,180,255,0.25), rgba(139,92,246,0.25));
}
.feature-icon svg { width: 22px; height: 22px; color: #00b4ff; }
.feature-card h3 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.feature-card p {
  color: rgba(148,163,184,0.8);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== PROCESS STEPS (service pages) ===== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 35px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(139,92,246,0.4), transparent);
}
.process-step-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  position: relative;
}
.process-step-item:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.step-num-circle {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #00b4ff, #8b5cf6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(139,92,246,0.4);
  position: relative; z-index: 1;
}
.step-content { flex: 1; padding-top: 12px; }
.step-content h3 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.step-content p {
  color: rgba(148,163,184,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== TECH STACK / TOOLS GRID ===== */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative; z-index: 1;
}
.tool-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(226,232,240,0.8);
  transition: all 0.25s;
  cursor: default;
}
.tool-badge:hover {
  background: rgba(0,180,255,0.1);
  border-color: rgba(0,180,255,0.3);
  color: #00b4ff;
  transform: translateY(-2px);
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative; z-index: 1;
}
.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  transition: all 0.35s;
  overflow: hidden;
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(0,180,255,0.08), rgba(139,92,246,0.12));
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 60px rgba(139,92,246,0.15);
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.4);
}
.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00b4ff, #8b5cf6);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Orbitron', Arial, sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.pricing-name {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.pricing-price {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #00b4ff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.pricing-period {
  color: rgba(148,163,184,0.6);
  font-size: 0.8rem;
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(226,232,240,0.8);
  font-size: 0.88rem;
}
.pricing-features li::before {
  content: '';
  width: 16px; height: 16px;
  background: linear-gradient(135deg, #00b4ff, #8b5cf6);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(139,92,246,0.3); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: #00b4ff; }
.faq-icon {
  width: 28px; height: 28px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #8b5cf6;
  transition: transform 0.3s, background 0.3s;
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(139,92,246,0.3);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px;
  color: rgba(148,163,184,0.8);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ===== SERVICE STATS BAR ===== */
.service-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  margin: 60px 0;
  position: relative; z-index: 1;
}
.service-stat-item {
  background: rgba(5,5,8,0.8);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.3s;
}
.service-stat-item:hover { background: rgba(139,92,246,0.08); }
.service-stat-num {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #00b4ff, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 6px;
}
.service-stat-label {
  color: rgba(148,163,184,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ===== RELATED SERVICES ===== */
.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative; z-index: 1;
}
.related-service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.related-service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00b4ff, #8b5cf6, #ec4899);
  transform: scaleX(0);
  transition: transform 0.35s;
}
.related-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.3);
}
.related-service-card:hover::after { transform: scaleX(1); }
.related-service-card h4 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.related-service-card p {
  color: rgba(148,163,184,0.7);
  font-size: 0.82rem;
  line-height: 1.6;
}
.related-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b5cf6;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 14px;
  transition: gap 0.2s;
}
.related-service-card:hover .related-arrow { gap: 10px; }

/* ===== GLOWING SECTION DIVIDER ===== */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), transparent);
  margin: 0;
}

/* ===== FLOATING PARTICLES BG ===== */
.particles-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: #00b4ff; top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: -50px; right: -50px; animation-delay: 3s; }
.orb-3 { width: 200px; height: 200px; background: #ec4899; top: 50%; left: 50%; animation-delay: 6s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ===== ANIMATED GRADIENT LINE ===== */
.animated-line {
  height: 3px;
  background: linear-gradient(90deg, #00b4ff, #8b5cf6, #ec4899, #00b4ff);
  background-size: 200% 100%;
  animation: lineShift 3s linear infinite;
  border-radius: 2px;
  margin-bottom: 24px;
  width: 80px;
}
@keyframes lineShift { 0% { background-position: 0% 0%; } 100% { background-position: 200% 0%; } }

/* ===== GLOWING CARD HOVER ===== */
.glow-card {
  position: relative;
  transition: all 0.35s;
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #00b4ff, #8b5cf6, #ec4899);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
}
.glow-card:hover::before { opacity: 0.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .service-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .related-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .service-stats-bar { grid-template-columns: 1fr 1fr; }
  .related-services-grid { grid-template-columns: 1fr; }
  .service-hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .process-steps::before { display: none; }
}
