:root {
  --primary: #0A4D68;
  --secondary: #05BFDB;
  --accent: #00C853;
  --luxury: #FFC107;
  --bg: #F8FBFD;
  --surface: rgba(255,255,255,0.75);
  --text: #0f172a;
  --muted: #5b6b7a;
  --dark: #071E2D;
  --shadow: 0 20px 60px rgba(10, 77, 104, 0.16);
}

body.dark {
  --bg: #07131c;
  --surface: rgba(7, 30, 45, 0.75);
  --text: #f8fbfd;
  --muted: #9bb2bf;
  --dark: #04121b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg), rgba(5, 191, 219, 0.05));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at top left, rgba(5,191,219,0.12), transparent 35%), radial-gradient(circle at bottom right, rgba(0,200,83,0.08), transparent 30%);
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-loader {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  padding: 2rem;
  background: linear-gradient(110deg, rgba(7,30,45,0.9) 0%, rgba(10,77,104,0.72) 45%, rgba(5,191,219,0.25) 100%), url('assets/banner/sagheers logo-idea-1-1.png') center/cover no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cursor-glow {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: rgba(5, 191, 219, 0.2);
  mix-blend-mode: screen;
  z-index: 10;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 251, 253, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 77, 104, 0.08);
}

body.dark .site-header {
  background: rgba(7, 19, 28, 0.72);
}

.navbar {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.navbar-brand {
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.navbar-brand:hover .brand-mark { transform: scale(1.05); }
.brand-mark {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}
.brand-title { display: block; font-size: 1rem; }
.brand-subtitle { font-size: 0.75rem; color: var(--muted); }
.navbar-collapse {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 auto;
}
.navbar-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.35rem;
  column-gap: 0.8rem;
  margin-left: auto;
}
.nav-item { display: flex; align-items: center; }
.nav-link { color: var(--text); font-weight: 600; white-space: nowrap; }
.nav-link.active, .nav-link:hover { color: var(--primary); }
.theme-toggle {
  border: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--primary); box-shadow: var(--shadow);
}

.mega-parent { position: relative; }
.mega-menu {
  position: absolute; top: calc(100% + 10px); min-width: 300px; padding: 20px; border-radius: 20px; background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); display: none; z-index: 1200;
}
.mega-parent:hover .mega-menu, .mega-parent.show .mega-menu { display: block; }
.mega-menu a { display: block; padding: 6px 0; color: var(--text); }

.hero-section {
  min-height: 100vh; position: relative; background: var(--dark); color: #fff;
}
.hero-banner-image, .hero-overlay, #particles-js {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-banner-image {
  object-fit: cover; opacity: 0.45; filter: saturate(1.1) brightness(0.75);
}
.hero-overlay {
  background: linear-gradient(110deg, rgba(7,30,45,0.95) 0%, rgba(10,77,104,0.65) 45%, rgba(5,191,219,0.25) 100%);
}
#particles-js { z-index: 0; }
.hero-content { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; background: rgba(255,255,255,0.13); color: #cceff7; margin-bottom: 1rem; backdrop-filter: blur(10px);
}
.hero-card, .glass-card, .feature-card, .product-card, .testimonial-card, .gallery-card, .timeline-card {
  background: var(--surface); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.4); box-shadow: var(--shadow); border-radius: 28px;
}
.hero-card { position: relative; overflow: hidden; }
.floating-badge {
  position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, var(--accent), var(--secondary)); color: #fff; padding: 0.55rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.mini-stat { padding: 1rem; border-radius: 20px; background: rgba(255,255,255,0.2); }
.mini-stat strong { display: block; font-size: 1.5rem; }
.hero-badges span { display: inline-flex; gap: 0.5rem; align-items: center; margin-right: 1rem; color: rgba(255,255,255,0.85); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); border: 0; border-radius: 999px; box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline-light { border-radius: 999px; }
.brand-strip { display: flex; justify-content: space-between; align-items: center; }
.promo-shell { border-radius: 30px; overflow: hidden; }
.promo-slider { position: relative; overflow: hidden; border-radius: 26px; min-height: 280px; }
.promo-slide { position: relative; min-height: 280px; display: flex; align-items: flex-end; overflow: hidden; }
.promo-slide img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; transform: scale(1.02); }
.promo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,30,45,0.9) 0%, rgba(10,77,104,0.55) 45%, rgba(10,77,104,0.15) 100%);
}
.promo-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem 1.4rem 1.4rem 1.4rem;
  color: #fff;
  max-width: 560px;
}
.promo-badge {
  display: inline-block; width: fit-content; padding: 0.45rem 0.8rem; border-radius: 999px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.promo-content h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); margin-bottom: 0.45rem; color: #fff; }
