/* ============================================================
   Sanjarbek Usmonov — Personal Website Template
   Exact replica of the React version
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Base colors */
  --bg:               hsl(210, 25%, 97%);
  --fg:               hsl(215, 25%, 15%);
  --card-bg:          hsl(210, 30%, 99%);
  --primary:          hsl(215, 65%, 35%);
  --primary-fg:       hsl(210, 25%, 98%);
  --accent:           hsl(220, 70%, 50%);
  --secondary:        hsl(215, 15%, 92%);
  --secondary-fg:     hsl(215, 20%, 25%);
  --muted:            hsl(215, 15%, 94%);
  --muted-fg:         hsl(215, 12%, 50%);
  --border:           hsl(215, 20%, 88%);

  /* Alpha/opacity variants */
  --bg-alpha-80:      rgba(243, 246, 249, 0.80);
  --bg-alpha-60:      rgba(243, 246, 249, 0.60);
  --card-alpha-50:    rgba(249, 251, 253, 0.50);
  --card-alpha-30:    rgba(249, 251, 253, 0.30);
  --primary-alpha-5:  rgba(44,  90,  160, 0.05);
  --primary-alpha-10: rgba(44,  90,  160, 0.10);
  --primary-alpha-20: rgba(44,  90,  160, 0.20);
  --primary-alpha-30: rgba(44,  90,  160, 0.30);
  --primary-alpha-40: rgba(44,  90,  160, 0.40);
  --primary-alpha-90: rgba(44,  90,  160, 0.90);
  --border-alpha-50:  rgba(214, 219, 229, 0.50);
  --secondary-alpha-60: rgba(228, 232, 239, 0.60);
  --muted-alpha-30:   rgba(232, 235, 242, 0.30);
  --muted-alpha-50:   rgba(232, 235, 242, 0.50);

  /* Glass */
  --glass-bg:         rgba(248, 250, 252, 0.88);
  --glass-border:     rgba(200, 210, 225, 0.50);

  /* Shadows */
  --shadow-sm:   0 2px 8px  rgba(30, 50, 80, 0.06);
  --shadow-md:   0 8px 30px rgba(30, 50, 80, 0.12);
  --shadow-lg:   0 20px 50px rgba(30, 50, 80, 0.18);
  --shadow-xl:   0 25px 50px rgba(30, 50, 80, 0.25);
  --shadow-glass: 0 8px 32px rgba(30, 50, 80, 0.08), inset 0 1px 0 rgba(200, 210, 225, 0.5);

  --radius: 0.75rem;   /* 12px */
  --radius-xl: 0.75rem; /* rounded-xl = 12px */
  --radius-2xl: 1rem;   /* rounded-2xl = 16px */
}

[data-theme="dark"] {
  --bg:               hsl(220, 20%, 8%);
  --fg:               hsl(210, 20%, 92%);
  --card-bg:          hsl(220, 18%, 12%);
  --primary:          hsl(215, 70%, 55%);
  --primary-fg:       hsl(220, 20%, 8%);
  --accent:           hsl(215, 70%, 55%);
  --secondary:        hsl(220, 15%, 18%);
  --secondary-fg:     hsl(210, 20%, 85%);
  --muted:            hsl(220, 15%, 16%);
  --muted-fg:         hsl(215, 15%, 55%);
  --border:           hsl(220, 15%, 20%);

  --bg-alpha-80:      rgba(17,  20,  27,  0.80);
  --bg-alpha-60:      rgba(17,  20,  27,  0.60);
  --card-alpha-50:    rgba(26,  30,  42,  0.50);
  --card-alpha-30:    rgba(26,  30,  42,  0.30);
  --primary-alpha-5:  rgba(92,  148, 224, 0.05);
  --primary-alpha-10: rgba(92,  148, 224, 0.12);
  --primary-alpha-20: rgba(92,  148, 224, 0.20);
  --primary-alpha-30: rgba(92,  148, 224, 0.30);
  --primary-alpha-40: rgba(92,  148, 224, 0.40);
  --primary-alpha-90: rgba(92,  148, 224, 0.90);
  --border-alpha-50:  rgba(41,  47,  61,  0.50);
  --secondary-alpha-60: rgba(37, 43,  55,  0.60);
  --muted-alpha-30:   rgba(32,  37,  48,  0.30);
  --muted-alpha-50:   rgba(32,  37,  48,  0.50);

  --glass-bg:         rgba(18,  22,  32,  0.92);
  --glass-border:     rgba(40,  55,  80,  0.50);

  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.30);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.40);
  --shadow-lg:   0 20px 50px rgba(0,0,0,0.50);
  --shadow-xl:   0 25px 50px rgba(0,0,0,0.50);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.40), inset 0 1px 0 rgba(40,55,80,0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
  padding-right: 5rem; /* pr-20 = 80px, space for sidebar */
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: 'Inter', sans-serif; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  padding-top: 6rem; /* pt-24 — space below action bar */
}

