/* =============================================
   CrowNight – Service Pages Shared Stylesheet
   ============================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #06070b;
  --bg-nav: rgba(8, 10, 16, 0.72);
  --surface: rgba(18, 22, 31, 0.66);
  --surface-2: rgba(21, 27, 38, 0.8);
  --text-main: #ffffff;
  --text-soft: #c9d1de;
  --text-muted: #8fa0b8;
  --red-primary: #d91f26;
  --red-glow: #ff4d57;
  --red-soft: rgba(217, 31, 38, 0.1);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 77, 87, 0.18);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.56);
  --radius: 24px;
}

*::selection {
  background: rgba(255, 0, 0, 0.15);
  color: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 82, 92, 0.12), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(185, 22, 30, 0.11), transparent 22%),
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.025), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(120, 18, 28, 0.12), transparent 36%),
    linear-gradient(155deg, #0b0c11 0%, #06070b 28%, #0a0c12 55%, #030407 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 100%);
  opacity: 0.18;
  z-index: -2;
}

ul, li { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.navbar {
  width: 100%;
  background: linear-gradient(to bottom, rgba(6,7,11,0.94), rgba(8,10,16,0.78), rgba(8,10,16,0.38), transparent);
  padding: 18px 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04), 0 10px 30px rgba(0,0,0,0.18);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-text {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  color: #e3e9f3;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.25s ease;
  position: relative;
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 0; height: 2px;
  background: linear-gradient(135deg, #ff0000, #ff3b3b);
  transition: 0.3s ease;
}

.nav-menu > li > a:hover { color: #fff; }
.nav-menu > li > a:hover::after { width: 100%; }

.services-arrow { font-size: 11px; margin-left: 4px; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 290px;
  background: rgba(9,11,17,0.96);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.62), 0 0 24px rgba(255,77,87,0.06);
  z-index: 999;
  backdrop-filter: blur(18px);
}

.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }

.dropdown-menu li { padding: 0 10px; }

.dropdown-menu li a {
  display: block;
  color: #dce5f3;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.dropdown-menu li a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dropdown-menu li a.active-service { color: #ff4d57; background: rgba(255,77,87,0.06); }

.cta-btn {
  background: linear-gradient(135deg, #ff3b3b, #ff0000);
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(255,0,0,0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(255,0,0,0.45); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,.03);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* ── HERO SECTION ── */
.service-hero {
  padding: 80px 60px 70px;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(255, 50, 50, 0.06), transparent 60%);
  pointer-events: none;
}

.service-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #8fa0b8;
}

.breadcrumb a { color: #8fa0b8; transition: color 0.2s; }
.breadcrumb a:hover { color: #ff4d57; }
.breadcrumb span { color: #ff4d57; }
.breadcrumb-sep { opacity: 0.4; }

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,77,87,0.06);
  color: #ff8a8a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.service-tag-dot {
  width: 7px; height: 7px;
  background: #ff4d57;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 77, 87, 0.6);
  animation: pulseDot 2s ease-in-out infinite;
}

.service-hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 22px;
}

.service-hero h1 span { color: #ff4d57; }

.service-hero-desc {
  font-size: 17px;
  line-height: 1.85;
  color: #c2cfdf;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c91722, #ff4d57);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(180, 20, 30, 0.34);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(180,20,30,0.48); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: transparent;
  color: #ff4d57;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid rgba(255,77,87,0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline:hover { background: rgba(255,77,87,0.08); transform: translateY(-2px); }

/* Hero stats panel */
.hero-stats-panel {
  background: linear-gradient(180deg, rgba(10,14,24,0.95), rgba(6,9,16,0.95));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}

.hero-stats-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa0b8;
  margin-bottom: 24px;
}

.hero-stat-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.25s ease;
}

.hero-stat-item:hover { border-color: rgba(255,77,87,0.2); }

.hero-stat-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(255,0,0,0.18), rgba(255,77,77,0.08));
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.hero-stat-info strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #ff4d57;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 14px rgba(255,77,87,0.4);
}

.hero-stat-info span {
  font-size: 13px;
  color: #8fa0b8;
}

/* ── SECTION COMMONS ── */
.section-wrap {
  padding: 80px 60px;
}

.section-wrap + .section-wrap {
  padding-top: 0;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff4d57;
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  line-height: 1.85;
  color: #c2cfdf;
  max-width: 680px;
  margin-bottom: 50px;
}

