/* 
  ACHYUT - Official Corporate Website Stylesheet
  Premium CSS3, Responsive Design, CSS Variables & Multi-Theme Architecture
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Root & CSS Theme Variables --- */
:root {
  /* Common Palette & Constants */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --grad-primary: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #8B5CF6 100%);
  --grad-hover: linear-gradient(135deg, #059669 0%, #2563EB 50%, #7C3AED 100%);
  --grad-cyan: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* DEFAULT: LIGHT THEME */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;
  --accent-primary: #3B82F6;
  --accent-secondary: #8B5CF6;
  --accent-green: #10B981;
  --glow-color: rgba(16, 185, 129, 0.08);
  --nav-bg: rgba(248, 250, 252, 0.8);
  --footer-bg: #0F172A;
  --footer-text: #94A3B8;
  --card-glow-opacity: 0.03;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --bg-primary: #070913;
  --bg-secondary: #0F1122;
  --bg-glass: rgba(15, 17, 34, 0.75);
  --bg-card: #13172E;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: #1E2548;
  --border-hover: #2D376D;
  --accent-primary: #3B82F6;
  --accent-secondary: #A78BFA;
  --accent-green: #34D399;
  --glow-color: rgba(52, 211, 153, 0.12);
  --nav-bg: rgba(7, 9, 19, 0.8);
  --footer-bg: #03040B;
  --footer-text: #64748B;
  --card-glow-opacity: 0.1;
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* Offset anchor scroll for fixed navbar (~70px navbar + 15px breathing room) */
  scroll-padding-top: 90px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

.editor-body {
  min-width: 0;
}

/* --- Typographical System --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Accessibility Focus Indicators --- */
*:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
}

/* --- Container Utility --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* --- Common UI Components --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--accent-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: var(--grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-text {
  color: var(--accent-primary);
  font-weight: 600;
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--accent-secondary);
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  transition: width 0.1s ease-out;
}

/* --- Sticky Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: border-color var(--transition-smooth), padding var(--transition-smooth);
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  /* Isolation ensures child backdrop-filter works against the real page content */
  isolation: auto;
}

/*
  The navbar background/blur is rendered via a ::before pseudo-element.
  This avoids creating a stacking context on the navbar itself,
  which would otherwise break backdrop-filter on child megamenu panels.
*/
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--transition-smooth),
    backdrop-filter var(--transition-smooth),
    -webkit-backdrop-filter var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.navbar.scrolled {
  border-color: var(--border-color);
  padding: 0.85rem 0;
}

.navbar.scrolled::before {
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Center brand logo in mobile navbar */
@media (max-width: 1024px) {
  .nav-container {
    position: relative;
  }

  .brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.brand-logo img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-lg);
  z-index: 2;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-secondary);
}

/* Navigation Sliding Hover Glass Pill */
.nav-hover-pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 32px;
  transform: scale(0.9);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.08), rgba(168, 85, 247, 0.12)) !important;
  backdrop-filter: url(#liquid-refraction) blur(12px) saturate(145%);
  -webkit-backdrop-filter: url(#liquid-refraction) blur(12px) saturate(145%);
  border: 0.5px solid rgba(59, 130, 246, 0.24) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(59, 130, 246, 0.15),
    0 2px 4px rgba(16, 185, 129, 0.06) !important;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition:
    left 0.32s cubic-bezier(0.25, 0.8, 0.25, 1.15),
    top 0.32s cubic-bezier(0.25, 0.8, 0.25, 1.15),
    width 0.32s cubic-bezier(0.25, 0.8, 0.25, 1.15),
    opacity 0.22s ease,
    transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1.15);
  transform-style: preserve-3d;
}

[data-theme="light"] .nav-hover-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.05), rgba(168, 85, 247, 0.08)) !important;
  border: 0.5px solid rgba(59, 130, 246, 0.18) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05),
    0 4px 10px rgba(59, 130, 246, 0.1) !important;
}

.nav-hover-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 0, 100, 0.04),
    /* red dispersion leak */
    0 0 0 2px rgba(0, 200, 255, 0.02);
  /* cyan dispersion leak */
  opacity: 1;
}

.nav-hover-pill .sheen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%);
  mix-blend-mode: overlay;
  opacity: 1;
}

/* Navigation Buttons */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* =====================================================
   iOS 26 Liquid Glass — Login Button
   Clear frosted-glass pill with specular edge highlight
   ===================================================== */
.nav-btn-login {
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  /* Frosted glass base */
  background: rgba(255, 255, 255, 0.12);
  /* Layered border: top bright specular + full subtle rim */
  border: 1px solid rgba(255, 255, 255, 0.35);
  /* Backdrop blur for depth */
  backdrop-filter: blur(16px) saturate(160%) brightness(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(1.05);
  /* Liquid depth: inset highlight + soft drop shadow + chromatic leak */
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

/* Glass surface: angled bright-to-transparent sheen */
.nav-btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.00) 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
  transition: opacity var(--transition-fast);
  opacity: 1;
}

/* Bottom refracted ripple-light */
.nav-btn-login::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.5) 60%,
    transparent
  );
  border-radius: 50%;
  pointer-events: none;
}

.nav-btn-login:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] .nav-btn-login {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.20);
}

[data-theme="dark"] .nav-btn-login:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.30),
    0 8px 28px rgba(0, 0, 0, 0.50),
    0 2px 6px rgba(0, 0, 0, 0.30);
}

/* =====================================================
   iOS 26 Liquid Glass — Sign Up Button
   Solid vivid gradient (light) / tinted glass (dark)
   ===================================================== */
.nav-btn-signup {
  position: relative;
  overflow: hidden;
  color: #FFFFFF !important;
  /*
    Light theme: fully-opaque solid gradient so the brand
    colors stay vivid regardless of what's behind the button.
    The liquid-glass feel comes from the sheen pseudo-elements
    and specular box-shadows layered on top.
  */
  background: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #8B5CF6 100%);
  border: 1px solid rgba(255, 255, 255, 0.40);
  /* No backdrop-filter in light mode — solid base looks best */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* Liquid depth: specular top edge + vivid colour glow */
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
    0 4px 14px rgba(59, 130, 246, 0.35),
    0 0 18px rgba(139, 92, 246, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
}

/* Primary glass sheen — angled specular reflection */
.nav-btn-signup::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.10) 35%,
    rgba(255, 255, 255, 0.00) 55%,
    rgba(255, 255, 255, 0.06) 100%
  );
  transition: opacity var(--transition-fast);
}

/* Secondary sheen sweep on hover */
.nav-btn-signup::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.nav-btn-signup:hover::after {
  left: 150%;
}

.nav-btn-signup:hover {
  background: linear-gradient(135deg, #059669 0%, #2563EB 50%, #7C3AED 100%);
  border-color: rgba(255, 255, 255, 0.50);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 0.60),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.12),
    0 8px 22px rgba(59, 130, 246, 0.45),
    0 0 28px rgba(139, 92, 246, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

/*
  Dark theme: translucent tinted glass — the semi-transparent
  gradient lets the dark background bleed through beautifully,
  and the backdrop-filter adds depth.
*/
[data-theme="dark"] .nav-btn-signup {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.55) 0%,
    rgba(59, 130, 246, 0.50) 50%,
    rgba(139, 92, 246, 0.55) 100%
  );
  backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.20),
    0 4px 14px rgba(59, 130, 246, 0.25),
    0 0 20px rgba(139, 92, 246, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .nav-btn-signup:hover {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.72) 0%,
    rgba(59, 130, 246, 0.68) 50%,
    rgba(139, 92, 246, 0.72) 100%
  );
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 2px 0 0 rgba(255, 255, 255, 0.50),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
    0 8px 22px rgba(59, 130, 246, 0.38),
    0 0 28px rgba(139, 92, 246, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Adjustments for mobile drawer */
@media (max-width: 1024px) {
  .nav-auth-item {
    width: 100%;
  }
  .nav-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
}

/* --- Megamenu & Dropdown Styling --- */
.nav-item-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem !important;
}

.chevron-icon {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-item-dropdown.open-dropdown .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Container */
.megamenu-panel {
  position: fixed;
  top: auto;
  left: auto;
  transform: translateY(15px);
  width: 680px;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              visibility 0.3s;
  z-index: 9999;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Invisible bridge to prevent hover loss when moving cursor over the gap */
.megamenu-panel::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  height: 1.5rem;
  background: transparent;
}

.nav-item-dropdown.open-dropdown .megamenu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.megamenu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

.megamenu-col-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.megamenu-col-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.megamenu-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Left Column - List with Icons */
.megamenu-item-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.megamenu-item-with-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
  color: var(--accent-secondary) !important;
}

