/* ============================================================
   Quest Geomatics Consult Limited — Main Stylesheet
   Brand: Navy #1B3A5C | Cyan #00B4D8 | Orange #FF6B35 | White
   ============================================================ */

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

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --qgc-navy:       #1B3A5C;
  --qgc-navy-dark:  #0f2238;
  --qgc-navy-light: #2a5080;
  --qgc-cyan:       #00B4D8;
  --qgc-cyan-light: #48CAE4;
  --qgc-orange:     #FF6B35;
  --qgc-orange-dark:#e05a25;
  --qgc-white:      #ffffff;
  --qgc-light:      #F4F7FB;
  --qgc-gray:       #6c757d;
  --qgc-gray-light: #e9ecef;
  --qgc-dark:       #0d1b2a;
  --qgc-text:       #2c3e50;
  --qgc-border:     #dee2e6;

  --font-display:   'Barlow', sans-serif;
  --font-body:      'Inter', sans-serif;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(27,58,92,.08);
  --shadow:     0 4px 20px rgba(27,58,92,.12);
  --shadow-lg:  0 8px 40px rgba(27,58,92,.18);
  --shadow-xl:  0 16px 64px rgba(27,58,92,.22);

  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--qgc-text);
  background: var(--qgc-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--qgc-navy);
}

a { color: var(--qgc-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--qgc-orange); }

img { max-width: 100%; height: auto; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--qgc-light); }
::-webkit-scrollbar-thumb { background: var(--qgc-navy); border-radius: 3px; }

/* ── TOPBAR ───────────────────────────────────────────────── */
.qgc-topbar {
  background: var(--qgc-navy-dark);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.qgc-topbar a { color: rgba(255,255,255,.8); }
.qgc-topbar a:hover { color: var(--qgc-orange); }
.topbar-divider { margin: 0 .75rem; opacity: .3; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.qgc-navbar {
  background: var(--qgc-white);
  box-shadow: var(--shadow-sm);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.qgc-navbar.scrolled {
  background: rgba(27,58,92,.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.qgc-navbar.scrolled .navbar-brand span,
.qgc-navbar.scrolled .nav-link { color: var(--qgc-white) !important; }

.navbar-brand img.qgc-logo { height: 52px; }
.navbar-brand .brand-text { font-family: var(--font-display); font-size: .95rem; }
.navbar-brand .brand-text strong { display: block; color: var(--qgc-navy); font-weight: 800; font-size:1rem; line-height:1.1; }
.navbar-brand .brand-text span { color: var(--qgc-orange); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.nav-link {
  font-weight: 500;
  font-size: .9rem;
  color: var(--qgc-navy) !important;
  padding: .5rem .9rem !important;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--qgc-orange);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { left: .9rem; right: .9rem; }
.nav-link:hover { color: var(--qgc-orange) !important; }

.dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  min-width: 220px;
  animation: dropIn .2s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--qgc-light); color: var(--qgc-navy); padding-left: 1.2rem; }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--qgc-orange), var(--qgc-orange-dark));
  color: white !important;
  border-radius: var(--radius-xl);
  padding: .5rem 1.5rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(255,107,53,.35);
  transition: var(--transition);
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,.45);
  color: white !important;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--qgc-navy-dark);
}

.hero-bg {
  position: absolute; inset: 0;
  background: 
    linear-gradient(135deg, rgba(11,25,42,.92) 0%, rgba(27,58,92,.85) 50%, rgba(0,80,120,.8) 100%);
  z-index: 1;
}

.hero-video-bg, .hero-img-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .5;
}

/* Grid overlay effect */
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image: 
    linear-gradient(rgba(0,180,216,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridFloat 20s ease-in-out infinite;
}
@keyframes gridFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,180,216,.15);
  border: 1px solid rgba(0,180,216,.3);
  color: var(--qgc-cyan);
  padding: .35rem 1rem;
  border-radius: var(--radius-xl);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot { width: 7px; height: 7px; background: var(--qgc-cyan); border-radius: 50%; animation: pulse-dot 1.5s ease infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--qgc-white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--qgc-cyan); }
