/* ─────────────────────────────────────────────────────────────────────────────
   Peace Infinite — Main Stylesheet
   Navy Mirage Glassmorphism Design System
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Google Fonts (loaded via HTML \u003clink\u003e for better PageSpeed) ────────────── */
/* Fonts: Syne (headings), Inter (body) — loaded with preload + swap in header.php */

/* ─── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  /* Navy Mirage Palette */
  --navy-dark: #0d1520;
  --navy-mid: #141E30;
  --navy-light: #1e2d48;
  --navy-accent: #3F5E96;
  --navy-bright: #5b7ec7;
  --navy-glow: #6b8fd9;

  /* Accent Colors */
  --accent-cyan: #00d4ff;
  --accent-blue: #4f8ef7;
  --accent-white: rgba(255, 255, 255, 0.9);

  /* Glass */
  --glass-bg: rgba(63, 94, 150, 0.08);
  --glass-bg-2: rgba(63, 94, 150, 0.15);
  --glass-bg-3: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-2: rgba(63, 94, 150, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-mid: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--navy-dark);
  color: var(--accent-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── Background Mesh ──────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(63, 94, 150, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, var(--navy-dark) 0%, #090e18 100%);
  z-index: -1;
  pointer-events: none;
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-accent);
  border-radius: 3px;
}

/* ─── Selection ────────────────────────────────────────────────────────────── */
::selection {
  background: var(--navy-accent);
  color: #fff;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--navy-glow) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

/* ─── Container ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section ──────────────────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Badge ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-glow);
  margin-bottom: 20px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ─── Glass Card ───────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--glass-border-2);
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-lg), 0 0 40px rgba(63, 94, 150, 0.2);
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--trans-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--trans-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  color: #fff;
  box-shadow: 0 4px 20px rgba(63, 94, 150, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(63, 94, 150, 0.7);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--glass-border-2);
  color: var(--accent-white);
}

.btn-outline:hover {
  border-color: var(--navy-bright);
  background: var(--glass-bg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-glow);
  padding: 10px 0;
  gap: 6px;
}

.btn-ghost:hover {
  gap: 12px;
}

.btn-ghost svg {
  transition: transform var(--trans-fast);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

/* ─── NAVIGATION ───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--trans-mid);
}

.navbar.scrolled {
  background: rgba(13, 21, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo .logo-text {
  letter-spacing: -0.01em;
}

.nav-logo .logo-text span {
  color: var(--navy-glow);
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.nav-dropdown>button {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--trans-fast);
  background: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover,
.nav-dropdown>button:hover,
.nav-links a.active {
  color: #fff;
  background: var(--glass-bg);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(13, 21, 32, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: var(--trans-fast);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--trans-fast);
}

.dropdown-menu a:hover {
  background: var(--glass-bg-2);
  color: #fff;
  padding-left: 18px;
}

.dropdown-menu .drop-icon {
  width: 32px;
  height: 32px;
  background: var(--glass-bg-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy-glow);
}

/* ─── MEGA MENU ─────────────────────────────────────────────────────────────── */
.nav-mega {
  position: static;
}

.mega-menu {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(860px, 96vw);
  background: rgba(10, 16, 28, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
  overflow: hidden;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Left tab panel */
.mega-tabs {
  width: 220px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid var(--glass-border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.mega-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--trans-fast);
  text-align: left;
  width: 100%;
  border-left: 3px solid transparent;
}

.mega-tab svg {
  margin-left: auto;
  opacity: 0;
  transition: var(--trans-fast);
}

.mega-tab:hover,
.mega-tab.active {
  color: #fff;
  background: rgba(63, 94, 150, 0.12);
  border-left-color: var(--navy-bright);
}

.mega-tab.active svg {
  opacity: 1;
}

.mega-tab-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mega-footer {
  margin-top: auto;
  padding: 12px 18px;
  border-top: 1px solid var(--glass-border);
}

.mega-footer a {
  font-size: 0.78rem;
  color: var(--navy-glow);
  display: block;
  transition: var(--trans-fast);
}

.mega-footer a:hover {
  color: var(--accent-cyan);
}

/* Right sub-category panel */
.mega-panels {
  flex: 1;
  position: relative;
  padding: 20px 24px;
  min-height: 280px;
}

.mega-panel {
  display: none;
  flex-direction: column;
  height: 100%;
}

.mega-panel.active {
  display: flex;
}

.mega-panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  flex: 1;
}

.mega-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--trans-fast);
  text-decoration: none;
}

