/* =============================================================================
   HESMAR TECHNOLOGIES - DARK MODE STYLESHEET
   Vaonis-inspired premium dark theme with cyan accents
   ============================================================================= */

/* =============================================================================
   1. CSS CUSTOM PROPERTIES & RESET
   ============================================================================= */

:root {
  /* ── MINIMALIST TECH WHITE THEME ── */
  --color-bg-primary: #F9F9FB; /* Aesthetic Off-White */
  --color-bg-secondary: #FFFFFF;
  --color-bg-tertiary: #F2F2F7;
  --color-bg-card: #FFFFFF;
  --color-bg-card-hover: #FFFFFF;
  --color-bg-dark-card: #1C1C1E;
  --color-bg-dark-card-hover: #2C2C2E;
  --color-bg-elevated: #FFFFFF;
  --color-bg-subtle: #F5F5F7;

  /* Cool Blue Accent from Logo */
  --color-accent: #0066FF; 
  --color-accent-hover: #0052D1;
  --color-accent-light: #3385FF;
  --color-accent-glow: rgba(0, 102, 255, 0.1);
  --color-accent-dark: #0047AB;

  /* Text Colors — High Contrast Black on White */
  --color-text-primary: #111111;
  --color-text-secondary: #424245;
  --color-text-muted: #86868B;
  --color-text-accent: var(--color-accent);
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: #A1A1A6;

  /* Border & Divider — Soft Grey */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 102, 255, 0.3);
  --color-divider: rgba(0, 0, 0, 0.05);

  /* Status Colors */
  --color-success: #34C759;
  --color-error: #FF3B30;
  --color-warning: #FF9500;
  --color-info: #007AFF;

  /* Typography — Elite Tech Pairing */
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing — Aggressive Whitespace */
  --spacing-unit: 10px;
  --section-padding: 140px;
  --container-max-width: 1400px;

  /* Transitions — Hesmar cubic-bezier easing */
  --ease-hesmar: cubic-bezier(.22,.68,0,1);
  --ease-hesmar-elastic: cubic-bezier(.22,.68,0,1.2);
  --ease-hesmar-bounce: cubic-bezier(.22,.68,0,1.5);
  --transition-fast: 0.2s var(--ease-hesmar);
  --transition-smooth: 0.4s var(--ease-hesmar);
  --transition-medium: 0.6s var(--ease-hesmar);
  --transition-slow: 0.8s var(--ease-hesmar-elastic);

  /* Shadows — Subtle & Soft */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.08);

  /* Glassmorphism — Premium Crystal Style */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(15, 15, 15, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(25px);
  --glass-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  --glass-inner-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  --glass-shadow-deep: 0 30px 60px rgba(0, 0, 0, 0.15);

  /* Z-indexes */
  --z-navbar: 1000;
  --z-mobile-menu: 999;
  --z-modal: 1100;
  --z-tooltip: 1200;
}

/* Logo size is defined in the navbar section below */

/* Grain Overlay — adds tactile cinematic texture */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Text selection — Hesmar style */
::selection {
  background: var(--color-accent);
  color: #000;
}

::-moz-selection {
  background: var(--color-accent);
  color: #000;
}

/* Ambient background glows — Hesmar style depth */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.05;
  will-change: transform, opacity;
}

.ambient-glow-1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--color-accent), transparent 75%);
  top: -400px;
  right: -300px;
  animation: glow-drift-1 30s ease-in-out infinite;
}

.ambient-glow-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #111, transparent 75%);
  bottom: -350px;
  left: -300px;
  animation: glow-drift-2 35s ease-in-out infinite;
}

.ambient-glow-3 {
  position: fixed;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1), transparent 75%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(160px);
  opacity: 0.03;
  z-index: 0;
  animation: glow-drift-3 25s ease-in-out infinite;
}

@keyframes glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.08; }
  33% { transform: translate(-100px, 120px) scale(1.1); opacity: 0.12; }
  66% { transform: translate(60px, -80px) scale(0.9); opacity: 0.06; }
}

@keyframes glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.06; }
  50% { transform: translate(120px, -100px) scale(1.2); opacity: 0.1; }
}

@keyframes glow-drift-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -60%) scale(1.1); }
}

/* Section Partitions — Subtle cinematic dividers */
.section-partition {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--color-border) 15%, 
    var(--color-accent) 50%, 
    var(--color-border) 85%, 
    transparent 100%
  );
  opacity: 0.3;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.section-partition::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: partition-sweep 8s infinite linear;
}

@keyframes partition-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Enhanced Buttons — Magnetic & Glow */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.5), box-shadow 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 200%;
}

.btn-primary:hover {
  box-shadow: 0 0 25px var(--color-accent-glow), 0 0 50px rgba(0, 102, 255, 0.1);
  transform: scale(1.05) translateY(-2px);
}

/* Card Scanner Effect Refinement */
.service-card, .post-card, .portfolio-card, .stat-card {
  position: relative;
  overflow: hidden;
}

.card-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(135deg, 
    transparent 45%, 
    rgba(0, 102, 255, 0.05) 50%, 
    transparent 55%
  );
  transition: opacity 0.4s ease;
}

.service-card:hover .card-scanner,
.post-card:hover .card-scanner,
.portfolio-card:hover .card-scanner {
  opacity: 1;
  animation: card-sweep 1.5s infinite;
}

@keyframes card-sweep {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Text Reveal Micro-animation */
.reveal-text {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.reveal-text span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-hesmar);
}

.aos-animate .reveal-text span {
  transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-accent);
  z-index: 1001;
  box-shadow: 0 0 10px var(--color-accent);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* All page sections sit above the fixed canvas */
.services-overview,
.why-choose-us,
.recent-posts,
.cta-banner,
.company-story,
.vision-mission,
.core-values,
.team-section,
.milestones,
.portfolio,
.portfolio-stats,
.contact-section,
.faq-section,
.map-section,
.blog-section,
.careers-section {
  position: relative;
  z-index: 2;
}

/* Light theme sections — Soft alternating shades */
.services-overview   { background-color: var(--color-bg-primary) !important; }
.why-choose-us       { background-color: var(--color-bg-secondary) !important; }
.recent-posts        { background-color: var(--color-bg-primary) !important; }
.company-story       { background-color: var(--color-bg-primary) !important; }
.vision-mission      { background-color: var(--color-bg-secondary) !important; }
.core-values         { background-color: var(--color-bg-primary) !important; }
.team-section        { background-color: var(--color-bg-secondary) !important; }
.milestones          { background-color: var(--color-bg-primary) !important; }
.portfolio           { background-color: var(--color-bg-primary) !important; }
.portfolio-stats     { background-color: var(--color-bg-secondary) !important; }
.contact-section     { background-color: var(--color-bg-primary) !important; }
.faq-section         { background-color: var(--color-bg-secondary) !important; }
.map-section         { background-color: var(--color-bg-primary) !important; }
.blog-section        { background-color: var(--color-bg-primary) !important; }
.careers-section     { background-color: var(--color-bg-primary) !important; }

/* CTA banner — High Contrast Dark Break */
.cta-banner {
  background: var(--color-bg-dark-card) !important;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cta-banner .cta-title,
.cta-banner .cta-subtitle {
  color: #FFFFFF !important;
}
.cta-banner .accent-word {
  color: var(--color-accent) !important;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Footer — Minimalist Technical */
.footer {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg-secondary) !important;
  padding: 120px 0 60px;
  border-top: 1px solid var(--color-border);
}

.footer-logo {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.06em;
  color: var(--color-text-primary);
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-text {
  max-width: 350px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-smooth);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* Navbar Editorial — Crystal White */
button, a {
  transition: all var(--transition-smooth);
}

ul, ol {
  list-style: none;
}

/* =============================================================================
   2. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.05em;
  text-transform: none;
}

h1 {
  font-size: clamp(4.5rem, 14vw, 11rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(3rem, 10vw, 7rem);
}

h3 {
  font-size: clamp(2rem, 6vw, 4rem);
}

p {
  font-size: 1.35rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  font-weight: 400;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

a:hover {
  color: var(--color-text-primary);
}

/* Glassmorphism Classes — Premium Crystal Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 
    var(--glass-shadow),
    var(--glass-highlight),
    var(--glass-inner-shadow);
  border-radius: 32px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%
  );
  opacity: var(--glass-light-opacity, 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    var(--glass-shadow-deep),
    var(--glass-highlight),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-8px) scale(1.01);
}

/* =============================================================================
   3. LAYOUT & CONTAINERS
   ============================================================================= */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 1024px) {
  .container { padding: 0 3rem; }
}

@media (max-width: 576px) {
  .container { padding: 0 1.5rem; }
}

.section {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  .section { padding: 100px 0; }
}

@media (max-width: 576px) {
  .section { padding: 80px 0; }
}

.py-80 {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

@media (max-width: 768px) {
  .py-80 { padding-top: 70px; padding-bottom: 70px; }
}

.mb-60 { margin-bottom: 60px; }
.mb-50 { margin-bottom: 50px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.mt-30 { margin-top: 30px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }

.text-center { text-align: center; }

.bg-light {
  background-color: var(--color-bg-secondary);
}

.bg-dark {
  background-color: var(--color-bg-tertiary);
}

.section-header {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--color-text-primary);
}

.text-center .section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

/* Grid helpers */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col-lg-6 {
  flex: 1 1 45%;
  min-width: 300px;
}

@media (max-width: 768px) {
  .col-lg-6 { flex: 1 1 100%; }
  .flex-row-reverse { flex-direction: column; }
}

.align-items-center { align-items: center; }
.flex-row-reverse { flex-direction: row-reverse; }

/* =============================================================================
   4. BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.5s var(--ease-hesmar);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: scale(1.04) translateY(-2px);
}

/* Hesmar-style icon container with swap animation */
.btn .btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  overflow: hidden;
}

.btn .btn-icon-wrap i {
  font-size: 0.8rem;
  transition: transform 0.5s var(--ease-hesmar), opacity 0.5s var(--ease-hesmar);
  will-change: transform;
}

.btn .btn-icon-wrap .btn-icon-clone {
  position: absolute;
  font-size: 0.8rem;
  transform: translateX(-150%);
  opacity: 0;
  transition: transform 0.5s var(--ease-hesmar), opacity 0.5s var(--ease-hesmar);
  will-change: transform;
}

.btn:hover .btn-icon-wrap i {
  transform: translateX(150%);
  opacity: 0;
}

.btn:hover .btn-icon-wrap .btn-icon-clone {
  transform: translateX(0);
  opacity: 1;
}

/* Legacy icon support (no wrap) */
.btn > i:only-child,
.btn > i:not(.btn-icon-clone) {
  font-size: 0.85rem;
  transition: transform var(--transition-smooth);
}

.btn:hover > i {
  transform: translateX(5px);
}

/* Primary — Blue High-Impact */
.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #FFFFFF;
  box-shadow: 0 15px 45px rgba(0, 102, 255, 0.3);
}

