/* --- IT Services Hero --- */
:root {
  --fal-gold: #c9ae70;
  --fal-dark: #14120e;
  --fal-white: #ffffff;
  --fal-gray: #cccccc;
}

/* Scoped Styles for the Section */
.fal-digital-hero {
  position: relative;
  background: transparent;
  padding: 40px 20px;
  overflow: hidden;
  font-family: "Tajawal", sans-serif;
  text-align: center;
  /* Requested Fix: Full Height */
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fal-container {
  max-width: 900px;
  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(10px);
  border: 1px solid rgba(201, 174, 112, 0.15);
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.fal-digital-hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem); /* Small, responsive title */
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.4;
  color: var(--fal-white);
}

.fal-digital-hero h2 span {
  color: var(--fal-gold);
}

.fal-digital-hero p {
  color: var(--fal-gray);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
}

/* --- IT Services Content --- */
.fal-it-services {
  /* 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-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;
}

/* --- Background Pattern & Golden Texture --- */
.fal-it-services::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 (Enhanced for Dark Theme) */
.fal-it-services::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Two subtle golden glows in corners */
  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-it__container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
}

/* Header */
.fal-it__head {
  text-align: center;
  margin-bottom: 50px;
}
.fal-it__eyebrow {
  color: var(--fal-gold);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}
.fal-it__title {
  color: var(--fal-ink);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 15px;
  line-height: 1.2;
}
.fal-it__lead {
  color: var(--fal-text);
  font-size: 18px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}
.fal-it__divider {
  width: 60px;
  height: 4px;
  background: var(--fal-gold);
  margin: 25px auto 0;
  border-radius: 2px;
}

/* Grid */
.fal-it__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Card */
.fal-it-card {
  background: var(--fal-card-bg);
  border: 1px solid var(--fal-border);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content */
  text-align: center; /* Center text */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  /* Initial Animation State */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.fal-it-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fal-it-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--fal-gold);
  background: #231f18;
}

/* Image Container */
.fal-it-card__img-box {
  width: 100%;
  aspect-ratio: 16/9; /* Adapts box height to width */
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #14120e;
  border: 1px solid rgba(201, 174, 112, 0.1);
}

.fal-it-card__img {
  width: 100%;
  height: 100% !important;
  object-fit: contain; /* Prevents cropping */
  transition: transform 0.5s ease;
}

.fal-it-card:hover .fal-it-card__img {
  transform: scale(1.05);
}

.fal-it-card__title {
  color: var(--fal-ink);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 12px;
}

.fal-it-card__desc {
  color: var(--fal-text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* CTA */
.fal-it__cta {
  margin-top: 50px;
  text-align: center;
}
.fal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  background: var(--fal-gold);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 174, 112, 0.3);
}
.fal-btn:hover {
  background: #b0965d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 174, 112, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .fal-it__grid {
    grid-template-columns: 1fr;
  }
}