.mega-sub-item:hover {
  background: var(--glass-bg-2);
  color: #fff;
  padding-left: 14px;
}

.mega-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy-accent);
  flex-shrink: 0;
  transition: var(--trans-fast);
}

.mega-sub-item:hover .mega-sub-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.mega-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-glow);
  transition: var(--trans-fast);
  width: fit-content;
}

.mega-panel-cta:hover {
  background: var(--glass-bg-2);
  color: #fff;
  border-color: var(--navy-bright);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--trans-fast);
}

.lang-toggle:hover {
  border-color: var(--glass-border-2);
  color: #fff;
}

.lang-toggle img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

/* Mobile Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: var(--trans-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 14, 24, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--trans-mid);
}

.mobile-menu.open {
  transform: translateX(0);
  display: flex;
}

.mobile-menu a,
.mobile-menu .m-drop-trigger {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: var(--trans-fast);
  display: block;
}

.mobile-menu a:hover {
  background: var(--glass-bg);
  color: #fff;
}

.mobile-sub a {
  padding-left: 32px;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* ─── HERO SECTION ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
  overflow: clip;
  /* clips blobs but allows children with overflow */
}

/* Animated blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(63, 94, 150, 0.35) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-blob 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: float-blob 10s ease-in-out infinite reverse;
}

@keyframes float-blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--navy-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding-bottom: 32px;
  /* space for card-2 that extends below */
}

.hero-image-main {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Floating glass cards on hero */
.hero-float-card {
  position: absolute;
  background: rgba(20, 30, 48, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--glass-shadow);
  animation: float-card 4s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: -20px;
  left: -30px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: -20px;
  right: -30px;
  animation-delay: 2s;
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-card-text .label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.float-card-text .value {
  font-size: 0.9rem;
  font-weight: 700;
}

/* ─── HERO DASHBOARD MOCKUP ─────────────────────────────────────────────────── */
.hero-dashboard-mockup {
  width: 100%;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
}

.hd-browser {
  background: rgba(15, 26, 45, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(63, 94, 150, 0.3);
  border-radius: 16px;
  overflow: hidden;
}

.hd-browser-bar {
  background: rgba(7, 12, 20, 0.8);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(63, 94, 150, 0.2);
}

.hd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hd-address-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-left: 8px;
}

.hd-browser-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Stat cards row */
.hd-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hd-stat-card {
  background: rgba(63, 94, 150, 0.1);
  border: 1px solid rgba(63, 94, 150, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
}

.hd-stat-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.hd-stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-head);
  line-height: 1;
}

.hd-stat-badge {
  font-size: 0.62rem;
  font-weight: 600;
  margin-top: 3px;
}

/* Bar chart */
.hd-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
  padding: 0 4px;
  background: rgba(63, 94, 150, 0.05);
  border-radius: 8px;
}

.hd-bar {
  flex: 1;
  background: linear-gradient(180deg, #4f8ef7 0%, rgba(63, 94, 150, 0.3) 100%);
  border-radius: 3px 3px 0 0;
  animation: bar-grow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: bottom;
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Mini table */
.hd-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hd-td {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.hd-td-main {
  flex: 1;
  font-weight: 500;
}

/* ─── SERVICES SECTION ─────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-accent), var(--accent-cyan));
  transform: scaleX(0);
  transition: var(--trans-mid);
  transform-origin: left;
}

.service-card:hover {
  border-color: var(--glass-border-2);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(63, 94, 150, 0.2);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  position: relative;
  overflow: hidden;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-glow);
  transition: var(--trans-fast);
}

.service-card:hover .service-arrow {
  gap: 10px;
}

/* ─── PORTFOLIO SECTION ────────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: var(--trans-mid);
  position: relative;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-lg);
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 14, 24, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--trans-mid);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-glow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.portfolio-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.portfolio-tags-wrap {
  margin-top: auto;
  padding-top: 10px;
}

.portfolio-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 4px 4px 0 0;
}

/* ─── PRICING SECTION ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  /* all cards same height */
}

.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
  /* Flex column — pushes CTA to bottom */
  display: flex;
  flex-direction: column;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--navy-accent), transparent);
}

/* Popular card: highlight via border glow, NOT scale (scale breaks equal-height) */
.pricing-card.popular {
  border-color: var(--navy-accent);
  border-width: 2px;
  background: var(--glass-bg-2);
  box-shadow: 0 0 60px rgba(63, 94, 150, 0.35), 0 20px 60px rgba(0, 0, 0, 0.4);
  /* Extra top padding to accommodate the badge */
  padding-top: 52px;
}

