/* ==========================================================================
   Security Company Premium Theme — الدهماني
   ========================================================================== */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(244, 208, 63, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 208, 63, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Navbar integrated status bar */
.navbar-status {
  border-top: 1px solid rgba(244, 208, 63, 0.1);
  background: rgba(0, 0, 0, 0.4);
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.navbar.scrolled .navbar-status {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-top-color: transparent;
}

.navbar-status-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 6px 0;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-gold);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.status-chip.live {
  color: #86efac;
}

.status-chip.clock {
  font-family: 'Cairo', monospace;
  color: var(--gold-mid);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 208, 63, 0.2);
  background: rgba(244, 208, 63, 0.06);
}

.status-chip.secure {
  color: var(--text-secondary);
}

.navbar-status .pulse-dot {
  width: 6px;
  height: 6px;
}

/* Removed standalone command strip — now in navbar */
.security-command-strip {
  display: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-live 2s infinite;
}

.pulse-dot.gold {
  background: var(--gold-mid);
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 var(--gold-glow); }
  70% { box-shadow: 0 0 0 12px rgba(244, 208, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 208, 63, 0); }
}

/* Hero Scan Effect */
.hero-scan-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-scan-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.8), transparent);
  box-shadow: 0 0 20px var(--gold-glow-strong);
  animation: scan-sweep 6s linear infinite;
}

@keyframes scan-sweep {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* CCTV Corner Brackets */
.cctv-frame {
  position: relative;
}

.cctv-frame::before,
.cctv-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--gold-mid);
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

.cctv-frame::before {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
}

.cctv-frame::after {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
}

.radar-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(244, 208, 63, 0.25);
  animation: radar-pulse 3s ease-out infinite;
  pointer-events: none;
}

.radar-ring:nth-child(2) { animation-delay: 1s; }
.radar-ring:nth-child(3) { animation-delay: 2s; }

@keyframes radar-pulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

.hero-visual-side {
  position: relative;
}

/* Trust Marquee Strip */
.trust-strip {
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(244, 208, 63, 0.12);
  border-bottom: 1px solid rgba(244, 208, 63, 0.12);
  padding: 48px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: var(--border-gold-light);
  background: rgba(15, 15, 15, 0.8);
  transition: var(--transition);
}

.trust-badge:hover {
  border-color: var(--gold-mid);
  box-shadow: 0 8px 24px var(--gold-glow);
  transform: translateY(-3px);
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(244, 208, 63, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle, rgba(244, 208, 63, 0.12), transparent);
}

.trust-badge-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-mid);
}

.trust-badge h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.trust-badge p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-gold);
}

/* Sectors We Serve */
.sectors-section {
  background: radial-gradient(ellipse at center, rgba(244, 208, 63, 0.06) 0%, transparent 70%);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sector-card {
  text-align: center;
  padding: 36px 24px;
  position: relative;
}

.sector-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.sector-card:hover::after {
  opacity: 1;
}

.sector-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid rgba(244, 208, 63, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 30px rgba(244, 208, 63, 0.08);
  transition: var(--transition);
}

.sector-card:hover .sector-icon {
  border-color: var(--gold-mid);
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 20px rgba(244, 208, 63, 0.15);
  transform: scale(1.05);
}

.sector-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--gold-mid);
}

.sector-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.sector-card p {
  font-size: 0.88rem;
}

/* Service Filters */
.service-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: var(--border-gold-light);
  background: rgba(10, 10, 10, 0.9);
  color: var(--text-gold);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(244, 208, 63, 0.15);
  border-color: var(--gold-mid);
  color: var(--gold-light);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.service-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  border: 1px solid rgba(244, 208, 63, 0.25);
  color: var(--gold-mid);
  background: rgba(244, 208, 63, 0.08);
}

.service-card.hidden {
  display: none;
}

.service-card {
  border: var(--border-gold-light);
}

.service-card .icon-emblem {
  position: relative;
}

.security-corner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.security-corner span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(244, 208, 63, 0.5);
}

.security-corner span:nth-child(1) { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.security-corner span:nth-child(2) { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.security-corner span:nth-child(3) { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.security-corner span:nth-child(4) { bottom: 8px; left: 8px; border-right: none; border-top: none; }

/* Workflow */
.workflow-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.workflow-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.3), transparent);
  transform: translateY(-50%);
  z-index: 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.workflow-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--gold-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-mid);
  background: #000;
  box-shadow: 0 0 20px var(--gold-glow);
}

.workflow-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 0.88rem;
}

/* Security CTA Band */
.security-cta-band {
  padding: 70px 0;
  background:
    linear-gradient(135deg, rgba(139, 105, 20, 0.15) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(139, 105, 20, 0.1) 100%),
    #000;
  border-top: 1px solid rgba(244, 208, 63, 0.2);
  border-bottom: 1px solid rgba(244, 208, 63, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.security-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(244, 208, 63, 0.02) 20px,
    rgba(244, 208, 63, 0.02) 40px
  );
  pointer-events: none;
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-band-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-band-content p {
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-band-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enhanced Hero */
.hero {
  padding-top: 118px;
}

/* Section polish */
.section {
  isolation: isolate;
}

.glass-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--gold-glow);
}

.hero-emblem-card {
  border: 2px solid rgba(244, 208, 63, 0.35);
  box-shadow: 0 0 40px rgba(244, 208, 63, 0.12), inset 0 0 60px rgba(244, 208, 63, 0.03);
}

.hero-title {
  font-size: 3.2rem;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--gold-mid);
  margin-right: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Navbar security accent */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.4), transparent);
  opacity: 0;
  transition: var(--transition);
}

.navbar.scrolled::after {
  opacity: 1;
}

/* ==========================================================================
   Promo Video Section
   ========================================================================== */
.video-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #000 50%, #0a0a0a 100%);
  border-top: 1px solid rgba(244, 208, 63, 0.1);
  border-bottom: 1px solid rgba(244, 208, 63, 0.1);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.video-description {
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 20px 0 24px;
  color: var(--text-secondary);
}

.video-highlights {
  list-style: none;
  margin-bottom: 28px;
}

.video-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-gold);
  font-weight: 600;
}

.video-highlights li span {
  color: var(--gold-mid);
  font-weight: 900;
}

.video-player-wrap {
  position: relative;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-md);
  border: 2px solid rgba(244, 208, 63, 0.35);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--gold-glow);
  overflow: hidden;
}

.video-aspect {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.promo-video,
.promo-youtube {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold-mid);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-right: -3px;
}

.video-play-btn:hover {
  transform: scale(1.08);
  background: rgba(244, 208, 63, 0.2);
  box-shadow: 0 0 30px var(--gold-glow-strong);
}

.video-play-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-rec-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 0, 0, 0.4);
  font-size: 0.7rem;
  font-weight: 800;
  color: #ff6b6b;
  letter-spacing: 2px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3333;
  animation: pulse-live 1.5s infinite;
}

.video-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-gold);
}