.hero-title .accent-orange { color: var(--qgc-orange); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

/* ── STAT COUNTERS ────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat { text-align: center; }
.hero-stat .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--qgc-white);
  line-height: 1;
  display: block;
}
.hero-stat .stat-number span { color: var(--qgc-orange); }
.hero-stat .stat-label { color: rgba(255,255,255,.55); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* Hero right — interactive compass/scan animation */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}
.hero-ring {
  position: absolute;
  border: 1px solid rgba(0,180,216,.2);
  border-radius: 50%;
  animation: spin-ring linear infinite;
}
.hero-ring:nth-child(1) { width: 300px; height: 300px; animation-duration: 20s; }
.hero-ring:nth-child(2) { width: 400px; height: 400px; border-color: rgba(255,107,53,.15); animation-duration: 30s; animation-direction: reverse; }
.hero-ring:nth-child(3) { width: 480px; height: 480px; animation-duration: 40s; border-style: dashed; }
.hero-ring::before {
  content:''; position:absolute; width:10px; height:10px;
  background: var(--qgc-cyan); border-radius:50%;
  top:50%; left:0; transform:translateY(-50%);
}
@keyframes spin-ring { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.hero-center-badge {
  position: relative; z-index:2;
  background: rgba(27,58,92,.9);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0,180,216,.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  text-align: center;
  color: white;
}
.hero-center-badge .badge-icon { font-size: 3rem; color: var(--qgc-cyan); margin-bottom: .5rem; }
.hero-center-badge .badge-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.hero-center-badge .badge-sub { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing:.1em; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-qgc-primary {
  background: linear-gradient(135deg, var(--qgc-orange) 0%, var(--qgc-orange-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  padding: .8rem 2rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  box-shadow: 0 4px 15px rgba(255,107,53,.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-qgc-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,107,53,.45);
  color: white;
}

.btn-qgc-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: var(--radius-xl);
  padding: .8rem 2rem;
  font-weight: 600;
  font-size: .9rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-qgc-outline:hover {
  border-color: var(--qgc-cyan);
  color: var(--qgc-cyan);
  transform: translateY(-2px);
}

.btn-qgc-navy {
  background: var(--qgc-navy);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  padding: .8rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-qgc-navy:hover { background: var(--qgc-navy-light); color: white; transform: translateY(-2px); }

.btn-qgc-cyan {
  background: linear-gradient(135deg, var(--qgc-cyan), #0096c7);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  padding: .8rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-qgc-cyan:hover { transform: translateY(-2px); color: white; box-shadow: 0 6px 20px rgba(0,180,216,.4); }

/* ── SECTION STYLES ───────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-dark { background: var(--qgc-navy-dark); color: white; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark p { color: rgba(255,255,255,.7); }

.section-navy { background: var(--qgc-navy); color: white; }
.section-navy h2, .section-navy h3 { color: white; }
.section-navy p { color: rgba(255,255,255,.75); }

.section-light { background: var(--qgc-light); }

.section-label {
  display: inline-block;
  color: var(--qgc-orange);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  position: relative;
  padding-left: 1.5rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1rem; height: 2px;
  background: var(--qgc-orange);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--qgc-gray);
  max-width: 600px;
  line-height: 1.7;
}

/* ── SERVICE CARDS ────────────────────────────────────────── */
.service-card {
  background: var(--qgc-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--qgc-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content:'';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--qgc-orange), var(--qgc-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--qgc-navy) 0%, var(--qgc-navy-light) 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--qgc-cyan);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--qgc-orange) 0%, var(--qgc-orange-dark) 100%);
  color: white;
  transform: rotate(-5deg) scale(1.05);
}

.service-card h4 { font-size: 1.1rem; margin-bottom: .6rem; }
.service-card p { color: var(--qgc-gray); font-size: .875rem; line-height: 1.65; margin-bottom: 0; }

.service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--qgc-orange);
  font-weight: 600;
  font-size: .85rem;
  margin-top: 1rem;
  transition: var(--transition);
}
.service-card:hover .read-more { gap: .65rem; }

/* ── PROJECT CARDS ────────────────────────────────────────── */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: white;
  border: 1px solid var(--qgc-border);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.project-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--qgc-light);
}
.project-card-img img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.project-card:hover .project-card-img img { transform: scale(1.08); }

