/* Portfolio grayscale hover */
.grayscale {
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}
.grayscale:hover {
  filter: none;
  opacity: 1;
}

/* RTL layout support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* Hero Section */
.hero-bg {
  position: relative;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* dark overlay */
  z-index: 1;
}
.hero-bg .container {
  position: relative;
  z-index: 2;
}

/* Industries section background flair */
.industries-section {
  position: relative;
  background-color: #f8f9fa;
  overflow: hidden;
}
.industries-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at top left, #e0f7ff 0%, transparent 70%);
  top: -150px;
  left: -150px;
  z-index: 0;
}
.industries-section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at bottom right, #cfe9f1 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  z-index: 0;
}
.industries-section .container {
  position: relative;
  z-index: 1;
}

/* Icon hover animation */
.icon-animate:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Text color override */
.text-primary {
  color: #054a8f !important;
}

/* Soft divider shadows */
.section-divider-shadow {
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.05) inset, 0 3px 6px rgba(0, 0, 0, 0.05) inset;
}

/* ✅ Service Card Background Image Fix */
.service-card {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: .5px solid #054a8f !important;	
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 27, 89, 0.7), #000),
    var(--bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.service-card .card-body {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
}
/* Override Bootstrap Primary Button */
.btn-primary {
  background-color: #6279b9;
  border-color: #6279b9;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #003077;
  border-color: #003077;
  color: #fff;
}

/* Override Bootstrap Outline Primary */
.btn-outline-primary {
  border-color: #001b59;
  color: #001b59;
  background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #001b59;
  color: #fff;
  border-color: #001b59;
}
/* Compact, styled input borders */
.revive-input {
  border: 1px solid #001b59;
  border-radius: 4px;
  background-color: #fff;
  color: #001b59;
}

.revive-input:focus {
  border-color: #054a8f;
  box-shadow: 0 0 0 0.15rem rgba(0, 75, 180, 0.25);
  color: #001b59;
}

.form-floating > label {
  color: #555;
  font-size: 0.9rem;
}

/* Shrink .form-floating inputs/selects */
.form-floating > .revive-input.form-control,
.form-floating > .revive-input.form-select {
  height: 2.5rem !important;
  min-height: 2.5rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  font-size: 0.875rem !important;
  line-height: 1.3 !important;
}

/* Base floating label size */
.form-floating > label {
  font-size: 1rem !important;
  padding: 0.3rem 0.75rem !important;
  color: #555;
  transition: font-size 0.2s ease;
}

/* When input is focused or has text — shrink label */
.form-floating:focus-within > label,
.form-floating > .form-control:not(:placeholder-shown) + label,
.form-floating > .form-select:valid + label {
  font-size: 0.7rem !important;
}
.sub-hero {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #001b59; /* fallback bg */
}

.sub-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}