/* ═══════════════════════════════════════════════════════════
   Orgue Enterprises — Main Stylesheet
   Theme: Navy / Blue professional tech
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #0D1B5E;
  --blue: #1565C0;
  --bright: #2196F3;
  --cyan: #29B6F6;
  --white: #FFFFFF;
  --off: #F4F7FF;
  --gray: #8896B3;
  --dark: #080F35;
  --bg: #FFFFFF;
  --bg-off: #F4F7FF;
  --text: #0D1B5E;
  --card-bg: #FFFFFF;
  --border: rgba(21, 101, 192, 0.08);
  --shadow: 0 8px 32px rgba(13, 27, 94, 0.08);
  --radius: 16px;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  --navy: #90CAF9;
  --blue: #64B5F6;
  --bright: #42A5F5;
  --cyan: #29B6F6;
  --white: #1A1A2E;
  --off: #16213E;
  --gray: #90A4AE;
  --dark: #0D0D1A;
  --bg: #1A1A2E;
  --bg-off: #16213E;
  --text: #E3F2FD;
  --card-bg: #1E2A4A;
  --border: rgba(100, 181, 246, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-off);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 84px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, height 0.3s;
}

[data-theme="dark"] .nav {
  background: rgba(26, 26, 46, 0.92);
}

.nav.scrolled {
  height: 72px;
  box-shadow: 0 4px 24px rgba(13, 27, 94, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 5%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(41, 121, 246, 0.25));
  transition: height 0.3s;
}

.nav.scrolled .nav-logo img {
  height: 38px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-text .brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--dark);
  background: linear-gradient(90deg, var(--dark) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .nav-logo-text .brand-name {
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo-text .brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.dark-toggle {
  background: rgba(21, 101, 192, 0.1);
  border: 1.5px solid rgba(21, 101, 192, 0.2);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--text);
  transition: all 0.2s;
}

.dark-toggle .icon {
  display: block;
}

.dark-toggle:hover {
  background: rgba(21, 101, 192, 0.18);
  transform: rotate(15deg);
}

[data-theme="dark"] .dark-toggle {
  background: rgba(100, 181, 246, 0.1);
  border-color: rgba(100, 181, 246, 0.25);
  color: var(--cyan);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg);
  padding: 1.25rem 5% 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(6, 10, 30, 0.88) 0%, rgba(6, 10, 30, 0.94) 55%, var(--dark) 100%), url('../images/hero/earth-network.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  color: #fff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 150, 243, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  pointer-events: none;
}

@keyframes gridShift {
  from { transform: translateY(0); }
  to { transform: translateY(60px); }
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.18) 0%, transparent 70%);
  top: -120px;
  right: -120px;
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 182, 246, 0.12) 0%, transparent 70%);
  bottom: 80px;
  left: 5%;
  animation: pulse 8s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(41, 182, 246, 0.12);
  border: 1px solid rgba(41, 182, 246, 0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-badge p {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-title .accent {
  color: var(--cyan);
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, background 0.25s;
}

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

.stat-card .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.stat-card .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(21, 101, 192, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(21, 101, 192, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.service-thumb {
  width: calc(100% + 3.5rem);
  margin: -2rem -1.75rem 1.25rem;
  height: 170px;
  overflow: hidden;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.06);
}

.service-card--wide .service-thumb {
  width: 220px;
  min-width: 220px;
  height: 100%;
  min-height: 160px;
  margin: 0;
  border-radius: var(--radius);
}

.service-icon svg,
.value-icon svg,
.project-img span svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-img span svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  background: rgba(21, 101, 192, 0.08);
  color: var(--blue);
}

[data-theme="dark"] .tag {
  background: rgba(100, 181, 246, 0.12);
  color: var(--cyan);
}

/* ── About / Mission ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--dark) 0%, #0D1B5E 100%);
  border-radius: 24px;
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 150, 243, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.about-visual.has-photo::before {
  background-image: linear-gradient(180deg, rgba(10, 15, 46, 0.35) 0%, rgba(10, 15, 46, 0.92) 100%);
  background-size: cover;
  opacity: 1;
}

.about-visual h3 {
  position: relative;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.about-visual p {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.value-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.value-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(21, 101, 192, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--blue);
}

.value-icon svg {
  width: 18px;
  height: 18px;
}

.value-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.value-item p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ── Process ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}

.process-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bright);
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.82rem;
  color: var(--bright);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.team-card .title {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.project-img {
  height: 180px;
  background: linear-gradient(135deg, var(--dark), #1565C0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2.5rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-img.has-photo {
  color: rgba(255, 255, 255, 0.9);
}

.project-img.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 15, 46, 0.55), rgba(21, 101, 192, 0.45));
}

.project-img.has-photo span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.team-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  height: 260px;
}

.team-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 1.5rem;
}

.project-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.project-status.live {
  background: rgba(76, 175, 80, 0.18);
  color: #81C784;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.project-status.ongoing {
  background: rgba(255, 193, 7, 0.18);
  color: #FFD54F;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.project-client {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.project-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.9rem;
}

.project-visit svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Contact / Forms ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(21, 101, 192, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.contact-detail span {
  font-size: 0.9rem;
  color: var(--gray);
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
  display: none;
}

.form-success .check {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #0D1B5E 60%, #1565C0 100%);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-banner h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.cta-banner .btn {
  position: relative;
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--dark);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.page-header .hero-grid {
  opacity: 0.5;
}

.page-header h1 {
  position: relative;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-header p {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.footer-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(41, 121, 246, 0.35));
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-logo-text .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-logo-text .brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-top: 3px;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.footer ul li {
  margin-bottom: 0.55rem;
}

.footer ul a {
  font-size: 0.88rem;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .service-card[style*="200px auto 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .service-card[style*="200px auto 1fr"] .service-thumb {
    width: 100% !important;
    min-width: 0 !important;
    height: 170px !important;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    height: 68px;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-logo-text .brand-name {
    font-size: 0.92rem;
  }

  .mobile-menu {
    top: 68px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }
}

/* ── WhatsApp float button ── */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Accessibility: skip link & focus states ── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1100;
  background: var(--blue);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Scroll-to-top button ── */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.35);
  border: none;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--cyan);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .scroll-top {
    right: 16px;
    bottom: 78px;
    width: 40px;
    height: 40px;
  }
}

