/* ==========================================================================
   JOHN.CLOUD — DESIGN SYSTEM (NEUMORPHISM + GLASSMORPHISM HYBRID)
   Paleta Oficiala: "Calm green with a hint of blue"
   Tipografie: Instrument Serif + Plus Jakarta Sans + JetBrains Mono
   Aesthetic: Soft UI Glass (Tactile Depth + Frosted Refraction + Tesla Rigor)
   ========================================================================== */


/* --- DARK THEME (NEUMORPHIC OBSIDIAN GLASS) --- */
:root,
html.dark {
  --color-bg: #011F2B;         /* Obsidian Midnight Teal */
  --color-surface: #163638;    /* Deep Pine Slate */
  --color-accent: #B0D49B;     /* Mellow Sage Green */
  --color-glow: #C2E2B8;       /* Subtle, Refined Mint-Sage */
  --color-text: #EEFAED;       /* Crisp Pale Mint */
  --color-text-muted: #8FA698;
  --color-text-subtle: #4D6964;
  --grid-line: rgba(176, 212, 155, 0.025);
  --logo-filter: invert(1);

  /* Colour tokens — override to re-skin the effect:
     --ink    main text colour (defaults to currentColor)
     --ink-2  primary accent   --ink-3  secondary accent */
  --ink: currentColor;
  --ink-2: #FF4FD8;
  --ink-3: #4FF8FF;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(22, 54, 56, 0.42);
  --glass-bg-hover: rgba(22, 54, 56, 0.65);
  --glass-border: rgba(176, 212, 155, 0.12);
  --glass-rim: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(176, 212, 155, 0.06);

  /* Neumorphic Dual Shadows (Dark Soft Extrusion) */
  --neuro-shadow-sm: 4px 4px 12px rgba(0, 12, 18, 0.6), -3px -3px 10px rgba(22, 54, 56, 0.25);
  --neuro-shadow-md: 10px 10px 28px rgba(0, 10, 15, 0.65), -7px -7px 22px rgba(22, 54, 56, 0.22);
  --neuro-shadow-lg: 16px 16px 40px rgba(0, 8, 12, 0.75), -10px -10px 30px rgba(22, 54, 56, 0.2);
  --neuro-inset: inset 3px 3px 8px rgba(0, 8, 12, 0.6), inset -2px -2px 6px rgba(22, 54, 56, 0.35);
  --neuro-pill-shadow: 6px 6px 16px rgba(0, 12, 18, 0.5), -4px -4px 12px rgba(22, 54, 56, 0.3);

  /* High-Contrast Button Tokens (Dark Mode) */
  --btn-primary-bg: #B0D49B;
  --btn-primary-text: #011F2B;
  --btn-primary-hover-bg: #C2E2B8;
  --btn-primary-hover-text: #011F2B;
  --btn-ghost-bg: var(--glass-bg);
  --btn-ghost-text: #EEFAED;
  --btn-ghost-hover-bg: rgba(22, 54, 56, 0.85);
  --btn-ghost-hover-text: #C2E2B8;
}

/* --- LIGHT THEME (NEUMORPHIC MINT-CHALK GLASS) --- */
html.light {
  --color-bg: #F2F7F2;         /* Soft Chalk Mint */
  --color-surface: #FFFFFF;
  --color-accent: #163638;     /* Deep Pine Slate */
  --color-glow: #24584C;       /* Forest Pine */
  --color-text: #011F2B;       /* Deep Obsidian */
  --color-text-muted: #3D5A54;
  --color-text-subtle: #6E8780;
  --grid-line: rgba(22, 54, 56, 0.035);
  --logo-filter: none;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(22, 54, 56, 0.08);
  --glass-rim: inset 0 1.5px 0 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(22, 54, 56, 0.05);

  /* Neumorphic Dual Shadows (Light Soft Clay Extrusion) */
  --neuro-shadow-sm: 4px 4px 12px rgba(22, 54, 56, 0.06), -4px -4px 12px rgba(255, 255, 255, 0.9);
  --neuro-shadow-md: 8px 8px 22px rgba(22, 54, 56, 0.08), -8px -8px 22px rgba(255, 255, 255, 0.95);
  --neuro-shadow-lg: 14px 14px 34px rgba(22, 54, 56, 0.09), -12px -12px 30px #FFFFFF;
  --neuro-inset: inset 3px 3px 6px rgba(22, 54, 56, 0.07), inset -3px -3px 6px rgba(255, 255, 255, 0.9);
  --neuro-pill-shadow: 5px 5px 14px rgba(22, 54, 56, 0.07), -5px -5px 14px #FFFFFF;

  /* High-Contrast Button Tokens (Light Mode - Crystal Clear Roll-Over) */
  --btn-primary-bg: #011F2B;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover-bg: #163638;
  --btn-primary-hover-text: #C2E2B8; /* Refined Mint on dark slate hover = 14:1 AAA contrast */
  --btn-ghost-bg: var(--glass-bg);
  --btn-ghost-text: #011F2B;
  --btn-ghost-hover-bg: #FFFFFF;
  --btn-ghost-hover-text: #163638;
}