.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11,25,42,.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-body { padding: 1.5rem; }
.project-card-body h5 { font-size: 1rem; margin-bottom: .4rem; }
.project-card-body p { font-size: .825rem; color: var(--qgc-gray); }

.project-status-pill {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(11,25,42,.8);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: var(--radius-xl);
  padding: .25rem .75rem;
  font-size: .7rem;
  font-weight: 600;
}

/* ── STAT CARDS ───────────────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--qgc-border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: .25rem; }
.stat-card .stat-title { color: var(--qgc-gray); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-change { font-size: .78rem; margin-top: .5rem; }

/* ── BLOG CARDS ───────────────────────────────────────────── */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--qgc-border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.blog-card-img { height: 200px; overflow: hidden; position: relative; }
.blog-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-card-cat {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--qgc-orange);
  color: white;
  padding: .25rem .75rem;
  border-radius: var(--radius-xl);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h5 { font-size: 1rem; line-height: 1.4; margin-bottom: .6rem; flex:1; }
.blog-card-meta { font-size: .75rem; color: var(--qgc-gray); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── TESTIMONIAL ──────────────────────────────────────────── */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--qgc-border);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--qgc-orange);
  position: absolute;
  top: -1rem; left: 1.5rem;
  line-height: 1;
  opacity: .2;
}
.testimonial-text { font-size: .9rem; line-height: 1.75; color: var(--qgc-text); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--qgc-cyan);
}
.testimonial-author .author-name { font-weight: 700; font-size: .9rem; color: var(--qgc-navy); }
.testimonial-author .author-title { font-size: .75rem; color: var(--qgc-gray); }

.stars { color: #FFC107; font-size: .85rem; margin-bottom: .75rem; }

/* ── WHY CHOOSE US ────────────────────────────────────────── */
.why-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.why-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--qgc-orange), var(--qgc-orange-dark));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.why-item h5 { font-size: 1rem; margin-bottom: .35rem; }
.why-item p { font-size: .875rem; color: var(--qgc-gray); margin: 0; }