/* ── 404 page ── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 1.5rem 80px;
}

.error-page .error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  color: var(--gray);
  max-width: 440px;
  margin: 0 auto 1.75rem;
}

/* ═══════════════════════════════════════════════════════════
   Preloader
   ═══════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #050915;
  background: radial-gradient(circle at 50% 50%, var(--dark) 0%, #050915 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Hard fallback: if JS never runs (blocked/fails), CSS alone removes the
   preloader after a fixed delay so it can never get stuck on screen. */
.preloader {
  animation: preloader-force-hide 0s linear 3.5s forwards;
}

@keyframes preloader-force-hide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  width: 96px;
  height: 96px;
  overflow: visible;
}

.preloader-ring .ring {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.preloader-ring .ring-1 {
  stroke: var(--cyan);
  stroke-dasharray: 60 154;
  transform-origin: 40px 40px;
  animation: preloader-spin 1.6s linear infinite;
  opacity: 0.9;
}

.preloader-ring .ring-2 {
  stroke: var(--bright);
  stroke-dasharray: 40 123;
  transform-origin: 40px 40px;
  animation: preloader-spin-reverse 1.3s linear infinite;
  opacity: 0.75;
}

.preloader-ring .ring-3 {
  stroke: var(--blue);
  stroke-dasharray: 24 89;
  transform-origin: 40px 40px;
  animation: preloader-spin 1s linear infinite;
  opacity: 0.9;
}

.preloader-core {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 3px rgba(41, 182, 246, 0.8), 0 0 30px 8px rgba(33, 150, 243, 0.35);
  animation: preloader-pulse 1.4s ease-in-out infinite;
}

.preloader-text {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--off);
  white-space: nowrap;
}

.preloader-dot {
  color: var(--cyan);
  animation: preloader-blink 1.2s step-start infinite;
}

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

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

@keyframes preloader-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
}

@keyframes preloader-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-ring .ring,
  .preloader-core,
  .preloader-dot {
    animation: none !important;
  }
}

/* ── Blog ── */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.blog-featured-img {
  min-height: 280px;
  background: linear-gradient(135deg, var(--dark) 0%, #0D1B5E 55%, #1565C0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(41, 182, 246, 0.25) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(33, 150, 243, 0.2) 0, transparent 45%);
}

.blog-featured-img svg {
  position: relative;
  width: 64px;
  height: 64px;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 1.4;
}

.blog-featured-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-body .blog-tag {
  align-self: flex-start;
}

.blog-featured-body h2 {
  font-size: 1.5rem;
  margin: 0.75rem 0 0.75rem;
  line-height: 1.3;
}

.blog-featured-body p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

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

.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--dark), #1565C0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img svg {
  width: 34px;
  height: 34px;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 1.5;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0.6rem 0 0.5rem;
}

.blog-card-body p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray);
}

.blog-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray);
}

.blog-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(21, 101, 192, 0.1);
  border: 1px solid rgba(21, 101, 192, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

[data-theme="dark"] .blog-tag {
  color: var(--cyan);
  background: rgba(41, 182, 246, 0.1);
  border-color: rgba(41, 182, 246, 0.25);
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
}

.blog-read-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(3px);
}

.blog-newsletter {
  background: linear-gradient(135deg, var(--dark) 0%, #0D1B5E 60%, #1565C0 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}

.blog-newsletter h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-newsletter p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 460px;
  margin: 0 auto 1.5rem;
}

.blog-newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 420px;
  margin: 0 auto;
}

.blog-newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.blog-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 720px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-newsletter-form {
    flex-direction: column;
  }
}
