/* ================================================
   IMPACT ELECTROMECHANICAL CONTRACTING LLC OPC
   Premium Corporate Website Stylesheet
   Version: 1.0 | 2026
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========== 1. CSS VARIABLES ========== */
:root {
  --primary-red: #F1545A;
  --primary: #0B3D91;
  --primary-dark: #072d6b;
  --primary-light: #1a56c4;
  --primary-rgb: 11, 61, 145;
  /* --secondary: #FF6B00;
  --secondary-dark: #cc5500;
  --secondary-light: #ff8c33; */
  --secondary: #fcf345;
  --secondary-dark: #cc5500;
  --secondary-light: #ff8c33;
  --secondary-rgb: 255, 107, 0;
  --accent: #00B8D9;
  --accent-dark: #0092ad;
  --accent-light: #33cae3;
  --accent-rgb: 0, 184, 217;
  --bg: #F8F9FA;
  --bg-dark: #0d1b3e;
  --bg-section: #EEF2F7;
  --text: #1A1A1A;
  --text-light: #4a5568;
  --text-muted: #8a94a6;
  --card-bg: #FFFFFF;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 20px rgba(11,61,145,0.08);
  --shadow-md: 0 8px 30px rgba(11,61,145,0.12);
  --shadow-lg: 0 20px 60px rgba(11,61,145,0.16);
  --shadow-hover: 0 16px 50px rgba(11,61,145,0.22);
  --gradient-primary: linear-gradient(135deg, #0B3D91 0%, #1a56c4 100%);
  /* --gradient-secondary: linear-gradient(135deg, #FF6B00 0%, #ff9933 100%); */
  --gradient-secondary: linear-gradient(135deg, #FFF200 0%, #ff9933 100%);
  --gradient-accent: linear-gradient(135deg, #00B8D9 0%, #0B3D91 100%);
  --gradient-dark: linear-gradient(135deg, #0d1b3e 0%, #0B3D91 100%);
  --gradient-hero: linear-gradient(135deg, rgba(11,61,145,0.97) 0%, rgba(7,45,107,0.93) 50%, rgba(0,92,150,0.88) 100%);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.55s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --navbar-height: 80px;
}

/* ========== 2. RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ROOT-LEVEL overflow lock — must be on BOTH html AND body */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;    /* prevents Bootstrap row negative-margin overflow */
  max-width: 100vw;
}

body {
  font-family: var(--font-secondary);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;   /* establish containing block for fixed children */
}

/* Clip all section-level overflow so no child can widen the page */
section,
footer,
.page-hero,
.hero {
  overflow-x: clip;     /* clip = no scroll, no BFC side-effects */
  max-width: 100%;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-primary); }
input, textarea, select { font-family: var(--font-secondary); outline: none; }

/* ========== 3. TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ========== 4. UTILITIES ========== */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 70px 0; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,61,145,0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(11,61,145,0.15);
  margin-bottom: 16px;
}

.section-badge i { font-size: 0.75rem; color: var(--primary); }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.15;
}

.section-title span { color: var(--primary); }
.section-title .highlight { color: var(--secondary); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}

.section-header { margin-bottom: 60px; }
.section-header.text-center .section-subtitle { margin: 0 auto; }

.divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.divider-center { margin: 0 auto 20px; }

.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--gradient-primary); }
.bg-dark-custom { background: var(--bg-dark); }

/* Buttons */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-secondary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.btn-primary-custom:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,107,0,0.4); }
.btn-primary-custom:hover::before { opacity: 1; }

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline-custom:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.25);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========== 5. PRELOADER ========== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-inner { text-align: center; }

.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar-fill {
  height: 100%;
  background: var(--gradient-secondary);
  border-radius: var(--radius-full);
  animation: preload 1.8s ease-in-out forwards;
}