.pricing-card.popular::before {
  background: linear-gradient(90deg, transparent, var(--navy-bright), transparent);
  height: 2px;
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.pricing-price {
  margin: 24px 0;
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
}

.pricing-amount {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
}

.pricing-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.pricing-features {
  margin-bottom: 24px;
  flex: 1;
  /* fills remaining space so CTA aligns at bottom */
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F5E96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* ─── TESTIMONIALS ─────────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #f59e0b;
  font-size: 1rem;
}

.testimonial-content {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy-accent);
}

.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--navy-accent);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-pos {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── BLOG SECTION ─────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans-mid);
  min-width: 0;
  word-break: break-word;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow);
  border-color: var(--glass-border-2);
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.4;
}

.blog-body {
  padding: 24px;
}

.blog-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.blog-meta svg {
  width: 14px;
  height: 14px;
}

/* ─── FAQ SECTION ──────────────────────────────────────────────────────────── */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--trans-fast);
  background: var(--glass-bg-3);
}

.faq-item.open {
  border-color: var(--glass-border-2);
  background: var(--glass-bg);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-size: 0.975rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  gap: 16px;
  transition: var(--trans-fast);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.faq-trigger:hover {
  color: #fff;
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--glass-bg-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--trans-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--navy-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ─── CTA SECTION ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(63, 94, 150, 0.3) 0%, rgba(20, 30, 48, 0.8) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  background: rgba(9, 14, 24, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: 72px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: var(--trans-fast);
}

.social-link:hover {
  border-color: var(--navy-accent);
  color: #fff;
  background: var(--glass-bg-2);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--trans-fast);
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── WHATSAPP BUTTON ──────────────────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25d366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--trans-fast);
  animation: wa-pulse 3s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes wa-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8), 0 0 0 8px rgba(37, 211, 102, 0.1);
  }
}

/* ─── CHATBOT ──────────────────────────────────────────────────────────────── */
.chatbot-wrap {
  position: fixed;
  bottom: 100px;
  right: 32px;
  z-index: 900;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(63, 94, 150, 0.6);
  transition: var(--trans-fast);
  cursor: pointer;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-toggle svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.chatbot-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  background: rgba(13, 21, 32, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow-lg);
  display: none;
  flex-direction: column;
  max-height: 480px;
}

.chatbot-window.open {
  display: flex;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-header {
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-header-text .name {
  font-weight: 700;
  font-size: 0.9rem;
}

.chatbot-header-text .status {
  font-size: 0.72rem;
  opacity: 0.7;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px;
  word-wrap: break-word;
}

.chat-msg.bot {
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  align-self: flex-start;
  border-radius: 4px 14px 14px 14px;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}

.chatbot-suggestions {
  padding: 8px 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-suggestion {
  font-size: 0.75rem;
  padding: 5px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-full);
  color: var(--navy-glow);
  cursor: pointer;
  transition: var(--trans-fast);
  font-family: var(--font-body);
}

.chat-suggestion:hover {
  background: var(--glass-bg-2);
  color: #fff;
}

.chatbot-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
}

.chatbot-input {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
  transition: var(--trans-fast);
}

.chatbot-input:focus {
  border-color: var(--navy-accent);
}

.chatbot-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chatbot-send {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--trans-fast);
  cursor: pointer;
}

.chatbot-send:hover {
  transform: scale(1.1);
}

.chatbot-send svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ─── ANIMATIONS ───────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Reset popular card top padding on mobile since badge position adjusts */
  .pricing-card.popular {
    padding-top: 52px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .lang-toggle {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    gap: 20px;
  }

  .section {
    padding: 72px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-inner {
    padding: 48px 24px;
  }

  .whatsapp-btn {
    bottom: 24px;
    right: 20px;
  }

  .chatbot-wrap {
    bottom: 92px;
    right: 20px;
  }

  .chatbot-window {
    width: min(300px, calc(100vw - 48px));
    right: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .btn-lg {
    padding: 14px 28px;
  }
}

/* ─── BLOG GRID ─────────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans-mid);
  color: inherit;
  min-width: 0;
  /* critical: prevents card from overflowing grid cell */
  word-break: break-word;
}

.blog-card:hover {
  border-color: var(--glass-border-2);
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-lg);
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail {
  transform: scale(1.04);
}

.blog-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--glass-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.blog-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: auto;
}

.blog-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── PORTFOLIO GRID ────────────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.portfolio-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 20, 40, 0.95) 0%, rgba(10, 20, 40, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  pointer-events: all;
}