/* Secondary — Glassy Technical Style */
.btn-secondary {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.15);
  transform: scale(1.04) translateY(-2px);
}

.btn-lg {
  padding: 1.25rem 3.5rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Scroll Hint Refinement with Fixed Animation */
.hero-scroll-hint {
  color: var(--color-text-primary) !important;
  font-weight: 800 !important;
  opacity: 0; /* Handled by fade-in-hint animation */
  letter-spacing: 0.25em !important;
  animation: fade-in-hint 1s 1.5s var(--ease-hesmar) forwards;
}

.scroll-line {
  background: var(--color-accent) !important;
  width: 40px !important;
  height: 2px !important;
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* =============================================================================
   5. NAVBAR — Cinematic Floating Crystal
   ============================================================================= */

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background-color: var(--color-bg-secondary); /* Solid Background */
  border-bottom: 2px solid var(--color-border);
  z-index: 1000;
  transition: all 0.5s var(--ease-hesmar);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  height: 70px;
  top: 15px !important;
  width: 94%;
  left: 3%;
  background-color: var(--color-bg-secondary);
  border: 2px solid var(--color-accent); /* Stronger accent border */
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  padding: 0 2.5rem;
}

/* Dark mode compatibility for navbar (if needed) */
[class*="dark-theme"] .navbar.scrolled {
  background-color: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link {
  color: var(--color-text-primary) !important;
}

[class*="dark-theme"] .navbar.scrolled .nav-link {
  color: #FFFFFF !important;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav-brand .logo img {
  height: 45px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 102, 255, 0.35)) drop-shadow(0 0 14px rgba(0, 102, 255, 0.2));
  transition: filter 0.4s ease;
  animation: logo-glow-pulse 3.5s ease-in-out infinite;
}

.nav-brand .logo:hover img {
  filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.6)) drop-shadow(0 0 22px rgba(0, 102, 255, 0.35));
  animation-play-state: paused;
}

@keyframes logo-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(0, 102, 255, 0.3)) drop-shadow(0 0 12px rgba(0, 102, 255, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.5)) drop-shadow(0 0 18px rgba(0, 102, 255, 0.28));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-brand .logo img {
    animation: none;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 0.3s var(--ease-hesmar);
  will-change: transform;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-hesmar-elastic);
  border-radius: 2px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.nav-toggle:hover span {
  background-color: var(--color-accent);
}

.language-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--color-accent-glow);
  padding: 0.25rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 102, 255, 0.15);
}

.language-toggle .nav-link,
.language-toggle a {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 15px;
  color: var(--color-text-muted) !important;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.language-toggle .nav-link::after,
.language-toggle a::after {
  display: none;
}

.language-toggle .nav-link.active,
.language-toggle .active {
  background: var(--color-text-primary) !important;
  color: #fff !important;
}

[class*="dark-theme"] .language-toggle .nav-link.active,
[class*="dark-theme"] .language-toggle .active {
  background: var(--color-accent) !important;
  color: #fff !important;
}

.lang-separator {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--color-bg-primary);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    padding: 1.5rem 2rem 2rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 20px 20px;
    animation: nav-slide-down 0.4s var(--ease-hesmar) forwards;
  }

  /* Ensure readable contrast in both light and dark themes */
  .nav-menu .nav-link {
    color: var(--color-text-primary);
  }

  @keyframes nav-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu .nav-item {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
  }

  .nav-menu .nav-link:hover {
    background: rgba(0, 102, 255, 0.05);
    color: var(--color-text-primary);
  }

  .nav-menu .nav-link.active {
    color: var(--color-accent);
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar {
    padding: 0 1rem;
  }

  /* Lock body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }
}

/* =============================================================================
   6. HERO SECTIONS
   ============================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-bg-primary);
  z-index: 2;
}

/* Radial glow overlay for hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0, 102, 255, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-home {
  margin-top: 0;
  padding-top: 180px;
  padding-bottom: 100px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.hero-page {
  min-height: 55vh;
  padding-top: 120px;
  background: var(--color-bg-primary);
  justify-content: flex-start;
}

/* Hero inner layout — text left, visual right */
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 4rem;
  margin: 0 auto;
}

.hero-text-block {
  flex: 1;
  max-width: 780px;
  position: relative;
  z-index: 5; /* Ensure text stays above visual elements if they overlap */
}

.hero-visual-block {
  flex: 1 1 420px;
  max-width: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1400px) {
  .hero-inner { padding: 0 2rem; gap: 3rem; }
}

@media (max-width: 1200px) {
  .hero-inner { gap: 2rem; }
  .hero-text-block { max-width: 650px; }
  .hero-visual-block { max-width: 400px; }
}

@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 4rem; padding: 0 1.5rem; }
  .hero-visual-block { flex: 0 0 auto; width: 100%; max-width: 450px; }
  .hero-text-block { max-width: 100%; }
}

/* Hero eyebrow tag — Precise Technical Look */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-accent-glow);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 50px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: all 0.4s var(--ease-hesmar);
}

.hero-eyebrow:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--color-accent);
}

.hero-eyebrow span.dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
}

@media (max-width: 1024px) {
  .hero-subtitle { margin-left: auto; margin-right: auto; }
}

.hero-eyebrow span.dot {
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* Floating tech visual */
.tech-float-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  animation: float-visual 6s ease-in-out infinite;
}

@keyframes float-visual {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(1.5deg); }
  66% { transform: translateY(-10px) rotate(-1deg); }
}

.tech-float-visual svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.2));
}

/* Floating orbit rings around visual */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 102, 255, 0.15);
  animation: orbit-spin linear infinite;
  pointer-events: none;
}

.orbit-ring-1 {
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  animation-duration: 12s;
}

.orbit-ring-2 {
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  animation-duration: 20s;
  animation-direction: reverse;
  border-style: dashed;
  opacity: 0.6;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glowing dot accents around visual */
.glow-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent), 0 0 24px rgba(0, 102, 255, 0.4);
  animation: glow-pulse 3s ease-in-out infinite;
}

.glow-dot:nth-of-type(1) { top: 10%; right: 5%; animation-delay: 0s; }
.glow-dot:nth-of-type(2) { bottom: 15%; left: 5%; animation-delay: 1s; }

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-text-primary);
  padding: 2rem;
}

.hero-content h1,
.hero-title {
  color: var(--color-text-primary);
  margin-bottom: 2rem;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15; /* Increased from 1.04 for better UX */
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .hero-actions { justify-content: center; flex-direction: column; gap: 1.5rem; }
}

/* Neon highlight word in hero */
.hero-title .accent-word {
  color: var(--color-accent);
  text-shadow: 0 0 60px rgba(0, 102, 255, 0.3);
}

.section-title .accent-word {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 540px;
}

.hero-page .hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

.hero-page .hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-page .hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Page hero divider line */
.hero-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Scroll indicator */
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3rem;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { width: 40px; opacity: 1; }
  50% { width: 20px; opacity: 0.5; }
}