.promo-content p { margin: 0; color: rgba(255,255,255,0.9); max-width: 420px; }
.promo-pagination { bottom: 0.9rem !important; }
.promo-pagination .swiper-pagination-bullet { background: rgba(255,255,255,0.8); opacity: 0.75; }
.promo-pagination .swiper-pagination-bullet-active { background: #fff; opacity: 1; }
.promo-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(10px); cursor: pointer; transition: all 0.3s ease; opacity: 0.9;
}
.promo-nav:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.05); }
.promo-prev { left: 14px; }
.promo-next { right: 14px; }
.feature-card, .product-card, .testimonial-card, .gallery-card, .timeline-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover, .product-card:hover, .testimonial-card:hover, .gallery-card:hover, .timeline-card:hover { transform: translateY(-6px); box-shadow: 0 28px 80px rgba(10,77,104,0.18); }
.director-message-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}
.director-photo-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
}
.director-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.director-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.director-signature {
  border-top: 1px solid rgba(10,77,104,0.12);
  padding-top: 1rem;
}
.icon-bubble {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--primary); background: linear-gradient(135deg, rgba(5,191,219,0.2), rgba(0,200,83,0.14)); margin-bottom: 1rem; font-size: 1.2rem;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card { padding: 1.3rem; text-align: center; }
.counter { font-size: 2.2rem; color: var(--primary); }
.product-card img, .gallery-card img { width: 100%; height: 250px; border-radius: 22px; cursor: zoom-in; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 45, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2000;
}
.gallery-lightbox.show {
  display: flex;
}
.gallery-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.gallery-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.dark-section { background: linear-gradient(145deg, var(--dark), #12334a); }
.testimonial-card p { font-size: 1.15rem; }
.progress-card { padding: 1rem 0; }
.progress { height: 10px; border-radius: 999px; }
.progress-bar { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.site-footer { background: linear-gradient(145deg, var(--dark), #0f3750); color: #fff; }
.social-links a { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; margin-right: 0.65rem; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: #fff; }
.back-to-top, .whatsapp-float {
  position: fixed; right: 24px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--secondary)); color: #fff; box-shadow: var(--shadow); z-index: 1100; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
}
.back-to-top.show, .whatsapp-float.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top { bottom: 90px; }
.whatsapp-float { bottom: 24px; }
.filter-chips .chip { border: 0; padding: 0.6rem 1rem; border-radius: 999px; margin-right: 0.5rem; background: rgba(10,77,104,0.08); color: var(--text); }
.filter-chips .chip.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.form-control { border-radius: 16px; padding: 0.9rem 1rem; border: 1px solid rgba(10,77,104,0.15); }
.form-control:focus { box-shadow: 0 0 0 0.2rem rgba(5,191,219,0.2); border-color: var(--secondary); }
.page-hero, .subpage-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  background: linear-gradient(110deg, rgba(7,30,45,0.9) 0%, rgba(10,77,104,0.6) 45%, rgba(5,191,219,0.25) 100%), url('assets/banner/sagheers logo-idea-1-1.png') center/cover no-repeat;
}
.page-hero::before, .subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(7,30,45,0.82) 0%, rgba(10,77,104,0.58) 45%, rgba(5,191,219,0.22) 100%);
  z-index: 0;
}
.page-hero > .container, .subpage-hero > .container {
  position: relative;
  z-index: 1;
}
.page-hero h1, .subpage-hero h1,
.page-hero .lead, .subpage-hero .lead {
  color: #fff;
}
.page-hero .lead, .subpage-hero .lead {
  color: rgba(255,255,255,0.9) !important;
}
.page-hero .eyebrow, .subpage-hero .eyebrow {
  background: rgba(255,255,255,0.14);
  color: #cceff7;
}
.process-step { padding: 1rem; border-radius: 24px; background: rgba(10,77,104,0.05); height: 100%; }
.partner-card { overflow: hidden; }
.partner-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 20px 20px 0 0;
}

@media (max-width: 991px) {
  .hero-section { min-height: auto; padding-top: 4rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .brand-strip { flex-direction: column; align-items: flex-start; }
  .navbar { flex-wrap: wrap; }
  .navbar-brand { margin-bottom: 0.25rem; }
  .navbar-collapse { justify-content: flex-start; width: 100%; }
  .navbar-nav { justify-content: flex-start; padding-top: 0.5rem; margin-left: 0; }
  .page-hero, .subpage-hero { min-height: 280px; }
   .promo-slider,
  .promo-slide,
  .promo-slide img {
    height: 400px;
    min-height: 400px;
  }
}

@media (max-width: 576px) {
  .brand-mark { width: 48px; height: 48px; }
  .brand-title { font-size: 0.95rem; }
  .brand-subtitle { font-size: 0.7rem; }
  .hero-section { padding-top: 2rem; }
  .page-hero, .subpage-hero { min-height: 240px; }
  .promo-slider, .promo-slide { min-height: 240px; }
  .promo-slide img { min-height: 240px; }
  .promo-content { padding: 1rem; max-width: 100%; }
  .promo-nav { width: 36px; height: 36px; }
}