[data-theme="light"] .megamenu-item-with-icon:hover {
  background: rgba(0, 0, 0, 0.03);
}

.megamenu-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.megamenu-item-with-icon:hover .megamenu-icon-box {
  transform: scale(1.08);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-secondary);
}

.megamenu-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.megamenu-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.megamenu-item-with-icon:hover .megamenu-item-title {
  color: var(--accent-secondary);
}

.megamenu-item-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Right Column - Simple Links */
.megamenu-simple-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.megamenu-simple-link:hover {
  color: var(--accent-secondary) !important;
  transform: translateX(4px);
}

/* Mobile styles */
@media (max-width: 1024px) {
  .nav-item-dropdown {
    width: 100%;
  }

  /* Target the active dropdown panel specifically on mobile to override fixed positioning */
  .nav-item-dropdown.open-dropdown .megamenu-panel,
  .megamenu-panel {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
    margin-top: 0.5rem !important;
    pointer-events: auto !important;
  }

  .nav-item-dropdown .megamenu-panel {
    display: none;
  }

  .nav-item-dropdown.open-dropdown .megamenu-panel {
    display: block;
  }

  .nav-item-dropdown.open-dropdown .chevron-icon {
    transform: rotate(180deg) !important;
  }

  .megamenu-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .megamenu-col-left,
  .megamenu-col-right {
    gap: 0.75rem !important;
  }

  .megamenu-item-with-icon {
    padding: 0.4rem 0.25rem !important;
    align-items: center !important;
  }

  .megamenu-item-desc {
    display: none !important;
  }

  .megamenu-icon-box {
    width: 32px !important;
    height: 32px !important;
  }

  .megamenu-header {
    margin-bottom: 0.25rem !important;
  }
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: url(#liquid-refraction) blur(16px) saturate(145%) !important;
  -webkit-backdrop-filter: url(#liquid-refraction) blur(16px) saturate(145%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.25) !important;
  padding: 0.35rem;
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 4px 15px rgba(0, 0, 0, 0.15) !important;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] .theme-switcher {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05),
    0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 2;
  transition: all var(--transition-fast) cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.theme-btn.active {
  background: transparent !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  border: none !important;
}

/* Theme active indicator - sliding liquid glass dome */
.theme-active-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.25) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.35) !important;
  z-index: 1;
  pointer-events: none;
  transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.15);
  will-change: left;
}

/* Mobile Hamburger Menu Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1005;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile menu open styles */
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-image: radial-gradient(circle at top right, var(--glow-color), transparent 45%);
  /* Hard-clip children (incl. absolute glass cards) so they can't overflow the viewport */
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 968px) {
  .hero-content {
    align-items: center;
  }
}

.hero-headline {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-headline span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.5rem;
  }
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  word-wrap: break-word;
  word-break: break-word;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.stat-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-illustration svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Floating animation for illustrations */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* --- About Section --- */
.about {
  padding: 7rem 0;
  background-color: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-col {
    order: 2;
  }
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-para {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glow-color);
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 16px;
  height: 16px;
}

.highlight-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.highlight-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Services Section --- */
.services {
  padding: 7rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-primary);
  opacity: 0;
  z-index: 1;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.service-card:hover::before {
  opacity: var(--card-glow-opacity);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--glow-color);
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.service-list {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-list-item svg {
  width: 14px;
  height: 14px;
  color: #10B981;
}

/* --- Services Office Showcase Image Card --- */
.service-image-card {
  width: 100%;
  height: 100%;
}

.office-showcase-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 2px solid transparent;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  width: 100%;
  height: auto;
  max-width: 100%;
}

.service-image-card:hover .office-showcase-img {
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* --- Technologies Section --- */
.technologies {
  padding: 7rem 0;
  background-color: var(--bg-secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.tech-category-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tech-category-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-lg);
}

.tech-cat-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-cat-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-secondary);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-pill {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background-color: var(--glow-color);
}

/* --- Development Process --- */
.process {
  padding: 7rem 0;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 2rem;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    padding-left: 4rem;
    padding-right: 0;
    margin-bottom: 2.5rem;
  }

  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 4rem;
  }
}

.timeline-dot {
  position: absolute;
  top: 0;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 4px solid var(--accent-secondary);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -12px;
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 2rem !important;
    right: auto !important;
    transform: translateX(-50%);
  }
}

.timeline-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-muted);
  position: absolute;
  top: -1.25rem;
  right: 3.5rem;
  line-height: 1;
  opacity: 0.7;
  z-index: 5;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-num {
  right: auto;
  left: 3.5rem;
}

@media (max-width: 768px) {
  .timeline-num {
    left: 4rem !important;
    right: auto !important;
    top: -1.75rem;
  }
}

.timeline-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.timeline-content:hover {
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.timeline-item:hover .timeline-num {
  color: var(--accent-secondary);
  opacity: 0.5;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Portfolio --- */
.portfolio {
  padding: 7rem 0;
  background-color: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-xl);
}

.project-img-mock {
  height: 200px;
  background: var(--grad-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-img-mock::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
}

.project-icon-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.project-icon-placeholder svg {
  width: 28px;
  height: 28px;
}

.project-body {
  padding: 2rem;
}

.project-cat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech-pill {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* --- Why Choose Us --- */
.why-choose-us {
  padding: 7rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-lg);
}

.why-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.why-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Testimonials --- */
.testimonials {
  padding: 7rem 0;
  background-color: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast);
}

.testimonial-card:hover {
  border-color: var(--accent-secondary);
}

.rating {
  color: #F59E0B;
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.rating svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.client-meta h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.client-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq {
  padding: 7rem 0;
}

.faq-list {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-secondary);
}

.faq-item.active {
  border-color: var(--accent-secondary);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth) ease-out;
}

.faq-content {
  padding: 0 2rem 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact {
  padding: 7rem 0;
  background-color: var(--bg-secondary);
  background-image: radial-gradient(circle at bottom left, var(--glow-color), transparent 45%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glow-color);
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-text h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.contact-method-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-panel {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 480px) {
  .contact-form-panel {
    padding: 2rem 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px var(--glow-color);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 0.25rem;
  display: none;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: -100px;
  right: 2rem;
  background-color: #10B981;
  color: #FFFFFF;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1002;
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: bottom var(--transition-smooth);
}

.toast.show {
  bottom: 2rem;
}

.toast svg {
  width: 20px;
  height: 20px;
}

/* --- Footer --- */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 6rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 36px;
  height: 36px;
}

.footer-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.social-icon:hover {
  background: var(--grad-primary) !important;
  color: #FFFFFF !important;
  backdrop-filter: url(#liquid-refraction) blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: url(#liquid-refraction) blur(10px) saturate(140%) !important;
  box-shadow:
    0 6px 15px rgba(139, 92, 246, 0.4),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45),
    /* top polished highlight */
    inset 0 -1px 1px rgba(0, 0, 0, 0.15) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-4px) scale(1.06) !important;
}

.social-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 0, 100, 0.05),
    /* red dispersion leak */
    0 0 0 2px rgba(0, 200, 255, 0.03);
  /* cyan dispersion leak */
  opacity: 0;
  transition: opacity 0.3s;
}

.social-icon:hover::after {
  opacity: 1;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--footer-text);
}

.footer-link:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-link {
  font-size: 0.85rem;
  color: var(--footer-text);
}

.legal-link:hover {
  color: var(--accent-secondary);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #FFFFFF;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  will-change: transform;
  transition: opacity var(--transition-fast),
    visibility var(--transition-fast),
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  backdrop-filter: url(#liquid-refraction) blur(12px) saturate(145%) !important;
  -webkit-backdrop-filter: url(#liquid-refraction) blur(12px) saturate(145%) !important;
  box-shadow:
    0 6px 20px rgba(139, 92, 246, 0.45),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45),
    /* top polished highlight */
    inset 0 -1px 1px rgba(0, 0, 0, 0.15) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-5px) scale(1.05) !important;
}

.back-to-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 0, 100, 0.05),
    /* red dispersion leak */
    0 0 0 2px rgba(0, 200, 255, 0.03);
  /* cyan dispersion leak */
  opacity: 0;
  transition: opacity 0.3s;
}

.back-to-top:hover::after {
  opacity: 1;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Interactive Reveal Animations (on scroll) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   CUSTOM COMPONENT: MOCK VS CODE EDITOR
   ========================================== */
.code-editor {
  background-color: #0d0f1f;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  font-family: var(--font-mono);
  text-align: left;
}

/* Scrollbar Override for Dark Code Editor (Ensures dark sleek scrollbar even in Light Mode) */
.code-editor ::-webkit-scrollbar,
.editor-body::-webkit-scrollbar,
.editor-tabs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.code-editor ::-webkit-scrollbar-track,
.editor-body::-webkit-scrollbar-track,
.editor-tabs::-webkit-scrollbar-track {
  background: rgba(13, 15, 31, 0.4);
}

.code-editor ::-webkit-scrollbar-thumb,
.editor-body::-webkit-scrollbar-thumb,
.editor-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: none;
}

