/*
Theme Name: Elegensoft - Theme
Theme URI: https://elegensoft.com
Author: Saiful Islam
Author URI: https://saifulislam.net
Description: High-precision, enterprise-grade WordPress theme for Elegensoft (Elegan Shop) software engineering, digital products, and AI solutions.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: elegensoft
Tags: software, technology, modern, dark-footer, responsive, mega-menu, custom-post-types
*/

/* ==========================================================================
   Elegensoft - Modern Stylesheet
   Brand Colors:
     - Primary (1st):   #FF6200
     - Secondary (2nd): #151432
   ========================================================================== */

:root {
  /* Brand Palette (Strictly Preserved) */
  --primary: #FF6200;
  --primary-hover: #e55700;
  --primary-subtle: #fff4ed;
  --primary-glow: rgba(255, 98, 0, 0.22);
  
  --secondary: #151432;
  --secondary-light: #23224e;
  --secondary-muted: #565575;
  --secondary-border: rgba(21, 20, 50, 0.08);
  
  --text-dark: #151432;
  --text-body: #3c3b58;
  --text-muted: #71708a;
  
  --bg-page: #ffffff;
  --bg-header: #ffffff;
  --star-gold: #f59e0b;
  --green-badge: #22c55e;
  
  /* Typography */
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: "Kalam", cursive;
  
  /* Apple Design System Spacing Scale (8-Point Grid Rhythm) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 80px;
  --space-6xl: 96px;

  /* Apple Nested Corner Radius Scale (Continuous Squircle Hierarchy) */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-arch: 34px;
  --radius-pill: 9999px;

  /* Apple Multi-Layer Ambient Occlusion Shadows */
  --shadow-ambient-xs: 0 1px 3px rgba(21, 20, 50, 0.04), 0 1px 2px rgba(21, 20, 50, 0.02);
  --shadow-ambient-sm: 0 4px 12px -2px rgba(21, 20, 50, 0.05), 0 1px 3px rgba(21, 20, 50, 0.03);
  --shadow-ambient-md: 0 10px 24px -4px rgba(21, 20, 50, 0.06), 0 2px 6px -1px rgba(21, 20, 50, 0.03);
  --shadow-ambient-lg: 0 18px 38px -6px rgba(21, 20, 50, 0.08), 0 4px 12px -2px rgba(21, 20, 50, 0.04);
  --shadow-hover-lift: 0 20px 40px -6px rgba(21, 20, 50, 0.09), 0 6px 16px -2px rgba(255, 98, 0, 0.07);
  --shadow-glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.9), 0 8px 24px -4px rgba(21, 20, 50, 0.05);

  /* Apple Focus Ring for Accessibility */
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px var(--primary);

  /* iOS / macOS Safe Area Inset Support */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Transitions & Shadows (Emil Kowalski Design Engineering Tokens) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-sm: 0 2px 8px rgba(21, 20, 50, 0.04);
  --shadow-dropdown: 0 22px 50px -10px rgba(21, 20, 50, 0.16), 0 0 0 1px rgba(21, 20, 50, 0.06);
  --shadow-card: var(--shadow-ambient-md);

  /* Floating Header Metrics */
  --header-offset-top: 18px;
  --header-height: 68px;
}

/* Base Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   Lenis Smooth Scroll (darkroomengineering/lenis)
   ========================================================================== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Apple Accessibility: Global Focus Visible Ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s var(--ease-smooth);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Universal Responsive Containers (Apple HIG 80pt / Centered System)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1280px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ==========================================================================
   Site Header & Navigation Bar (Apple Liquid Glass & Safe-Area)
   ========================================================================== */
.site-header {
  position: fixed;
  top: calc(var(--header-offset-top) + var(--safe-top));
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  pointer-events: none;
  padding: 0 calc(24px + var(--safe-right)) 0 calc(24px + var(--safe-left));
}