.portfolio-overlay .portfolio-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-glow);
  margin-bottom: 6px;
  background: none;
  padding: 0;
  border-radius: 0;
}

.portfolio-overlay .portfolio-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-head);
  line-height: 1.3;
}

.portfolio-info {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  background: rgba(63, 94, 150, 0.15);
  color: var(--navy-glow);
}

.portfolio-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  font-family: var(--font-head);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-tags-wrap {
  margin-top: auto;
  padding-top: 10px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ─── SOCIAL LINKS (Contact page) ───────────────────────────────────────────── */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--trans-fast);
}

.social-link:hover {
  background: var(--glass-bg-2);
  border-color: var(--glass-border-2);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── STICKY MOBILE CTA BAR ───────────────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(9, 14, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(63, 94, 150, 0.2);
  padding: 10px 16px;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta-bar.visible {
  transform: translateY(0);
}

.mcta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.mcta-wa {
  background: linear-gradient(135deg, #25d366, #128C7E);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
}

.mcta-wa:hover {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

.mcta-cta {
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  color: #fff;
  box-shadow: 0 2px 12px rgba(63, 94, 150, 0.4);
}

.mcta-cta:hover {
  box-shadow: 0 4px 20px rgba(63, 94, 150, 0.6);
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
  }

  /* Adjust WhatsApp desktop floating button position on mobile */
  .whatsapp-btn {
    display: none;
    /* hide on mobile since we have sticky CTA bar */
  }

  /* Add bottom padding to body so footer content isn't hidden behind sticky bar */
  body {
    padding-bottom: 70px;
  }
}

/* ─── LEAD MAGNET v2 — PREMIUM POPUP ──────────────────────────────────────── */
.lm2-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lm2FadeIn 0.35s ease-out;
}

@keyframes lm2FadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Main popup card */
.lm2-popup {
  position: relative;
  max-width: 440px;
  width: 100%;
  padding: 36px 30px 28px;
  border-radius: 24px;
  background: linear-gradient(168deg, #141e30 0%, #0d1520 100%);
  border: 1px solid rgba(91, 126, 199, 0.2);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 80px -20px rgba(0, 212, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  z-index: 1;
  overflow: hidden;
  animation: lm2SlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lm2SlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Subtle top accent line */
.lm2-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--navy-bright), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

/* Close button */
.lm2-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.lm2-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Urgency badge */
.lm2-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.85);
  margin-bottom: 18px;
}

.lm2-badge-dot {
  width: 5px;
  height: 5px;
  background: #f59e0b;
  border-radius: 50%;
  animation: lm2Blink 2s ease-in-out infinite;
}

@keyframes lm2Blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Icon wrapper */
.lm2-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lm2Float 3s ease-in-out infinite;
}

@keyframes lm2Float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.lm2-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  z-index: 1;
  position: relative;
}

.lm2-icon-emoji {
  font-size: 2.5rem;
  z-index: 1;
  position: relative;
  line-height: 1;
}

.lm2-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.12);
}

.lm2-icon-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.06);
}

/* Title */
.lm2-title {
  font-size: 1.35rem;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #fff;
}

/* Desc */
.lm2-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits */
.lm2-benefits {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.lm2-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.lm2-benefit:hover {
  background: rgba(63, 94, 150, 0.1);
  border-color: rgba(63, 94, 150, 0.2);
}

.lm2-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* CTA button */
.lm2-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-accent), var(--navy-bright));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(63, 94, 150, 0.4);
}

.lm2-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(63, 94, 150, 0.55);
}

.lm2-cta-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  animation: lm2Shimmer 3s ease-in-out infinite;
}

.lm2-cta-text {
  position: relative;
  z-index: 1;
}

@keyframes lm2Shimmer {
  0% {
    left: -100%;
  }

  40% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Remaining counter */
.lm2-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.lm2-counter strong {
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 800;
}

.lm2-counter-dot {
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
  animation: lm2Blink 2s ease-in-out infinite;
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .lm2-popup {
    padding: 28px 18px 22px;
    border-radius: 20px;
  }

  .lm2-title {
    font-size: 1.15rem;
  }

  .lm2-desc {
    font-size: 0.8rem;
  }

  .lm2-cta {
    font-size: 0.85rem;
    padding: 13px 18px;
  }

  .lm2-icon-wrap {
    width: 60px;
    height: 60px;
  }

  .lm2-icon-img {
    width: 40px;
    height: 40px;
  }

  .lm2-icon-emoji {
    font-size: 2rem;
  }
}