/* ============================================================
   FLOATING SIDEBAR
   React: fixed right-4 top-1/2 -translate-y-1/2
          glass-panel rounded-2xl py-4 px-2
          w-14 → w-48 on hover
   ============================================================ */
.sidebar {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;           /* w-14 = 56px */
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glass);
  padding: 1rem 0;         /* no horizontal padding — links handle their own */
  transition: width 0.3s ease-out;
  overflow: hidden;
}

.sidebar:hover { width: 12rem; } /* w-48 = 192px */

/* Avatar row */
.sidebar-avatar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-alpha-50);
  gap: 0;                  /* no gap when collapsed */
  overflow: hidden;
  transition: gap 0.25s ease;
}

.sidebar-avatar {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-fg);
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, width 0.25s ease, margin-left 0.25s ease;
  color: var(--fg);
}

.sidebar:hover .sidebar-avatar-row {
  gap: 0.75rem;
}

.sidebar:hover .sidebar-name {
  opacity: 1;
  width: 7rem;
}

/* Nav list */
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;  /* center icon when collapsed */
  gap: 0;
  padding: 0.5rem;          /* fits perfectly: 56px - 8px - 8px = 40px for icon */
  border-radius: var(--radius-xl);
  color: var(--muted-fg);
  text-decoration: none;
  transition: all 0.2s ease, justify-content 0s;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 0.375rem;       /* horizontal margin instead of sidebar padding */
}

.sidebar-link:hover {
  background: var(--secondary-alpha-60);
  color: var(--fg);
}

.sidebar-link.active {
  background: var(--primary-alpha-10);
  color: var(--primary);
}

.sidebar-link svg {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-link-label {
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, width 0.25s ease, margin 0.25s ease;
  margin-left: 0;
}

.sidebar:hover .sidebar-link {
  justify-content: flex-start;  /* left-align when expanded */
}

.sidebar:hover .sidebar-link-label {
  opacity: 1;
  width: 6rem;
  margin-left: 0.75rem;
}

/* Divider */
.sidebar-divider {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid var(--border-alpha-50);
}

/* Icon buttons (theme, lang) */
.sidebar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;  /* center when collapsed */
  gap: 0;
  padding: 0.5rem;
  border-radius: var(--radius-xl);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-fg);
  transition: all 0.2s ease;
  width: calc(100% - 0.75rem);
  margin: 0 0.375rem;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-icon-btn:hover {
  background: var(--secondary-alpha-60);
  color: var(--fg);
}

.sidebar-icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-icon-btn-label {
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, width 0.25s ease, margin 0.25s ease;
  margin-left: 0;
}

.sidebar:hover .sidebar-icon-btn {
  justify-content: flex-start;  /* left-align when expanded */
}

.sidebar:hover .sidebar-icon-btn-label {
  opacity: 1;
  width: 5rem;
  margin-left: 0.75rem;
}

/* Floating mail button (bottom-right corner) */
.mail-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.75rem;
  border-radius: 50%;
  text-decoration: none;
  color: var(--primary);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), 0 0 0 1px var(--primary-alpha-10);
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  width: 3rem;
}

.mail-fab:hover {
  border-radius: var(--radius-2xl);
  background: var(--primary-alpha-10);
  border-color: var(--primary-alpha-30);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary-alpha-20);
  width: 8.5rem;
  padding: 0.75rem 1rem;
  gap: 0.625rem;
}

.mail-fab svg {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mail-fab-label {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease 0.05s, max-width 0.3s ease;
}

.mail-fab:hover .mail-fab-label {
  opacity: 1;
  max-width: 6rem;
}

/* ============================================================
   FLOATING ACTION BAR
   React: fixed top-4 left-1/2 -translate-x-1/2
          glass-panel rounded-2xl py-2 px-3
          flex items-center gap-1
          w-px h-5 bg-border/50 dividers
   ============================================================ */
.action-bar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glass);
  padding: 0.5rem 0.75rem;  /* py-2 px-3 */
  gap: 0;
}