.code-editor ::-webkit-scrollbar-thumb:hover,
.editor-body::-webkit-scrollbar-thumb:hover,
.editor-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.code-editor,
.editor-body,
.editor-tabs {
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(13, 15, 31, 0.4);
  scrollbar-width: thin;
}

.editor-header {
  background-color: #080a15;
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.close {
  background-color: #EF4444;
}

.dot.minimize {
  background-color: #F59E0B;
}

.dot.maximize {
  background-color: #10B981;
}

.editor-tabs {
  display: flex;
  margin-left: 1.5rem;
  gap: 0.25rem;
  overflow-x: auto;
}

.editor-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  white-space: nowrap;
}

.editor-tab.active {
  background-color: #0d0f1f;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-color: transparent;
}

.editor-body {
  display: flex;
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  min-width: 0;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  text-align: right;
  padding-right: 1.25rem;
  user-select: none;
  font-weight: 500;
  opacity: 0.5;
}

.code-content {
  margin: 0;
  white-space: pre;
  color: #D4D4D4;
}

/* Syntax Highlighting Colors */
.code-content .comment {
  color: #6A9955;
  font-style: italic;
}

.code-content .keyword {
  color: #569CD6;
  font-weight: 600;
}

.code-content .string {
  color: #CE9178;
}

.code-content .type {
  color: #4EC9B0;
}

.code-content .method {
  color: #DCDCAA;
}

.code-content .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--accent-secondary);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  from,
  to {
    background-color: transparent
  }

  50% {
    background-color: var(--accent-secondary)
  }
}

/* ==========================================
   RESTYLED SECTIONS: WHY CHOOSE US
   ========================================== */
.why-container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}

.why-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.why-reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  width: 100%;
}

/* Color themes for each reason card */
.why-card-row:nth-child(1) {
  --card-accent: #3B82F6;
  --card-glow: rgba(59, 130, 246, 0.15);
}

.why-card-row:nth-child(2) {
  --card-accent: #8B5CF6;
  --card-glow: rgba(139, 92, 246, 0.15);
}

.why-card-row:nth-child(3) {
  --card-accent: #10B981;
  --card-glow: rgba(16, 185, 129, 0.15);
}

.why-card-row:nth-child(4) {
  --card-accent: #06B6D4;
  --card-glow: rgba(6, 182, 212, 0.15);
}

.why-card-row:nth-child(5) {
  --card-accent: #6366F1;
  --card-glow: rgba(99, 102, 241, 0.15);
}

.why-card-row:nth-child(6) {
  --card-accent: #F59E0B;
  --card-glow: rgba(245, 158, 11, 0.15);
}

.why-card-row {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--card-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: all var(--transition-smooth);
  position: relative;
}

.why-card-row:hover {
  transform: translate(6px, -4px);
  border-color: var(--card-accent);
  box-shadow: 0 12px 24px var(--card-glow);
}

.why-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--card-accent) !important;
  margin-bottom: 0 !important;
  transition: transform var(--transition-fast) !important;
  line-height: 1;
  flex-shrink: 0;
}

.why-card-row:hover .why-num {
  transform: scale(1.15);
}

.why-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.why-card-row:hover .why-title {
  color: var(--card-accent);
}

.why-image-col {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (max-width: 1200px) {
  .why-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-image-col {
    order: 2;
  }
}

@media (max-width: 640px) {
  .why-reasons-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CODE EDITOR ANIMATION: CRT FLICKER & SCANLINES
   ========================================== */
.hero-editor-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 580px;
}

.code-editor {
  position: relative;
  background-color: #1e2235;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  overflow: hidden;
  font-family: var(--font-mono);
  text-align: left;
}

.header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: #151824;
  border-bottom: 1px solid var(--border-color);
}

.editor-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-family: var(--font-sans);
}

.header-placeholder {
  width: 48px;
}

.editor-tabs {
  display: flex;
  background-color: #151824;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.editor-tabs::-webkit-scrollbar {
  display: none;
}

.editor-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  color: #94A3B8;
  /* Fixed light gray for dark tab bar background */
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.editor-tab.active {
  background-color: #1e2235;
  color: #F8FAFC;
  /* Fixed white for active dark tab background */
  border-bottom: 2px solid #8B5CF6;
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.editor-body {
  display: flex;
  height: 440px;
  overflow: hidden;
}

.editor-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background-color: #151824;
  border-right: 1px solid var(--border-color);
  padding: 1.25rem 0.5rem;
  width: 48px;
  flex-shrink: 0;
}

.sidebar-icon {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon:hover,
.sidebar-icon.active {
  color: var(--accent-primary);
  opacity: 1;
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  text-align: right;
  padding: 1rem 0.75rem 1rem 1.25rem;
  user-select: none;
  font-weight: 500;
  opacity: 0.4;
  font-size: 0.8rem;
  line-height: 1.6;
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.code-content {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: auto;
  flex-grow: 1;
  color: #D4D4D4;
}

/* Syntax Highlighting Colors */
.code-content .comment {
  color: #6A9955;
  font-style: italic;
}

.code-content .keyword {
  color: #C586C0;
  font-weight: 600;
}

.code-content .string {
  color: #CE9178;
}

.code-content .type {
  color: #4EC9B0;
}

.code-content .method {
  color: #DCDCAA;
}

.code-content .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--accent-secondary);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 1rem;
  background-color: #151824;
  border-top: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.8;
  font-family: var(--font-sans);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.footer-divider {
  width: 1px;
  height: 10px;
  background-color: var(--border-color);
  margin: 0 0.25rem;
}

/* Retro CRT monitor scanline overlay */
.code-editor::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.02));
  z-index: 10;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.5;
}


@keyframes code-flicker {

  0%,
  19.999%,
  22%,
  62.999%,
  64%,
  64.999%,
  70%,
  100% {
    box-shadow: var(--shadow-xl), 0 0 20px rgba(139, 92, 246, 0.1);
    border-color: var(--border-color);
    opacity: 1;
  }

  20%,
  21.999%,
  63%,
  63.999%,
  65%,
  69.999% {
    box-shadow: var(--shadow-xl), 0 0 12px rgba(139, 92, 246, 0.02), 0 0 5px rgba(6, 182, 212, 0.02);
    border-color: rgba(30, 37, 72, 0.4);
    opacity: 0.98;
  }
}

/* ==========================================
   APPLE iOS GLASSMORPHISM STATUS CARDS
   ========================================== */
:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: rgba(0, 0, 0, 0.06);
  --glass-text-title: #64748B;
  --glass-text-body: #0F172A;
  --glass-blur: 16px;
}

[data-theme="dark"] {
  --glass-bg: rgba(15, 17, 34, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --glass-text-title: #94A3B8;
  --glass-text-body: #F8FAFC;
}

.glass-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  transition: all var(--transition-smooth);
}

.glass-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.glass-icon-wrapper.blue-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.glass-icon-wrapper.cyan-icon {
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4;
}

.glass-icon-wrapper.green-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.glass-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.glass-info {
  display: flex;
  flex-direction: column;
}

.glass-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--glass-text-title);
  margin-bottom: 0.1rem;
}

.glass-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--glass-text-body);
}

/* Hover effects for glass cards */
.glass-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 40px var(--glass-shadow);
}

/* Absolute coordinates matching layout */
.architecture-card {
  position: absolute;
  top: 18%;
  right: -5%;
  z-index: 20;
}

.performance-card {
  position: absolute;
  bottom: 22%;
  right: -8%;
  z-index: 20;
}

.build-status-card {
  position: absolute;
  bottom: 12%;
  left: -2%;
  z-index: 20;
}

@media (max-width: 1100px) {

  /* Bring cards flush on medium-large screens */
  .architecture-card {
    right: 0;
  }

  .performance-card {
    right: 0;
  }
}