/* ── PROCESS STEPS ────────────────────────────────────────── */
.process-step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}
.process-step-num {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--qgc-navy), var(--qgc-navy-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.process-step-num.active {
  background: linear-gradient(135deg, var(--qgc-orange), var(--qgc-orange-dark));
  box-shadow: 0 4px 15px rgba(255,107,53,.4);
}
.process-step h6 { font-size: .85rem; margin-bottom: .3rem; }
.process-step p { font-size: .75rem; color: var(--qgc-gray); margin: 0; }

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--qgc-navy) 0%, var(--qgc-navy-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
.cta-section::before {
  content:'';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300B4D8' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: white; }
.cta-subtitle { color: rgba(255,255,255,.7); font-size: 1rem; }

/* ── FORM STYLES ──────────────────────────────────────────── */
.qgc-form .form-label { font-weight: 600; font-size: .85rem; color: var(--qgc-navy); margin-bottom: .4rem; }
.qgc-form .form-control, .qgc-form .form-select {
  border: 1.5px solid var(--qgc-border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .9rem;
  transition: var(--transition);
  background: var(--qgc-light);
}
.qgc-form .form-control:focus, .qgc-form .form-select:focus {
  border-color: var(--qgc-cyan);
  box-shadow: 0 0 0 3px rgba(0,180,216,.15);
  background: white;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--qgc-navy-dark) 0%, var(--qgc-navy) 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(rgba(0,180,216,.04) 1px,transparent 1px),
              linear-gradient(90deg, rgba(0,180,216,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero h1 { color: white; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero .breadcrumb { background: transparent; margin: 0; padding: 0; }
.page-hero .breadcrumb-item { font-size: .85rem; }
.page-hero .breadcrumb-item a { color: var(--qgc-cyan); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── ADMIN SIDEBAR ────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px;
  background: var(--qgc-navy-dark);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 4px 0 20px rgba(0,0,0,.2);
  overflow: hidden;
}

.admin-sidebar.collapsed { width: 72px; }

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: .875rem;
  text-decoration: none;
}
.sidebar-brand img { height: 36px; flex-shrink: 0; }
.sidebar-brand-text strong { color: white; font-size: .9rem; font-weight: 700; display: block; }
.sidebar-brand-text span { color: var(--qgc-orange); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.sidebar-section-label {
  color: rgba(255,255,255,.3);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 1rem 1.5rem .4rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .7rem 1.5rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  margin: .1rem .5rem;
  border-radius: var(--radius);
}
.sidebar-link:hover {
  color: white;
  background: rgba(255,255,255,.06);
}
.sidebar-link.active {
  color: white;
  background: linear-gradient(135deg, rgba(255,107,53,.25), rgba(255,107,53,.1));
  border-left: none;
}
.sidebar-link.active::before {
  content:'';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 3px;
  background: var(--qgc-orange);
  border-radius: 0 3px 3px 0;
}
.sidebar-link i { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-link .badge-pill {
  margin-left: auto;
  background: var(--qgc-orange);
  color: white;
  border-radius: 10px;
  padding: .15rem .5rem;
  font-size: .65rem;
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sidebar-user img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
}
.sidebar-user .user-name { color: white; font-size: .82rem; font-weight: 600; }
.sidebar-user .user-role { color: rgba(255,255,255,.4); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── ADMIN MAIN ───────────────────────────────────────────── */
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #F0F3F8;
  transition: var(--transition);
}

.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--qgc-border);
  padding: .875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.admin-content { padding: 1.75rem; flex: 1; }

.admin-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--qgc-navy);
  margin-bottom: .25rem;
}

/* ── DATA TABLE ───────────────────────────────────────────── */
.qgc-table {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--qgc-border);
}
.qgc-table table { margin: 0; }
.qgc-table thead th {
  background: var(--qgc-navy);
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1rem 1.25rem;
  border: none;
}
.qgc-table tbody td { padding: .875rem 1.25rem; vertical-align: middle; font-size: .875rem; border-color: var(--qgc-border); }
.qgc-table tbody tr:hover { background: rgba(27,58,92,.025); }

/* ── CARDS ─────────────────────────────────────────────────── */
.qgc-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--qgc-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.qgc-card .card-header {
  background: var(--qgc-light);
  border-bottom: 1px solid var(--qgc-border);
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--qgc-navy);
}
.qgc-card .card-body { padding: 1.5rem; }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.progress-qgc { height: 8px; border-radius: 4px; background: var(--qgc-gray-light); }
.progress-qgc .progress-bar { background: linear-gradient(90deg, var(--qgc-orange), var(--qgc-cyan)); border-radius: 4px; }

/* ── MAP ──────────────────────────────────────────────────── */
#qgc-map, .qgc-map { height: 480px; border-radius: var(--radius-lg); overflow: hidden; }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; }

/* ── FOOTER ───────────────────────────────────────────────── */
.qgc-footer {
  background: var(--qgc-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}
.footer-brand img { height: 56px; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-heading { color: var(--qgc-white); font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; position: relative; padding-bottom: .75rem; }
.footer-heading::after { content:''; position:absolute; bottom:0; left:0; width:30px; height:2px; background:var(--qgc-orange); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--qgc-orange); padding-left: .4rem; }
.footer-contact-item { display: flex; gap: .875rem; margin-bottom: 1rem; align-items: flex-start; }
.footer-contact-item i { color: var(--qgc-orange); font-size: 1rem; flex-shrink: 0; margin-top: .15rem; }
.footer-contact-item span { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  margin-right: .5rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--qgc-orange); color: white; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0;
  margin-top: 3rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ── SURCON BADGE ─────────────────────────────────────────── */
.surcon-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,180,216,.1);
  border: 1px solid rgba(0,180,216,.25);
  border-radius: var(--radius-xl);
  padding: .4rem 1rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--qgc-cyan);
}

/* ── NOTIFICATION BELL ────────────────────────────────────── */
.notif-btn { position: relative; }
.notif-count {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--qgc-orange);
  color: white;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* ── GLASSMORPHISM CARD ───────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
}