.nav-container {
  pointer-events: auto;
  max-width: 1240px;
  width: 100%;
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px 0 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(21, 20, 50, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass-specular);
  transition: 
    background-color 240ms var(--ease-smooth),
    box-shadow 240ms var(--ease-smooth),
    border-color 240ms var(--ease-smooth);
}

/* Brand Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s var(--ease-out);
}

.logo:hover {
  opacity: 0.94;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 200ms var(--ease-out);
}

.logo:hover .brand-logo-img {
  transform: scale(1.04);
}

.logo:active .brand-logo-img {
  transform: scale(0.97);
}

.brand-logo-footer {
  height: 52px;
  max-width: 280px;
}

.logo-mark {
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: transform 160ms var(--ease-out);
}

.logo:hover .logo-mark {
  transform: scale(1.05) rotate(-2deg);
}

.logo:active .logo-mark {
  transform: scale(0.96);
}

.logo-text {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: -1.2px;
  font-size: 28px;
}

.logo-elegensoft {
  color: var(--primary);
}

/* Desktop Navigation */
.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 36px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s var(--ease-smooth);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
}

/* ==========================================================================
   Smooth Submenu / Dropdown Styles & Animations
   ========================================================================== */
.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  padding: 8px 0;
  transition: color 0.2s var(--ease-smooth);
}

.dropdown-trigger:hover,
.has-dropdown:hover .dropdown-trigger {
  color: var(--primary);
}

.dropdown-trigger .chevron {
  transition: transform 0.3s var(--ease-smooth), stroke 0.2s var(--ease-smooth);
}

.has-dropdown:hover .dropdown-trigger .chevron {
  transform: rotate(180deg);
  stroke: var(--primary);
}

/* Desktop Dropdown Card (Scoped to Desktop Only) */
@media (min-width: 769px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform-origin: top center;
    transform: translateX(-50%) translateY(8px) scale(0.95);
    min-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(21, 20, 50, 0.08);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 
      opacity 180ms var(--ease-out),
      transform 180ms var(--ease-out),
      visibility 180ms;
    z-index: 120;
  }

  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 18px;
  }

  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(4px) scale(1);
  }
}

.dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--secondary);
  transition: 
    background-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.dropdown-item:active {
  transform: scale(0.98);
}

.item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f4f4f9;
  display: grid;
  place-items: center;
  color: var(--secondary);
  flex-shrink: 0;
  transition: 
    background-color 0.22s var(--ease-smooth),
    color 0.22s var(--ease-smooth),
    transform 0.22s var(--ease-smooth);
}

.item-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.item-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  transition: color 0.2s var(--ease-smooth);
}

.item-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 1px;
}

.dropdown-item:hover {
  background-color: var(--primary-subtle);
  transform: translateX(3px);
}

.dropdown-item:hover .item-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.dropdown-item:hover .item-text strong {
  color: var(--primary);
}

/* ==========================================================================
   Navigation Action Buttons
   ========================================================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  height: 48px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-icon {
  flex-shrink: 0;
}

.btn-outline {
  color: var(--primary);
  border: 1.8px solid var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-subtle);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  border: 1.8px solid var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-talk {
  border-radius: var(--radius-pill);
  padding: 0 28px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Mobile Toggle - Apple 44pt Touch-Target Compliant (46px) */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(21, 20, 50, 0.04);
  border: 1px solid rgba(21, 20, 50, 0.08);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  transition: 
    background-color 0.22s var(--ease-smooth),
    border-color 0.22s var(--ease-smooth),
    transform 0.18s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  background: rgba(255, 98, 0, 0.08);
  border-color: rgba(255, 98, 0, 0.25);
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle.active,
.menu-toggle.open {
  background: #fff4ed;
  border-color: rgba(255, 98, 0, 0.35);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  pointer-events: none;
}

.hamburger-line {
  display: block;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: 
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease;
  transform-origin: center;
}