.action-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
  opacity: 0.5;
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;               /* gap-2 */
  padding: 0.5rem 0.75rem;   /* px-3 py-2 */
  border-radius: var(--radius-xl);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--muted-fg);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn:hover {
  background: var(--secondary-alpha-60);
  color: var(--fg);
}

.action-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toast */
.toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SECTION HEADER  (React SectionHeader component)
   font-serif text-3xl md:text-4xl font-semibold mb-3
   subtitle: text-muted-foreground text-lg max-w-2xl
   mb-10 total
   ============================================================ */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--muted-fg);
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.6;
}

/* Section dividers */
.border-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border-alpha-50);
}
.border-section-b { border-bottom: 1px solid var(--border-alpha-50); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;        /* px-8 py-4 */
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   GRID
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-bg-gradient {
  display: none;
}

.hero-bg-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-alpha-50), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  padding: 3rem 0;
}

/* Portrait */
.hero-portrait-wrap { position: relative; }

.hero-portrait-frame-outer {
  position: absolute;
  inset: -0.75rem;  /* -inset-3 */
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-2xl);
  pointer-events: none;
}

.hero-portrait-frame-inner {
  position: absolute;
  inset: -1.5rem;   /* -inset-6 */
  border: 1px solid var(--primary-alpha-10);
  border-radius: 1.5rem;  /* rounded-3xl */
  pointer-events: none;
}

.hero-portrait-img {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-portrait-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-alpha-60) 0%, transparent 60%);
}

.hero-deco-square {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 5rem;
  height: 5rem;
  border: 2px solid var(--primary-alpha-30);
  border-radius: 0.5rem;
  z-index: -1;
  pointer-events: none;
}

.hero-deco-circle {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary-alpha-10);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Hero content */
.hero-overline {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-underline {
  width: 5rem;
  height: 4px;
  background: var(--primary);
  margin: 1.5rem 0;
}

.hero-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--fg);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 38rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Stats inside hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-alpha-50);
  border-bottom: 1px solid var(--border-alpha-50);
}

.hero-stat {
  text-align: center;
  padding: 0 0.5rem;
  border-right: 1px solid var(--border-alpha-50);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.hero-stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.6875rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   HOME — MISSION
   ============================================================ */
.mission-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-alpha-50);
}

.mission-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-style: italic;
  color: var(--fg);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.65;
  text-align: center;
}

.mission-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mission-line {
  width: 2rem;
  height: 1px;
  background: var(--primary);
}

.mission-author {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============================================================
   EXPERTISE CARDS
   React: group p-6 rounded-xl bg-card border border-border/50
          card-hover shadow-soft relative overflow-hidden
          Top accent line scale-x-0 → scale-x-100
          Icon: w-14 h-14 rounded-lg bg-primary/10
                group-hover: bg-primary text-primary-foreground
   ============================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-alpha-40));
  transition: right 0.5s ease;
}
.expertise-card:hover::before { right: 0; }

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.expertise-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background: var(--primary-alpha-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s;
}
.expertise-card:hover .expertise-icon {
  background: var(--primary);
  color: var(--primary-fg);
}
.expertise-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.expertise-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

/* ============================================================
   INSIGHT CARD
   React: group block overflow-hidden rounded-xl bg-card border border-border/50
          hover:border-primary/40 hover:shadow-2xl hover:-translate-y-1
          Image h-48, gradient overlay, category top-left solid pill,
          read-time top-right frosted pill
          p-5 content, "read more" fades in, bottom accent line
   ============================================================ */
.card-insight {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  transition: all 0.5s ease;
  color: inherit;
  text-decoration: none;
}
.card-insight:hover {
  border-color: var(--primary-alpha-40);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Card project shares same base */
.card-project {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  transition: all 0.5s ease;
  color: inherit;
  text-decoration: none;
}
.card-project:hover {
  border-color: var(--primary-alpha-30);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Image container */
.card-img-wrap {
  position: relative;
  height: 12rem;   /* h-48 */
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.card-insight:hover .card-img-wrap img,
.card-project:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Gradient overlay on image */
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    var(--card-bg) 0%,
    var(--card-alpha-50) 50%,
    transparent 100%);
}
/* lighter overlay for projects */
.card-project .card-img-overlay {
  background: linear-gradient(to top,
    var(--card-bg) 0%,
    var(--card-alpha-30) 40%,
    transparent 100%);
}

/* Category pill — solid primary, INSIDE image */
.img-pill-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  line-height: 1;
}