@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .hero-page { min-height: 35vh; }
  .hero-content { padding: 1.5rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* =============================================================================
   7. SERVICE CARDS
   ============================================================================= */

.services-overview {
  background-color: var(--color-bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Grids — base definitions for grids that were missing them */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-grid {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.footer-grid .about-col {
  flex: 0 0 320px;
  max-width: 320px;
}

.footer-grid .footer-links-grid {
  flex: 1;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  padding: 3.5rem 2.5rem;
  text-align: left;
  transition: transform 0.5s var(--ease-hesmar-elastic), box-shadow 0.5s var(--ease-hesmar), border-color 0.3s var(--ease-hesmar), background 0.3s var(--ease-hesmar);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Scanner Line Animation */
.service-card::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: rotate(45deg);
  transition: all 0.8s var(--ease-hesmar);
  opacity: 0;
  pointer-events: none;
}

.service-card:hover {
  background: var(--color-bg-card-hover);
  transform: translateY(-12px) scale(1.02);
  border-color: var(--color-accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 102, 255, 0.05);
}

.service-card:hover::after {
  top: 200%;
  left: 200%;
  opacity: 1;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 2rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.75rem;
  transition: all 0.5s var(--ease-hesmar-elastic);
}

.service-card:hover .service-icon {
  background: var(--color-accent);
  color: #FFFFFF;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

.service-card h3 {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
}

.service-card p,
.service-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

.service-title {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-primary);
}

.service-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.03em;
  transition: gap var(--transition-smooth), color var(--transition-smooth);
}

.service-link:hover {
  color: var(--color-accent-hover);
  gap: 0.7rem;
}

.service-link i {
  font-size: 0.75rem;
  transition: transform var(--transition-smooth);
}

.service-link:hover i {
  transform: translateX(3px);
}

/* Feature Item Redesign */
.benefit-card {
  padding: 3rem 2rem !important;
  border-radius: 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.benefit-title {
  font-size: 1.2rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.3 !important;
}

.benefit-text {
  margin-bottom: 0 !important;
}

.feature-item,
.feature-card {
  text-align: left;
  padding: 3.5rem 3rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  transition: transform 0.5s var(--ease-hesmar-elastic), box-shadow 0.5s var(--ease-hesmar), border-color 0.3s var(--ease-hesmar), background 0.3s var(--ease-hesmar);
  position: relative;
  overflow: hidden;
}

.feature-item:hover,
.feature-card:hover {
  background: var(--color-bg-card-hover);
  transform: translateY(-10px) scale(1.02);
  border-color: var(--color-accent);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 0 2rem;
  border-radius: 18px;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  transition: all 0.5s var(--ease-hesmar-elastic);
}

.feature-item:hover .feature-icon {
  background: var(--color-accent);
  color: #FFFFFF;
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  color: var(--color-text-primary);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* =============================================================================
   9. BLOG CARDS
   ============================================================================= */

.recent-posts {
  background-color: var(--color-bg-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2.5rem;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.6s var(--ease-hesmar);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-card .portfolio-title {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.portfolio-card .title-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease-out;
  color: var(--color-accent);
  display: inline-block;
}

.portfolio-card:hover .title-arrow {
  opacity: 1;
  transform: translateX(0);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 6, 9, 0.95), transparent);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  opacity: 0;
  transition: all 0.5s var(--ease-hesmar);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-hesmar);
}

.portfolio-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.overlay-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.portfolio-info {
  padding: 2rem 2.5rem;
}

.portfolio-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.portfolio-title {
  font-size: 1.5rem;
  margin: 0;
}

/* Portfolio Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.project-modal-content {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.4s var(--ease-hesmar);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-bg-primary);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.project-modal-close:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-secondary);
}

.project-modal-image {
  width: 100%;
  max-height: 350px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-body {
  padding: 2.5rem;
}

.project-modal-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-weight: 800;
}

.project-modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.75rem 0 1rem;
  color: var(--color-text-primary);
}

.project-modal-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(0, 102, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.15);
  color: var(--color-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-card,
.blog-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-hesmar), box-shadow 0.6s var(--ease-hesmar), border-color 0.4s var(--ease-hesmar);
  will-change: transform;
}

.post-card:hover,
.blog-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.post-image,
.blog-image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-secondary);
}

.post-image img,
.blog-card .blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  filter: grayscale(0.2) contrast(1.1);
}

.post-card:hover .post-image img,
.blog-card:hover .blog-image {
  transform: scale(1.1);
  filter: grayscale(0) contrast(1);
}

.post-category,
.blog-category {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.post-content,
.blog-content {
  padding: 2rem;
}

.post-title a,
.blog-card h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1.3;
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 1rem;
}

.post-title a:hover,
.blog-card h3 a:hover {
  color: var(--color-accent);
}

.post-excerpt,
.blog-excerpt {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-meta,
.blog-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.post-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.post-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-link:hover {
  color: var(--color-accent-light);
  gap: 0.6rem;
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

/* Portfolio & Stats Refinements */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.4s var(--ease-hesmar);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  box-shadow: 0 10px 20px var(--color-accent-glow);
}

.stat-card {
  padding: 3rem 2rem;
  text-align: center;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* =============================================================================
   12. CTA BANNER
   ============================================================================= */

.cta-banner .btn-primary {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(0, 102, 255, 0.35);
  border-color: var(--color-accent);
}

.cta-banner .btn-primary:hover {
  background: var(--color-accent-light);
  color: #fff;
  border-color: var(--color-accent-light);
  box-shadow: 0 8px 36px rgba(0, 102, 255, 0.5);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-text-on-dark);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 2rem;
}

/* =============================================================================
   13. CONTACT PAGE
   ============================================================================= */

.contact-section {
  background: var(--color-bg-primary);
}

.contact-form-wrapper,
.contact-info-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-title {
  font-size: 1.75rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.form-control {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-elevated);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b80' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.75rem;
}

.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form-check-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 500;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-error);
}

/* Contact Info Items */
.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-divider);
}

.contact-info-item:last-of-type {
  border-bottom: none;
}

.contact-info-item .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 102, 255, 0.04));
  border: 1px solid rgba(0, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--color-accent-glow);
}

.contact-info-item .info-content h4,
.info-label {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.contact-info-item .info-content a,
.contact-info-item .info-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.contact-info-item .info-content a:hover {
  color: var(--color-accent);
}

/* Contact Social */
.contact-social {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
}

.social-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-smooth);
}

.social-link:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

/* Map */
.map-section {
  background: var(--color-bg-primary);
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) brightness(0.35) contrast(1.2) hue-rotate(150deg);
}

/* FAQ & Form Refinements */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-hesmar), box-shadow 0.3s var(--ease-hesmar);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-item.active {
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease-hesmar);
}

.faq-item.active .faq-question {
  color: var(--color-accent);
}

.faq-question i {
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-hesmar);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  transition: max-height 0.4s var(--ease-hesmar),
              padding 0.4s var(--ease-hesmar);
}

.faq-item.active .faq-answer {
  max-height: 1200px;
  padding: 0 1.5rem 1.25rem;
}

/* Form control styles consolidated in contact section above */

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* =============================================================================
   15. ABOUT PAGE
   ============================================================================= */

.company-story {
  background: var(--color-bg-primary);
}

.story-content .section-title {
  margin-bottom: 2rem;
}

.story-text {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.story-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Vision & Mission */
.vision-mission {
  background: var(--color-bg-secondary);
}

.vision-mission-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.5s var(--ease-hesmar-elastic), box-shadow 0.5s var(--ease-hesmar), border-color 0.3s var(--ease-hesmar), background 0.3s var(--ease-hesmar);
  will-change: transform;
}

.vision-mission-card:hover {
  border-color: rgba(0, 102, 255, 0.2);
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 102, 255, 0.1);
  background: var(--color-bg-card-hover);
}

.vision-mission-card:hover .vm-icon {
  color: var(--color-accent-light);
  text-shadow: none;
}

.vm-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.vm-title {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.vm-text {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Core Values */
.core-values {
  background: var(--color-bg-primary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-medium);
}

.value-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  background: var(--color-bg-card-hover);
}

.value-card:hover .value-icon {
  color: var(--color-accent-light);
  text-shadow: none;
}

.value-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.value-title {
  color: var(--color-text-primary);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.value-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Team Section */
.team-section {
  background: var(--color-bg-secondary);
}

/* Team Section Redesign */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.team-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  transition: all 0.6s var(--ease-hesmar);
}

.team-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 0.85;
  overflow: hidden;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  filter: grayscale(0.4) contrast(1.1);
}

.team-card:hover .team-image {
  transform: scale(1.1);
  filter: grayscale(0) contrast(1);
}

.team-image.placeholder {
  background: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.4;
}

.team-social {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.6s var(--ease-hesmar);
}

.team-card:hover .team-social {
  transform: translateX(0);
  opacity: 1;
}

