/* ==========================================================================
   Enterprise Premium Layer — الدهماني
   ========================================================================== */

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--gold-mid);
  box-shadow: 0 0 40px var(--gold-glow-strong);
  animation: preloader-pulse 1.5s ease-in-out infinite;
  object-fit: cover;
}

.preloader-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-mid);
  letter-spacing: 2px;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(244, 208, 63, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  animation: preloader-load 1.8s ease-in-out forwards;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--gold-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px var(--gold-glow-strong); }
}

@keyframes preloader-load {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 10001;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px var(--gold-glow-strong);
  transition: width 0.1s linear;
}

/* Partners Marquee */
.partners-section {
  padding: 50px 0;
  background: #050505;
  border-top: 1px solid rgba(244, 208, 63, 0.1);
  border-bottom: 1px solid rgba(244, 208, 63, 0.1);
  overflow: hidden;
}

.partners-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.partners-wrapper {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.partner-logo {
  flex-shrink: 0;
  padding: 12px 28px;
  border: 1px solid rgba(244, 208, 63, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  color: rgba(244, 208, 63, 0.6);
  letter-spacing: 1px;
  white-space: nowrap;
  transition: var(--transition);
}

.partner-logo:hover {
  color: var(--gold-light);
  border-color: var(--gold-mid);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* Security Dashboard Panel */
.security-dashboard {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 208, 63, 0.25);
  background: rgba(0, 0, 0, 0.7);
  font-family: 'Cairo', monospace;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(244, 208, 63, 0.15);
}

.dashboard-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-mid);
  letter-spacing: 1px;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #22c55e;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard-metric {
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  background: rgba(244, 208, 63, 0.05);
  border: 1px solid rgba(244, 208, 63, 0.1);
}

.dashboard-metric .value {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-light);
  display: block;
}

.dashboard-metric .label {
  font-size: 0.65rem;
  color: var(--text-gold);
  margin-top: 2px;
}

.dashboard-feed {
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.dashboard-feed .feed-item {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.feed-time { color: var(--gold-dark); flex-shrink: 0; }

/* Enterprise Stats Banner */
.enterprise-stats {
  padding: 0;
  background: linear-gradient(90deg, #0a0a0a, #111, #0a0a0a);
  border-top: 1px solid rgba(244, 208, 63, 0.2);
  border-bottom: 1px solid rgba(244, 208, 63, 0.2);
}

.enterprise-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.enterprise-stat {
  padding: 40px 24px;
  text-align: center;
  border-left: 1px solid rgba(244, 208, 63, 0.1);
  position: relative;
}

.enterprise-stat:last-child {
  border-left: none;
}

.enterprise-stat .big-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.enterprise-stat .stat-desc {
  font-size: 0.95rem;
  color: var(--text-gold);
  font-weight: 600;
}

/* Portfolio */
.portfolio-section {
  background: radial-gradient(ellipse at top, rgba(244, 208, 63, 0.04), transparent 60%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  group: portfolio;
}

.portfolio-visual {
  height: 200px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1508 50%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(244, 208, 63, 0.03) 2px,
    rgba(244, 208, 63, 0.03) 4px
  );
}

.portfolio-visual svg {
  width: 64px;
  height: 64px;
  fill: var(--gold-mid);
  opacity: 0.7;
  z-index: 1;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 60%);
  z-index: 2;
}

.portfolio-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--gold-mid);
  color: var(--gold-mid);
  border-radius: var(--radius-full);
}

.portfolio-body {
  padding: 22px;
}

.portfolio-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.portfolio-body p {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.portfolio-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Testimonials */
.testimonials-section {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  padding: 32px;
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-dark);
  opacity: 0.5;
  position: absolute;
  top: 16px;
  right: 24px;
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--gold-dark);
}

.testimonial-stars {
  color: var(--gold-mid);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

/* Certifications */
.certifications-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 208, 63, 0.25);
  background: rgba(244, 208, 63, 0.05);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gold);
}

.cert-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-mid);
}

/* FAQ Accordion */
.faq-section {
  background: radial-gradient(ellipse at bottom, rgba(244, 208, 63, 0.05), transparent 70%);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: var(--border-gold-light);
  border-radius: var(--radius-md);
  background: rgba(15, 15, 15, 0.9);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--gold-mid);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-mid);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 90px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.95);
  border: var(--border-gold);
  color: var(--gold-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(244, 208, 63, 0.15);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Footer Enterprise Bar */
.footer-enterprise-bar {
  padding: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.08), transparent);
  border-top: 1px solid rgba(244, 208, 63, 0.15);
  text-align: center;
}

.footer-enterprise-bar p {
  font-size: 0.9rem;
  color: var(--text-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Section Divider */
.section-divider {
  height: 1px;
  max-width: 200px;
  margin: 0 auto 20px;
  background: var(--gold-gradient);
  opacity: 0.6;
}

/* Hero enterprise numbers inline */
.hero-stats-inline {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 208, 63, 0.15);
}

.hero-stat-item .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.hero-stat-item .lbl {
  font-size: 0.78rem;
  color: var(--text-gold);
  margin-top: 4px;
}