/* ── TIMELINE ─────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content:''; position:absolute;
  left: .625rem; top: 0; bottom: 0;
  width: 2px; background: var(--qgc-border);
}
.timeline-item { position: relative; padding-bottom: 1.75rem; }
.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: .35rem;
  width: 14px; height: 14px;
  background: var(--qgc-navy);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--qgc-navy);
}
.timeline-dot.active { background: var(--qgc-orange); box-shadow: 0 0 0 2px var(--qgc-orange); }
.timeline-dot.completed { background: #198754; box-shadow: 0 0 0 2px #198754; }
.timeline-content h6 { font-size: .875rem; margin-bottom: .25rem; }
.timeline-content p { font-size: .8rem; color: var(--qgc-gray); margin: 0; }
.timeline-time { font-size: .72rem; color: var(--qgc-gray); }

/* ── LOADER ───────────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: var(--qgc-navy-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: opacity .5s ease;
}
#page-loader.hide { opacity: 0; pointer-events: none; }
.loader-logo { height: 64px; animation: pulse-logo 1.5s ease infinite; }
@keyframes pulse-logo { 0%,100%{opacity:.6;transform:scale(.95)} 50%{opacity:1;transform:scale(1)} }
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--qgc-orange), var(--qgc-cyan));
  border-radius: 2px;
  animation: loadBar 1.8s ease-in-out infinite;
}
@keyframes loadBar { 0%{width:0;margin-left:0} 50%{width:60%;margin-left:20%} 100%{width:0;margin-left:100%} }

/* ── COOKIE BANNER ────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--qgc-navy-dark);
  color: rgba(255,255,255,.8);
  padding: 1rem 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 2px solid var(--qgc-orange);
  font-size: .85rem;
}

/* ── BACK TO TOP ──────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--qgc-navy);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 500;
  box-shadow: var(--shadow);
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--qgc-orange); transform: translateY(-3px); }

/* ── ALERT CUSTOMIZATION ──────────────────────────────────── */
.alert-success { border-color: #a3d9b1; background: #d1f0da; }
.alert-error, .alert-danger { border-color: #f5c2c7; background: #f8d7da; }
.alert-warning { border-color: #ffe69c; background: #fff3cd; }
.alert-info { border-color: #b6d4fe; background: #cfe2ff; }

/* ── CLIENT PORTAL ────────────────────────────────────────── */
.portal-sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid var(--qgc-border);
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .7rem 1.5rem;
  color: var(--qgc-text);
  font-size: .875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.portal-nav-link:hover, .portal-nav-link.active {
  background: var(--qgc-light);
  color: var(--qgc-navy);
  border-left-color: var(--qgc-orange);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,.45); }
  .admin-main { margin-left: 0; }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1039; }
  .sidebar-backdrop.show { display: block; }
  .hero-visual { display: none; }
}

@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .hero-section { min-height: 85vh; }
  .hero-stats { gap: 1.5rem; }
  .qgc-topbar { display: none; }
  .admin-content { padding: 1rem; }
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
  .admin-sidebar, .admin-topbar, .qgc-navbar, .qgc-footer { display: none !important; }
  .admin-main { margin-left: 0; }
  .qgc-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; transition: opacity .5s ease; }
.fade-in.visible { opacity: 1; }

.slide-left { opacity:0; transform:translateX(-30px); transition:opacity .6s ease, transform .6s ease; }
.slide-left.visible { opacity:1; transform:translateX(0); }
.slide-right { opacity:0; transform:translateX(30px); transition:opacity .6s ease, transform .6s ease; }
.slide-right.visible { opacity:1; transform:translateX(0); }

/* staggered children */
[data-stagger] > * { opacity:0; transform:translateY(20px); transition:opacity .5s ease, transform .5s ease; }
[data-stagger].visible > *:nth-child(1){opacity:1;transform:none;transition-delay:.05s}
[data-stagger].visible > *:nth-child(2){opacity:1;transform:none;transition-delay:.15s}
[data-stagger].visible > *:nth-child(3){opacity:1;transform:none;transition-delay:.25s}
[data-stagger].visible > *:nth-child(4){opacity:1;transform:none;transition-delay:.35s}
[data-stagger].visible > *:nth-child(5){opacity:1;transform:none;transition-delay:.45s}
[data-stagger].visible > *:nth-child(6){opacity:1;transform:none;transition-delay:.55s}
[data-stagger].visible > *:nth-child(7){opacity:1;transform:none;transition-delay:.65s}
[data-stagger].visible > *:nth-child(8){opacity:1;transform:none;transition-delay:.75s}