/* For projects - slightly transparent primary */
.card-project .img-pill-cat {
  background: var(--primary-alpha-90);
  backdrop-filter: blur(4px);
}

/* Read time pill — frosted, INSIDE image top-right */
.img-pill-meta {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--bg-alpha-80);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1;
}
.img-pill-meta svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Year pill (projects) */
.img-pill-year {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--bg-alpha-80);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
}

/* Hover arrow (projects) */
.card-hover-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-fg);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
}
.card-project:hover .card-hover-arrow {
  opacity: 1;
  transform: translateY(0);
}
.card-hover-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card body */
.card-body { padding: 1.25rem; }  /* p-5 */

/* Date row */
.card-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}
.card-date svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Title */
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-insight:hover .card-title,
.card-project:hover .card-title { color: var(--primary); }

/* Project title is not serif in React: text-lg font-semibold */
.card-project .card-title {
  font-family: 'Inter', sans-serif;
}

/* Excerpt */
.card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Read more" — fades in on hover */
.card-readmore {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.card-readmore svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-insight:hover .card-readmore { opacity: 1; transform: translateY(0); }

/* Bottom accent line */
.card-accent-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.card-insight:hover .card-accent-line,
.card-project:hover .card-accent-line { transform: scaleX(1); }

/* ============================================================
   "View all" link next to section header
   React: text-sm font-medium text-primary hover:underline flex items-center
   ============================================================ */
.view-all-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: text-decoration 0.2s;
  white-space: nowrap;
}
.view-all-link:hover { text-decoration: underline; }
.view-all-link svg {
  width: 1rem; height: 1rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

/* ============================================================
   LOGO SLIDER
   React: w-36 h-20 px-6 py-4 rounded-xl border border-border/50 bg-card/50
          hover: border-primary/30 bg-card shadow-lg scale-105
          Logo img: grayscale opacity-60 → hover: no filter
   ============================================================ */
.logo-slider-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-alpha-50);
  overflow: hidden;
}
.logo-slider-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.logo-slider-header p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.logo-slider-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 600;
  color: var(--fg);
}
.logo-slider-outer {
  position: relative;
  overflow: hidden;
}
.logo-slider-fade-left {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6rem;
  background: linear-gradient(to right, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}
.logo-slider-fade-right {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 6rem;
  background: linear-gradient(to left, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}
.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.5rem 0;
  will-change: transform;
  white-space: nowrap;
}
.logo-item {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13rem;
  height: 7.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-alpha-50);
  background: var(--card-alpha-50);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-fg);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-decoration: none;
}
.logo-item:hover {
  border-color: var(--primary-alpha-30);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
}
.logo-item .logo-img {
  max-width: 100%;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}
.logo-item:hover .logo-img {
  transform: scale(0.88) translateY(-5px);
}
.logo-item-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.logo-item:hover .logo-item-name {
  transform: translateY(0);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-alpha-50);
}
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.about-intro p {
  color: var(--muted-fg);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Milestones card */
.milestones-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.milestones-card h4 {
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 1rem;
}
.milestones-list { display: flex; flex-direction: column; gap: 0.75rem; }
.milestones-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.milestone-dot {
  width: 0.5rem;
  height: 0.5rem;
  min-width: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.45rem;
}

/* Approach card */
.approach-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  box-shadow: var(--shadow-sm);
}
.approach-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
}
.process-list { display: flex; flex-direction: column; gap: 1rem; list-style: none; padding: 0; }
.process-list li { display: flex; align-items: flex-start; gap: 1rem; }
.process-num {
  width: 2rem; height: 2rem; min-width: 2rem;
  border-radius: 50%;
  background: var(--primary-alpha-10);
  color: var(--primary);
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
}
.process-title { font-weight: 500; color: var(--fg); margin-bottom: 0.125rem; }
.process-desc { font-size: 0.875rem; color: var(--muted-fg); }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: var(--primary-alpha-10);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}
.value-icon svg {
  width: 1.5rem; height: 1.5rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.value-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.value-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.65; }

/* ============================================================
   WORK PAGE
   ============================================================ */
