:root {
  --primary: #0f172a;
  --secondary: #1e3a5f;
  --petrol: #203a43;
  --gold: #caa45c;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  font-family: "Tajawal", sans-serif;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= TOPBAR ================= */
.topbar {
  background: #08101f;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar .info-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.topbar .contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.topbar i {
  color: var(--gold);
  margin-inline-end: 6px;
}

.ltr {
  direction: ltr;
  display: inline-block;
}

/* ================= NAVBAR ================= */
.navbar {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.navbar-brand img {
  height: 60px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-brand span {
  line-height: 1.2;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  margin: 0 12px;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

/* ================= HERO ================= */
.hero, .hero-inner {
  position: relative;
  color: #fff;
  padding: 120px 0;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ================= BUTTONS ================= */
.btn-main {
  background: var(--gold);
  color: #fff;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(202, 164, 92, 0.3);
}

.btn-main:hover {
  background: #b8934f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202, 164, 92, 0.4);
  color: #fff;
}

.btn-outline-pro {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-outline-pro:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
  color: #fff;
}

/* ================= CARDS ================= */
.hero-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
}

.mini-stat:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.mini-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
}

.mini-stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ================= FEATURES ================= */
.feature-strip {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(202, 164, 92, 0.15);
  border-color: var(--gold);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-icon i {
  color: var(--gold);
  font-size: 32px;
}

.feature-box:hover .feature-icon {
  background: rgba(202, 164, 92, 0.1);
  transform: scale(1.05);
}

.feature-box h4 {
  font-size: 1.3rem;
}

.text-muted-custom {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ================= CIVIL DEFENSE ================= */
.civil-defense-section {
  background: #0b1120;
  background-image: radial-gradient(circle at center, rgba(30, 58, 95, 0.4) 0%, #0b1120 70%);
  padding: 100px 0;
  position: relative;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  margin-top: 60px;
}

.civil-defense-img {
  position: relative;
  z-index: 2;
}

.civil-defense-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--gold);
  color: #fff;
  padding: 18px 30px;
  border-radius: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 30px rgba(202, 164, 92, 0.4);
  font-size: 1.25rem;
  z-index: 3;
}

.civil-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -20px;
  left: -20px;
  border: 2px dashed rgba(202, 164, 92, 0.3);
  border-radius: 24px;
  z-index: -1;
}

.civil-features li {
  font-size: 1.15rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.civil-features li:hover {
  background: rgba(202, 164, 92, 0.1);
  border-color: rgba(202, 164, 92, 0.3);
  transform: translateX(10px);
}

.text-gold {
  color: var(--gold) !important;
}

/* ================= SECTIONS ================= */
.section-padding {
  padding: 100px 0;
}

.project-tag {
  display: inline-block;
  background: #eef2ff;
  color: var(--secondary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ================= SERVICES ================= */
.service-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(202, 164, 92, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-icon i {
  color: var(--primary);
  font-size: 28px;
}

.service-card:hover .service-icon {
  background: rgba(15, 23, 42, 0.05);
  transform: scale(1.05);
}

/* ================= PROJECTS ================= */
.project-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-premium);
}

.project-visual {
  height: 240px;
  background: linear-gradient(135deg, #0f172a, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 30px;
  text-align: center;
}

.project-body {
  padding: 24px;
}

/* ================= CLIENTS ================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.client-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.client-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.client-card i {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ================= CTA ================= */
.cta-box {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
  padding: 60px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(202, 164, 92, 0.1), transparent 70%);
  pointer-events: none;
}

/* ================= FOOTER ================= */
.footer {
  background: #08101f;
  color: #fff;
  padding: 60px 0 20px 0;
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.footer-contact li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--gold);
}

.social-links {
  display: inline-flex;
  gap: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

/* ================= WHATSAPP BUTTON ================= */
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  color: #fff;
}

/* ================= INTERACTIONS ================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Scrolled State */
.navbar-scrolled {
  padding: 8px 0 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  border-bottom: 1px solid rgba(202, 164, 92, 0.2);
}

/* Cursor Glow */
.cursor-glow {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(202, 164, 92, 0.05) 0%, transparent 70%);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  display: none; /* Hidden by default on mobile */
}

@media (min-width: 992px) {
  .cursor-glow { display: block; }
}

/* Stats Styling */
.stat-number {
  font-weight: 800;
  color: var(--gold);
  display: inline-block;
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(202, 164, 92, 0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  color: white;
  letter-spacing: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero {
    padding: 80px 0;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-card {
    margin-top: 40px;
  }
}

/* ================= SERVICE CARDS WITH IMAGES ================= */
.service-card-img {
  position: relative;
  overflow: hidden;
  color: white !important;
  border: none;
  background-size: cover;
  background-position: center;
}

.service-card-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.95));
  z-index: 1;
  transition: all 0.4s ease;
}

.service-card-img:hover::before {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.85));
}