/* Modern Asymmetrical Dynamic Lines */
.hamburger-line.line-1 {
  width: 20px;
}

.hamburger-line.line-2 {
  width: 14px;
}

.menu-toggle:hover .hamburger-line.line-2 {
  width: 20px;
}

/* Morph to Crisp Modern 'X' on Active/Open */
.menu-toggle.active .hamburger-line,
.menu-toggle.open .hamburger-line {
  background-color: var(--primary);
  width: 18px;
}

.menu-toggle.active .hamburger-line.line-1,
.menu-toggle.open .hamburger-line.line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .hamburger-line.line-2,
.menu-toggle.open .hamburger-line.line-2 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 35, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 
    opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.32s;
  z-index: 990;
}

.nav-backdrop.active,
.nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   Services Mega Menu Styles (Desktop & Mobile Optimized)
   ========================================================================== */
.has-dropdown.has-megamenu {
  position: static;
}

@media (min-width: 1025px) {
  .nav-container {
    position: relative;
  }

  .has-dropdown.has-megamenu {
    position: static;
  }

  .has-dropdown.has-megamenu .dropdown-menu.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 1000px;
    max-width: 1240px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.985);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(21, 20, 50, 0.08);
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 28px 70px -15px rgba(21, 20, 50, 0.16), 0 0 0 1px rgba(21, 20, 50, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.99);
    transform-origin: top center;
    transition: 
      opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 220ms;
    z-index: 1200;
  }

  /* Hover bridge: bridges the 14px vertical gap ONLY when mega menu is open */
  .has-dropdown.has-megamenu .dropdown-menu.mega-menu::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    pointer-events: none;
  }

  .has-dropdown.has-megamenu.is-open .dropdown-menu.mega-menu::before,
  .has-dropdown.has-megamenu:hover .dropdown-menu.mega-menu::before {
    pointer-events: auto;
  }

  /* Open on hover, active class (grace period), and keyboard focus-within */
  .has-dropdown.has-megamenu:hover .dropdown-menu.mega-menu,
  .has-dropdown.has-megamenu.is-open .dropdown-menu.mega-menu,
  .has-dropdown.has-megamenu:focus-within .dropdown-menu.mega-menu,
  .has-dropdown.has-megamenu.active .dropdown-menu.mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mega-menu-wrapper {
    display: block;
    width: 100%;
  }

  /* 3 items per line / 3 columns */
  .mega-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 18px;
    width: 100%;
  }

  /* Premium Apple-styled Service Item */
  .mega-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(248, 249, 252, 0.6);
    border: 1px solid rgba(21, 20, 50, 0.05);
    transition: 
      background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
      border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mega-item:hover {
    background: #ffffff;
    border-color: rgba(255, 98, 0, 0.24);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(21, 20, 50, 0.08), 0 2px 6px -1px rgba(255, 98, 0, 0.04);
  }

  .mega-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid rgba(21, 20, 50, 0.08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 6px rgba(21, 20, 50, 0.03);
    transition: 
      background-color 180ms ease,
      color 180ms ease,
      transform 180ms ease,
      border-color 180ms ease;
  }

  .mega-item:hover .mega-item-icon {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.06);
    box-shadow: 0 4px 12px var(--primary-glow, rgba(255, 98, 0, 0.3));
  }

  .mega-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }

  .mega-item-title {
    font-size: 13.8px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
    transition: color 180ms ease;
    letter-spacing: -0.2px;
  }

  .mega-item:hover .mega-item-title {
    color: var(--primary);
  }

  .mega-item-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
  }
}