.team-social a {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-info {
  padding: 2rem 2.5rem 2.5rem;
}

.team-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.team-role {
  color: var(--color-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* Timeline Redesign */
.timeline {
  max-width: 1000px;
  margin: 6rem auto 0;
  position: relative;
  padding: 60px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
}

@media (max-width: 768px) {
  .timeline::before { left: 40px; }
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 80px;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

@media (max-width: 768px) {
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 80px;
    padding-right: 0;
  }
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 5;
}

@media (max-width: 768px) {
  .timeline-marker { left: 40px; }
}

.timeline-year {
  display: block;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.timeline-content {
  max-width: 440px;
  padding: 2.5rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 60px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 60px;
  text-align: right;
}

@media (max-width: 768px) {
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

.timeline-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.timeline-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* =============================================================================
   16. SERVICES DETAIL PAGE
   ============================================================================= */

.service-detail {
  background: var(--color-bg-primary) !important;
}

.service-detail.bg-light {
  background: var(--color-bg-secondary) !important;
}

.service-detail-image {
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.8s var(--ease-hesmar);
}

.service-detail-image:hover {
  transform: scale(1.02);
}

.service-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badges span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: all 0.3s var(--ease-hesmar);
}

.tech-badges span:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.service-detail-description {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.sub-service-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.tech-badge {
  padding: 0.4rem 0.9rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
}

/* =============================================================================
   SERVICES PAGE
   ============================================================================= */

.services-intro {
  background: var(--color-bg-primary);
  padding-top: 160px;
}

.services-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.services-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  max-width: 900px;
}

.services-accordion-section {
  background: var(--color-bg-secondary);
}

.service-showcase {
  background: var(--color-bg-primary);
  padding-bottom: 200px;
}

.hesmar-card-title-muted {
  color: var(--color-text-on-dark-muted);
}

/* =============================================================================
   16b. SOHUB-STYLE SERVICE CARDS
   ============================================================================= */

.service-showcase .container {
  display: flex;
  flex-direction: column;
}

.hesmar-card {
  background: var(--color-bg-dark-card);
  border-radius: 24px;
  padding: 3.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
  position: sticky;
  top: 100px;
  transform-origin: center top;
  will-change: transform;
}

.hesmar-card-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.hesmar-card-text {
  flex: 1;
  padding-right: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hesmar-card-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-text-on-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hesmar-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hesmar-card-tags span {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-on-dark-muted);
}

.hesmar-card-desc {
  color: var(--color-text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 500px;
}

.hesmar-card-visual {
  flex: 0 0 50%;
  max-width: 50%;
  margin: -3.5rem -3.5rem -3.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hesmar-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

@media (max-width: 768px) {
  .hesmar-card {
    padding: 2rem;
    position: relative;
    top: auto !important;
  }
  .hesmar-card-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .hesmar-card-text {
    padding-right: 0;
  }
  .hesmar-card-visual {
    flex: none;
    max-width: 200px;
    margin: 0 auto;
  }
}

/* =============================================================================
   17. CAREERS PAGE
   ============================================================================= */

.careers-section {
  background: var(--color-bg-primary);
}

.job-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium);
}

.job-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.job-title {
  font-size: 1.3rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.job-meta span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-meta span i {
  color: var(--color-accent);
}

.job-description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* =============================================================================
   18. BLOG DETAIL PAGE
   ============================================================================= */

.blog-detail {
  background: var(--color-bg-primary);
}

.blog-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-detail-content h2,
.blog-detail-content h3 {
  color: var(--color-text-primary);
  margin-top: 2rem;
}

.blog-detail-content p {
  color: var(--color-text-secondary);
  line-height: 1.9;
}

.blog-detail-content img {
  border-radius: 12px;
  margin: 2rem 0;
}

/* =============================================================================
   19. FOOTER
   ============================================================================= */

footer,
.footer {
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 1.5rem;
  margin-top: 0;
  position: relative;
}

footer::before,
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

.footer .footer-title,
.footer .footer-subtitle {
  color: var(--color-text-primary);
}

.footer .footer-text,
.footer .footer-links a,
.footer .footer-contact li,
.footer .footer-contact a,
.footer .footer-bottom p,
.footer .footer-legal a {
  color: var(--color-text-muted);
}

.footer .footer-links a:hover,
.footer .footer-contact a:hover,
.footer .footer-legal a:hover {
  color: var(--color-accent);
}

.footer .footer-bottom {
  border-top-color: var(--color-border);
}

.footer .social-link {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.footer .social-link:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .footer-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .footer-row { grid-template-columns: 1fr; }
}

.footer-title {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-subtitle {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--color-accent);
  width: 18px;
  text-align: center;
}

.footer-contact a {
  color: var(--color-text-muted);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* =============================================================================
   20. ANIMATIONS & KEYFRAMES
   ============================================================================= */

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(0, 102, 255, 0.15); }
  50% { box-shadow: 0 4px 30px rgba(0, 102, 255, 0.25); }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 102, 255, 0.25); }
  50% { text-shadow: 0 0 30px rgba(0, 102, 255, 0.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================================================
   21. FLASH MESSAGES & ALERTS
   ============================================================================= */

.flash-messages {
  position: fixed;
  top: 90px;
  right: 2rem;
  z-index: var(--z-tooltip);
  max-width: 400px;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  animation: slideInDown 0.4s ease-out;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.alert-error,
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-error);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-warning);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--color-info);
}

.btn-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.7;
}

.btn-close:hover {
  opacity: 1;
}

/* =============================================================================
   22. PRELOADER
   ============================================================================= */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =============================================================================
   23. UTILITY & MISC
   ============================================================================= */

.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

/* Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-to-main.sr-only:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: #fff;
  z-index: 2000;
  clip: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  font-weight: 700;
}

/* Print */
@media print {
  .navbar, .mobile-menu, footer, .footer {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}

/* =============================================================================
   24. 404 PAGE
   ============================================================================= */

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-primary);
}

.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

/* =============================================================================
   25. SCROLLBAR
   ============================================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 102, 255, 0.4);
}

/* =============================================================================
   26. SELECTION
   ============================================================================= */
/* (Selection defined in :root block at top) */

/* =============================================================================
   27. CAREERS PAGE - CULTURE & BENEFITS GRIDS
   ============================================================================= */

.culture-section {
  background: var(--color-bg-primary);
}

.culture-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .culture-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .culture-grid, .benefits-grid { grid-template-columns: 1fr; }
}

.culture-card,
.benefit-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.5s var(--ease-hesmar-elastic), box-shadow 0.5s var(--ease-hesmar), border-color 0.3s var(--ease-hesmar);
  will-change: transform;
}

.culture-card:hover,
.benefit-item:hover {
  border-color: rgba(0, 102, 255, 0.15);
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

.culture-icon,
.benefit-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.culture-title,
.benefit-title {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.culture-text,
.benefit-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Jobs */
.jobs-section {
  background: var(--color-bg-secondary);
}

.jobs-list {
  max-width: 800px;
  margin: 0 auto;
}

.job-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1rem;
  transition: all var(--transition-medium);
}

.job-card:hover,
.job-card.active {
  border-color: var(--color-border-hover);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-title {
  font-size: 1.2rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.job-department {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.job-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--color-accent);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.job-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.job-card.active .job-toggle i {
  transform: rotate(180deg);
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.job-meta span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-meta span i {
  color: var(--color-accent);
  font-size: 0.8rem;
}

.job-body {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
}

.job-body h5 {
  color: var(--color-text-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.job-body p,
.job-body li {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.job-cta {
  margin-top: 1.5rem;
}

/* Application */
.application-section {
  background: var(--color-bg-secondary);
}

.career-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.career-form small {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* No jobs / no posts states */
.no-jobs-message,
.no-posts-message,
.no-faqs-message,
.no-results-message {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.no-jobs-message i,
.no-posts-message i,
.no-faqs-message i,
.no-results-message i {
  font-size: 3rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  display: block;
}

.no-jobs-message h3,
.no-posts-message h3,
.no-faqs-message h3,
.no-results-message h4 {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

/* =============================================================================
   28. FAQ PAGE - SIDEBAR & SEARCH
   ============================================================================= */

.faq-search {
  position: relative;
}

.faq-search .form-control {
  padding-right: 3rem;
}

.faq-search i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.sidebar-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.category-btn {
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-smooth);
}

.category-btn:hover,
.category-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.cta-widget {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-hover);
  text-align: center;
}

.widget-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.widget-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  margin-bottom: 0.5rem;
}

.quick-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.quick-links a:hover {
  color: var(--color-accent);
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .faq-grid { grid-template-columns: 1fr; }
}

.faq-category {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.category-title {
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-divider);
}

.faq-item-simple {
  margin-bottom: 1.5rem;
}

.faq-item-simple:last-child {
  margin-bottom: 0;
}

.faq-item-simple h5 {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.faq-item-simple p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* =============================================================================
   29. NEWSLETTER FORM
   ============================================================================= */

.newsletter-section {
  background: var(--color-bg-secondary);
}

.newsletter-form {
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-form .form-group {
  display: flex;
  gap: 0.75rem;
  flex-direction: row;
  align-items: stretch;
}

.newsletter-form .form-control {
  flex: 1;
}

.newsletter-form .btn {
  white-space: nowrap;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .newsletter-form .form-group {
    flex-direction: column;
  }
}

/* =============================================================================
   30. BLOG DETAIL
   ============================================================================= */

.blog-detail {
  background: var(--color-bg-primary);
}

.blog-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-detail-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.blog-detail-image img {
  width: 100%;
  height: auto;
}

.blog-detail-body {
  max-width: 800px;
  margin: 0 auto;
}

.blog-detail-body p {
  color: var(--color-text-secondary);
  line-height: 1.9;
  font-size: 1.05rem;
}

.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4 {
  color: var(--color-text-primary);
  margin-top: 2rem;
}

.blog-detail-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 0 8px 8px 0;
}

.blog-detail-body blockquote p {
  color: var(--color-text-primary);
  font-style: italic;
}

.blog-detail-body code {
  background: var(--color-bg-tertiary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.blog-detail-body pre {
  background: var(--color-bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
}

.blog-detail-body pre code {
  background: none;
  padding: 0;
}

/* Related posts */
.related-posts {
  background: var(--color-bg-secondary);
}

/* Blog detail — base layout for post meta, navigation, author */
.post-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.meta-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.meta-item i {
  color: var(--color-accent);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}

.share-btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.post-featured-image {
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--color-text-primary);
  margin-top: 2rem;
}

.post-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.post-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(0, 102, 255, 0.03);
  border-radius: 0 8px 8px 0;
}

.post-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.post-tags h5 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-list .tag {
  padding: 0.35rem 0.9rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.bio-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  font-size: 2.5rem;
  color: var(--color-text-muted);
}

.bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-name {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.bio-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-prev,
.post-navigation .nav-next {
  max-width: 45%;
}

.post-navigation small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.post-navigation a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.post-navigation a:hover {
  color: var(--color-accent);
}

.nav-next {
  text-align: right;
}

/* Related posts in sidebar */
.related-post-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-divider);
}

.related-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-content h6 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.related-content h6 a {
  color: var(--color-text-primary);
}

.related-content h6 a:hover {
  color: var(--color-accent);
}

.related-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Categories list in sidebar */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 0.5rem;
}

.categories-list a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.categories-list a:hover {
  color: var(--color-accent);
}

/* =============================================================================
   31. PAGINATION
   ============================================================================= */

.pagination {
  text-align: center;
  margin-top: 3rem;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.pagination-page:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination-page.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination-info p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* =============================================================================
   32. PLACEHOLDER IMAGES
   ============================================================================= */

.post-image.placeholder,
.portfolio-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-card));
}

.placeholder-icon {
  font-size: 3rem;
  color: var(--color-text-muted);
  opacity: 0.4;
}

/* Benefits section */
.benefits-section {
  background: var(--color-bg-primary);
}

/* =============================================================================
   404 ERROR PAGE
   ============================================================================= */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent), var(--color-text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.error-text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-links p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.error-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.error-links a {
  color: var(--color-accent);
  font-weight: 600;
  transition: opacity 0.3s;
}

.error-links a:hover {
  opacity: 0.7;
}

/* =============================================================================
   REMOTE WORK SECTION (Contact page)
   ============================================================================= */

.remote-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

/* =============================================================================
   LEGAL PAGES (Privacy, Terms)
   ============================================================================= */

.legal-content {
  background: var(--color-bg-primary);
}

.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.legal-wrapper h2 {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}

.legal-wrapper ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-wrapper ul li {
  margin-bottom: 0.5rem;
}

.legal-wrapper a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* =============================================================================
   33. RESPONSIVE TWEAKS
   ============================================================================= */

@media (max-width: 768px) {
  .row {
    gap: 1.5rem;
  }

  .col-lg-8 {
    width: 100%;
  }

  aside.col-lg-4 {
    width: 100%;
    margin-top: 2rem;
  }
}

.col-lg-8 {
  flex: 1 1 60%;
  min-width: 300px;
}

aside.col-lg-4,
.col-lg-4 {
  flex: 0 0 35%;
  min-width: 280px;
}

.justify-content-center {
  justify-content: center;
}

.col-12 {
  width: 100%;
}

.mt-20 { margin-top: 20px; }
.mt-60 { margin-top: 60px; }
.mb-100 { margin-bottom: 100px; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }
.form-control-lg { padding: 1rem 1.25rem; font-size: 1.05rem; }
.mb-lg-0 { margin-bottom: 0; }

/* =============================================================================
   34. LIQUID GLASS EFFECT
   Apple-style frosted glass / liquid glass treatment
   ============================================================================= */

/* Premium frosted glass / liquid glass treatment */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 
    var(--glass-shadow),
    var(--glass-highlight);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%
  );
  opacity: var(--glass-light-opacity, 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.liquid-glass:hover {
  box-shadow: var(--glass-shadow-deep);
}

/* Filter buttons — refined for light theme */
.filter-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 20px var(--color-accent-glow);
}

/* ============================================================================
   35. TEXT READABILITY — ensures content stays legible over 3D background
   ============================================================================ */

/* Text styles — clean, no shadows for light theme */
.section-title,
.hero-title {
  text-shadow: none;
}

.section-subtitle,
.hero-subtitle {
  text-shadow: none;
}

/* Ensure content sections have enough backdrop to read over 3D */
.services-overview,
.why-choose-us,
.latest-blog,
.cta-banner,
.about-hero,
.services-hero,
.portfolio-hero,
.careers-hero,
.blog-hero,
.contact-hero,
.faq-hero {
  position: relative;
  z-index: 2;
}

/* Add a very subtle inner backdrop to sections for text safety */
.services-overview > .container,
.why-choose-us > .container,
.latest-blog > .container,
.about-hero > .container,
.portfolio-hero > .container {
  position: relative;
  z-index: 1;
}

/* =============================================================================
   AWWWARDS-STYLE CUSTOM CURSOR & GSAP UTILITIES
   ============================================================================= */

/* Hide native cursor ONLY after JS has initialized the custom cursor.
   The .cursor-ready class is added by main.js on init. */
@media (pointer: fine) {
  body.cursor-ready {
    cursor: none;
  }
  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready .btn,
  body.cursor-ready .filter-btn,
  body.cursor-ready .nav-link,
  body.cursor-ready .service-card,
  body.cursor-ready .portfolio-card,
  body.cursor-ready input,
  body.cursor-ready textarea,
  body.cursor-ready select {
    cursor: none;
  }
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--color-accent, #27b7a5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 0 6px var(--color-accent, #27b7a5);
}

/* Magnifying-glass cursor — rich translucent glass with a true hole in
   the middle. All the glassy effects (tint, refraction, shine, reflection)
   are painted ONLY on the rim via a radial mask, so the magnified content
   behind the lens shows through the center completely unobstructed. */
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 68px;
  height: 68px;
  /* Rich glass tint — a warm diagonal gradient like real lens glass. */
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(200, 220, 255, 0.12) 100%
  );
  /* Real refraction — saturate + brightness on whatever's behind the rim. */
  backdrop-filter: saturate(1.3) brightness(1.05);
  -webkit-backdrop-filter: saturate(1.3) brightness(1.05);
  /* Chrome-style glass rim */
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    /* Outer drop shadow (lens floats above page) — NOT affected by mask. */
    0 8px 22px rgba(0, 0, 0, 0.18),
    /* Outer dark rim edge */
    0 0 0 1px rgba(0, 0, 0, 0.1),
    /* Inner chrome ring */
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    /* Top specular highlight */
    inset 0 2px 5px rgba(255, 255, 255, 0.9),
    /* Bottom refraction shadow */
    inset 0 -2px 4px rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s cubic-bezier(.22,.68,0,1.2),
    height 0.3s cubic-bezier(.22,.68,0,1.2),
    border-radius 0.3s cubic-bezier(.22,.68,0,1.2),
    border-color 0.3s,
    opacity 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  /* THE HOLE: mask out everything except a thin rim band. This clips the
     background gradient AND the backdrop-filter, creating a real transparent
     opening in the glass. Border + box-shadow are unaffected and remain
     the visible chrome rim. */
  -webkit-mask:
    radial-gradient(circle at 50% 50%,
      transparent 0%,
      transparent 54%,
      #000 72%,
      #000 100%);
  mask:
    radial-gradient(circle at 50% 50%,
      transparent 0%,
      transparent 54%,
      #000 72%,
      #000 100%);
}

/* Top-left glassy shine — the "sheen" that sells the glass illusion.
   Constrained to the rim via its own radial mask so it never creeps
   into the transparent center. */
.custom-cursor-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 28% 18% at 28% 22%,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0) 75%
  );
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 72%);
  mask: radial-gradient(circle, transparent 54%, #000 72%);
  pointer-events: none;
  z-index: 2;
}

/* Diagonal reflection arc — also pinned to the rim band only. */
.custom-cursor-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.25) 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 72%);
  mask: radial-gradient(circle, transparent 54%, #000 72%);
  pointer-events: none;
  z-index: 1;
}