@keyframes preload {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ========== 6. BACK TO TOP ========== */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 16px;          /* safe distance from viewport right edge */
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ========== 7. NAVBAR ========== */
.navbar-logo {
  height: 54px;
  width: auto;
  max-width: 160px;        /* prevent logo overflowing on mobile */
  flex-shrink: 1;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
  transition: var(--transition);
}

.navbar-logo:hover { transform: scale(1.06); }

/* Preloader logo image */
.preloader-logo-img {
  border-radius: var(--radius);
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(255,107,0,0.4));
  animation: pulse 2s ease-in-out infinite;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-slow);
  padding: 0;
}

#navbar.transparent { background: transparent; }

#navbar.scrolled {
  background: rgba(7,45,107,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;    /* allow brand to shrink so hamburger always fits */
  min-width: 0;
  overflow: hidden;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--gradient-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255,107,0,0.4);
}

.brand-text h1 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.3px;
}

.brand-text span {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar-menu { display: flex; align-items: center; gap: 8px; }

.nav-link-custom {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-secondary);
  color: #fff !important;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  box-shadow: 0 4px 15px rgba(255,107,0,0.35);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,0,0.5);
  background: rgba(255,255,255,0.12) !important;
  background: var(--gradient-secondary) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;         /* NEVER shrink — always fully visible */
  z-index: 1002;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  margin-left: 8px;
}