/* Typography Tokens */
:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Blueprint Grid Layer */
.blueprint-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  z-index: 0;
}

/* Typography Utility */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* ==========================================================================
   NEUMORPHIC + GLASSMORPHIC NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-pill-shadow), var(--glass-rim);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  width: 100%;
  max-width: 980px;
  transition: all var(--transition-smooth);
}

.nav-pill:hover {
  border-color: rgba(176, 212, 155, 0.22);
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 0.5rem;
    top: 0.75rem;
  }
  .nav-pill {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }
}

/* User Logo: Exactly 20% smaller (26px instead of 32px) */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 2px;
  border-radius: 9999px;
  transition: transform var(--transition-fast);
}

.nav-logo-img {
  width: 26px;               /* 20% smaller than 32px */
  height: 26px;              /* 20% smaller than 32px */
  object-fit: contain;
  filter: var(--logo-filter);
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.12);
}

/* Nav Menu: strictly Home, Work, About, Contact */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

html.dark .nav-link {
  color: #FFFFFF;
}

.nav-link:hover {
  color: var(--color-glow);
}

/* Active Section State for Desktop Navbar (Clean Underline Only) */
.nav-link.active {
  color: #011F2B;
  background: none;
  box-shadow: none;
}

html.dark .nav-link.active {
  color: var(--color-glow);
  background: none;
  box-shadow: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 9999px;
  background: #011F2B;
  opacity: 1;
}

html.dark .nav-link.active::after {
  background: var(--color-glow);
  box-shadow: 0 0 8px rgba(194, 226, 184, 0.75);
  opacity: 1;
}

.nav-controls-desktop {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 880px) {
  .nav-controls-desktop {
    display: flex;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm);
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
  border-color: rgba(176, 212, 155, 0.3);
}

.mobile-menu-btn:focus,
.mobile-menu-btn:focus-visible {
  outline: none;
}

.mobile-menu-btn svg {
  stroke: var(--color-text);
}

@media (min-width: 880px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 1rem;
  right: 1rem;
  max-width: 440px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-lg), var(--glass-rim);
  border-radius: 22px;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
  z-index: 60;
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast);
}

html.dark .mobile-nav-link {
  color: #FFFFFF;
}

.mobile-nav-link:hover {
  color: var(--color-glow);
}

.mobile-nav-link.active {
  color: #011F2B;
  background: none;
  border-bottom: 2px solid #011F2B;
  padding-bottom: 0.2rem;
  box-shadow: none;
}

html.dark .mobile-nav-link.active {
  color: var(--color-glow);
  background: none;
  border-bottom: 2px solid var(--color-glow);
  box-shadow: none;
}

.mobile-nav-link.active::after {
  content: '●';
  font-size: 0.75rem;
  color: #011F2B;
  margin-left: auto;
  text-shadow: none;
}

html.dark .mobile-nav-link.active::after {
  color: var(--color-glow);
  text-shadow: none;
}

.mobile-nav-link:focus,
.mobile-nav-link:focus-visible {
  outline: none;
  box-shadow: none;
}

.mobile-drawer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  width: 100%;
}

/* Neumorphic Theme Toggle Button */
.theme-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm), var(--glass-rim);
  color: var(--color-text);
  border-radius: 9999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.theme-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-text);
  display: block;
  transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.theme-btn:hover {
  transform: scale(1.05);
  border-color: rgba(176, 212, 155, 0.3);
}