.cursor-hover .custom-cursor-dot {
  width: 0;
  height: 0;
  opacity: 0;
}

/* On clickable hover keep the SAME size (so the magnified circle stays
   perfectly aligned with the rim) — just tint the rim with the accent blue. */
.cursor-hover .custom-cursor-ring {
  border: 2px solid rgba(0, 102, 255, 0.55);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 102, 255, 0.22),
    0 0 18px rgba(0, 102, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 2px 6px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.06);
}

.cursor-clicking .custom-cursor-ring {
  width: 30px;
  height: 30px;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(0, 102, 255, 0.15) 0%,
    rgba(0, 102, 255, 0.05) 100%
  );
  backdrop-filter: blur(1px) saturate(1.2);
  -webkit-backdrop-filter: blur(1px) saturate(1.2);
  border: 1.5px solid rgba(0, 102, 255, 0.4);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(0, 102, 255, 0.2);
  transition: width 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cursor-morph .custom-cursor-ring {
  /* Dynamic width/height injected via JS to wrap the hovered button */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px) saturate(1.3);
  -webkit-backdrop-filter: blur(4px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================================================
   MAGNIFYING LENS — REAL magnification via cloned main content.
   The clone sits above the real page but below the glass rim.
   JS (main.js) scales it and clips it to a circle that follows the cursor.
   ============================================================================ */
.magnifier-mirror-wrap {
  /* Fixed so both mirrors share the same pure-viewport coordinate system —
     no scrollX/Y arithmetic needed, which eliminates the scroll-related
     offset that plagued the old position:absolute approach. */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform, clip-path, -webkit-clip-path;
  clip-path: circle(0 at 0 0);
  -webkit-clip-path: circle(0 at 0 0);
  transform-origin: 0 0;
  overflow: hidden;
}

/* Inner wrapper that slides the cloned page content up by scrollY each frame
   so the visible window always shows the right section of the page. */
.magnifier-mirror-scroll {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  /* No height — the cloned <main> drives it naturally */
}

/* Fixed mirror for the navbar so the magnifier works over the top nav too.
   Lives in viewport coordinates (position: fixed) and gets its own clip/scale. */
.magnifier-mirror-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform, clip-path, -webkit-clip-path;
  clip-path: circle(0 at 0 0);
  -webkit-clip-path: circle(0 at 0 0);
  transform-origin: 0 0;
  contain: layout paint style;
  overflow: visible;
}

body.cursor-ready .magnifier-mirror-wrap,
body.cursor-ready .magnifier-mirror-nav {
  opacity: 1;
}

/* Magnifier stays ACTIVE over buttons and links — clickables should be
   magnified through the glass, that's the point of the lens. */

/* Nothing inside the clone should intercept input, and nothing should stay
   hidden by scroll-triggered animations. Forcing opacity/visibility here
   guarantees words like "Technologies" and hero subtitles render in the
   magnifier even if their scroll reveal hasn't fired yet. We deliberately
   do NOT force transform:none (icon rotations would break); AOS/reveal
   translations are cleared per-node in JS. */
.magnifier-mirror-wrap *,
.magnifier-mirror-nav * {
  pointer-events: none !important;
  user-select: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Cloned navbar inside the magnifier mirror.
   We need it to match the real navbar's position exactly.
   When .scrolled, the real navbar has top/left/width offsets.
   We use position: absolute so those offsets work relative to the
   magnifier-mirror-nav container (which is 100vw/100vh). */
.magnifier-mirror-nav > .navbar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 90px !important; /* Base height */
  right: auto !important;
  transform: none !important;
}

/* Ensure the scrolled state for the clone also has correct positioning/width
   so the magnifier doesn't 'lose' it when it's an island. */
.magnifier-mirror-nav > .navbar.scrolled {
  top: 15px !important;
  left: 3% !important;
  width: 94% !important;
  height: 70px !important;
}

/* Card hover-state sync — JS adds .is-hovered to clone cards so the magnifier
   reflects the same lift transform that CSS :hover applies to real cards.
   Each rule must match the :hover counterpart exactly. */