/* Mobile & Tablet Mega Menu Styles */
@media (max-width: 1024px) {
  .has-dropdown.has-megamenu {
    width: 100%;
  }

  .has-dropdown.has-megamenu .dropdown-menu.mega-menu {
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    background: #f8f8fc !important;
    border-radius: 16px !important;
    border: 1px solid rgba(21, 20, 50, 0.08) !important;
    padding: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    position: static !important;
    transform: none !important;
  }

  .has-dropdown.has-megamenu.active .dropdown-menu.mega-menu,
  .has-dropdown.has-megamenu.mobile-open .dropdown-menu.mega-menu {
    display: block !important;
    animation: accordionSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mega-menu-wrapper {
    display: block;
    width: 100%;
  }

  .mega-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  @media (max-width: 680px) {
    .mega-services-grid {
      grid-template-columns: 1fr;
      gap: 8px;
    }
  }

  .mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(21, 20, 50, 0.06);
    text-decoration: none;
    transition: background-color 0.18s ease;
  }

  .mega-item:active {
    background: var(--primary-subtle);
  }

  .mega-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f4f4f9;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mega-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
  }

  .mega-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
  }

  .mega-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
  }
}

/* ==========================================================================
   Site Footer (100% Exact Matching Design)
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--secondary);
  color: #ffffff;
  padding: 95px 24px 38px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  max-width: 1360px;
  width: calc(100% - 64px);
  margin: 0 auto;
}

.footer-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 50px;
}

.footer-cta-title {
  font-family: var(--font-base);
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.footer-cta-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: 
    transform 0.28s var(--ease-smooth),
    background-color 0.28s var(--ease-smooth),
    box-shadow 0.28s var(--ease-smooth);
}

.footer-cta-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(255, 98, 0, 0.45);
}

.footer-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 48px;
}

.logo-solutions-footer {
  color: #ffffff;
  margin-left: 1px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-circle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: 
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.social-circle-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.social-circle-btn svg.icon-x {
  width: 20px;
  height: 20px;
}

.social-circle-btn:hover {
  background-color: var(--primary);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px var(--primary-glow);
}

.social-circle-btn:active {
  transform: translateY(0) scale(0.96);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.col-about .company-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
  max-width: 380px;
}

.col-about .company-desc strong {
  color: #ffffff;
  font-weight: 600;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-entry a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s var(--ease-smooth);
}

.contact-entry a:hover {
  color: var(--primary);
}

.footer-col .col-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.footer-link-list li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.link-external svg {
  opacity: 0.75;
  transition: transform 0.2s var(--ease-smooth), opacity 0.2s var(--ease-smooth);
}

.link-external:hover svg {
  opacity: 1;
  transform: translate(2px, -2px);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.tagline-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
}

/* ==========================================================================
   Floating Scroll To Top Button with Circular Progress Ring & Tooltip
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: calc(32px + var(--safe-bottom));
  right: calc(32px + var(--safe-right));
  width: 52px;
  height: 52px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(21, 20, 50, 0.08);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glass-specular), 0 10px 24px -4px rgba(21, 20, 50, 0.1);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: 
    opacity 300ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 300ms,
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 250ms ease,
    color 200ms ease;
}

.scroll-to-top-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(255, 98, 0, 0.35);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 
    0 16px 32px -4px rgba(255, 98, 0, 0.28),
    0 6px 16px -2px rgba(21, 20, 50, 0.08);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(0.94);
}

/* Circular SVG Progress Ring */
.scroll-progress-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);
  border-radius: 50%;
}

.scroll-progress-track {
  stroke: rgba(21, 20, 50, 0.07);
  transition: stroke 200ms ease;
}

.scroll-progress-bar {
  stroke: var(--primary);
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 80ms linear;
}

.scroll-to-top-btn:hover .scroll-progress-track {
  stroke: rgba(255, 98, 0, 0.15);
}

/* Icon Wrap and Animations */
.scroll-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  z-index: 2;
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.summit-line {
  transition: transform 220ms ease, opacity 220ms ease;
}

.arrow-stem,
.arrow-head {
  transition: transform 220ms ease;
}

