/* --- Electronic Services Hero --- */
:root {
  --fal-gold: #c9ae70;
  --fal-dark: #14120e;
  --fal-white: #ffffff;
  --fal-gray: #cccccc;
}

/* Scoped Styles for the Section */
.fal-electronic-hero {
  position: relative;
  background: transparent;
  padding: 40px 20px;
  overflow: hidden;
  font-family: "Tajawal", sans-serif;
  text-align: center;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fal-electronic-container {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* Glass Effect */
  background: rgba(20, 18, 14, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(201, 174, 112, 0.15);
  border-radius: 20px;
  padding: 20px 25px; /* Reduced padding */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.fal-electronic-hero h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.4;
  color: var(--fal-white);
}

.fal-electronic-hero h2 span {
  color: var(--fal-gold);
}

.fal-electronic-hero p {
  color: var(--fal-gray);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}

/* --- Electronic Services Content (Dark Theme) --- */
.fal-eservices-dark {
  /* Scoped Variables for Dark Theme */
  --fal-gold: #c9ae70;
  --fal-ink: #ffffff;
  --fal-text: #cccccc;
  --fal-bg: #14120e; /* Dark Brown/Gold Background */
  --fal-card-bg: #1c1914; /* Dark Card Background */
  --fal-border: rgba(201, 174, 112, 0.4); /* Gold Border */
  --fal-chip-bg: rgba(201, 174, 112, 0.1);
  --fal-font: "Tajawal", "Cairo", system-ui, -apple-system, sans-serif;

  background-color: var(--fal-bg);
  font-family: var(--fal-font);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  text-align: right;
  color: var(--fal-text);
}

/* --- Background Pattern & Golden Texture --- */
.fal-eservices-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  /* Golden Texture: Noise + Gradient - Optimized for Performance */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.10'/%3E%3C/svg%3E"),
    radial-gradient(
      circle at top right,
      rgba(201, 174, 112, 0.15),
      transparent 70%
    );
  mix-blend-mode: overlay;
}

/* Golden Ambient Touch */
.fal-eservices-dark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(201, 174, 112, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(201, 174, 112, 0.12) 0%,
      transparent 50%
    );
  z-index: 0;
  pointer-events: none;
}

.fal-es__container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
}

/* Head */
.fal-es__head {
  text-align: center;
  margin-bottom: 40px;
}
.fal-es__eyebrow {
  color: var(--fal-gold);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  display: block;
}
.fal-es__title {
  margin: 0;
  color: var(--fal-ink);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 36px);
}
.fal-es__lead {
  max-width: 800px;
  margin: 15px auto 0;
  color: var(--fal-text);
  line-height: 1.8;
  font-size: 16px;
}
.fal-es__divider {
  width: 80px;
  height: 3px;
  background: var(--fal-gold);
  border-radius: 6px;
  margin: 20px auto 0;
}

/* Filters */
.fal-es__filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.fal-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--fal-chip-bg);
  border: 1px solid var(--fal-border);
  color: var(--fal-text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fal-chip:hover {
  background: var(--fal-gold);
  color: #000;
  border-color: var(--fal-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(201, 174, 112, 0.25);
}
.fal-chip[aria-pressed="true"] {
  background: var(--fal-gold);
  color: #000;
  border-color: var(--fal-gold);
  box-shadow: 0 4px 12px rgba(201, 174, 112, 0.25);
}

/* Grid - Compact Sizing */
.fal-es__grid {
  display: grid;
  /* Auto-fill with minmax for responsive compact cards */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.fal-card {
  background: var(--fal-card-bg);
  border: 1px solid var(--fal-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  /* Animation Init */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fal-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fal-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
  border-color: var(--fal-gold);
  background: #231f18;
}

.fal-card__media {
  height: 160px; /* Fixed height for consistency and compactness */
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(201, 174, 112, 0.1);
}

.fal-card__img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fal-card:hover .fal-card__img {
  transform: scale(1.05);
}

.fal-card__body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fal-card__title {
  margin: 0 0 8px;
  color: var(--fal-ink);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
}

.fal-card__desc {
  margin: 0;
  color: var(--fal-text);
  line-height: 1.6;
  font-size: 13px;
}

/* CTA */
.fal-es__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.fal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid transparent;
  background: var(--fal-gold);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(201, 174, 112, 0.3);
}
.fal-btn:hover {
  background: #b0965d;
  box-shadow: 0 8px 20px rgba(201, 174, 112, 0.4);
  transform: translateY(-2px);
}