.hamburger:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.45);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: rgba(7,45,107,0.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 20px 24px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1001;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

.mobile-nav a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 15px 18px;
  border-radius: var(--radius);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  min-height: 52px; /* comfortable touch target */
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:active { background: rgba(255,255,255,0.1); color: #fff; padding-left: 26px; }
.mobile-nav .nav-cta {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  border-bottom: none !important;
  padding: 14px 18px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

/* ========== 8. PAGE HERO BANNER ========== */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background:
    var(--gradient-dark),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=75') no-repeat center / cover;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

/* Per-page hero backgrounds */
.page-hero-about {
  background:
    linear-gradient(135deg, rgba(11,61,145,0.93) 0%, rgba(7,45,107,0.88) 100%),
    url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1600&q=75') no-repeat center / cover;
}
.page-hero-services {
  background:
    linear-gradient(135deg, rgba(11,61,145,0.93) 0%, rgba(7,45,107,0.88) 100%),
    url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1600&q=75') no-repeat center / cover;
}
.page-hero-projects {
  background:
    linear-gradient(135deg, rgba(11,61,145,0.93) 0%, rgba(7,45,107,0.88) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=75') no-repeat center / cover;
}
.page-hero-clients {
  background:
    linear-gradient(135deg, rgba(11,61,145,0.93) 0%, rgba(7,45,107,0.88) 100%),
    url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1600&q=75') no-repeat center / cover;
}
.page-hero-contact {
  background:
    linear-gradient(135deg, rgba(11,61,145,0.93) 0%, rgba(7,45,107,0.88) 100%),
    url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1600&q=75') no-repeat center / cover;
}

/* No grid lines over page hero images */
.page-hero::before {
  display: none;
  content: '';
}

.page-hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.page-hero-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
}

.page-hero-shape.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.page-hero-shape.shape-2 { width: 300px; height: 300px; bottom: -100px; left: 10%; background: radial-gradient(circle, rgba(0,184,217,0.1) 0%, transparent 70%); }

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 0;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.page-hero-breadcrumb a,
.page-hero-breadcrumb span {
  font-size: 0.85rem;
  font-family: var(--font-primary);
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.page-hero-breadcrumb a:hover { color: var(--secondary); }
.page-hero-breadcrumb i { font-size: 0.65rem; color: rgba(255,255,255,0.4); }
.page-hero-breadcrumb .current { color: var(--secondary); font-weight: 600; }

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}

.page-hero h1 span { color: var(--secondary); }

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 550px;
  line-height: 1.8;
}

/* ========== 9. HERO SECTION (HOME) ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    var(--gradient-hero),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=85') no-repeat center / cover;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(0,184,217,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(255,107,0,0.07) 0%, transparent 40%);
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  animation: floatShape 8s ease-in-out infinite;
}

.hero-shape-1 {
  width: 700px; height: 700px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(0,184,217,0.1) 0%, transparent 65%);
  animation-duration: 10s;
}

.hero-shape-2 {
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 65%);
  animation-duration: 12s;
  animation-delay: -4s;
}

.hero-shape-3 {
  width: 200px; height: 200px;
  top: 30%; left: 30%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
  animation-duration: 7s;
  animation-delay: -2s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Floating particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Hero row — desktop: generous spacing, mobile: controlled via media query */
.hero-row {
  min-height: 100vh;
  padding: 130px 0 80px;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge i { color: var(--secondary); font-size: 0.75rem; }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffa500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  display: block;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item { text-align: left; }

.hero-stat-item .number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-item .number span { color: var(--secondary); }

.hero-stat-item p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual { position: relative; z-index: 2; }

.hero-cards-stack {
  position: relative;
  max-width: 440px;
  margin-left: auto;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.hero-card:hover { transform: translateX(-8px); background: rgba(255,255,255,0.1); }

.hero-card-icon {
  width: 48px; height: 48px;
  background: var(--gradient-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(255,107,0,0.35);
}

.hero-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.hero-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0;
}

.hero-cert-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px; height: 100px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: rotateBadge 20s linear infinite;
  box-shadow: 0 8px 30px rgba(255,107,0,0.4);
}

.hero-cert-badge span { color: #fff; font-family: var(--font-primary); font-weight: 800; line-height: 1; }
.hero-cert-badge span:first-child { font-size: 1.5rem; }
.hero-cert-badge span:last-child { font-size: 0.65rem; letter-spacing: 1px; opacity: 0.9; }

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== 10. ABOUT SECTION ========== */
.about-section { background: #fff; }

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-placeholder {
  width: 100%;
  height: 520px;
  background:
    url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=900&q=90') no-repeat center / cover;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* No overlay lines — clean photo */
.about-img-placeholder::before { display: none; }

.about-img-icon { display: none; }

.about-badge-card {
  position: absolute;
  bottom: 30px;
  left: 20px;           /* changed from -20px → stays inside parent */
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.about-badge-icon {
  width: 48px; height: 48px;
  background: var(--gradient-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.about-badge-text h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about-badge-text p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 3px;
}

.about-features { margin-top: 32px; }

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  transition: var(--transition);
  margin-bottom: 12px;
}

.about-feature-item:hover { background: var(--bg-section); transform: translateX(6px); }

.about-feature-icon {
  width: 44px; height: 44px;
  background: rgba(11,61,145,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.about-feature-item:hover .about-feature-icon {
  background: var(--gradient-primary);
  color: #fff;
}

.about-feature-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.about-feature-text p {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ========== 11. SERVICES SECTION ========== */
.services-section { background: var(--bg-section); }

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition-slow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(11,61,145,0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(40%, 40%);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { transform: translate(30%, 30%) scale(1.3); }

.service-icon-wrap {
  width: 72px; height: 72px;
  background: rgba(11,61,145,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 22px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon-wrap {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.05) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(11,61,145,0.3);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.service-card:hover h3 { color: var(--primary); }

.service-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-link i { transition: var(--transition); font-size: 0.75rem; }
.service-link:hover { color: var(--secondary); }
.service-link:hover i { transform: translateX(5px); }

/* ========== 12. WHY CHOOSE US ========== */
.why-section { background: #fff; }

.why-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-slow);
}

.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 70px; height: 70px;
  background: rgba(11,61,145,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0 auto 20px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.why-card:hover .why-icon { background: rgba(255,255,255,0.15); color: #fff; }

.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.why-card:hover h4 { color: #fff; }

.why-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  transition: var(--transition);
}

.why-card:hover p { color: rgba(255,255,255,0.82); }

/* ========== 13. STATS COUNTER ========== */
.stats-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,184,217,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,107,0,0.08) 0%, transparent 50%);
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 60px; width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-item:last-child::after { display: none; }

.stat-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 16px;
  display: block;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number .counter { display: inline-block; }
.stat-number .suffix { font-size: 0.7em; color: var(--secondary); }

.stat-label {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ========== 14. PROJECTS SECTION ========== */
.projects-section { background: var(--bg-section); }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  background: #fff;
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 280px;
  cursor: pointer;
  transition: var(--transition-slow);
}

.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.project-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-bg { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,45,107,0.95) 0%, rgba(7,45,107,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: var(--transition);
}

.project-category {
  display: inline-block;
  background: var(--gradient-secondary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  width: fit-content;
}

.project-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.project-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.project-link-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.project-card:hover .project-link-btn { opacity: 1; transform: scale(1); }
.project-link-btn:hover { background: var(--secondary); }

/* Project BG — real photos with brand-gradient overlay */
.project-bg-1 {
  background:
    linear-gradient(to top, rgba(7,45,107,0.92) 0%, rgba(11,61,145,0.45) 60%, rgba(0,184,217,0.25) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=700&q=80') no-repeat center / cover;
}
.project-bg-2 {
  background:
    linear-gradient(to top, rgba(7,45,107,0.92) 0%, rgba(255,107,0,0.35) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=700&q=80') no-repeat center / cover;
}
.project-bg-3 {
  background:
    linear-gradient(to top, rgba(7,45,107,0.92) 0%, rgba(11,61,145,0.4) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=700&q=80') no-repeat center / cover;
}
/* .project-bg-4 {
  background:
    linear-gradient(to top, rgba(7,45,107,0.92) 0%, rgba(0,184,217,0.35) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1565008576549-57569a49371d?auto=format&fit=crop&w=700&q=80') no-repeat center / cover;
}
.project-bg-5 {
  background:
    linear-gradient(to top, rgba(7,45,107,0.92) 0%, rgba(255,107,0,0.3) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1509316785289-025f5b846b35?auto=format&fit=crop&w=700&q=80') no-repeat center / cover;
}
.project-bg-6 {
  background:
    linear-gradient(to top, rgba(7,45,107,0.92) 0%, rgba(255,107,0,0.3) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1581094488379-6a10eb4002a7?auto=format&fit=crop&w=700&q=80') no-repeat center / cover;
} */

/* ========== 15. CLIENTS SECTION ========== */
.clients-section { background: #fff; }

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: default;
  background: #fff;
}

.client-logo-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.client-name {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  transition: var(--transition);
  line-height: 1.3;
}

.client-logo-item:hover .client-name { color: var(--primary); }

.client-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
  transition: var(--transition);
}

.client-logo-item:hover .client-icon { color: var(--primary); }

/* ========== 16. TESTIMONIALS ========== */
.testimonials-section { background: var(--bg-section); }

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  height: 100%;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px; right: 28px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(11,61,145,0.06);
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(11,61,145,0.1);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars i { color: #f59e0b; font-size: 0.85rem; }

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }

.testimonial-avatar {
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Swiper Overrides */
.swiper-pagination-bullet { background: var(--border); opacity: 1; width: 8px; height: 8px; }
.swiper-pagination-bullet-active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ========== 17. CTA SECTION ========== */
.cta-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,107,0,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 50%, rgba(0,184,217,0.1) 0%, transparent 50%);
}

.cta-content { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section h2 span { color: var(--secondary); }

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 600px;
}

.cta-btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* ========== 18. FOOTER ========== */
footer {
  background: var(--bg-dark);
  padding-top: 80px;
}

.footer-main { padding-bottom: 60px; }

.footer-brand { margin-bottom: 20px; }
.footer-logo {
  border-radius: 6px;
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(255,107,0,0.2));
  transition: var(--transition);
}
.footer-logo:hover { transform: scale(1.04); }
.footer-brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-brand-arabic { font-size: 0.85rem; color: rgba(255,255,255,0.5); direction: rtl; margin-bottom: 16px; }
.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social { display: flex; gap: 10px; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); transform: translateY(-3px); }

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-full);
}

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

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-link i { font-size: 0.7rem; color: var(--secondary); transition: var(--transition); }
.footer-link:hover { color: rgba(255,255,255,0.9); padding-left: 4px; }
.footer-link:hover i { transform: translateX(3px); }

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact-icon {
  width: 34px; height: 34px;
  background: rgba(255,107,0,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text p { color: rgba(255,255,255,0.55); font-size: 0.8rem; margin-bottom: 2px; font-weight: 500; }
.footer-contact-text span { color: rgba(255,255,255,0.85); font-size: 0.875rem; }
.footer-contact-text a { color: rgba(255,255,255,0.85); font-size: 0.875rem; transition: var(--transition); }
.footer-contact-text a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
}

.footer-bottom-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* ========== 19. ABOUT PAGE ========== */
.timeline { position: relative; padding: 20px 0; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  align-items: flex-start;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content { text-align: right; }

.timeline-content:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.timeline-year {
  display: inline-block;
  background: var(--gradient-secondary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.timeline-content h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.timeline-content p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; margin-bottom: 0; }

.timeline-dot {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin-top: 30px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
  position: relative;
  z-index: 1;
}

.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition-slow);
}

.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }

.value-icon {
  width: 64px; height: 64px;
  background: rgba(11,61,145,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0 auto 18px;
  transition: var(--transition);
}

.value-card:hover .value-icon { background: var(--gradient-primary); color: #fff; }
.value-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; margin-bottom: 0; }

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  height: 100%;
}

.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }

.team-card-header {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.team-avatar-bg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-initials {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
}

.team-card-body { padding: 22px; }
.team-card-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card-body .role { font-size: 0.8rem; color: var(--secondary); font-weight: 600; font-family: var(--font-primary); }
.team-card-body p { font-size: 0.83rem; color: var(--text-light); line-height: 1.65; margin-top: 10px; margin-bottom: 0; }

/* ========== 20. SERVICES PAGE ========== */
.service-detail-block {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail-block:last-child { border-bottom: none; }

.service-detail-icon-lg {
  width: 100px; height: 100px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  flex-shrink: 0;
  margin-bottom: 28px;
}

.service-feature-list { margin-top: 24px; }

.service-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.service-feature-list li:last-child { border-bottom: none; }

.service-feature-list li i {
  color: var(--primary);
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(255,107,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  position: relative;
}

.service-visual-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* No line overlay on service images */
.service-visual-inner::before {
  display: none;
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.service-visual-icon {
  position: relative;
  z-index: 1;
  text-align: center;
}

.service-visual-icon i { font-size: 5rem; color: rgba(255,255,255,0.25); }

/* ========== 21. PROJECTS PAGE ========== */
.project-card-lg {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 320px;
  cursor: pointer;
  transition: var(--transition-slow);
}

.project-card-lg:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.project-card-lg .project-card-bg { background-size: cover; background-position: center; transition: transform 0.6s ease; }
.project-card-lg:hover .project-card-bg { transform: scale(1.06); }

/* Real work photos inside project cards */
.project-work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.project-card-lg:hover .project-work-img { transform: scale(1.08); }

/* ========== WORK GALLERY SECTION ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-section);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 145, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}

.gallery-hover i {
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-hover { background: rgba(11, 61, 145, 0.55); }
.gallery-item:hover .gallery-hover i { opacity: 1; transform: scale(1); }

/* Gallery Lightbox */
.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}
.gallery-lightbox-overlay.open { opacity: 1; visibility: visible; }

.gallery-lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-box img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  display: block;
}

.lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
.lb-btn:hover { background: var(--primary); border-color: var(--primary); }
.lb-close { top: -20px; right: -20px; }
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
.lb-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: var(--font-primary);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lb-prev { left: -48px; }
  .lb-next { right: -48px; }
  .lb-btn { width: 38px; height: 38px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lb-prev { left: 8px; bottom: -56px; top: auto; }
  .lb-next { right: 8px; bottom: -56px; top: auto; }
  .lb-close { top: -14px; right: -14px; width: 36px; height: 36px; }
  .gallery-lightbox-box img { max-width: 94vw; max-height: 70vh; }
}

/* ========== 22. CLIENTS PAGE ========== */
.client-detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition-slow);
  text-align: center;
}

.client-detail-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }

.client-detail-icon {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 20px;
}

.client-detail-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.client-detail-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; margin-bottom: 0; }

/* ========== 23. CONTACT PAGE ========== */
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control-custom {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  resize: none;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11,61,145,0.07);
  background: #fff;
  outline: none;
}

.form-control-custom::placeholder { color: var(--text-muted); }

.contact-info-card {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,107,0,0.12) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 30px);
}

.contact-info-card .section-title,
.contact-info-card h2,
.contact-info-card h3 { color: #fff !important; }
.contact-info-card p { color: rgba(255,255,255,0.7); }

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.contact-item-icon {
  width: 50px; height: 50px;
  background: rgba(255,107,0,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-item-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  transition: var(--transition);
}

.contact-item-text a:hover { color: var(--secondary); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.whatsapp-btn:hover {
  background: #1da851;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 400px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.map-placeholder i { font-size: 3rem; color: var(--primary); opacity: 0.3; margin-bottom: 16px; display: block; }
.map-placeholder p { font-size: 0.875rem; }

/* Success Message */
.form-success {
  display: none;
  background: rgba(0,184,217,0.08);
  border: 1px solid rgba(0,184,217,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  font-weight: 600;
  align-items: center;
  gap: 10px;
}

.form-success.show { display: flex; }

/* ========== 24. ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(255,107,0,0); }
}

.animate-in { animation: fadeInUp 0.6s ease forwards; }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ========== 25. RESPONSIVE ========== */
@media (max-width: 1199px) {
  .navbar-container { padding: 0 24px; }
}

@media (max-width: 991px) {
  :root { --navbar-height: 70px; }

  /* Hide desktop menu, show hamburger */
  .navbar-menu { display: none !important; }
  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Reduce hero row top padding so content sits closer to navbar */
  .hero-row {
    padding: 90px 0 60px;
    min-height: 100svh;
  }

  .hero h1 { font-size: 2.4rem; }
  .hero-cards-stack { margin-top: 50px; max-width: 100%; }
  .about-badge-card { left: 16px; max-width: calc(100% - 32px); }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; padding-left: 50px; }
  .timeline-dot { position: absolute; left: 10px; margin-top: 0; }
  .timeline-item { position: relative; }
  .timeline-item:nth-child(even) .timeline-content { text-align: left; }
  .section-padding { padding: 80px 0; }
  .contact-form-card { padding: 36px 28px; }
  .contact-info-card { margin-top: 30px; }
}

@media (max-width: 767px) {
  /* Fix Bootstrap row negative-margin overflow on small screens */
  .row {
    --bs-gutter-x: 1rem !important;
    margin-right: calc(-.5 * 1rem) !important;
    margin-left:  calc(-.5 * 1rem) !important;
  }
  .container, .container-fluid {
    padding-right: 16px !important;
    padding-left:  16px !important;
  }

  /* Tighten navbar padding so logo + hamburger always fit */
  .navbar-container { padding: 0 16px; }
  .navbar-logo { height: 46px; max-width: 140px; }

  /* Hero: remove section-level padding — hero-row handles it */
  .hero { min-height: 100svh; padding: 0; }

  /* Hero row: just enough top padding to clear the fixed navbar */
  .hero-row {
    padding: calc(var(--navbar-height) + 16px) 0 50px;
    min-height: 100svh;
  }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-btns { gap: 12px; }
  .hero-stats { gap: 20px; }
  .hero-stat-item .number { font-size: 1.6rem; }
  .section-title { font-size: 1.7rem; }
  .section-padding { padding: 65px 0; }
  .stat-item::after { display: none; }
  .page-hero { min-height: 320px; }
  .page-hero h1 { font-size: 1.9rem; }
  .footer-bottom-links { justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
  .cta-btns { flex-direction: column; align-items: flex-start; }
  .contact-form-card { padding: 28px 20px; }
  .filter-tabs { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  /* Ensure Bootstrap rows never overflow on very small screens */
  .row {
    --bs-gutter-x: 0.75rem !important;
    margin-right: calc(-.5 * 0.75rem) !important;
    margin-left:  calc(-.5 * 0.75rem) !important;
  }
  .container, .container-fluid {
    padding-right: 14px !important;
    padding-left:  14px !important;
  }

  .navbar-container { padding: 0 14px; }
  .navbar-logo { height: 42px; max-width: 120px; }
  .hamburger { padding: 8px; }

  /* Tightest spacing on phones — content starts just below navbar */
  .hero-row {
    padding: calc(var(--navbar-height) + 10px) 0 40px;
  }

  .hero h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
  .btn-primary-custom, .btn-outline-custom, .btn-outline-dark { padding: 12px 24px; font-size: 0.85rem; }
  .hero-badge { font-size: 0.72rem; }
  .section-badge { font-size: 0.72rem; }
}

@media (max-width: 375px) {
  .navbar-container { padding: 0 12px; }
  .navbar-logo { height: 40px; max-width: 110px; }
}

@media (max-width: 320px) {
  .navbar-container { padding: 0 10px; }
  .navbar-logo { height: 36px; max-width: 100px; }
  .hero-row { padding: calc(var(--navbar-height) + 8px) 0 36px; }
  .hero h1 { font-size: 1.55rem; }
}

/* ========== LARGE DESKTOPS ========== */

/* 2K Monitors */
@media (min-width: 1800px) {
  .container {
    max-width: 1600px;
  }

  .hero h1 {
    font-size: 5rem;
    line-height: 1.05;
  }

  .hero p {
    font-size: 1.2rem;
    max-width: 800px;
  }

  .hero-cards-stack {
    max-width: 520px;
  }
}

/* 4K Monitors */
@media (min-width: 2560px) {
  .container {
    max-width: 2100px;
  }

  .navbar-container {
    max-width: 2100px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 6rem;
    line-height: 1.05;
  }

  .hero p {
    font-size: 1.4rem;
    max-width: 900px;
  }

  .hero-cards-stack {
    max-width: 650px;
  }

  .hero-stat-item .number {
    font-size: 3.2rem;
  }
}

/* whatsup icons */

#whatsapp .wtsapp{
	position: fixed;
	transform: all .5s ease;
	background-color: #25d366;
	display: block;
	text-align: center;
	box-shadow: 0 0 20px rgba(0,0,0,0.15);
	border-radius: 50px;
	border-right: none;
	color: #fff;
	font-weight: 700;
	font-size: 30px;
	bottom: 90px;
	right: 30px;
	border: 0;
	z-index: 9999;
	width: 50px;
	height: 50px;
	line-height: 50px;

}
/* What's Up */

#whatsapp .wtsapp:before{
	content:"";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	display: block;
	width: 60px;
	height: 60px;
	background-color: #25d366;
	border-radius: 50%;
	-webkit-animation: pulse-border 1500ms ease-out infinite;
	animation: pulse-border 1500ms ease-out infinite;
}

#whatsapp .wtsapp:focus{
	border: none;
	outline: none;
}

#whatsapp .wtsapp-tooltip{
	position: fixed;
	bottom: 103px;
	right: 90px;
	z-index: 9999;
	background-color: #25d366;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	padding: 10px 18px;
	border-radius: 50px;
	box-shadow: 0 0 20px rgba(0,0,0,0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
	pointer-events: none;
}

#whatsapp .wtsapp-tooltip:after{
	content: "";
	position: absolute;
	top: 50%;
	right: -6px;
	transform: translateY(-50%);
	border-width: 6px 0 6px 6px;
	border-style: solid;
	border-color: transparent transparent transparent #25d366;
}

#whatsapp:hover .wtsapp-tooltip{
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}