/* Micro-interaction on hover: arrow leaps subtly towards summit line */
.scroll-to-top-btn:hover .scroll-icon-wrap {
  transform: translateY(-2px);
}

.scroll-to-top-btn:hover .arrow-head {
  transform: translateY(-1px);
}

/* Sleek Floating Tooltip on Desktop */
.scroll-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--secondary);
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(21, 20, 50, 0.18);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 180ms ease,
    visibility 180ms,
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: transparent transparent transparent var(--secondary);
}

.scroll-to-top-btn:hover .scroll-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   Design Engineering Polish: Motion & Touch Hardening
   ========================================================================== */

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .brands-marquee-track,
  .testimonials-track {
    animation: none !important;
  }

  .video-modal-container,
  .dropdown-menu,
  .scroll-to-top-btn,
  .hero-cta,
  .btn,
  .btn-dev-schedule,
  .ai-metric-item,
  .ai-dev-visual-img {
    transform: none !important;
  }
}

/* Touch Device False-Positive Hover Prevention */
@media (hover: none) and (pointer: coarse) {
  .brand-item:hover,
  .case-tab-btn:hover,
  .btn-outline:hover,
  .btn-primary:hover,
  .hero-cta:hover,
  .dropdown-item:hover,
  .social-circle-btn:hover,
  .btn-dev-schedule:hover,
  .ai-metric-item:hover,
  .ai-dev-visual-card:hover .ai-dev-visual-img {
    transform: none;
    box-shadow: inherit;
  }
}
/* ==========================================================================
   Universal Header & Navigation Responsive System (Apple HIG Compliant)
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-offset-top: 14px;
    --header-height: 64px;
  }

  .site-header {
    top: var(--header-offset-top);
    padding: 0 calc(20px + var(--safe-right)) 0 calc(20px + var(--safe-left));
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
    height: var(--header-height);
    padding: 0 16px 0 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }

  .menu-toggle {
    display: flex !important;
  }

  /* Floating Apple-Style Mobile Navigation Sheet */
  .navigation {
    display: none;
    position: fixed;
    top: calc(var(--header-offset-top) + var(--header-height) + 10px + var(--safe-top));
    left: calc(14px + var(--safe-left));
    right: calc(14px + var(--safe-right));
    width: auto;
    max-height: calc(100svh - var(--header-offset-top) - var(--header-height) - 24px - var(--safe-top) - var(--safe-bottom));
    max-height: calc(100vh - var(--header-offset-top) - var(--header-height) - 24px - var(--safe-top) - var(--safe-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(21, 20, 50, 0.08);
    border-radius: 24px;
    box-shadow: 0 28px 64px -12px rgba(21, 20, 50, 0.22), 0 0 0 1px rgba(21, 20, 50, 0.04) !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 18px 16px 20px;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }

  .navigation.open {
    display: flex !important;
    animation: mobileMenuIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .navigation.closing {
    display: flex !important;
    animation: mobileMenuOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    border-bottom: none;
  }

  .nav-item,
  .dropdown-trigger {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: 
      background-color 0.18s var(--ease-out),
      color 0.18s var(--ease-out),
      transform 0.18s var(--ease-out);
  }

  .nav-item:hover,
  .nav-item:active,
  .dropdown-trigger:hover,
  .dropdown-trigger:active {
    background: #f8f8fc;
    color: var(--primary);
    transform: translateX(2px);
  }

  .has-dropdown {
    width: 100%;
    position: static;
  }

  .has-dropdown.mobile-open .dropdown-trigger,
  .has-dropdown.active .dropdown-trigger {
    background: #fff4ed;
    color: var(--primary);
  }

  .dropdown-trigger .chevron {
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
    stroke: var(--secondary-muted);
  }

  .has-dropdown.mobile-open .dropdown-trigger .chevron,
  .has-dropdown.active .dropdown-trigger .chevron {
    transform: rotate(180deg);
    stroke: var(--primary);
  }

  /* Dropdown Menu on Mobile / Tablet */
  .dropdown-menu {
    display: none;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8f8fc;
    border-radius: 14px;
    border: 1px solid rgba(21, 20, 50, 0.06);
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
  }

  .has-dropdown.mobile-open .dropdown-menu,
  .has-dropdown.active .dropdown-menu {
    display: block !important;
    padding: 8px !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    animation: accordionSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .dropdown-inner {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .dropdown-item {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(21, 20, 50, 0.05) !important;
    text-decoration: none !important;
    transition: background-color 0.18s ease, transform 0.18s ease !important;
  }

  .dropdown-item:active {
    background: #fff4ed !important;
    border-color: rgba(255, 98, 0, 0.25) !important;
    transform: scale(0.98) !important;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid rgba(21, 20, 50, 0.06);
  }

  .nav-actions .btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 8px 20px var(--primary-glow);
  }

  /* Universal Responsive Footer on Tablet */
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
  }

  .footer-container {
    width: calc(100% - 40px);
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-offset-top: 12px;
    --header-height: 60px;
  }

  .site-header {
    top: var(--header-offset-top);
    padding: 0 calc(16px + var(--safe-right)) 0 calc(16px + var(--safe-left));
  }

  .nav-container {
    height: var(--header-height);
    padding: 0 14px 0 18px;
  }

  .brand-logo-img {
    height: 32px;
  }

  .footer-cta-title {
    font-size: clamp(34px, 8.5vw, 54px) !important;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
  }

  .footer-cta-btn {
    width: 60px !important;
    height: 60px !important;
  }

  .footer-brand-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .brand-logo-footer {
    height: 42px;
    max-width: 220px;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobileMenuOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
}

@keyframes accordionSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Cross-Page Smooth Transitions (Zero Flash, Zero Layout Shift)
   ========================================================================== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease-out);
}

body {
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

body.page-exit {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* ==========================================================================
   Page Templates, Article & Legal Content Styling (Elegensoft Design System)
   ========================================================================== */

/* Universal Default Page & Single Post Wrappers */
.default-page-wrapper,
.single-post-wrapper,
.blog-index-wrapper {
  position: relative;
  width: 100%;
  padding: calc(var(--header-height) + 56px) 0 100px;
  min-height: 75vh;
  background-color: var(--bg-page);
  overflow-x: hidden;
}

/* Ambient Radial Light Glow */
.default-page-ambient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 480px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 98, 0, 0.07) 0%, rgba(21, 20, 50, 0.02) 55%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Article Container & Header */
.entry-article {
  position: relative;
  z-index: 1;
}

.entry-header {
  margin-bottom: 44px;
  text-align: center;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-subtle);
  border: 1px solid rgba(255, 98, 0, 0.2);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.entry-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

.entry-title {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.entry-header-divider {
  width: 56px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-pill);
  margin: 24px auto 0;
}

/* Comprehensive Entry Content Typography */
.entry-content {
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.entry-content h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 2.75rem 0 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.entry-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--secondary-border);
}

.entry-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.entry-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.entry-content h5,
.entry-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
  color: var(--text-body);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: var(--text-body);
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.625rem;
  color: var(--text-body);
  line-height: 1.75;
}