.theme-btn:hover svg {
  stroke: var(--color-glow);
  transform: rotate(12deg);
}

.theme-btn:active {
  box-shadow: var(--neuro-inset);
  transform: scale(0.96);
}

/* Neumorphic Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-inset);
  border-radius: 9999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.lang-btn {
  padding: 3px 9px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--neuro-shadow-sm);
  font-weight: 600;
}

/* ==========================================================================
   NEUMORPHIC + GLASSMORPHIC BUTTONS (HIGH-CONTRAST ROLL-OVER)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-pill-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text);
  border-color: rgba(176, 212, 155, 0.3);
  box-shadow: var(--neuro-shadow-md), 0 0 12px rgba(176, 212, 155, 0.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  box-shadow: var(--neuro-inset);
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--btn-ghost-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--btn-ghost-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm), var(--glass-rim);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  color: var(--btn-ghost-hover-text);
  border-color: rgba(176, 212, 155, 0.35);
  box-shadow: var(--neuro-shadow-md);
  transform: translateY(-1px);
}

.btn-ghost:active {
  box-shadow: var(--neuro-inset);
  transform: translateY(1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(22, 54, 56, 0.55) 0%, rgba(176, 212, 155, 0.04) 35%, transparent 70%);
}

html.light .hero-section {
  background: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(22, 54, 56, 0.035) 40%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm), var(--glass-rim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-glow);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--color-glow);
}

.hero-subhead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 38rem;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

/* Hero Dynamic Services Rotator with Generous Stable Height (No Shift / No Resizing) */
.hero-slides-wrapper {
  position: relative;
  min-height: 335px;
}

@media (min-width: 576px) {
  .hero-slides-wrapper {
    min-height: 310px;
  }
}

@media (min-width: 768px) {
  .hero-slides-wrapper {
    min-height: 290px;
  }
}

@media (min-width: 992px) {
  .hero-slides-wrapper {
    min-height: 295px;
  }
}

.hero-slide-content {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out, filter 0.25s ease-in-out;
  will-change: opacity, transform, filter;
}

.hero-slide-content.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(6px);
}

/* Character-by-Character Dissolve Wave Effect for Hero Title & Paragraph */
.hero-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-char {
  display: inline-block;
  font-weight: inherit;
  font-style: inherit;
  opacity: 0;
  animation: heroCharDissolve 0.52s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
  animation-delay: var(--char-delay, calc(var(--i) * 0.02s));
  will-change: opacity, transform, filter;
}

@keyframes heroCharDissolve {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-slide-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: -0.85rem;
  margin-bottom: 2.25rem;
  user-select: none;
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 8px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-dot::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--glass-border);
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.hero-dot:hover::after {
  background: var(--color-text-muted);
}

.hero-dot.active::after {
  width: 24px;
  background: var(--color-glow);
  box-shadow: 0 0 10px var(--color-glow-subtle);
  border-color: rgba(194, 226, 184, 0.3);
}

html.light .hero-dot.active::after {
  background: #011F2B;
  box-shadow: none;
  border-color: transparent;
}

.hero-slide-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm);
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-slide-arrow:hover {
  color: var(--color-glow);
  border-color: var(--color-glow);
  transform: scale(1.08);
}

html.light .hero-slide-arrow:hover {
  color: #011F2B;
  border-color: #011F2B;
}

.hero-slide-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-left: 0.25rem;
}

/* Executive Portrait with Transparent Background & Floating Elevation */
.portrait-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  overflow: visible;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-img {
  width: 100%;
  height: auto;
  max-height: 580px;
  display: block;
  object-fit: contain;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.16));
}

html.dark .portrait-img {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(176, 212, 155, 0.05));
}

.portrait-container:hover .portrait-img {
  transform: scale(1.02);
}

.portrait-vignette {
  display: none;
}

.portrait-blueprint-overlay {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  border: 1px dashed var(--glass-border);
  border-radius: 30px;
  z-index: 15;
}

@media (max-width: 480px) {
  .portrait-blueprint-overlay {
    inset: -4px;
  }
}

.blueprint-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--color-glow);
  border-style: solid;
}
.blueprint-corner.tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.blueprint-corner.tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.blueprint-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.blueprint-corner.br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.blueprint-coords {
  margin-top: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--color-glow);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