/* ── SERVICE CAPABILITY CARDS ── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cap-card {
  background: linear-gradient(180deg, rgba(10,12,18,0.92), rgba(7,9,14,0.85));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,77,87,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cap-card:hover { border-color: rgba(255,77,87,0.22); transform: translateY(-5px); }
.cap-card:hover::before { opacity: 1; }

.cap-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(255,0,0,0.16), rgba(255,77,77,0.07));
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 18px;
}

.cap-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.cap-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #9fb0ca;
}

.cap-card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap-card ul li {
  font-size: 13.5px;
  color: #9fb0ca;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.cap-card ul li::before {
  content: "▸";
  color: #ff4d57;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── PROCESS / TIMELINE ── */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,77,87,0.4), rgba(255,77,87,0.05));
}

.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.process-item:last-child { padding-bottom: 0; }

.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #c91722, #ff4d57);
  border: 2px solid rgba(255,77,87,0.3);
  box-shadow: 0 0 20px rgba(255,0,0,0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-body { padding-top: 12px; }

.process-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.process-body p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #9fb0ca;
}

/* ── TECH STACK ── */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tech-item {
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,12,18,0.92), rgba(7,9,14,0.85));
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: all 0.25s ease;
}

.tech-item:hover { border-color: rgba(255,77,87,0.2); transform: translateY(-4px); }

.tech-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.tech-item span {
  font-size: 12.5px;
  color: #8fa0b8;
  line-height: 1.5;
}

/* ── USE CASE / HIGHLIGHT SECTION ── */
.highlight-section {
  background: linear-gradient(180deg, rgba(10,14,24,0.6), rgba(6,9,16,0.6));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.highlight-content .section-sub { margin-bottom: 30px; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: #c2cfdf;
  line-height: 1.6;
}

.check-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(255,77,87,0.12);
  border: 1px solid rgba(255,77,87,0.25);
  flex-shrink: 0;
  margin-top: 2px;
  color: #ff4d57;
}

.highlight-visual {
  background: linear-gradient(180deg, rgba(10,14,24,0.95), rgba(6,9,16,0.95));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: #6b7e96;
  font-weight: 500;
}

.terminal-body {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.9;
}

.t-comment { color: #6b7e96; }
.t-key { color: #79b8ff; }
.t-val { color: #9be7c4; }
.t-string { color: #f97583; }
.t-highlight { color: #ff8a8a; font-weight: 700; }

/* ── DELIVERABLES / TABLE ── */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10,12,18,0.92), rgba(7,9,14,0.85));
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.25s ease;
}

.deliverable-item:hover { border-color: rgba(255,77,87,0.2); }

.deliverable-num {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ff4d57;
  background: rgba(255,77,87,0.1);
  border: 1px solid rgba(255,77,87,0.2);
  flex-shrink: 0;
}

.deliverable-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.deliverable-item p {
  font-size: 13.5px;
  color: #9fb0ca;
  line-height: 1.65;
}

/* ── CTA BANNER ── */
.cta-banner {
  padding: 80px 60px 100px;
}

.cta-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,14,24,0.95), rgba(6,9,16,0.95));
  border: 1px solid rgba(255,77,87,0.15);
  border-radius: 32px;
  padding: 64px 48px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,50,50,0.07), transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.3px;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  font-size: 16px;
  color: #c2cfdf;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ── ANIMATIONS ── */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-stack-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .navbar { padding: 16px 24px; }
  .nav-menu { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(6,7,11,0.98);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    gap: 32px;
    backdrop-filter: blur(20px);
  }
  .service-hero { padding: 50px 24px 50px; }
  .service-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-hero h1 { font-size: 40px; }
  .section-wrap { padding: 60px 24px; }
  .highlight-grid { grid-template-columns: 1fr; gap: 36px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 60px 24px 80px; }
  .cta-banner h2 { font-size: 32px; }
}

@media (max-width: 768px) {
  .capabilities-grid { grid-template-columns: 1fr; }
  .tech-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 28px; }
  .service-hero h1 { font-size: 34px; }
}

/* ── NAVBAR LOGO IMAGE ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 60px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 50, 50, 0.35));
  transition: filter 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(255, 77, 87, 0.65));
  transform: scale(1.06);
}