.entry-content strong,
.entry-content b {
  color: var(--text-dark);
  font-weight: 600;
}

.entry-content em,
.entry-content i {
  font-style: italic;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 150ms ease;
}

.entry-content a:hover {
  color: var(--primary-hover);
}

.entry-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--primary-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.75;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--secondary-border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.entry-content th,
.entry-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--secondary-border);
  font-size: 0.9375rem;
}

.entry-content th {
  background: #f8fafc;
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.entry-content td {
  color: var(--text-body);
  line-height: 1.65;
}

.entry-content tr:last-child td {
  border-bottom: none;
}

.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid #e2e8f0;
}

.entry-content pre {
  background: var(--secondary);
  color: #f8fafc;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: 1em;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--secondary-border);
  margin: 2.5rem 0;
}

/* Page Navigation Links inside Posts/Pages */
.page-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--secondary-border);
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-links a {
  padding: 4px 12px;
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius-xs);
  color: var(--text-body);
  text-decoration: none;
  transition: all 150ms ease;
}

.page-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Single Post Specific Metadata & Details */
.entry-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.entry-meta .meta-separator {
  color: var(--secondary-muted);
  opacity: 0.4;
}

.entry-meta .author-name {
  color: var(--text-muted);
  font-weight: 500;
}

.entry-thumbnail {
  margin-bottom: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--secondary-border);
  box-shadow: var(--shadow-ambient-md);
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--secondary-border);
}