.service-card-img > * {
  position: relative;
  z-index: 2;
}

.service-card-img .text-muted {
  color: rgba(255, 255, 255, 0.8) !important; /* Overrides muted text */
}

.service-card-img .service-icon {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card-img .service-icon i {
  color: #fff;
}

.service-card-img h4 {
  color: #fff;
}


/* ================= CIVIL DEFENSE REDESIGN ================= */
.civil-redesigned {
  background: linear-gradient(135deg, #4a0404, #120000);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.civil-bg-shape {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(202, 164, 92, 0.15);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}
.civil-bg-shape-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(220, 53, 69, 0.1);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.relative-z {
  position: relative;
  z-index: 10;
}

.gold-seal-badge {
  position: absolute;
  bottom: 20px;
  right: -30px;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #120000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #1a0000;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  font-family: 'Tajawal', sans-serif;
  z-index: 5;
  animation: float-badge 5s ease-in-out infinite;
}

.gold-seal-badge i {
  font-size: 30px;
  margin-bottom: 4px;
}

.gold-seal-badge span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
}

.civil-glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

html[dir="ltr"] .civil-glass-overlap {
  margin-left: -80px;
}
html[dir="rtl"] .civil-glass-overlap {
  margin-right: -80px;
}

.feature-glass-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-glass-box:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
  border-color: rgba(202, 164, 92, 0.4);
}

.feature-glass-box .icon-top {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-glass-box .feature-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  html[dir="ltr"] .civil-glass-overlap { margin-left: 0; margin-top: -60px; }
  html[dir="rtl"] .civil-glass-overlap { margin-right: 0; margin-top: -60px; }
  .civil-glass-panel { padding: 30px; }
  
  .gold-seal-badge {
    right: 20px;
    width: 100px;
    height: 100px;
  }
  .gold-seal-badge i { font-size: 20px; }
}

html[dir="rtl"] .gold-seal-badge {
  right: auto;
  left: -30px;
}

@media (max-width: 991px) {
  html[dir="rtl"] .gold-seal-badge {
    left: 20px;
    right: auto;
  }
}


/* ================= CIVIL DEFENSE 3D REDESIGN ================= */
.civil-3d-section {
  padding: 100px 0;
  background: var(--dark, #0f172a);
  position: relative;
  overflow: hidden;
}

/* 3D Floating Image */
.img-3d-wrapper {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.img-3d-wrapper img {
  border-radius: 20px;
  transform: rotateY(-15deg) rotateX(5deg);
  box-shadow: 25px 35px 50px rgba(0,0,0,0.6), -1px -1px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
}
.img-3d-wrapper:hover img {
  transform: rotateY(0) rotateX(0);
  box-shadow: 15px 20px 30px rgba(0,0,0,0.4), -1px -1px 0 rgba(255,255,255,0.1) inset;
}

/* RTL Support for 3D rotation */
html[dir="rtl"] .img-3d-wrapper img {
  transform: rotateY(15deg) rotateX(5deg);
  box-shadow: -25px 35px 50px rgba(0,0,0,0.6), 1px -1px 0 rgba(255,255,255,0.1) inset;
}
html[dir="rtl"] .img-3d-wrapper:hover img {
  transform: rotateY(0) rotateX(0);
  box-shadow: -15px 20px 30px rgba(0,0,0,0.4), 1px -1px 0 rgba(255,255,255,0.1) inset;
}

/* 3D Badge */
.badge-3d {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #1a0000;
  font-weight: 800;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.5),
    inset 0 5px 15px rgba(255,255,255,0.4),
    inset 0 -5px 20px rgba(0,0,0,0.3);
  transform: translateZ(50px);
  z-index: 10;
  animation: float3D 4s ease-in-out infinite;
}

html[dir="rtl"] .badge-3d {
  right: auto;
  left: -20px;
}

.badge-3d i {
  font-size: 32px;
  margin-bottom: 5px;
}
.badge-3d span {
  font-size: 13px;
  line-height: 1.2;
}

@keyframes float3D {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* 3D Feature Cards */
.feature-3d-card {
  background: linear-gradient(145deg, #141e36, #10182b);
  padding: 18px 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 
    8px 8px 16px rgba(0,0,0,0.5), 
    -4px -4px 12px rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-left: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  cursor: default;
}

.feature-3d-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    12px 15px 25px rgba(0,0,0,0.6), 
    -2px -2px 10px rgba(255,255,255,0.03);
  border-top: 1px solid rgba(202, 164, 92, 0.3);
}

.feature-3d-card i {
  font-size: 26px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 14px;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.4), inset -2px -2px 5px rgba(255,255,255,0.05);
}

.feature-3d-card span {
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Button 3D */
.btn-3d {
  display: inline-block;
  background: linear-gradient(145deg, #caa45c, #b38b41);
  color: #0f172a;
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
  margin-top: 20px;
  box-shadow: 
    0 12px 25px rgba(0,0,0,0.4),
    inset 0 4px 10px rgba(255,255,255,0.4),
    inset 0 -4px 10px rgba(0,0,0,0.2);
  transition: all 0.2s;
}
.btn-3d:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 30px rgba(0,0,0,0.5),
    inset 0 4px 10px rgba(255,255,255,0.4),
    inset 0 -4px 10px rgba(0,0,0,0.2);
  color: #0f172a;
}
.btn-3d:active {
  transform: translateY(2px);
  box-shadow: 
    0 5px 10px rgba(0,0,0,0.3),
    inset 0 4px 10px rgba(255,255,255,0.2),
    inset 0 -4px 10px rgba(0,0,0,0.4);
}


/* ================= CIVIL DEFENSE VERY MODERN (BREAK ROUTINE) ================= */
.civil-break-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #171717 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(202, 164, 92, 0.2);
  border-bottom: 1px solid rgba(202, 164, 92, 0.2);
}

.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(202, 164, 92, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-1 { top: -100px; right: -100px; }
.orb-2 { bottom: -100px; left: -100px; }

/* 3D Modern Image Layout */
.modern-3d-img-container {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 85%;
  perspective: 1500px;
}

.modern-3d-img {
  width: 100%;
  border-radius: 12px;
  transform: rotateY(-8deg) rotateX(4deg);
  /* Massive 3D Step Shadows */
  box-shadow: 
    -12px 12px 0 rgba(202, 164, 92, 1),
    -24px 24px 0 rgba(202, 164, 92, 0.4),
    -36px 36px 30px rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-3d-img:hover {
  transform: rotateY(0) rotateX(0);
  box-shadow: 
    -5px 5px 0 rgba(202, 164, 92, 1),
    -10px 10px 0 rgba(202, 164, 92, 0.4),
    -15px 15px 20px rgba(0,0,0,0.5);
}

/* RTL 3D FLIP */
html[dir="rtl"] .modern-3d-img {
  transform: rotateY(8deg) rotateX(4deg);
  box-shadow: 
    12px 12px 0 rgba(202, 164, 92, 1),
    24px 24px 0 rgba(202, 164, 92, 0.4),
    36px 36px 30px rgba(0,0,0,0.5);
}
html[dir="rtl"] .modern-3d-img:hover {
  transform: rotateY(0) rotateX(0);
  box-shadow: 
    5px 5px 0 rgba(202, 164, 92, 1),
    10px 10px 0 rgba(202, 164, 92, 0.4),
    15px 15px 20px rgba(0,0,0,0.5);
}

/* Floating Gold Seal */
.seal-modern {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--gold);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transform: translateZ(30px);
  animation: bounceSlow 3s infinite ease-in-out;
  border: 4px solid #fff;
  z-index: 10;
}
html[dir="rtl"] .seal-modern {
  right: auto;
  left: -20px;
}
.seal-modern i { font-size: 24px; margin-bottom: 2px;}
.seal-modern span { font-size: 10px; font-weight: 800; line-height: 1.1; font-family: 'Tajawal', sans-serif;}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Compact Glass Grid Cards */
.modern-grid-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.modern-grid-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.modern-grid-card i {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(202, 164, 92, 0.5);
}

.modern-grid-card span {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-modern-glow {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 15px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 15px rgba(202, 164, 92, 0.4);
  transition: all 0.3s;
}
.btn-modern-glow:hover {
  color: #000;
  box-shadow: 0 0 25px rgba(202, 164, 92, 0.8);
  transform: scale(1.05);
}


/* ================= CIVIL SECTION COMPACTION ================= */
.civil-break-section {
  padding: 40px 0 !important; /* Much smaller vertical footprint */
}

.modern-3d-img-container {
  max-width: 75% !important; /* Scale down the overall box */
}

.modern-3d-img {
  height: 380px !important; /* Drastically force height constraint */
  object-fit: cover;
}

/* Shrink features */
.modern-grid-card {
  padding: 15px 10px !important; /* Very compact padding */
  border-radius: 12px !important;
}

.modern-grid-card i {
  font-size: 22px !important;
  margin-bottom: 8px !important;
}

.modern-grid-card span {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
}

.seal-modern {
  width: 70px !important;
  height: 70px !important;
  top: -15px !important;
  right: -15px !important;
  border-width: 3px !important;
}

html[dir="rtl"] .seal-modern {
  right: auto !important;
  left: -15px !important;
}

.seal-modern i { font-size: 16px !important; margin-bottom: 1px !important;}
.seal-modern span { font-size: 8px !important; }

/* Further reduce titles inside the section specifically via CSS selector targeting */
.civil-break-section .section-title {
  font-size: 1.7rem !important;
  margin-top: 5px !important;
  margin-bottom: 10px !important;
}
.civil-break-section p.text-white-50 {
  font-size: 0.9rem !important;
  margin-bottom: 20px !important;
}
.btn-modern-glow {
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
  margin-top: 5px !important;
}


/* ================= REMOVE CIVIL SECTION BACKGROUND ================= */
.civil-break-section {
  background: transparent !important;
  border: none !important;
}
.glow-orb {
  display: none !important; /* Remove the glowing orbs too since they act as background */
}


/* ================= CIVIL SECTION LIGHT THEME FIX ================= */
/* Because the background is now transparent (white/light), text must be dark! */
.civil-break-section .text-white {
  color: #0f172a !important; /* Dark Navy for Main Titles */
}
.civil-break-section .text-white-50 {
  color: #475569 !important; /* Slate Gray for Paragraphs */
}
.civil-break-section .project-tag {
  color: #8a6d2b !important; /* Darker Gold for contrast on white */
  background: rgba(202, 164, 92, 0.2) !important;
  border-color: rgba(202, 164, 92, 0.4) !important;
  font-weight: 700 !important;
}

/* Fix the grid boxes for light background */
.modern-grid-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
}

.modern-grid-card span {
  color: #0f172a !important; /* Dark text */
  font-weight: 700 !important;
}

.modern-grid-card:hover {
  background: #ffffff !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--gold) !important;
}

/* Adjust the 3D Image Shadow to look better on white */
html[dir="rtl"] .modern-3d-img {
  box-shadow: 
    12px 12px 0 rgba(202, 164, 92, 1),
    24px 24px 0 rgba(202, 164, 92, 0.4),
    36px 36px 30px rgba(0,0,0,0.15) !important; /* Softer ambient shadow */
}
html[dir="rtl"] .modern-3d-img:hover {
  box-shadow: 
    5px 5px 0 rgba(202, 164, 92, 1),
    10px 10px 0 rgba(202, 164, 92, 0.4),
    15px 15px 20px rgba(0,0,0,0.2) !important;
}

html[dir="ltr"] .modern-3d-img {
  box-shadow: 
    -12px 12px 0 rgba(202, 164, 92, 1),
    -24px 24px 0 rgba(202, 164, 92, 0.4),
    -36px 36px 30px rgba(0,0,0,0.15) !important;
}
html[dir="ltr"] .modern-3d-img:hover {
  box-shadow: 
    -5px 5px 0 rgba(202, 164, 92, 1),
    -10px 10px 0 rgba(202, 164, 92, 0.4),
    -15px 15px 20px rgba(0,0,0,0.2) !important;
}

/* Button adjust for light background */
.btn-modern-glow {
  box-shadow: 0 8px 20px rgba(202, 164, 92, 0.3) !important;
  text-shadow: none !important;
  color: #fff !important; /* Dark background button usually has white text but gold button has black text */
  background: var(--dark) !important;
  border: 2px solid var(--gold) !important;
}
.btn-modern-glow i { color: var(--gold) !important; }
.btn-modern-glow:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
  box-shadow: 0 10px 25px rgba(202, 164, 92, 0.5) !important;
}
.btn-modern-glow:hover i { color: var(--dark) !important; }


/* ================= HERO INNER BACKGROUND FIX (FOR SUBPAGES) ================= */
.hero-inner {
  background: linear-gradient(135deg, var(--dark, #0f172a) 0%, #1e293b 100%) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--gold);
}

.hero-inner h1, .hero-inner p, .hero-inner .eyebrow {
  color: #fff !important;
}

.hero-inner .eyebrow {
  color: var(--gold) !important;
}