.magnifier-mirror-wrap .service-card.is-hovered          { transform: translateY(-12px) scale(1.02) !important; }
.magnifier-mirror-wrap .blog-card.is-hovered,
.magnifier-mirror-wrap .post-card.is-hovered              { transform: translateY(-8px) scale(1.01) !important; }
.magnifier-mirror-wrap .feature-card.is-hovered           { transform: translateY(-10px) !important; }
.magnifier-mirror-wrap .job-card.is-hovered               { transform: translateY(-2px) !important; }
.magnifier-mirror-wrap .value-card.is-hovered             { transform: translateY(-6px) !important; }
.magnifier-mirror-wrap .vision-mission-card.is-hovered    { transform: scale(1.03) translateY(-4px) !important; }

/* On coarse pointers / small screens, skip the magnifier entirely. */
@media (pointer: coarse), (max-width: 768px) {
  .magnifier-mirror-wrap,
  .magnifier-mirror-nav { display: none !important; }
}

.reveal-text {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.reveal-text-inner {
  display: inline-block;
  transform: translateY(110%);
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

/* =============================================================================
   Hesmar-INSPIRED ADDITIONS
   ============================================================================= */

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(.22,.68,0,1);
}

.page-transition.entering {
  opacity: 1;
  pointer-events: all;
}

/* Hesmar-style section number labels */
.section-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.8;
}

/* Underline text style (accent line like Hesmar headings) */
.text-underline-accent {
  position: relative;
  display: inline-block;
}

.text-underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.22,.68,0,1.2);
}

.text-underline-accent:hover::after {
  transform: scaleX(1);
}

/* Icon swap utility class — use on any clickable with icons */
.icon-swap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  position: relative;
}

.icon-swap i {
  transition: transform 0.5s cubic-bezier(.22,.68,0,1), opacity 0.5s cubic-bezier(.22,.68,0,1);
  will-change: transform;
}

.icon-swap:hover i {
  transform: translateX(200%);
  opacity: 0;
}

/* Teal highlight pill */
.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 50px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Social links hover — Hesmar scale */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}

.social-link:hover {
  transform: scale(1.15);
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

/* Filter buttons with Hesmar-style active state */
.filter-btn {
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2), background 0.3s, color 0.3s, border-color 0.3s !important;
  will-change: transform;
}

.filter-btn:hover {
  transform: scale(1.05);
}

.filter-btn.active {
  transform: scale(1.05);
}

/* Section header eyebrow line */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Horizontal rule with teal accent */
hr.accent-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.25;
  margin: 3rem 0;
}

/* Smooth link hover */
a {
  transition: color 0.3s cubic-bezier(.22,.68,0,1);
}

/* Section transition blend */
section + section {
  position: relative;
}

/* Nav brand logo pulse on hover */
.nav-brand .logo {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2), opacity 0.3s;
  will-change: transform;
}

.nav-brand .logo:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* Hero scroll hint subtle pulse */
.hero-scroll-hint {
  opacity: 0;
  animation: fade-in-hint 1s 1.5s cubic-bezier(.22,.68,0,1) forwards;
}

@keyframes fade-in-hint {
  to { opacity: 1; }
}

/* =============================================================================
   35. MICRO-ANIMATIONS & UX ENHANCEMENTS
   ============================================================================= */

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
  display: block;
}

.text-reveal span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(.22,.68,0,1);
}

.aos-animate .text-reveal span {
  transform: translateY(0);
}

/* Icon Drawing Animation */
.svg-draw path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease-in-out;
}

.aos-animate .svg-draw path {
  stroke-dashoffset: 0;
}

/* Subtle Pulse */
@keyframes softPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.soft-pulse {
  animation: softPulse 3s infinite ease-in-out;
}

/* Magnetic Link Underline */
.magnetic-link {
  position: relative;
  text-decoration: none;
  padding: 0.5rem 0;
}

.magnetic-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-hesmar-elastic);
}

.magnetic-link:hover::after {
  width: 100%;
}

/* Glass Shine Effect for Buttons */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
}

.btn-shine:hover::before {
  left: 100%;
}

/* Reveal Protocols (Hesmar style) */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-hesmar);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   SERVICES ACCORDION MENU
   ============================================================================= */

.services-accordion {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.4s ease;
}

.accordion-header {
  padding: 2.5rem 0;
  cursor: pointer;
  transition: all 0.4s ease;
}

.accordion-title-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.asterisk-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
}

.accordion-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-text-primary);
  transition: all 0.4s ease;
}

.accordion-item:hover {
  background-color: rgba(0, 102, 255, 0.02);
}

.accordion-item:hover .asterisk-icon {
  opacity: 1;
  transform: scale(1);
  animation: spin 4s linear infinite;
}

.accordion-item:hover .accordion-title {
  transform: translateX(10px);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-hesmar), opacity 0.5s ease;
  opacity: 0;
  overflow: hidden;
}

.accordion-item:hover .accordion-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-inner {
  min-height: 0;
  padding-left: 3.5rem;
  padding-bottom: 2.5rem;
}

.sub-categories {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.sub-categories span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  font-weight: 700;
  position: relative;
}

.sub-categories span::after {
  content: '/';
  position: absolute;
  right: -1rem;
  color: var(--color-border);
}

.sub-categories span:last-child::after {
  display: none;
}

.accordion-description {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .accordion-title { font-size: 1.75rem; }
  .accordion-inner { padding-left: 0; }
  .sub-categories { flex-wrap: wrap; gap: 0.75rem; }
}

/* =============================================================================
   PLAY REEL BUTTON
   ============================================================================= */

.play-reel-container {
  display: inline-block;
  margin-left: 1rem;
}

.play-reel-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 60px;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.5s var(--ease-hesmar);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
}

.word-play, .word-reel {
  transition: transform 0.4s var(--ease-hesmar);
}

.play-icon-wrap {
  width: 0;
  height: 48px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transform: scale(0);
  transition: all 0.4s var(--ease-hesmar);
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0) scale(0);
}

.play-icon-wrap i {
  font-size: 0.9rem;
}

.play-reel-btn:hover {
  border-color: var(--color-accent);
  padding-left: 3rem;
  padding-right: 3rem;
}

.play-reel-btn:hover .word-play {
  transform: translateX(-25px);
}

.play-reel-btn:hover .word-reel {
  transform: translateX(25px);
}

.play-reel-btn:hover .play-icon-wrap {
  width: 48px;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 576px) {
  .play-reel-container { margin-left: 0; margin-top: 1rem; display: block; }
  .play-reel-btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   SCROLL-SCRUBBED TEXT
   ============================================================================= */

.scroll-text-section {
  padding: 160px 0;
  background: var(--color-bg-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.scroll-text-block {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.03); /* Heavily dimmed or transparent */
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.light-theme .scroll-text-block {
  color: rgba(0, 0, 0, 0.03);
}

.scroll-text-block .word {
  display: inline-block;
  transition: color 0.6s ease-out, opacity 0.6s ease-out, transform 0.6s ease-out;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
}

.scroll-text-block .word.active {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.light-theme .scroll-text-block .word.active {
  color: rgba(0, 0, 0, 0.7);
}

/* =============================================================================
   FLOATING TAGS
   ============================================================================= */

.floating-tags-container {
  position: absolute;
  inset: -10% -10%;
  z-index: 5;
  pointer-events: none;
}

.floating-tag {
  position: absolute;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: opacity 0.5s ease;
}

.floating-tag:nth-child(1) { top: 15%; left: 5%; }
.floating-tag:nth-child(2) { top: 25%; right: 10%; }
.floating-tag:nth-child(3) { bottom: 25%; left: 10%; }
.floating-tag:nth-child(4) { bottom: 15%; right: 5%; }

.hero-3d-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* =============================================================================
   CAREERS LIST ROWS
   ============================================================================= */

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s var(--ease-hesmar);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  background: #111; /* Background darkens */
  border-color: rgba(255, 255, 255, 0.1);
}

.job-card:hover .job-title,
.job-card:hover .job-department,
.job-card:hover .job-meta span {
  color: #fff;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.job-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-more {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4; /* Transitions to a highly visible state */
  transition: all 0.4s ease;
  cursor: pointer;
}

.job-card:hover .btn-more {
  opacity: 1;
  color: #fff;
}

.btn-apply {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
}

.btn-apply::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%; /* Background fills in */
  height: 100%;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-hesmar);
  z-index: -1;
}

.job-card:hover .btn-apply {
  color: #000;
}

.job-card:hover .btn-apply::before {
  width: 100%;
}

.job-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  transition: color 0.4s ease;
}

.job-department {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: color 0.4s ease;
}

.job-meta {
  display: flex;
  gap: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.4s ease;
}

.job-card.active {
  background: #111;
  border-color: var(--color-accent);
}

.job-card.active .job-title,
.job-card.active .job-department,
.job-card.active .job-meta span {
  color: #fff;
}