.entry-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.entry-categories {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
}

.entry-categories .footer-label {
  color: var(--text-muted);
  margin-right: 6px;
  font-weight: 500;
}

.back-home-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 150ms ease;
}

.back-home-link:hover {
  color: var(--primary-hover);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--secondary-border);
}

.entry-tags .footer-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-subtle);
  border: 1px solid rgba(255, 98, 0, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.entry-tag-pill:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Blog Index & Archive Styling */
.page-header {
  margin-bottom: 60px;
  text-align: center;
}

.page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

.archive-description {
  color: var(--text-muted);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-ambient-sm);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover-lift);
  border-color: rgba(255, 98, 0, 0.3);
}

.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
  display: block;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.04);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 150ms ease;
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 150ms ease;
}

.blog-readmore:hover {
  color: var(--primary-hover);
  gap: 12px;
}

.pagination-wrapper {
  margin-top: 60px;
  text-align: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--secondary-border);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  margin: 0 4px;
  transition: all 150ms ease;
}

.pagination-wrapper .page-numbers.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.pagination-wrapper .page-numbers:hover:not(.current) {
  border-color: var(--primary);
  color: var(--primary);
}

.no-posts {
  text-align: center;
  padding: 60px 0;
}

.no-posts h2 {
  color: var(--text-dark);
  margin-bottom: 16px;
  font-size: 1.8rem;
  font-weight: 700;
}

.no-posts p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* 404 Error Page Styling */
.error-404-wrapper {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 120px;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-page);
}

.container-404 {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  border: 1px solid rgba(255, 98, 0, 0.25);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.error-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.error-title {
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-dark) 35%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.error-desc {
  color: var(--text-body);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-404-home {
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-404-contact {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  background: #ffffff;
  border: 1px solid var(--secondary-border);
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 150ms ease;
  box-shadow: var(--shadow-sm);
}

.btn-404-contact:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Floating WhatsApp Chat Action Capsule (Bottom-Left)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(37, 211, 102, 0.22);
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px) scale(0.85);
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), 
              transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms ease,
              border-color 300ms ease;
}

.floating-whatsapp-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(37, 211, 102, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 32px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp-btn:active {
  transform: translateY(0) scale(0.97);
}

.whatsapp-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.45);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-whatsapp-btn:hover .whatsapp-icon-wrap {
  transform: rotate(-12deg) scale(1.08);
}

.whatsapp-pulse-ring {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  z-index: 1;
  animation: whatsappPulseRing 2.4s infinite cubic-bezier(0.25, 0, 0, 1);
  pointer-events: none;
}

@keyframes whatsappPulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.whatsapp-chat-label {
  font-family: var(--font-base, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-right: 4px;
  transition: color 200ms ease;
}

.floating-whatsapp-btn:hover .whatsapp-chat-label {
  color: #4ade80;
}

@media (max-width: 640px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    left: 20px;
    padding: 0;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
  .whatsapp-icon-wrap {
    width: 48px;
    height: 48px;
  }
  .whatsapp-pulse-ring {
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
  }
  .whatsapp-chat-label {
    display: none;
  }
}