@media (max-width: 968px) {
  .glass-card {
    padding: 0.5rem 0.85rem;
  }

  .glass-value {
    font-size: 0.75rem;
  }

  /* Display floating glass cards scaled down on tablet */
  .architecture-card,
  .performance-card,
  .build-status-card {
    display: flex !important;
    transform: scale(0.78);
    transform-origin: center;
    position: absolute !important;
    z-index: 21;
  }

  .architecture-card {
    right: -15px !important;
    top: 15% !important;
  }

  .performance-card {
    right: -15px !important;
    bottom: 25% !important;
  }

  .build-status-card {
    left: -15px !important;
    bottom: 8% !important;
  }

  /* Editor wrapper takes full column width, centered */
  .hero-editor-wrapper {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  /* Illustration column: flex column so editor centers in single-column layout */
  .hero-illustration {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    /* Let scaled-down glass cards overlay outside editor border */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  /* Render glass cards responsively below code editor on mobile phones */
  .hero-editor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .architecture-card,
  .performance-card,
  .build-status-card {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0.65rem 1rem !important;
    border-radius: var(--radius-md) !important;
    justify-content: flex-start;
  }

  .editor-body {
    height: 260px;
  }
}

/* ==========================================
   DEDICATED SERVICES HUB PAGE
   ========================================== */
.services-hub-page {
  padding-top: 100px;
  background-color: var(--bg-primary);
}

.services-hero {
  padding: 5rem 0 3rem 0;
  text-align: center;
}

.hero-header {
  max-width: 800px;
  margin: 0 auto;
}

.services-title {
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Service Detail Alternating Sections */
.service-detail-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.service-detail-section.alt-bg {
  background-color: var(--bg-secondary);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.service-detail-section:nth-child(even) .service-detail-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.service-detail-text {
  position: relative;
}

.service-index {
  font-size: 4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-detail-text h2 {
  font-size: 2.25rem;
  font-family: var(--font-display);
  margin-bottom: 1.25rem;
}

.service-pitch {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background-color: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border-radius: var(--radius-sm);
}

.service-detail-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Infographic Box styling */
.infographic-box {
  position: relative;
  background-color: #080b14;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-smooth);
  color: #f8fafc;
  overflow: hidden;
}

.infographic-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
}

.infographic-box.blue-theme {
  --accent: #3B82F6;
}

.infographic-box.cyan-theme {
  --accent: #06B6D4;
}

.infographic-box.purple-theme {
  --accent: #8B5CF6;
}

.infographic-box.pink-theme {
  --accent: #10B981;
}

.infographic-box.emerald-theme {
  --accent: #10B981;
}

/* Mockup Frames & Headers */
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.65rem;
}

.mockup-controls {
  display: flex;
  gap: 0.35rem;
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.mockup-dot.red {
  background-color: #ef4444;
}

.mockup-dot.yellow {
  background-color: #f59e0b;
}

.mockup-dot.green {
  background-color: #10b981;
}

.mockup-address {
  font-size: 0.7rem;
  color: #475569;
  font-family: var(--font-mono);
}

.mockup-action-btn {
  font-size: 0.6rem;
  font-weight: 700;
  color: #080b14;
  background-color: #10b981;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.window-actions {
  display: flex;
  gap: 0.35rem;
}

.action-dash {
  width: 8px;
  height: 2px;
  background-color: #475569;
  margin-top: 3px;
}

.action-box {
  width: 7px;
  height: 7px;
  border: 1px solid #475569;
}

.arch-title {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  text-align: left;
}

.mockup-body {
  position: relative;
  overflow: hidden;
}

.mockup-footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-lbl {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  text-align: left;
}

/* 01. Web App Specific styles */
.web-mockup {
  display: flex;
  height: 160px;
  gap: 0.5rem;
}

.web-sidebar {
  width: 28px;
  background-color: #05070d;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sidebar-item {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: #1e293b;
}

.sidebar-item.active {
  background-color: #06b6d4;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
}

.web-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.web-metrics-grid {
  display: flex;
  gap: 0.4rem;
}

.metric-card {
  flex: 1;
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.35rem 0.2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.metric-lbl {
  font-size: 0.5rem;
  color: #475569;
  text-transform: uppercase;
  margin-top: 2px;
}

.traffic-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
  justify-content: center;
  margin-top: 2px;
}

.t-bar {
  width: 2px;
  background-color: #10b981;
  border-radius: 1px;
}

.web-graph-spacer {
  margin-top: auto;
  background-color: #05070d;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.line-placeholder {
  height: 3px;
  background-color: #1e293b;
  border-radius: 2px;
  width: 100%;
}

.line-placeholder.short {
  width: 60%;
}

.web-stack-panel {
  width: 110px;
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.panel-title {
  font-size: 0.55rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 2px;
}

.stack-item {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.15rem;
  border-radius: 4px;
  text-align: center;
  background-color: #080b14;
}

.stack-sub {
  font-size: 0.4rem;
  color: #475569;
  font-weight: normal;
}

.stack-arrow {
  font-size: 0.5rem;
  color: #475569;
  text-align: center;
  line-height: 1;
}

.web-footer .footer-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: #64748b;
}

.uptime-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.uptime-progress {
  display: inline-block;
  width: 40px;
  height: 4px;
  background-color: #1e293b;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.uptime-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 98%;
  background-color: #10b981;
}

/* 02. Desktop app Specific styles */
.desktop-mockup {
  display: flex;
  height: 160px;
  gap: 0.5rem;
}

.desktop-sidebar {
  width: 65px;
  background-color: #05070d;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0;
  gap: 1px;
  flex-shrink: 0;
}

.sidebar-tab {
  font-size: 0.52rem;
  color: #475569;
  padding: 0.2rem 0.4rem;
  border-left: 2px solid transparent;
}

.sidebar-tab.active {
  background-color: rgba(6, 182, 212, 0.08);
  color: #06b6d4;
  border-left-color: #06b6d4;
  font-weight: 600;
}

.desktop-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.main-header {
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-indicator {
  font-size: 0.45rem;
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  font-weight: 700;
}

.main-metrics {
  display: flex;
  gap: 0.4rem;
}

.desktop-metric-card {
  flex: 1;
  background-color: #05070d;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.01);
}

.d-val {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.d-lbl {
  font-size: 0.5rem;
  color: #475569;
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

.d-trend {
  font-weight: 700;
  font-size: 0.45rem;
}

.desktop-chart-box {
  background-color: #05070d;
  border-radius: 6px;
  height: 22px;
  padding: 0.2rem 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.chart-title {
  font-size: 0.5rem;
  color: #475569;
}

.chart-svg-line {
  position: absolute;
  top: 0;
  right: 10px;
  width: 90px;
  height: 100%;
}

.desktop-table {
  background-color: #05070d;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  font-size: 0.48rem;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 20px 1fr 1fr 1fr;
  padding: 0.15rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.table-row.table-header {
  background-color: rgba(255, 255, 255, 0.02);
  color: #475569;
  font-weight: 700;
}

.status-badge {
  font-size: 0.4rem;
  font-weight: 700;
  padding: 0 0.15rem;
  border-radius: 3px;
  width: fit-content;
}

.status-badge.active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-badge.trial {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.desktop-footer .footer-buttons {
  display: flex;
  gap: 4px;
}

.f-btn {
  font-size: 0.52rem;
  background-color: #05070d;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #64748b;
}

/* 03. SaaS Specific styles */
.saas-mockup {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 0.4rem;
  height: 160px;
}

.tenants-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tenant-card {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem 0.3rem;
  font-size: 0.48rem;
}

.tenant-tag {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 1px;
}

.t-letter {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: rgba(6, 182, 212, 0.15);
  text-align: center;
  line-height: 9px;
  border-radius: 2px;
  font-size: 0.42rem;
  font-weight: 800;
}

.tenant-name {
  font-weight: 600;
  color: #fff;
}

.tenant-users {
  color: #475569;
  font-size: 0.42rem;
}

.add-tenant-btn {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-align: center;
  padding: 0.15rem;
  font-size: 0.48rem;
  color: #475569;
  cursor: pointer;
}

.gateway-col {
  display: flex;
  align-items: center;
}

.gateway-box {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.35rem 0.25rem;
  text-align: center;
  width: 100%;
}

.gateway-title {
  font-size: 0.52rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.route-tag {
  font-size: 0.45rem;
  background-color: #080b14;
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: #64748b;
  padding: 0.08rem;
  border-radius: 3px;
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.gateway-footer {
  font-size: 0.42rem;
  color: #475569;
  margin-top: 4px;
}

.pods-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pod-card {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.18rem 0.3rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.48rem;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.01);
}

.pod-dot {
  width: 4px;
  height: 4px;
  background-color: #10b981;
  border-radius: 50%;
}

.pod-status {
  margin-left: auto;
  font-size: 0.42rem;
  color: #10b981;
}

.auto-scale-tag {
  font-size: 0.45rem;
  font-weight: 700;
  text-align: center;
  margin: 1px 0;
}

.db-cluster-box {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.db-cylinder-icon {
  font-size: 0.42rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background-color: rgba(16, 185, 129, 0.03);
  color: #10b981;
  width: 22px;
  height: 13px;
  border-radius: 2px;
  text-align: center;
  line-height: 11px;
}

.saas-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.billing-cards {
  display: flex;
  gap: 3px;
}

.b-card {
  flex: 1;
  background-color: #05070d;
  border-radius: 4px;
  padding: 0.2rem 0.1rem;
  text-align: center;
  font-size: 0.45rem;
  color: #475569;
}

.b-card span {
  font-weight: 700;
  color: #fff;
}

.billing-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: #475569;
}

/* 04. API Specific styles */
.api-mockup {
  height: 160px;
  position: relative;
}

.api-node-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #05070d;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  z-index: 5;
  width: 120px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.gateway-badge {
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.gateway-sub {
  font-size: 0.42rem;
  color: #475569;
  line-height: 1.2;
}

.gateway-ssl {
  font-size: 0.42rem;
  font-weight: 700;
  margin-top: 2px;
}

.satellite-nodes {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.sat-node {
  position: absolute;
  background-color: #05070d;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-size: 0.45rem;
  color: #fff;
  text-align: center;
  line-height: 1.1;
}

.sat-node span {
  font-size: 0.4rem;
  color: #475569;
}

.n-web {
  top: 8px;
  left: 8px;
}

.n-mobile {
  top: 8px;
  right: 8px;
}

.n-third {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.n-db {
  bottom: 8px;
  left: 8px;
}

.n-pay {
  bottom: 42px;
  left: 8px;
}

.n-crm {
  bottom: 42px;
  right: 8px;
}

.n-micro {
  bottom: 8px;
  right: 8px;
}

.api-footer .console-log {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.log-line {
  white-space: nowrap;
  text-align: left;
}

/* 05. AI Pipeline styles */
.ai-pipeline-mockup {
  display: flex;
  flex-direction: column;
  height: 160px;
  justify-content: space-between;
}

.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}

.flow-step {
  flex: 1;
  background-color: #05070d;
  padding: 0.2rem 0.1rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.45rem;
  color: #475569;
}

.flow-step span {
  font-size: 0.38rem;
  color: #1e293b;
}

.flow-step.active-focus {
  background-color: rgba(6, 182, 212, 0.05);
  color: #06b6d4;
  border-color: #06b6d4;
}

.flow-arrow {
  color: #475569;
  font-size: 0.5rem;
}

.neural-network-box {
  height: 60px;
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.01);
}

.neural-svg {
  width: 100%;
  height: 100%;
}

.output-labels {
  position: absolute;
  right: 12px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.out-lbl {
  font-size: 0.45rem;
  font-weight: 700;
}

.use-cases-tags {
  display: flex;
  gap: 3px;
}

.use-cases-tags span {
  flex: 1;
  background-color: #05070d;
  padding: 0.15rem 0.1rem;
  text-align: center;
  font-size: 0.45rem;
  color: #64748b;
  border-radius: 4px;
}

/* 06. Enterprise systems styles */
.enterprise-mockup {
  display: flex;
  flex-direction: column;
  height: 160px;
  justify-content: space-between;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.module-card {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem 0.3rem;
  position: relative;
  text-align: left;
}

.module-chk {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #3b82f6;
  position: absolute;
  top: 5px;
  right: 5px;
}

.module-chk.green-bg {
  background-color: #10b981;
}

.module-title {
  font-size: 0.52rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1px;
}

.module-desc {
  font-size: 0.38rem;
  color: #475569;
  line-height: 1.1;
}

.module-card.active-focus {
  background-color: rgba(16, 185, 129, 0.03);
}

.infra-layer {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
}

.layer-title {
  font-size: 0.48rem;
  font-weight: 700;
  margin-bottom: 2px;
  text-align: left;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

.infra-grid span {
  font-size: 0.42rem;
  padding: 0.1rem;
  background-color: #080b14;
  text-align: center;
  border-radius: 3px;
  color: #64748b;
}

.sla-metrics {
  display: flex;
  justify-content: space-between;
}

.sla-item {
  flex: 1;
  text-align: center;
  font-size: 0.42rem;
  color: #475569;
  line-height: 1.1;
}

.sla-item strong {
  font-size: 0.65rem;
  color: #fff;
}

/* 07. Database ERD styles */
.db-erd-mockup {
  height: 160px;
  position: relative;
}

.erd-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.erd-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  height: 100%;
}

.erd-table-card {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  text-align: left;
}

.table-name {
  font-size: 0.52rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1px;
  margin-bottom: 2px;
}

.erd-column {
  font-size: 0.45rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pk-key {
  font-size: 0.35rem;
  font-weight: 700;
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 0 1px;
  border-radius: 1px;
}

.fk-key {
  font-size: 0.35rem;
  font-weight: 700;
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  padding: 0 1px;
  border-radius: 1px;
}

.col-type {
  font-size: 0.38rem;
  color: #475569;
}

.db-erd-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.db-platforms {
  display: flex;
  gap: 3px;
}

.db-tag {
  font-size: 0.45rem;
  background-color: #05070d;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: #64748b;
}

.db-metrics-list {
  display: flex;
  gap: 5px;
  font-size: 0.52rem;
  color: #475569;
}

/* 08. CICD specific styles */
.cicd-mockup {
  display: flex;
  flex-direction: column;
  height: 160px;
  justify-content: space-between;
}

.cicd-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}

.flow-block {
  flex: 1;
  background-color: #05070d;
  border-radius: 4px;
  padding: 0.18rem;
  text-align: center;
  font-size: 0.48rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.sub-block {
  display: block;
  font-size: 0.38rem;
  font-weight: normal;
  color: #475569;
  margin-top: 1px;
}

.mon-block {
  position: relative;
}

.mon-pulse {
  display: block;
  font-size: 0.6rem;
  color: #10b981;
  line-height: 1;
  margin-top: 1px;
}

.servers-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.server-group-box {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.group-title {
  font-size: 0.48rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.srv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.45rem;
  color: #94a3b8;
}

.srv-badge {
  font-size: 0.42rem;
  font-weight: 700;
}

.cloud-platforms-box {
  background-color: #05070d;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.platforms-title {
  font-size: 0.48rem;
  font-weight: 700;
}

.platforms-tags {
  display: flex;
  gap: 3px;
}

.cicd-metrics-list {
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  color: #475569;
}

/* Utilities */
.active-border {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.active-focus {
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

.border-tag {
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.text-cyan {
  color: #06b6d4 !important;
}

.text-green {
  color: #10b981 !important;
}

/* SVG and HTML Micro Animations */
@keyframes grow-t-bar {
  from {
    transform: scaleY(0.3);
  }

  to {
    transform: scaleY(1);
  }
}

.t-bar:nth-child(1) {
  animation: grow-t-bar 1.2s infinite alternate ease-in-out;
}

.t-bar:nth-child(2) {
  animation: grow-t-bar 1.8s infinite alternate ease-in-out;
  animation-delay: 0.25s;
}

.t-bar:nth-child(3) {
  animation: grow-t-bar 1.5s infinite alternate ease-in-out;
  animation-delay: 0.5s;
}

.t-bar:nth-child(4) {
  animation: grow-t-bar 2.0s infinite alternate ease-in-out;
  animation-delay: 0.15s;
}

.t-bar:nth-child(5) {
  animation: grow-t-bar 1.4s infinite alternate ease-in-out;
  animation-delay: 0.35s;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

.animated-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-path 3.5s infinite alternate ease-in-out;
}

@keyframes blink-dot {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

.pod-dot,
.mon-pulse {
  animation: blink-dot 0.8s infinite alternate ease-in-out;
}

@keyframes pulse-glow-node {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px var(--accent));
  }

  50% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 7px var(--accent));
  }
}

.n-circle.pulse-node {
  animation: pulse-glow-node 1.8s infinite ease-in-out;
  transform-origin: center;
}

.n-circle:nth-child(even) {
  animation: pulse-glow-node 2.4s infinite ease-in-out;
}

/* Console logs scrolling */
.console-log {
  height: 48px;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.console-scroll {
  display: flex;
  flex-direction: column;
  animation: scroll-terminal 14s infinite ease-in-out;
}

@keyframes scroll-terminal {

  0%,
  10% {
    transform: translateY(0);
  }

  12%,
  22% {
    transform: translateY(-16px);
  }

  24%,
  34% {
    transform: translateY(-32px);
  }

  36%,
  46% {
    transform: translateY(-48px);
  }

  48%,
  58% {
    transform: translateY(-64px);
  }

  60%,
  70% {
    transform: translateY(-80px);
  }

  72%,
  82% {
    transform: translateY(-96px);
  }

  84%,
  94% {
    transform: translateY(-112px);
  }

  96%,
  100% {
    transform: translateY(-128px);
  }
}

/* API Star network lines */
.api-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.api-conn-line {
  stroke: rgba(59, 130, 246, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  animation: api-dash-flow 1.5s linear infinite;
}

@keyframes api-dash-flow {
  to {
    stroke-dashoffset: -20;
  }
}

/* SaaS flow overlay */
.saas-flow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.saas-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: #06b6d4;
  border-radius: 50%;
  box-shadow: 0 0 6px #06b6d4;
}

.saas-dot.d-1 {
  top: 24px;
  animation: saas-flow-ltr 2.2s infinite linear;
}

.saas-dot.d-2 {
  top: 68px;
  animation: saas-flow-ltr 2.2s infinite linear;
  animation-delay: 0.75s;
}

.saas-dot.d-3 {
  top: 112px;
  animation: saas-flow-ltr 2.2s infinite linear;
  animation-delay: 1.5s;
}

@keyframes saas-flow-ltr {
  0% {
    left: 80px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 240px;
    opacity: 0;
  }
}

/* Database ERD relationship line dash flow */
.erd-connections-svg path {
  stroke-dasharray: 6 6;
  animation: erd-dash-flow 2.5s linear infinite;
}

@keyframes erd-dash-flow {
  to {
    stroke-dashoffset: -24;
  }
}

/* Responsive Overrides for Services Page */
@media (max-width: 968px) {

  .service-detail-grid,
  .service-detail-section:nth-child(even) .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-detail-section:nth-child(even) .service-detail-graphic {
    order: -1;
  }

  .services-title {
    font-size: 2.5rem;
  }
}

/* ==========================================
   LEGAL PAGES: PRIVACY POLICY & TERMS
   ========================================== */
.legal-page {
  padding-bottom: 5rem;
}

.legal-hero {
  padding: 8rem 0 4rem;
  background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.legal-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-body-section {
  padding: 4rem 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
}

.sticky-sidebar {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: block;
}

.toc-link:hover,
.toc-link.active {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.legal-card {
  position: relative;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  opacity: 0.3;
}

.legal-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.legal-card p,
.legal-card ul {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-card ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

.glass-alert {
  display: flex;
  gap: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

[data-theme="dark"] .glass-alert {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.15);
}

.alert-icon {
  font-size: 1.25rem;
}

.legal-contact-details {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.legal-contact-details p {
  margin-bottom: 0.5rem;
}

.legal-contact-details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 968px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .legal-sidebar {
    position: static;
  }
}

/* ==============================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Covers: 768px tablets, 640px phones, 480px
   small phones, 360px tiny phones
   ============================================== */

/* ---- TABLETS: max-width 768px ---- */
@media (max-width: 768px) {

  /* Typography scale-down */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Hero section */
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-btns {
    justify-content: center;
    margin-bottom: 2.5rem;
  }

  /* Code editor mockup — constrain on tablets */
  .hero-editor-wrapper {
    max-width: 100%;
    margin-top: 2rem;
  }

  .editor-body {
    height: 320px;
  }

  /* Glass status cards — stack on tablets */
  .glass-status-cards {
    flex-direction: column;
    gap: 0.5rem;
    right: -10px;
  }

  /* About section */
  .about {
    padding: 4rem 0;
  }

  .about-text h2 {
    font-size: 1.75rem;
  }

  /* Technologies section */
  .tech-grid {
    gap: 1rem;
  }

  /* Services detail sections */
  .service-detail-section {
    padding: 4rem 0;
  }

  /* FAQ section */
  .faq-section {
    padding: 4rem 0;
  }

  /* Contact section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Services infographic boxes */
  .infographic-box {
    padding: 1rem;
  }

  .arch-title {
    font-size: 0.65rem;
  }

  /* Legal pages */
  .legal-title {
    font-size: 2.25rem;
  }

  .legal-card {
    padding: 1.75rem;
  }
}

/* ---- PHONES: max-width 640px ---- */
@media (max-width: 640px) {

  /* Section padding */
  section,
  .section {
    padding: 3rem 0;
  }

  /* Hero */
  .hero {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  .hero-headline {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  /* Editor mockup — reduce height and hide sidebar on small screens */
  .hero-editor-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }

  .editor-body {
    height: 260px;
  }

  .editor-sidebar {
    display: none;
    /* hide activity bar on very small screens */
  }

  .line-numbers {
    display: none;
    /* hide line numbers on small phones */
  }

  /* Glass cards — stack below editor */
  .glass-status-cards {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .glass-card {
    width: calc(50% - 0.5rem);
  }

  /* Stat counters — 2 cols already handled, reduce padding */
  .stat-item {
    padding: 1rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  /* About */
  .about {
    padding: 3rem 0;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-para {
    font-size: 1rem;
  }

  /* Tech verticals */
  .tech-verticals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Process timeline */
  .process-timeline {
    padding-left: 1.25rem;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.95rem;
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Services badges */
  .tech-tags {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .tech-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  /* Services infographic boxes */
  .infographic-box {
    min-height: 260px;
    padding: 0.85rem;
  }

  .mockup-body {
    gap: 0.4rem;
  }

  /* Footer legal links */
  .footer-legal-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* Legal pages */
  .legal-hero {
    padding: 6rem 0 2.5rem;
  }

  .legal-title {
    font-size: 1.85rem;
  }

  .legal-desc {
    font-size: 0.95rem;
  }

  .legal-card {
    padding: 1.5rem;
  }

  .legal-card h2 {
    font-size: 1.25rem;
  }

  /* Sticky sidebar becomes static on phone */
  .sticky-sidebar {
    position: static;
  }

  .toc-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .toc-link {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ---- SMALL PHONES: max-width 480px ---- */
@media (max-width: 480px) {

  /* Container squeeze */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero */
  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  /* Stats & Hero Component Mobile Responsiveness */
  .hero-illustration,
  .hero-editor-wrapper,
  .code-editor {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .stat-item {
    min-width: 0;
    padding: 0.75rem 0.4rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .stat-num {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.72rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .header-top-bar {
    padding: 0.5rem 0.75rem;
  }

  .editor-title {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .header-placeholder {
    width: 24px;
  }

  /* Editor — further height reduction */
  .editor-body {
    height: 220px;
    padding: 0.75rem 0.5rem;
    min-width: 0;
  }

  .editor-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  /* Glass cards — full width stack */
  .glass-card {
    width: 100%;
  }

  /* Section headings */
  .section-header h2 {
    font-size: 1.5rem;
  }

  /* Tech verticals — single column */
  .tech-verticals-grid {
    grid-template-columns: 1fr;
  }

  /* Infographic boxes */
  .infographic-box {
    min-height: 220px;
  }

  /* CTA section */
  .cta-section .btn {
    width: 100%;
    justify-content: center;
  }

  /* Nav brand name — keep visible on small screens */
  .brand-logo span {
    display: inline;
  }

  /* Services page service detail grid */
  .service-detail-graphic {
    margin: 0;
  }

  /* Legal */
  .legal-title {
    font-size: 1.5rem;
  }

  .card-num {
    display: none;
  }
}

/* ---- TINY PHONES: max-width 360px ---- */
@media (max-width: 360px) {
  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.875rem;
  }

  .stat-num {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
  }

  .editor-body {
    height: 190px;
  }
}

/* ---- LANDSCAPE PHONES: Orientation fix ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .editor-body {
    height: 200px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

/* ==============================================
   ABOUT INTERACTIVE INFOGRAPHIC PANEL
   ============================================== */
.about-interactive-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about-interactive-panel.active-border:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.panel-dots {
  display: flex;
  gap: 0.4rem;
}

.panel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.panel-dots .dot.red {
  background-color: #ef4444;
}

.panel-dots .dot.yellow {
  background-color: #f59e0b;
}

.panel-dots .dot.green {
  background-color: #10b981;
}

.panel-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.panel-status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.status-dot.pulsing {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.infographic-screen {
  background-color: #070913;
  color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 200px;
  margin-bottom: 1.25rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.infographic-screen * {
  color: #ffffff !important;
}

.screen-view {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.screen-view.active {
  display: flex;
}

/* DevOps View */
.devops-svg {
  width: 100%;
  height: 120px;
}

.loop-path-active {
  animation: loop-dash 4s linear infinite;
}

@keyframes loop-dash {
  to {
    stroke-dashoffset: -300;
  }
}

.flow-packet {
  animation: flow-packet-anim 4s linear infinite;
  offset-path: path("M 30,60 C 30,30 80,30 100,60 C 120,90 170,90 170,60 C 170,30 120,30 100,60 C 80,90 30,90 30,60 Z");
  offset-rotate: auto;
}

@keyframes flow-packet-anim {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}

.milestone-node {
  fill: #151824;
  stroke: var(--border-color);
  stroke-width: 2px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.milestone-node:hover {
  fill: var(--accent-primary);
  stroke: #ffffff;
  r: 7px;
}

.pipeline-progress-bar {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  height: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}

.pipeline-progress-bar .bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 98%;
  background: var(--grad-primary);
  opacity: 0.15;
  animation: deploy-fill 3s ease-in-out infinite alternate;
}

@keyframes deploy-fill {
  from {
    width: 90%;
  }

  to {
    width: 100%;
  }
}

.progress-txt {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  z-index: 2;
}

/* Cloud View */
.cloud-nodes-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

.cloud-node {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 110px;
}

.cloud-node svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.cloud-node span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cloud-node-connector {
  position: relative;
  width: 40px;
  height: 2px;
  background-color: var(--border-color);
}

.cloud-node-connector::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: cloud-ping 1.5s infinite linear;
}

@keyframes cloud-ping {
  0% {
    left: 0%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.system-stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Security View */
.shield-container {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.shield-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-green);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.shield-halo {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  animation: shield-ping-halo 2s infinite ease-out;
}

@keyframes shield-ping-halo {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.security-logs {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.log-line {
  margin-bottom: 0.25rem;
}

.log-line:last-child {
  margin-bottom: 0;
}

/* Tab buttons styling */
.infographic-tabs {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

@media (max-width: 480px) {
  .infographic-tabs {
    flex-direction: column;
    gap: 0.35rem;
  }
}

.info-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.info-tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.info-tab-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #ffffff !important;
}

.info-tab-btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   ACHYUT TECHNICAL BLOG STYLES
   ========================================================================== */

.blog-hub-page {
  padding-bottom: 5rem;
}

/* --- Blog Hero Section --- */
.blog-hero {
  padding: 6rem 0 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.blog-main-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-main-desc {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* --- Blog Controls: Search & Category Chips --- */
.blog-controls-section {
  padding: 1.5rem 0;
  margin-bottom: 3rem;
  position: sticky;
  top: 70px;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.controls-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Search Box */
.search-box-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 450px;
}

.search-box-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.search-box-wrapper input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px var(--glow-color);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.clear-btn:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

/* Category Chips */
.category-chips-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.chip.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* --- Featured Post Section --- */
.featured-post-section {
  margin-bottom: 4rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-smooth);
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.featured-image-side {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.featured-card:hover .featured-img {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--grad-cyan);
  color: #FFFFFF;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.featured-content-side {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.category-indicator {
  font-weight: 700;
  color: var(--accent-secondary);
  text-transform: uppercase;
}

.featured-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.author-name-role {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.author-name-role strong {
  color: var(--text-primary);
}

.author-name-role span {
  color: var(--text-muted);
}

/* --- Blog Cards Grid --- */
.blog-grid-section {
  margin-bottom: 5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.card-image-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .card-cover-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-card:hover .card-badge {
  background: var(--grad-primary);
  color: #FFFFFF;
  border-color: transparent;
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.blog-card:hover .card-title {
  color: var(--accent-secondary);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: auto;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.author-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.card-link-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link-btn svg {
  transition: transform var(--transition-fast);
}

.blog-card:hover .card-link-btn svg {
  transform: translateX(3px);
}

/* --- Related Grid specific layouts --- */
.related-posts-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.related-section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 800;
}

/* --- Search State / No Results --- */
.no-results-alert {
  text-align: center;
  padding: 5rem 2rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  max-width: 600px;
  margin: 2rem auto;
}

.no-results-alert svg {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.no-results-alert h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.no-results-alert p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Blog Newsletter Section --- */
.blog-newsletter-section {
  margin-top: 4rem;
}

.newsletter-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.newsletter-banner::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}

.newsletter-content {
  flex: 1.2;
  min-width: 300px;
}

.newsletter-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.newsletter-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.newsletter-action-form {
  flex: 0.8;
  display: flex;
  gap: 0.5rem;
  min-width: 300px;
  z-index: 2;
}

.input-field {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-field:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px var(--glow-color);
}

/* ==========================================================================
   BLOG READER VIEW SPECIFIC STYLES
   ========================================================================== */

.blog-reader-view {
  background-color: var(--bg-primary);
}

/* Force navbar solid background and styling on blog details page to prevent unreadable text overlap */
body:has(.blog-reader-hero) .navbar {
  border-color: var(--border-color) !important;
  padding: 0.85rem 0 !important;
}

body:has(.blog-reader-hero) .navbar::before {
  background-color: var(--nav-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-md) !important;
}

.blog-reader-hero {
  padding: 7rem 0 5rem 0;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  position: relative;
  text-align: left;
}

.reader-hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--accent-secondary);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
  color: #FFFFFF;
}

.reader-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #FFFFFF;
  max-width: 950px;
}

.reader-subtitle {
  font-size: 1.25rem;
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 2rem;
  max-width: 800px;
  font-weight: 500;
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.7);
}

.font-accent {
  background: var(--grad-cyan);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.meta-separator {
  opacity: 0.5;
}

/* Body Grid layout */
.reader-body-grid {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr;
  gap: 3.5rem;
  padding: 4rem 0;
}

.reader-content-col {
  min-width: 0;
  /* Prevents overflow in flexible boxes */
}

/* Article rich-text content customization */
.reader-article-content {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.reader-article-content p {
  margin-bottom: 1.75rem;
}

.reader-article-content p.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 2rem;
}

.reader-article-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.reader-article-content ul,
.reader-article-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.reader-article-content li {
  margin-bottom: 0.5rem;
}

.reader-article-content blockquote {
  border-left: 4px solid var(--accent-secondary);
  background-color: var(--bg-secondary);
  padding: 1.5rem 2rem;
  font-style: italic;
  font-size: 1.15rem;
  margin: 2.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-primary);
}

.reader-article-content pre {
  margin: 2rem 0;
  background-color: #070913;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
}

.reader-article-content code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-primary);
  background-color: rgba(59, 130, 246, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.reader-article-content pre code {
  color: #F8FAFC;
  background-color: transparent;
  padding: 0;
  font-size: 0.85rem;
}

/* Sidebar details */
.reader-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.author-avatar-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-secondary);
}

.author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.author-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.input-sidebar {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-sidebar:focus {
  border-color: var(--accent-secondary);
}

/* Tags layout */
.reader-tags-box {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.tags-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.blog-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.reader-actions {
  margin-top: 3rem;
  display: flex;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .reader-body-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 1.5rem;
  }

  .reader-sidebar-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .controls-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .search-box-wrapper {
    max-width: 100%;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-content-side {
    padding: 2rem;
  }

  .newsletter-banner {
    padding: 2.5rem;
    text-align: center;
  }

  .newsletter-action-form {
    flex-direction: column;
    width: 100%;
  }

  .reader-body-grid {
    padding: 2rem 1rem;
  }

  .reader-sidebar-col {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .blog-reader-hero {
    padding: 5rem 1rem 2rem 1rem;
  }

  .reader-title {
    font-size: 2rem !important;
  }
}

@media (max-width: 580px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-engagement-bar {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .blog-engagement-bar .engagement-divider {
    display: none;
  }
}

/* High contrast modifications inside dark theme context */
[data-theme="dark"] .blog-controls-section {
  background-color: var(--bg-primary);
}

[data-theme="dark"] .reader-article-content blockquote {
  background-color: var(--bg-secondary);
  border-left-color: var(--accent-secondary);
}

[data-theme="dark"] .newsletter-banner {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
}

/* ==========================================================================
   ACHYUT SOFTWARE PRODUCTS & PRICING HUB STYLES
   ========================================================================== */

.store-page {
  padding-bottom: 6rem;
}

/* --- Store Hero --- */
.store-hero {
  padding: 6rem 0 3rem 0;
  text-align: center;
  position: relative;
}

.store-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.store-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-desc {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* --- Store Controls --- */
.store-controls-section {
  padding: 1.25rem 0;
  margin-bottom: 4rem;
  position: sticky;
  top: 70px;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.store-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.store-tab {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.store-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.store-tab.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* --- Section Title Wrapper --- */
.section-title-wrapper {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

.section-pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title-wrapper h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-title-wrapper p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --- Product Cards Layout --- */
.store-grid-section {
  padding: 5rem 0;
}

.store-grid-section.alt-bg {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.store-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.store-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.store-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-primary);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.store-card:hover::before {
  opacity: var(--card-glow-opacity);
}

.store-card .card-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}

.store-card .card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-secondary);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.store-card .meta-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.store-card .card-version {
  background-color: rgba(59, 130, 246, 0.08);
  color: var(--accent-primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.store-card .card-size {
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.store-card .product-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.store-card .card-body {
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.store-card .product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.store-card .product-pricing {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.store-card .product-pricing .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.store-card .product-pricing .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.store-card .features-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.25rem;
}

.store-card .features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.store-card .check-icon {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.store-card .card-footer {
  padding: 1.5rem 2rem 2rem 2rem;
  z-index: 2;
}

/* --- Pricing Panel Grid --- */
.pricing-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.pricing-panel:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.pricing-panel.popular-panel {
  border-color: var(--accent-secondary);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.02) 100%);
  transform: scale(1.03);
}

.pricing-panel.popular-panel:hover {
  transform: scale(1.03) translateY(-6px);
}

.popular-ribbon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--grad-primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.pricing-panel .pricing-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 1.5rem;
}

.pricing-panel h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--text-primary);
}

.pricing-panel .pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  min-height: 4.5rem;
  /* Ensure cards align descriptions perfectly even with varying lengths */
}

.pricing-panel .pricing-price-row {
  display: flex;
  align-items: baseline;
  margin-top: auto;
}

.pricing-panel .pricing-price-row .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  align-self: flex-start;
  margin-top: 0.2rem;
}

.pricing-panel .pricing-price-row .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-panel .pricing-price-row .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.25rem;
}

.pricing-panel .pricing-body {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-features-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features-checklist li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-features-checklist .bullet-check {
  color: var(--accent-secondary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pricing-panel.popular-panel .bullet-check {
  color: var(--accent-green);
}

/* ==========================================================================
   INTERACTIVE CHECKOUT DIALOG MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 9, 19, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl), 0 0 50px rgba(0, 0, 0, 0.3);
  animation: modalScaleUp var(--transition-fast) ease-out;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.modal-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.modal-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Order Summary */
.order-summary-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row .value {
  color: var(--text-primary);
  font-weight: 600;
}

.summary-row.total-row {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.summary-row.total-row .value {
  color: var(--accent-secondary);
  font-size: 1.1rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--accent-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Input Icon */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper input {
  padding-right: 2.75rem;
}

.cc-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Spinner */
.spinner-wheel {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  margin: 0 auto;
  animation: spinnerRotate 1s linear infinite;
}

@keyframes spinnerRotate {
  to {
    transform: rotate(360deg);
  }
}

/* Success State */
.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.08);
  border: 2px solid #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Download progress */
.download-trigger-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.download-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.download-progress {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: 4px;
}

#downloadStatusText {
  display: block;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.mock-workspace-link code {
  display: block;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
}

/* ==========================================================================
   STORE RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }

  .pricing-panel.popular-panel {
    transform: none;
  }

  .pricing-panel.popular-panel:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .store-hero {
    padding: 6rem 0 2rem 0;
  }

  .store-tab {
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
  }

  .pricing-matrix-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .newsletter-banner {
    padding: 2.5rem;
  }
}

@media (max-width: 580px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* High contrast modifications inside dark theme context */
[data-theme="dark"] .store-controls-section {
  background-color: var(--bg-primary);
}

[data-theme="dark"] .order-summary-box {
  background-color: var(--bg-secondary);
}

/* ==========================================================================
   APPLE iOS 26 LIQUID GLASS GLOBAL STYLES
   ========================================================================== */

/* Target list of cards and stats elements across all pages for Liquid Glass transition */
.service-card,
.tech-category-card,
.project-card,
.why-card,
.testimonial-card,
.store-card,
.pricing-panel,
.blog-card,
.liquid-glass-card,
.stat-item {
  position: relative;
}

.service-card,
.tech-category-card,
.project-card,
.why-card,
.testimonial-card,
.glass-card,
.store-card,
.pricing-panel,
.blog-card,
.liquid-glass-card,
.stat-item {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Light refraction and backdrop blur on hover */
.service-card:hover,
.tech-category-card:hover,
.project-card:hover,
.why-card:hover,
.testimonial-card:hover,
.glass-card:hover,
.store-card:hover,
.pricing-panel:hover,
.blog-card:hover,
.liquid-glass-card:hover,
.stat-item:hover {
  backdrop-filter: url(#liquid-refraction) blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: url(#liquid-refraction) blur(24px) saturate(180%) !important;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.15),
    0 25px 60px rgba(0, 0, 0, 0.25),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35),
    inset 0 -2px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Polished edge highlights and chromatic dispersion overlays on cards */
.service-card::after,
.tech-category-card::after,
.project-card::after,
.why-card::after,
.testimonial-card::after,
.glass-card::after,
.store-card::after,
.pricing-panel::after,
.blog-card::after,
.liquid-glass-card::after,
.stat-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45),
    /* top polished bevel */
    inset 1px 0 0.5px rgba(255, 255, 255, 0.2),
    /* left edge */
    0 0 0 1px rgba(255, 0, 100, 0.05),
    /* red dispersion leak */
    0 0 0 2px rgba(0, 200, 255, 0.03);
  /* cyan dispersion leak */
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover::after,
.tech-category-card:hover::after,
.project-card:hover::after,
.why-card:hover::after,
.testimonial-card:hover::after,
.glass-card:hover::after,
.store-card:hover::after,
.pricing-panel:hover::after,
.blog-card:hover::after,
.liquid-glass-card:hover::after,
.stat-item:hover::after {
  opacity: 1;
}

/* Specular reflection shine overlay on cards & stats items */
.sheen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 50%,
      transparent 100%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover .sheen-overlay,
.tech-category-card:hover .sheen-overlay,
.project-card:hover .sheen-overlay,
.why-card:hover .sheen-overlay,
.testimonial-card:hover .sheen-overlay,
.glass-card:hover .sheen-overlay,
.store-card:hover .sheen-overlay,
.pricing-panel:hover .sheen-overlay,
.blog-card:hover .sheen-overlay,
.liquid-glass-card:hover .sheen-overlay,
.stat-item:hover .sheen-overlay {
  opacity: 1;
}

/* Interactive Apple iOS 26 Liquid Glass buttons */
.btn {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast) !important;
}

.btn:hover {
  backdrop-filter: url(#liquid-refraction) blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: url(#liquid-refraction) blur(10px) saturate(140%) !important;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.15),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4),
    /* top polished highlight */
    inset 0 -1px 1px rgba(0, 0, 0, 0.1) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.25) !important;
}

.btn:active {
  transform: translateY(0) scale3d(0.98, 0.98, 0.98);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 0, 100, 0.04),
    /* red dispersion leak */
    0 0 0 2px rgba(0, 200, 255, 0.02);
  /* cyan dispersion leak */
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

/* Maintain original button color themes appropriately on hover */
.btn-primary:hover {
  background: var(--grad-primary) !important;
  opacity: 0.95;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   ACHYUT TECHNICAL BLOG READER & ENGAGEMENT STYLES
   ========================================================================== */

/* --- Sidebar Newsletter Subscribe Card (Teal to Blue Gradient Button) --- */
.sidebar-widget.newsletter-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.sidebar-widget.newsletter-widget h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-widget.newsletter-widget p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.newsletter-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-subscribe-form .sub-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-subscribe-form .sub-input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px var(--glow-color);
}

.newsletter-subscribe-form .sub-btn {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  transition: all var(--transition-fast);
}

.newsletter-subscribe-form .sub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  filter: brightness(1.05);
}

.newsletter-subscribe-form .sub-btn:active {
  transform: translateY(0);
}

.newsletter-subscribe-form .subscribe-feedback {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: none;
}

.newsletter-subscribe-form .subscribe-feedback.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.newsletter-subscribe-form .subscribe-feedback.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* --- Engagement Bar (Likes + Stats) --- */
.blog-engagement-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.blog-engagement-bar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.like-btn:hover {
  background-color: var(--bg-secondary);
  color: #ef4444;
}

.like-btn.liked {
  color: #ef4444;
}

.like-btn.liked svg {
  fill: #ef4444;
  stroke: #ef4444;
  animation: heartBeat 0.35s ease-out;
}

.engagement-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.engagement-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-color);
}

/* --- Comments Section --- */
.blog-comments-section {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.blog-comments-section .section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-comments-section .section-heading svg {
  width: 24px;
  height: 24px;
  color: var(--accent-secondary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.comment-card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.comment-card:hover {
  border-color: var(--border-hover);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  word-break: break-word;
}

.comments-empty {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.comments-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* Comment Form Card */
.comment-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.comment-form-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 580px) {
  .comment-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.form-full {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition-fast);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px var(--glow-color);
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.comment-form-policy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--grad-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.comment-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.comment-submit-btn:active {
  transform: translateY(0);
}

.comment-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: none;
}

.comment-feedback.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comment-feedback.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* CAPTCHA styles */
.captcha-container {
  margin-bottom: 1.5rem;
}
.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(128, 128, 128, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(128, 128, 128, 0.2);
  flex-wrap: wrap;
}
.captcha-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.btn-refresh-captcha {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  color: inherit;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-refresh-captcha:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.btn-refresh-captcha:active {
  transform: rotate(90deg) scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}