.job-body {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.job-description, .job-requirements, .job-benefits {
  margin-bottom: 2rem;
}

.job-body h5 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* =============================================================================
   MISSING CLASS DEFINITIONS — Light Theme Fixes
   ============================================================================= */

/* Scroll text wrapper */
.scroll-text-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog post article */
.blog-post-article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Post meta items */
.post-author {
  font-weight: 600;
  color: var(--color-text-primary);
}

.post-reading-time {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Job card detail items */
.job-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-level {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.job-location,
.job-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Portfolio item */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  transition: transform 0.5s var(--ease-hesmar);
}

.portfolio-item:hover {
  transform: translateY(-8px);
}

.overlay-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Stats content */
.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* No projects message */
.no-projects-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

.no-projects-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.no-projects-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Bio content */
.bio-content {
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Newsletter content */
.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Team bio */
.team-bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Remote section (careers) */
.remote-section {
  padding: 3rem 0;
}

.remote-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .remote-content {
    flex-direction: column;
    text-align: center;
  }
}

/* FAQ question text */
.question-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

/* =============================================================================
   COMPREHENSIVE RESPONSIVE — All Breakpoints
   ============================================================================= */

/* ── LARGE TABLETS & SMALL DESKTOPS (max-width: 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 100px;
  }

  /* Navbar */
  .navbar.scrolled {
    width: 96%;
    left: 2%;
    top: 12px !important;
    padding: 0 1.5rem;
  }

  /* Hero home */
  .hero-home {
    padding-top: 160px;
    padding-bottom: 80px;
  }

  .hero-scroll-hint {
    justify-content: center;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Posts grid */
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer grid */
  .footer-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Accordion */
  .accordion-title {
    font-size: 2rem;
  }

  /* Scroll text */
  .scroll-text-section {
    padding: 100px 0;
    min-height: auto !important;
  }

  /* Hesmar service cards — tablet */
  .hesmar-card-visual {
    flex: 0 0 40%;
    max-width: 40%;
  }
}

/* ── TABLETS & LANDSCAPE PHONES (max-width: 768px) ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px;
  }

  /* Typography scaling */
  h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  h2 { font-size: clamp(2rem, 7vw, 3rem); }
  h3 { font-size: clamp(1.5rem, 5vw, 2rem); }
  p { font-size: 1.1rem; margin-bottom: 1.5rem; }

  /* Navbar mobile menu */
  .nav-menu {
    border-radius: 0 0 20px 20px;
  }

  .nav-menu .nav-link {
    color: var(--color-text-primary);
  }

  .nav-menu .nav-link.active {
    color: var(--color-accent);
  }

  .nav-menu .nav-link:hover {
    color: var(--color-text-primary);
  }

  .navbar.scrolled .nav-toggle span {
    background-color: var(--color-text-primary);
  }

  .navbar.scrolled .nav-menu {
    border-radius: 0 0 20px 20px;
  }

  .language-toggle {
    align-self: flex-start;
    margin-top: 0.5rem;
    display: flex;       /* restore flex – mobile .nav-item resets it */
  }

  /* Undo the block-display override for lang buttons inside the dropdown */
  .nav-menu .language-toggle .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 15px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
  }

  /* Restore the filled-pill look for the active language */
  .nav-menu .language-toggle .nav-link.active {
    background: var(--color-text-primary) !important;
    color: #fff !important;
  }

  /* Hero sections */
  .hero-home {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-page {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-page .hero-content {
    padding: 2rem 1rem;
  }

  .hero-inner {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1.1;
  }

  .hero-visual-block {
    max-width: 300px;
  }

  .floating-tags-container {
    display: none;
  }

  /* Service cards on home */
  .service-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
  }

  .service-card h3 { font-size: 1.4rem; }
  .service-card p { font-size: 1rem; }

  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-item,
  .feature-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
  }

  /* Posts grid */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 2rem 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* CTA banner */
  .cta-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Buttons */
  .btn {
    padding: 1rem 2rem;
    font-size: 0.75rem;
  }

  .btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer {
    padding: 60px 0 40px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-text {
    max-width: 100%;
  }

  /* Services page — accordion */
  .services-intro {
    padding-top: 120px;
  }

  .services-headline {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  /* Hesmar service cards — full reset for mobile */
  .hesmar-card {
    padding: 2rem;
    position: relative;
    top: auto !important;
  }

  .hesmar-card-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hesmar-card-text {
    padding-right: 0;
  }

  .hesmar-card-visual {
    flex: none;
    max-width: 100%;
    margin: 0;
    height: 200px;
    border-radius: 16px;
  }

  .service-showcase {
    padding-bottom: 80px;
  }

  /* About page */
  .story-image {
    margin-top: 1rem;
  }

  .vision-mission-card {
    padding: 2rem;
  }

  /* Contact page */
  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: 2rem 1.5rem;
  }

  /* Blog detail — post meta & share buttons */
  .post-meta-header {
    flex-direction: column;
    gap: 1rem;
  }

  .meta-items {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .share-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .post-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  /* Careers page — job header */
  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .job-actions {
    width: 100%;
  }

  .btn-apply {
    flex: 1;
    text-align: center;
    display: inline-flex;
    justify-content: center;
  }

  /* Project modal */
  .project-modal {
    padding: 1rem;
  }

  .project-modal-content {
    max-height: 85vh;
    border-radius: 16px;
  }

  .project-modal-body {
    padding: 1.5rem;
  }

  .project-modal-title {
    font-size: 1.5rem;
  }

  /* Scroll text section */
  .scroll-text-section {
    padding: 80px 0;
    min-height: auto !important;
  }

  .scroll-text-block {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  /* Section header */
  .section-header {
    max-width: 100%;
  }

  .mb-60 { margin-bottom: 40px; }
  .mb-100 { margin-bottom: 60px; }

  /* Legal pages */
  .legal-wrapper {
    padding: 0;
  }

  .legal-wrapper h2 {
    font-size: 1.25rem;
  }

  /* Newsletter form */
  .newsletter-form .form-group {
    flex-direction: column;
  }

  /* Hide custom cursor on non-pointer devices */
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }

  a, button, .btn, .filter-btn, .nav-link, .service-card, .portfolio-card, input, textarea, select {
    cursor: auto !important;
  }

  /* Reduce ambient glows for performance */
  .ambient-glow {
    display: none;
  }

  .grain-overlay {
    display: none;
  }
}

/* ── SMALL PHONES (max-width: 576px) ── */
@media (max-width: 576px) {
  :root {
    --section-padding: 60px;
  }

  /* Container tighter padding */
  .container {
    padding: 0 1.25rem;
  }

  /* Typography */
  h1 { font-size: clamp(2rem, 9vw, 3rem); }
  p { font-size: 1rem; }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Hero */
  .hero-home {
    padding-top: 140px;
    padding-bottom: 50px;
  }

  .hero-page {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-page .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-eyebrow {
    font-size: 0.6rem;
    padding: 0.4rem 1rem;
  }

  .hero-inner {
    padding: 0 1rem;
  }

  .hero-visual-block {
    max-width: 220px;
  }

  /* Buttons */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 0.75rem;
  }

  .hero-actions {
    gap: 1rem;
  }

  /* Service cards */
  .service-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }

  .service-card h3 { font-size: 1.25rem; }
  .service-card p { font-size: 0.95rem; }

  /* Features */
  .feature-item,
  .feature-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .feature-title { font-size: 1.15rem; }
  .feature-text { font-size: 0.95rem; }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.75rem; }

  /* Post cards */
  .post-image,
  .blog-image-wrapper {
    height: 180px;
  }

  .post-content,
  .blog-content {
    padding: 1.5rem;
  }

  .post-title a,
  .blog-card h3 a {
    font-size: 1.15rem;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-info {
    padding: 1.5rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.75rem !important;
  }

  /* Hesmar cards */
  .hesmar-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .hesmar-card-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hesmar-card-desc {
    font-size: 0.9rem;
  }

  .hesmar-card-tags span {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }

  /* Services accordion */
  .accordion-header {
    padding: 1.5rem 0;
  }

  .accordion-title {
    font-size: 1.4rem;
  }

  .sub-categories {
    gap: 0.5rem;
  }

  /* About page */
  .value-card {
    padding: 1.5rem;
  }

  .timeline {
    margin-top: 3rem;
    padding: 40px 0;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-title {
    font-size: 1.2rem;
  }

  /* Contact */
  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .contact-title {
    font-size: 1.4rem;
  }

  .contact-info-item .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Blog detail */
  .post-body {
    font-size: 1rem;
  }

  .post-featured-image {
    margin: 1.5rem 0;
  }

  /* Careers */
  .job-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .job-title {
    font-size: 1.2rem;
  }

  .job-meta {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .job-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-apply {
    width: 100%;
  }

  /* Culture / Benefits */
  .culture-card,
  .benefit-item {
    padding: 1.5rem;
  }

  /* Career form */
  .career-form {
    max-width: 100%;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.95rem;
  }

  .faq-category {
    padding: 1.5rem;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }

  /* Project modal */
  .project-modal {
    padding: 0.5rem;
  }

  .project-modal-content {
    border-radius: 12px;
  }

  .project-modal-body {
    padding: 1.25rem;
  }

  .project-modal-title {
    font-size: 1.25rem;
  }

  /* CTA */
  .cta-title {
    font-size: clamp(1.3rem, 5vw, 1.75rem);
  }

  .cta-subtitle {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 50px 0 30px;
  }

  .footer-logo {
    font-size: 1.75rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  /* Scroll text */
  .scroll-text-section {
    padding: 60px 0;
  }

  .scroll-text-block {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  /* Play reel */
  .play-reel-container {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .play-reel-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 2rem;
  }

  /* Legal */
  .legal-wrapper h2 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.8rem;
  }
}

/* ── VERY SMALL PHONES (max-width: 380px) ── */
@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-page .hero-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.65rem;
  }

  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    text-align: center;
  }
}

/* ── TOUCH DEVICE OPTIMIZATIONS ── */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }

  body,
  a, button, .btn, .filter-btn, .nav-link, .service-card, .portfolio-card, input, textarea, select {
    cursor: auto !important;
  }

  /* Disable hover-only effects that don't work well on touch */
  .glass-card:hover {
    transform: none;
  }

  .service-card:hover {
    transform: translateY(-4px);
  }

  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(3, 6, 9, 0.8), transparent 60%);
  }

  .overlay-content {
    transform: translateY(0);
  }
}