/* Specs Bar */
.specs-bar {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .specs-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 600;
  color: var(--color-glow);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.spec-lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
  line-height: 1.35;
}

/* Section Header Styles */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-glow);
  opacity: 0.88;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 44rem;
  line-height: 1.6;
}

/* ==========================================================================
   PROMOTED ECOSYSTEM SECTION: SERVICES · STORE · TECHMANIAK
   ========================================================================== */
.ecosystem-section {
  padding: 6.5rem 0;
  position: relative;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(176, 212, 155, 0.025) 0%, transparent 75%);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 880px) {
  .ecosystem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Neumorphic Glass Ecosystem Card */
.eco-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--neuro-shadow-md), var(--glass-rim);
  transition: all var(--transition-smooth);
}

.eco-card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 212, 155, 0.18);
  box-shadow: var(--neuro-shadow-lg), var(--glass-rim), 0 0 14px rgba(176, 212, 155, 0.05);
}

.eco-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.eco-card-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-glow);
  opacity: 0.78;
}

.eco-card-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  color: var(--color-glow);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-inset);
}

.eco-card-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.eco-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.eco-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-glow);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.eco-card:hover .eco-card-cta {
  gap: 0.85rem;
}

/* ==========================================================================
   BENTO GRID (WORK) WITH NEUMORPHIC GLASS SURFACES
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3.5rem;
}

@media (min-width: 880px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--neuro-shadow-md), var(--glass-rim);
  transition: all var(--transition-smooth);
}

.bento-card:hover {
  border-color: rgba(176, 212, 155, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--neuro-shadow-lg), var(--glass-rim), 0 0 14px rgba(176, 212, 155, 0.04);
}

.bento-dominant,
.bento-half-1,
.bento-half-2 {
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 880px) {
  .bento-dominant {
    grid-column: span 12;
  }
  .bento-half-1, .bento-half-2 {
    grid-column: span 6;
  }
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-glow);
  opacity: 0.78;
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-inset);
  color: var(--color-glow);
}

/* ==========================================================================
   TESTIMONIALS WITH SOFT NEUMORPHIC SHADOWS
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--neuro-shadow-sm), var(--glass-rim);
  transition: transform var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--neuro-shadow-md), var(--glass-rim);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-glow);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   MANIFESTO & HUMAN SECTIONS
   ========================================================================== */
.manifesto-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-lg), var(--glass-rim);
  border-radius: 28px;
  overflow: hidden;
  margin-top: 3rem;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .manifesto-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.manifesto-col {
  padding: 2.75rem;
}

.manifesto-col:first-child {
  border-bottom: 1px solid var(--glass-border);
}

@media (min-width: 768px) {
  .manifesto-col:first-child {
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
  }
}

.manifesto-col-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.manifesto-col-title .badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  box-shadow: var(--neuro-inset);
  color: var(--color-glow);
}

.manifesto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.manifesto-item {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.manifesto-item strong {
  color: var(--color-text);
  display: block;
}

.manifesto-bullet {
  color: var(--color-glow);
  font-weight: bold;
}

/* Human Story Section */
.human-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 3.5rem;
}

@media (min-width: 992px) {
  .human-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.human-quote-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-md), var(--glass-rim);
  border-radius: 24px;
  padding: 2.75rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.human-quote-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm);
}

.human-quote-body {
  flex: 1;
}

.human-quote-box p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   FOOTER & MODAL
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 4.5rem 0 3.5rem;
  margin-top: 6rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--neuro-shadow-md);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
}

@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1.35fr 1.3fr;
    gap: 3.5rem;
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-glow);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.footer-nav-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--color-glow);
}

.legal-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Footer Social Media Buttons (Neumorphic Glass) */
.footer-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-fast), fill var(--transition-fast);
}

.social-icon-btn:hover {
  color: var(--color-glow);
  border-color: var(--color-glow);
  box-shadow: 0 0 14px var(--color-glow-subtle), var(--neuro-shadow-sm);
  transform: translateY(-2px);
}

.social-icon-btn:hover svg {
  transform: scale(1.12);
}

.social-icon-btn:active {
  transform: translateY(0);
  box-shadow: var(--neuro-inset);
}

