:root {
  --primary-navy: #173653;
  --primary-blue: #087fc1;
  --accent-gold: #c9a33a;
  --accent-red: #d71920;
  --light-bg: #f5f7f9;
  --surface-white: #ffffff;
  --text-dark: #1d2935;
  --text-muted: #5a6872;
  --border-light: #e2e8f0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --transition-normal: 0.3s ease;
  --max-width: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--surface-white);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--surface-white);
  padding: 8px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--transition-normal);
}
.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary-navy);
  line-height: 1.25;
  font-weight: 700;
}
p {
  margin-bottom: 1rem;
}
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}
a:hover {
  color: var(--primary-navy);
}

/* Top bar */
.top-bar {
  background-color: var(--primary-navy);
  color: #c0cdd9;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.05em;
}
.top-bar-contact span {
  margin-left: 15px;
}
.top-bar-contact a {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--surface-white);
  z-index: 1000;
  transition: box-shadow var(--transition-normal), background-color var(--transition-normal);
}
.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand-identity {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-box {
  border-left: 4px solid var(--accent-red);
  padding-left: 10px;
}
.logo-letters {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1;
  letter-spacing: 1px;
}
.logo-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 1.5px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.nav-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-navy);
  padding: 8px 0;
  position: relative;
}
.nav-list a.active, .nav-list a:hover {
  color: var(--primary-blue);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--primary-navy);
  transition: var(--transition-normal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 44px;
}
.btn-primary {
  background-color: var(--primary-blue);
  color: var(--surface-white);
}
.btn-primary:hover {
  background-color: var(--primary-navy);
  color: var(--surface-white);
}
.btn-secondary {
  background-color: transparent;
  border-color: var(--surface-white);
  color: var(--surface-white);
}
.btn-secondary:hover {
  background-color: var(--surface-white);
  color: var(--primary-navy);
}

/* Hero Section with High-Contrast Readability Overlays */
.hero-section {
  position: relative;
  background: 
    linear-gradient(
      to right,
      rgba(15, 33, 50, 0.94) 0%,
      rgba(23, 54, 83, 0.88) 50%,
      rgba(15, 23, 42, 0.65) 100%
    ),
    linear-gradient(
      to top,
      rgba(10, 20, 30, 0.85) 0%,
      transparent 65%
    ),
    url('../images/slider.webp') center bottom / cover no-repeat;
  color: var(--surface-white);
  padding: 130px 0 110px;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-block;
  color: #f6ce65;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-title {
  color: #ffffff;
  font-size: 3.25rem;
  max-width: 900px;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 4px 18px rgba(0, 0, 0, 0.8);
}

.hero-text {
  font-size: 1.2rem;
  max-width: 760px;
  margin-bottom: 2rem;
  color: #f8fafc;
  line-height: 1.7;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-subtext {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Trust Stats */
.stats-section {
  background-color: var(--surface-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  padding: 20px;
  border-left: 2px solid var(--border-light);
}
.stat-item:first-child {
  border-left: none;
}
.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Common */
.section {
  padding: 90px 0;
}
.section-light {
  background-color: var(--light-bg);
}
.section-header {
  margin-bottom: 3.5rem;
  max-width: 760px;
}
.section-eyebrow {
  color: var(--primary-blue);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--surface-white);
  padding: 40px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.service-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Project Cards & Filters */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary-navy);
  color: var(--surface-white);
  border-color: var(--primary-navy);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
}
.project-meta-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.project-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.project-details {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  font-size: 0.875rem;
}

/* Feature/Why Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--surface-white);
  border-top: 3px solid var(--primary-blue);
  padding: 30px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Leadership Section */
.leadership-quote {
  border-left: 4px solid var(--accent-gold);
  padding-left: 24px;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

/* Forms */
.form-card {
  background: var(--surface-white);
  padding: 40px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.form-group-full {
  grid-column: span 2;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9375rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(8, 127, 193, 0.15);
}
.honeypot {
  display: none !important;
  visibility: hidden;
}

/* Tables */
.responsive-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.data-table th {
  background-color: var(--light-bg);
  color: var(--primary-navy);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy);
  color: #bacddc;
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  padding-bottom: 60px;
}
.footer-heading {
  color: var(--surface-white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a, .footer-contact a {
  color: #bacddc;
}
.footer-links a:hover, .footer-contact a:hover {
  color: var(--surface-white);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.875rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
}
.legal-nav {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: opacity var(--transition-normal);
}
.back-to-top.visible {
  display: flex;
}

/* ===================================================
   PLAYFUL & INTERACTIVE MICRO-ANIMATIONS
   =================================================== */

/* Floating Ambient Orbs */
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(8, 127, 193, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(201, 163, 58, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(45px) scale(1.15); }
}

/* Interactive 3D Card Hover Tilt */
.service-card, .project-card, .feature-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.service-card:hover, .project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(23, 54, 83, 0.12);
  border-color: var(--primary-blue);
}

/* Playful Dynamic Pulsing Badges */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 127, 193, 0.25);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.badge-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(215, 25, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 25, 32, 0); }
}

/* Button Shimmer Effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg);
  transition: all 0.7s ease;
}
.btn-primary:hover::after {
  left: 120%;
}

/* ===================================================
   FLOATING ACTION BUTTONS (Exact Match to Reference)
   =================================================== */
.floating-quick-actions {
  position: fixed;
  bottom: 90px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
}

.quick-action-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.28s ease;
}

.quick-action-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* 1. Phone Button (Solid Blue) */
.quick-action-call {
  background-color: #2563eb;
}

/* 2. WhatsApp Button (Solid WhatsApp Green) */
.quick-action-wa {
  background-color: #22c55e;
}

/* 3. Email Button (Light Green Center with Dark Green Framing Border) */
.quick-action-mail {
  background-color: #6ee7b7;
  border: 4px solid #10b981;
  color: #ffffff;
}

.quick-action-mail svg {
  stroke: #ffffff;
}

/* Form Alert Boxes */
.alert-box {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
}
.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive adjustment for floating quick actions */
@media (max-width: 768px) {
  .floating-quick-actions {
    bottom: 80px;
    right: 16px;
    gap: 12px;
  }
  .quick-action-btn {
    width: 50px;
    height: 50px;
  }
}