/* ── LANDSCAPE PHONES ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-home {
    min-height: auto;
    padding-top: 110px;
  }

  .hero-page {
    min-height: auto;
  }

  .hero-visual-block {
    max-width: 200px;
  }
}

/* =============================================================================
   REDUCED MOTION — Accessibility
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ambient-glow { display: none; }
  .grain-overlay { display: none; }
  .custom-cursor-dot,
  .custom-cursor-ring { display: none; }
}

/* =============================================================================
   DARK MODE THEME
   Drives off <html data-theme="dark"> so the anti-FOUC inline script in
   base.html can apply it synchronously before first paint.
   ============================================================================= */

:root {
  --color-scheme-mode: light;
}

html[data-theme="dark"] {
  --color-scheme-mode: dark;

  /* Background palette — rich charcoals */
  --color-bg-primary: #0b0c10;
  --color-bg-secondary: #14161c;
  --color-bg-tertiary: #1b1e26;
  --color-bg-card: #161922;
  --color-bg-card-hover: #1c2030;
  --color-bg-dark-card: #0f1117;
  --color-bg-dark-card-hover: #1a1d26;
  --color-bg-elevated: #1a1d26;
  --color-bg-subtle: #131620;

  /* Accent — brighter in dark mode for contrast */
  --color-accent: #3385FF;
  --color-accent-hover: #5598FF;
  --color-accent-light: #77AEFF;
  --color-accent-glow: rgba(51, 133, 255, 0.2);
  --color-accent-dark: #0047AB;

  /* Text */
  --color-text-primary: #F5F6F8;
  --color-text-secondary: #B8BCC4;
  --color-text-muted: #7A8290;
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: #A1A1A6;

  /* Borders & dividers */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(51, 133, 255, 0.4);
  --color-divider: rgba(255, 255, 255, 0.05);

  /* Shadows — tighter and darker */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(51, 133, 255, 0.18);

  /* Glass */
  --glass-bg: rgba(22, 25, 34, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  --glass-inner-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --glass-shadow-deep: 0 30px 60px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

/* Invert the grain overlay in dark mode so it still reads as texture */
html[data-theme="dark"] .grain-overlay {
  mix-blend-mode: overlay;
  opacity: 0.35;
}

/* Soften ambient glows in dark mode so they don't wash the page */
html[data-theme="dark"] .ambient-glow {
  opacity: 0.55;
}

/* Service/portfolio/blog cards — pick up the dark surface automatically */
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .portfolio-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .job-card,
html[data-theme="dark"] .vision-mission-card,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .card {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .portfolio-card:hover,
html[data-theme="dark"] .blog-card:hover,
html[data-theme="dark"] .post-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
}

html[data-theme="dark"] .navbar {
  background: rgba(11, 12, 16, 0.75);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .navbar.scrolled {
  background: rgba(11, 12, 16, 0.88);
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-contact a,
html[data-theme="dark"] .footer-text {
  color: var(--color-text-primary);
}

html[data-theme="dark"] .footer {
  background: var(--color-bg-secondary);
  border-top-color: var(--color-border);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--color-text-muted);
}

html[data-theme="dark"] .btn-primary {
  color: #fff;
}

html[data-theme="dark"] .hero-bg,
html[data-theme="dark"] .hero-image img {
  filter: brightness(0.9) contrast(1.05);
}

/* Respect OS preference when no explicit theme is chosen yet. The
   anti-FOUC script in base.html handles this, but this fallback keeps
   things correct if JS is disabled. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --color-bg-primary: #0b0c10;
    --color-bg-secondary: #14161c;
    --color-text-primary: #F5F6F8;
    color-scheme: dark;
  }
}

/* =============================================================================
   THEME TOGGLE BUTTON
   ============================================================================= */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  transition: opacity 0.35s var(--ease-hesmar), transform 0.45s var(--ease-hesmar);
}

html[data-theme="light"] .theme-toggle-icon-moon,
html:not([data-theme="dark"]) .theme-toggle-icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(-90deg);
}
html[data-theme="light"] .theme-toggle-icon-sun,
html:not([data-theme="dark"]) .theme-toggle-icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

html[data-theme="dark"] .theme-toggle-icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(90deg);
}
html[data-theme="dark"] .theme-toggle-icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* =============================================================================
   PAGE TRANSITIONS
   Fades the page in on load and slides an overlay on internal navigation.
   ============================================================================= */
body {
  opacity: 0;
  transition: opacity 0.35s var(--ease-hesmar);
}
body.page-ready {
  opacity: 1;
}
body.page-leaving {
  opacity: 0;
  transition: opacity 0.25s var(--ease-hesmar);
}

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-hesmar);
}
.page-transition.active {
  opacity: 1;
}

/* =============================================================================
   SKELETON LOADERS — use on blog/portfolio lists while images decode
   ============================================================================= */
.skeleton {
  display: block;
  background: linear-gradient(
    90deg,
    var(--color-bg-subtle) 0%,
    var(--color-bg-tertiary) 50%,
    var(--color-bg-subtle) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
  min-height: 1em;
}
.skeleton-text { height: 0.9em; margin: 0.35em 0; width: 100%; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-title { height: 1.4em; width: 70%; margin-bottom: 0.6em; }
.skeleton-img, .skeleton-thumb { aspect-ratio: 16/9; width: 100%; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Blur-up pattern for images — start blurred, reveal once .loaded is set by JS */
img.lazy-blur {
  filter: blur(18px);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.8s var(--ease-hesmar);
}
img.lazy-blur.loaded {
  filter: blur(0);
  transform: scale(1);
}

/* =============================================================================
   MICRO-INTERACTIONS — subtle scroll reveal + hover lifts that aren't
   already covered by AOS. All are opt-in via class or data-reveal.
   ============================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-hesmar),
    transform 0.7s var(--ease-hesmar);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="zoom"] { transform: scale(0.96); }
[data-reveal="zoom"].is-visible { transform: scale(1); }

/* Stagger children when container has [data-reveal-stagger] */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-hesmar),
    transform 0.6s var(--ease-hesmar);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.26s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.33s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }
[data-reveal-stagger].is-visible > *:nth-child(n+7) { transition-delay: 0.47s; }

/* Gentle card lift — apply via class="lift-on-hover" */
.lift-on-hover {
  transition: transform 0.35s var(--ease-hesmar), box-shadow 0.35s var(--ease-hesmar);
}
.lift-on-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Button press feedback */
.btn:active,
.btn-primary:active,
.filter-btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Underlined link animation */
.animated-link {
  position: relative;
  display: inline-block;
}
.animated-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-hesmar);
}
.animated-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Reduced motion respects user preference — the reveal classes become no-ops */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body { opacity: 1 !important; transition: none !important; }
}

/* =============================================================================
   VISUAL POLISH PATCH — scroll hint alignment, floating-tag contrast,
   and lang-toggle active legibility. Appended last so it wins the cascade
   without having to chase !important flags scattered earlier in the file.
   ============================================================================= */

/* ---- 1. Scroll-to-explore hint: tight horizontal alignment ------------ */
/* Problem: cumulative `letter-spacing: 0.25em` pushed the text right of
   the line; the block read as off-center. Fix keeps the pulse animation
   but aligns line + text on a shared baseline and trims the trailing
   letter-space so the whole group reads as one unit.                      */
.hero-scroll-hint {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.25rem 0;
  line-height: 1 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.18em !important;   /* less aggressive than 0.25em */
  text-transform: uppercase;
  color: var(--color-text-muted) !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.hero-scroll-hint > span:last-child {
  /* compensate for trailing letter-spacing so text visually centers */
  margin-right: -0.18em;
  display: inline-block;
}
.hero-scroll-hint .scroll-line {
  display: inline-block;
  flex: 0 0 40px;
  width: 40px !important;
  height: 2px !important;
  background: var(--color-accent) !important;
  border-radius: 2px;
}
html[data-theme="dark"] .hero-scroll-hint {
  color: var(--color-text-secondary) !important;
}

/* ---- 2. Floating tech tags (Cybersecurity / Cloud Apps / ...): ------- */
/* Problem: light, semi-transparent pill with dark text washed out against
   the bright hero background, so the words were barely legible. Swap to
   a dark glass pill with white text + accent glow for pop.                */
.floating-tag {
  background: rgba(17, 17, 17, 0.82) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(51, 133, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  font-weight: 700;
}
.floating-tag:hover {
  background: rgba(0, 102, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-1px);
}
/* In dark mode, bump the accent ring slightly so the pills still read
   against the near-black background.                                    */
html[data-theme="dark"] .floating-tag {
  background: rgba(22, 25, 34, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(51, 133, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* ---- 3. EN / SW language toggle — active state legibility ----------- */
/* Problem: the active pill used `--color-text-primary` as background,
   which flips to near-white in dark mode, making the white "EN"/"SW"
   text invisible. Use the brand accent instead — always high-contrast
   with white text in both light and dark themes.                        */
.language-toggle .nav-link.active,
.language-toggle .lang-btn.active,
.language-toggle .active {
  background: var(--color-accent) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.35);
}
.navbar.scrolled .language-toggle .nav-link.active,
.navbar.scrolled .language-toggle .lang-btn.active {
  /* override the generic `.navbar.scrolled .nav-link` color rule */
  color: #FFFFFF !important;
}
html[data-theme="dark"] .language-toggle .nav-link.active,
html[data-theme="dark"] .language-toggle .lang-btn.active {
  background: var(--color-accent) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(51, 133, 255, 0.45);
}
/* Inactive lang button — ensure enough contrast on scrolled navbar too */
.language-toggle .nav-link,
.language-toggle .lang-btn {
  color: var(--color-text-secondary, var(--color-text-muted)) !important;
}
.language-toggle .nav-link:hover,
.language-toggle .lang-btn:hover {
  color: var(--color-text-primary) !important;
  background: rgba(0, 102, 255, 0.08);
}
html[data-theme="dark"] .language-toggle .nav-link:hover,
html[data-theme="dark"] .language-toggle .lang-btn:hover {
  background: rgba(51, 133, 255, 0.15);
}