.achievement-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.achievement-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: var(--primary-alpha-10);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin: 0 auto 1rem;
}
.achievement-icon svg {
  width: 1.5rem; height: 1.5rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.achievement-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.achievement-label { font-size: 0.875rem; color: var(--muted-fg); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 0.45rem;
  width: 12px; height: 12px;
  background: var(--primary);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-alpha-20);
}
.timeline-period {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.timeline-role {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.timeline-company { font-size: 0.9rem; color: var(--muted-fg); margin-bottom: 0.75rem; }
.timeline-desc { font-size: 0.9rem; color: var(--muted-fg); line-height: 1.7; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--muted);
  border: 1px solid var(--border-alpha-50);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--muted-fg);
  font-weight: 500;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-xl);
  background: var(--primary-alpha-10);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 1.5rem; height: 1.5rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.service-card > p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.65; margin-bottom: 1.25rem; }
.service-features { display: flex; flex-direction: column; gap: 0.5rem; }
.service-feature {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.825rem; color: var(--muted-fg);
}
.service-feature::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Services CTA */
.services-cta {
  margin-top: 4rem;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: var(--primary-alpha-5);
  border: 1px solid var(--primary-alpha-20);
  text-align: center;
}
.services-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.services-cta p { color: var(--muted-fg); margin-bottom: 1.5rem; }

/* ============================================================
   CONNECT PAGE
   React: form inputs rounded-xl border border-border bg-card
          focus:ring-2 focus:ring-primary/20 focus:border-primary
          social icons: p-3 rounded-xl bg-muted/50
            hover:bg-primary hover:text-primary-foreground hover:scale-110
   ============================================================ */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.form-group { margin-bottom: 0; }
.form-group + .form-group { margin-top: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted-fg); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-20);
}
.form-textarea { resize: none; min-height: 9rem; }

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-submit svg {
  width: 1.25rem; height: 1.25rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* Telegram section below form */
.telegram-form-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,136,204,0.10) 0%, rgba(0,136,204,0.05) 100%);
  border: 1px solid rgba(0,136,204,0.20);
}
.telegram-form-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.btn-telegram {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  background: #0088cc;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn-telegram:hover { background: #0077b5; transform: translateY(-2px); }
.btn-telegram svg {
  width: 1.5rem; height: 1.5rem;
  fill: currentColor; stroke: none;
}

/* Info cards (right column) */
.info-space { display: flex; flex-direction: column; gap: 2rem; }

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
}
.info-card p { color: var(--muted-fg); line-height: 1.7; margin-bottom: 0; }
.info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.info-row:last-child { margin-bottom: 0; }
.info-row svg {
  width: 1.25rem; height: 1.25rem;
  stroke: var(--primary); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Availability card */
.availability-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--primary-alpha-5);
  border: 1px solid var(--primary-alpha-20);
}
.availability-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.availability-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.65; }

/* Social icons */
.social-icons { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.social-icon-btn {
  padding: 0.625rem;
  border-radius: var(--radius-xl);
  background: var(--muted-alpha-50);
  border: 1px solid transparent;
  color: var(--muted-fg);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
}
.social-icon-btn svg {
  width: 1.25rem; height: 1.25rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: filter 0.25s ease;
}

/* Brand colors on hover */
.social-icon-btn[aria-label="LinkedIn"]:hover {
  background: rgba(10, 102, 194, 0.12);
  border-color: rgba(10, 102, 194, 0.35);
  color: #0a66c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.25);
}
.social-icon-btn[aria-label="GitHub"]:hover {
  background: rgba(36, 41, 47, 0.12);
  border-color: rgba(110, 118, 129, 0.4);
  color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(36, 41, 47, 0.18);
}
.social-icon-btn[aria-label="Twitter"]:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.25);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .social-icon-btn[aria-label="Twitter"]:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}
.social-icon-btn[aria-label="Instagram"]:hover {
  background: rgba(225, 48, 108, 0.10);
  border-color: rgba(225, 48, 108, 0.35);
  color: #e1306c;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.22);
}
.social-icon-btn[aria-label="YouTube"]:hover {
  background: rgba(255, 0, 0, 0.10);
  border-color: rgba(255, 0, 0, 0.30);
  color: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.18);
}
.social-icon-btn[aria-label="Facebook"]:hover {
  background: rgba(24, 119, 242, 0.10);
  border-color: rgba(24, 119, 242, 0.35);
  color: #1877f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.22);
}

/* Telegram in follow section */
.telegram-follow-card {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-alpha-50);
}
.telegram-follow-card p { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 0.75rem; }