/* Neumorphic Glass Booking Modal */
dialog.booking-modal {
  margin: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.75rem;
  width: 90%;
  max-width: 580px;
  color: var(--color-text);
  box-shadow: var(--neuro-shadow-lg), var(--glass-rim);
}

dialog.booking-modal::backdrop {
  background: rgba(1, 31, 43, 0.75);
  backdrop-filter: blur(10px);
}

/* Modal Direct Contact Icon Buttons (Phone, WhatsApp, Email) */
.modal-action-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
}

.modal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm), var(--glass-rim);
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.modal-icon-btn svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast), color var(--transition-fast), stroke var(--transition-fast);
}

.modal-icon-btn:hover {
  color: var(--color-glow);
  border-color: var(--color-glow);
  box-shadow: 0 0 18px var(--color-glow-subtle), var(--neuro-shadow-md);
  transform: translateY(-3px) scale(1.06);
}

html.light .modal-icon-btn:hover {
  color: #011F2B;
  border-color: #011F2B;
  box-shadow: var(--neuro-shadow-md);
}

.modal-icon-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--neuro-inset);
}

/* ==========================================================================
   AMBIENT SECTION DEPTH & CONTACT CTA CARD (SUBTLE ATMOSPHERE)
   ========================================================================== */
.work-section {
  padding: 6.5rem 0;
  position: relative;
  background: radial-gradient(ellipse 70% 35% at 50% 100%, rgba(176, 212, 155, 0.02) 0%, transparent 70%);
}

.about-section {
  padding: 6.5rem 0;
  position: relative;
  border-top: 1px solid var(--glass-border);
  background: radial-gradient(ellipse 65% 45% at 20% 30%, rgba(22, 54, 56, 0.22) 0%, transparent 75%);
}

.contact-section {
  padding: 6.5rem 0;
  position: relative;
  text-align: center;
  background: radial-gradient(ellipse 70% 45% at 50% 50%, rgba(176, 212, 155, 0.02) 0%, transparent 70%);
}

.contact-cta-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 4.5rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--neuro-shadow-lg), var(--glass-rim);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.contact-cta-card:hover {
  border-color: rgba(176, 212, 155, 0.18);
  box-shadow: var(--neuro-shadow-lg), var(--glass-rim), 0 0 16px rgba(176, 212, 155, 0.04);
}

/* In-Card Direct Contact Slide-In / Slide-Out Transitions */
.cta-card-view {
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
  will-change: opacity, transform, filter;
}

.cta-card-channels {
  position: relative;
  width: 100%;
}

.channels-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 480px;
  margin: 0 auto 1.25rem;
}

.cta-back-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neuro-shadow-sm);
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: all var(--transition-fast);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cta-back-btn:hover {
  color: var(--color-glow);
  border-color: var(--color-glow);
  transform: scale(1.08);
}

html.light .cta-back-btn:hover {
  color: #011F2B;
  border-color: #011F2B;
}

/* Slide-in from down-up animations */
.slide-in-up {
  animation: ctaSlideInUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-out-up {
  animation: ctaSlideOutUp 0.24s ease-in forwards;
}

.slide-in-down {
  animation: ctaSlideInDown 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-out-down {
  animation: ctaSlideOutDown 0.24s ease-in forwards;
}

@keyframes ctaSlideInUp {
  0% {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ctaSlideOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px);
    filter: blur(6px);
  }
}

@keyframes ctaSlideInDown {
  0% {
    opacity: 0;
    transform: translateY(-24px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ctaSlideOutDown {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
  }
}

/* Light Theme Overrides for Ambient Gradients */
html.light .work-section {
  background: radial-gradient(ellipse 70% 35% at 50% 100%, rgba(22, 54, 56, 0.015) 0%, transparent 70%);
}
html.light .about-section {
  background: radial-gradient(ellipse 65% 45% at 20% 30%, rgba(22, 54, 56, 0.02) 0%, transparent 75%);
}
html.light .contact-section {
  background: radial-gradient(ellipse 70% 45% at 50% 50%, rgba(22, 54, 56, 0.015) 0%, transparent 70%);
}

/* ==========================================================================
   SUBTLE SCROLL ANIMATIONS (INTERSECTION OBSERVER DRIVEN)
   Progressive enhancement: If JS is inactive, elements are fully visible.
   ========================================================================== */
html.js-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-ready .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Micro-staggering for grids & card sequences */
html.js-ready .scroll-delay-1 { transition-delay: 90ms; }
html.js-ready .scroll-delay-2 { transition-delay: 180ms; }
html.js-ready .scroll-delay-3 { transition-delay: 270ms; }
html.js-ready .scroll-delay-4 { transition-delay: 360ms; }

/* Subtle floating header elevation on scroll */
.navbar,
.nav-header {
  transition: transform var(--transition-smooth), padding var(--transition-smooth);
}
.navbar.is-scrolled .nav-pill,
.nav-header.is-scrolled .nav-pill {
  box-shadow: var(--neuro-pill-shadow), 0 8px 24px rgba(0, 10, 15, 0.3);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP ACTION BUTTON (NEUMORPHIC FROSTED GLASS)
   ========================================================================== */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(22, 54, 56, 0.82);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  border: 1px solid rgba(176, 212, 155, 0.25);
  box-shadow: 0 10px 28px rgba(0, 10, 15, 0.55), var(--neuro-pill-shadow), var(--glass-rim);
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
  transform: translateY(-4px) scale(1.06);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.25), var(--neuro-shadow-lg);
  color: #25D366;
}

.whatsapp-floating-btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: var(--neuro-inset);
}

/* WhatsApp Live Pulse Status Indicator */
.whatsapp-pulse-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #163638;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.9);
}