/* ============================================================
   INSIGHT / PROJECT SINGLE PAGE
   ============================================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
}
.back-btn:hover { color: var(--primary); }
.back-btn svg {
  width: 1rem; height: 1rem;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.single-header { max-width: 50rem; margin-bottom: 2rem; }
.single-header .pill {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  margin-bottom: 1rem;
}
.single-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.single-header .meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.meta-dot { opacity: 0.5; }

.featured-img {
  aspect-ratio: 21/9;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  background: var(--secondary);
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Prose */
.prose {
  max-width: 45rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--fg);
}
.prose p { margin-bottom: 1.25rem; }
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; margin: 2rem 0 0.75rem;
}
.prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; margin: 1.5rem 0 0.5rem;
}
.prose ul { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose ul li { list-style: disc; margin-bottom: 0.4rem; color: var(--muted-fg); }
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted-fg);
  background: var(--primary-alpha-5);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

/* Project detail boxes */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.detail-box {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-alpha-50);
}
.detail-box h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.detail-box p { font-size: 0.9rem; line-height: 1.65; color: var(--fg); }

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.feature-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.feature-num {
  width: 1.75rem; height: 1.75rem; min-width: 1.75rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  margin-top: 0.15rem;
}
.feature-item p, .feature-item span { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.gallery-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--secondary);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.not-found .code {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
}
.not-found h1 { font-size: 1.75rem; }
.not-found p  { color: var(--muted-fg); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes spinAnim { to { transform: rotate(360deg); } }

.animate-fade-up   { animation: fadeUp 0.6s ease-out both; }
.animate-fade-in   { animation: fadeIn 0.4s ease-out both; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.spinner {
  display: inline-block;
  width: 1.25rem; height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinAnim 0.7s linear infinite;
}

/* ============================================================
   LOAD MORE / BTN-LOAD-MORE
   ============================================================ */
.load-more-wrap { text-align: center; margin-top: 3rem; }
.btn-load-more {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary-alpha-30);
  background: transparent;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.btn-load-more:hover {
  border-color: var(--primary);
  background: var(--primary-alpha-5);
  transform: translateY(-1px);
}
.btn-load-more svg {
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn-load-more:hover svg { transform: translateY(2px); }

/* ============================================================
   STATS PILLS (Projects page header)
   ============================================================ */
.stats-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.stats-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  background: var(--muted-alpha-30);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-alpha-50);
}
.stats-pill-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.stats-pill-label { color: var(--muted-fg); font-size: 0.9rem; }

/* ============================================================
   SERVICE CARD (new class names used in services.html)
   ============================================================ */
.service-icon-wrap {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius-xl);
  background: var(--primary-alpha-10);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.service-icon-wrap svg {
  width: 2rem; height: 2rem;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--muted-fg);
}
.service-features-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Services CTA button */
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn-primary-lg:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-primary-lg svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   ARTICLE / PROJECT SINGLE PAGES
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--fg); }
.back-link svg {
  width: 1rem; height: 1rem;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.category-pill {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  background: var(--primary-alpha-10);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1rem;
}
@media (max-width: 768px) { .article-title { font-size: 1.875rem; } }

.article-subtitle {
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

/* Prose content (article body) */
.article-prose {
  color: var(--muted-fg);
  line-height: 1.8;
  font-size: 1rem;
}
.article-prose p { margin-bottom: 1.25rem; }
.article-prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}
.article-prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.5rem 0 0.5rem;
}
.article-prose strong { color: var(--fg); font-weight: 600; }
.article-prose a { color: var(--primary); text-decoration: none; }
.article-prose a:hover { text-decoration: underline; }
.article-prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: var(--primary-alpha-5);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.article-prose blockquote p { margin-bottom: 0; }
.article-prose ul, .article-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-prose li { margin-bottom: 0.4rem; }

/* Section title smaller (used inside project/article pages) */
.section-title-sm {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

/* Utility */
.text-muted { color: var(--muted-fg); line-height: 1.7; font-size: 0.9375rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid    { grid-template-columns: repeat(2,1fr); }
  .hero-stats     { grid-template-columns: repeat(2,1fr); }
  .hero-stat      { border-right: none; border-bottom: 1px solid var(--border-alpha-50); padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
  .hero-stat:nth-child(2n){ border-right: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait-wrap { max-width: 280px; margin: 0 auto; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { padding-right: 4rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .page-container { padding: 4.5rem 1rem 3rem; }
  .action-bar .action-btn span { display: none; }
}
@media (max-width: 480px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; }
  .hero-stats     { grid-template-columns: repeat(2,1fr); }
}