/* Light Theme Styling for WhatsApp Floating Button */
html.light .whatsapp-floating-btn {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 54, 56, 0.12);
  box-shadow: 0 10px 24px rgba(22, 54, 56, 0.12), var(--neuro-pill-shadow), var(--glass-rim);
  color: #128C7E;
}

html.light .whatsapp-floating-btn:hover {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.22), var(--neuro-shadow-lg);
  color: #25D366;
}

html.light .whatsapp-pulse-dot {
  border-color: #FFFFFF;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-floating-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
  .whatsapp-floating-btn svg {
    width: 25px;
    height: 25px;
  }
}

/* Comprehensive Mobile & Tablet Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
    min-height: auto;
  }
  .hero-title { font-size: 2.35rem; line-height: 1.1; }
  .hero-subhead { font-size: 1.05rem; line-height: 1.6; margin-bottom: 2rem; }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch !important;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .specs-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
  }
  .spec-val { font-size: 1.5rem; }
  .portrait-container {
    max-width: 320px;
    margin: 2rem auto 0;
  }
  .portrait-blueprint-overlay {
    inset: -4px;
  }
  .bento-card { padding: 1.75rem 1.35rem; }
  .eco-card { padding: 1.75rem 1.35rem; }
  .contact-cta-card { padding: 2.75rem 1.35rem !important; }
  .site-footer { padding: 3.5rem 0 2.5rem; margin-top: 4rem; }
  .human-quote-box {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 1.25rem;
  }
  .manifesto-col { padding: 1.75rem 1.35rem; }
  .testimonial-card { padding: 1.75rem 1.35rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .specs-bar { grid-template-columns: 1fr 1fr; gap: 1.25rem 0.75rem; }
  .spec-val { font-size: 1.35rem; }
  .spec-lbl { font-size: 0.72rem; }
  .nav-pill { padding: 0.45rem 1rem; }
}

/* ==========================================================================
   99 DISSOLVE — FADING TEXT EFFECT (PURE CSS)
   Letters fade up out of a blur one by one, hold, then fade away in the same order
   ========================================================================== */
.fx-fade {
  font: 600 34px/1.1 "JetBrains Mono", monospace;
  letter-spacing: .1em;
  color: var(--ink);
  display: inline-flex;
}

.fx-fade b {
  font-weight: inherit;
  display: inline-block;
  animation: fx-fade 4.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .09s);
}

@keyframes fx-fade {
  0%       { opacity: 0; transform: translateY(8px); filter: blur(6px); }
  22%, 62% { opacity: 1; transform: translateY(0); filter: blur(0); }
  84%, 100%{ opacity: 0; transform: translateY(-8px); filter: blur(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-fade b {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-slide-content,
  .hero-slide-content.fade-out {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-slides-wrapper {
    transition: none !important;
  }
  .hero-char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .slide-in-up,
  .slide-out-up,
  .slide-in-down,
  .slide-out-down {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}
