/*--------------------------------------------------------------
# roblucien.com — Design System v2
# Improved by ui-ux-pro-max skill
# Fixes: WCAG contrast, reduced-motion, touch targets, type scale,
#        focus states, easing, spacing rhythm, component polish
--------------------------------------------------------------*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Surfaces */
  --bg:            #0d1117;
  --bg-card:       #161b22;
  --bg-hover:      #1c2128;
  --bg-input:      #0d1117;
  --border:        #30363d;
  --border-hover:  #484f58;

  /* Brand colors */
  --blue:          #2f81f7;
  --blue-dim:      rgba(47,129,247,0.12);
  --blue-glow:     rgba(47,129,247,0.28);
  --green:         #3fb950;
  --green-dim:     rgba(63,185,80,0.12);
  --orange:        #f0883e;
  --danger:        #f85149;
  --danger-dim:    rgba(248,81,73,0.12);

  /* Text — all pass WCAG AA (4.5:1) on both --bg and --bg-card */
  --text:          #e6edf3;   /* 13.5:1 on --bg  */
  --text-muted:    #8b949e;   /*  6.3:1 on --bg  */
  --text-dim:      #7d8590;   /*  5.2:1 on --bg  | was #6e7681 which failed AA */
  --text-on-blue:  #ffffff;

  /* Typography */
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --mono:          'JetBrains Mono', 'Fira Code', monospace;

  /* Clean type scale: 12 · 14 · 16 · 18 · 20 · 24 · 28 · 32 · 40 · 48 */
  --text-xs:       0.75rem;   /* 12px */
  --text-sm:       0.875rem;  /* 14px */
  --text-base:     1rem;      /* 16px */
  --text-lg:       1.125rem;  /* 18px */
  --text-xl:       1.25rem;   /* 20px */
  --text-2xl:      1.5rem;    /* 24px */
  --text-3xl:      1.75rem;   /* 28px */
  --text-4xl:      2rem;      /* 32px */
  --text-5xl:      2.5rem;    /* 40px */
  --text-6xl:      3rem;      /* 48px */

  /* Spacing — 4px base rhythm */
  --space-1:       4px;
  --space-2:       8px;
  --space-3:       12px;
  --space-4:       16px;
  --space-5:       20px;
  --space-6:       24px;
  --space-8:       32px;
  --space-10:      40px;
  --space-12:      48px;
  --space-16:      64px;
  --space-20:      80px;
  --space-24:      96px;

  /* Radii */
  --radius-sm:     6px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --radius-pill:   100px;

  /* Shadows — 3-step elevation scale */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3), 0 0 0 1px var(--border);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.4), 0 0 0 1px var(--border-hover);
  --shadow-lg:     0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px var(--border-hover);
  --shadow-glow:   0 0 0 3px rgba(47,129,247,0.3);
  --shadow-blue:   0 4px 20px rgba(47,129,247,0.35);

  /* Transitions — ease-out for enter, ease-in for exit */
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --transition:    var(--duration-base) var(--ease-out);

  /* Minimum touch target */
  --touch-min:     44px;

  /* Prose max width (~70ch for readability) */
  --prose-width:   68ch;

  /* Bootstrap compat tokens */
  --background-color:              #0d1117;
  --default-color:                 #8b949e;
  --heading-color:                 #e6edf3;
  --accent-color:                  #2f81f7;
  --surface-color:                 #161b22;
  --contrast-color:                #ffffff;
  --nav-color:                     #e6edf3;
  --nav-hover-color:               #2f81f7;
  --nav-mobile-background-color:   #161b22;
  --nav-dropdown-background-color: #161b22;
  --nav-dropdown-color:            #8b949e;
  --nav-dropdown-hover-color:      #2f81f7;

  scroll-behavior: smooth;
}

/* ============================================================
   ACCESSIBILITY — SKIP LINK (P1)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-muted);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prose line-length control (P6 rule: 65-75 chars) */
p, li, blockquote {
  max-width: var(--prose-width);
}
.section-title p { margin-inline: auto; }

::selection {
  background: var(--blue-dim);
  color: var(--blue);
}

/* Touch — remove 300ms tap delay (P2) */
a, button, [role="button"], input, select, textarea, label {
  touch-action: manipulation;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: color-mix(in srgb, var(--blue), white 20%); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-top: 0;
}

img { max-width: 100%; height: auto; display: block; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   FOCUS STATES — WCAG AA (P1)
   Visible ring on every interactive element
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
}

/* Remove outline only when using mouse (not keyboard) */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ============================================================
   REDUCED MOTION — P7 CRITICAL
   Respects system preference for users with vestibular disorders
   ============================================================ */
@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;
  }

  /* AOS overrides */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Hero ring — stop spinning */
  .img-ring { animation: none !important; }

  /* Pulse dot — stop blinking */
  .hero-label .dot,
  [style*="pulse-dot"] { animation: none !important; }

  /* Typed cursor — remove blink */
  .typed-cursor { animation: none !important; opacity: 1; }

  /* Scroll behavior */
  html { scroll-behavior: auto; }
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.display-1 {
  font-size: clamp(var(--text-5xl), 6vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.display-2 {
  font-size: clamp(var(--text-4xl), 4.5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.display-3 {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-mono { font-family: var(--mono); font-size: var(--text-sm); }

.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, #58a6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--green) 0%, #56d364 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }
.section-alt { background: var(--bg-card); }

.section-title {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-title .label {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
  padding: 4px var(--space-3);
  background: var(--green-dim);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: var(--radius-pill);
}
.section-title h2 {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.section-title p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 auto;
  line-height: 1.7;
}

.divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
  margin: var(--space-5) auto;
}

/* ============================================================
   BUTTONS (P1 + P2)
   Min height 44px for touch targets, ease-out transitions,
   active pressed state, proper focus rings
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: 10px var(--space-6);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-base) var(--ease-out),
    border-color     var(--duration-base) var(--ease-out),
    box-shadow       var(--duration-base) var(--ease-out),
    transform        var(--duration-fast) var(--ease-out),
    color            var(--duration-base) var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--blue), white 12%);
  color: #fff;
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
  background: color-mix(in srgb, var(--blue), black 10%);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
  transform: translateY(-1px);
}
.btn-outline:active {
  transform: translateY(0);
  background: color-mix(in srgb, var(--blue-dim), transparent 20%);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding-inline: 0;
  min-height: auto;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
  min-height: var(--touch-min);
  padding: 12px var(--space-8);
  font-size: var(--text-lg);
}
.btn-sm {
  min-height: 36px;
  padding: 6px var(--space-4);
  font-size: var(--text-sm);
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-block;
  padding: 3px var(--space-3);
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  line-height: 1.5;
}
.tag:hover {
  color: var(--text);
  border-color: var(--border-hover);
}
.tag-blue  { color: var(--blue);   background: var(--blue-dim);  border-color: rgba(47,129,247,0.3); }
.tag-green { color: var(--green);  background: var(--green-dim); border-color: rgba(63,185,80,0.3); }
.tag-orange{ color: var(--orange); background: rgba(240,136,62,0.1); border-color: rgba(240,136,62,0.3); }

/* ============================================================
   CARDS
   ============================================================ */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out),
    transform    var(--duration-base) var(--ease-out);
}
.card-dark:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-dark .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-dim);
  border: 1px solid rgba(47,129,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.25rem;
  color: var(--blue);
  flex-shrink: 0;
}
.card-dark.green-icon  .card-icon { background: var(--green-dim);           border-color: rgba(63,185,80,0.2);  color: var(--green); }
.card-dark.orange-icon .card-icon { background: rgba(240,136,62,0.1);        border-color: rgba(240,136,62,0.2); color: var(--orange); }

.card-dark h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.card-dark p {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  max-width: none;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
#preloader::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#preloader.loaded { opacity: 0; visibility: hidden; }

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 999;
  width: var(--touch-min);
  height: var(--touch-min);
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity   var(--duration-base) var(--ease-out),
    visibility var(--duration-base) var(--ease-out),
    transform  var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  box-shadow: 0 2px 12px rgba(47,129,247,0.4);
  cursor: pointer;
}
.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: color-mix(in srgb, var(--blue), white 15%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.scroll-top:active { transform: translateY(0); }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 997;
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0;
  height: 64px;
  transition: background var(--duration-slow) var(--ease-out),
              box-shadow  var(--duration-slow) var(--ease-out);
}
.header.scrolled {
  background: rgba(13,17,23,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.5);
}

.logo { text-decoration: none; }
.logo .logo-text {
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo .logo-accent { color: var(--blue); }

.navmenu { display: flex; align-items: center; }
.navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.navmenu ul li a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 6px var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: var(--text);
  background: var(--bg-hover);
}
.navmenu ul li a.active {
  font-weight: 600;
  color: var(--text);
}

.btn-nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 7px var(--space-4) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--blue) !important;
  border-radius: var(--radius) !important;
  margin-left: var(--space-2);
  transition:
    background  var(--duration-base) var(--ease-out) !important,
    box-shadow  var(--duration-base) var(--ease-out) !important,
    transform   var(--duration-fast) var(--ease-out) !important;
}
.btn-nav-cta:hover {
  background: color-mix(in srgb, var(--blue), white 15%) !important;
  color: #fff !important;
  box-shadow: 0 0 16px var(--blue-glow) !important;
  transform: translateY(-1px) !important;
}
.btn-nav-cta:active { transform: translateY(0) !important; }

.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: var(--space-2);
  border: none;
  background: none;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-nav-toggle:hover { background: var(--bg-hover); }

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile nav — <dialog>.showModal() puts the element in the browser's native
   "top layer", which is painted above ALL stacking contexts by the browser.
   No z-index can beat it — no CSS bug can interfere. */
dialog.mobile-nav-dialog {
  border: none;
  margin: 0;
  padding: 40px 24px;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: calc(100dvh - 64px);
  max-height: calc(100dvh - 64px);
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.mobile-nav-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: backdropIn 0.25s ease-out both;
}
dialog.mobile-nav-dialog::backdrop { display: none; }
dialog.mobile-nav-dialog ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
dialog.mobile-nav-dialog ul li { text-align: center; }
dialog.mobile-nav-dialog ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 12px 36px;
  min-height: var(--touch-min);
  color: var(--text-muted);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
dialog.mobile-nav-dialog ul li a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
dialog.mobile-nav-dialog ul li a.active { color: var(--blue); }
/* Staggered entrance */
dialog.mobile-nav-dialog[open] ul li { animation: navItemIn 0.25s ease-out both; }
dialog.mobile-nav-dialog[open] ul li:nth-child(1) { animation-delay: 0.05s; }
dialog.mobile-nav-dialog[open] ul li:nth-child(2) { animation-delay: 0.10s; }
dialog.mobile-nav-dialog[open] ul li:nth-child(3) { animation-delay: 0.15s; }
dialog.mobile-nav-dialog[open] ul li:nth-child(4) { animation-delay: 0.20s; }
dialog.mobile-nav-dialog[open] ul li:nth-child(5) { animation-delay: 0.25s; }
dialog.mobile-nav-dialog[open] ul li:nth-child(6) { animation-delay: 0.30s; }
dialog.mobile-nav-dialog[open] ul li:nth-child(7) { animation-delay: 0.35s; }
dialog.mobile-nav-dialog .btn-nav-cta {
  margin-left: 0 !important;
  margin-top: 20px;
  width: auto !important;
  padding: 12px 40px !important;
  justify-content: center !important;
  min-height: var(--touch-min) !important;
  font-size: 1rem !important;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle { display: flex; }
  /* Hide original navmenu ul on mobile — links served from dialog overlay */
  .navmenu ul { display: none !important; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--bg);
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47,129,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,129,247,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero .label {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
  padding: 4px var(--space-3);
  background: var(--blue-dim);
  border: 1px solid rgba(47,129,247,0.3);
  border-radius: var(--radius-pill);
}
.page-hero h1 {
  font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}
.page-hero .breadcrumb-nav {
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin-top: var(--space-6);
}
.page-hero .breadcrumb-nav a { color: var(--text-dim); }
.page-hero .breadcrumb-nav a:hover { color: var(--blue); }
.page-hero .breadcrumb-nav span { margin: 0 var(--space-2); }

/* ============================================================
   HERO SECTION (homepage)
   ============================================================ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0 var(--space-20);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47,129,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,129,247,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(47,129,247,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Availability label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--green);
  padding: 5px var(--space-4);
  background: var(--green-dim);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-6);
}
.hero-label .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}
.hero-title .accent { color: var(--blue); }

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
  max-width: none;
}

.hero-typed-wrap {
  font-family: var(--mono);
  font-size: var(--text-base);
  color: var(--blue);
  margin-bottom: var(--space-3);
  min-height: 1.6em;
}
.hero-typed-wrap .typed-cursor {
  color: var(--blue);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.hero-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid;
  line-height: 1.5;
}
.cert-badge-red   { color: var(--danger); background: var(--danger-dim);      border-color: rgba(248,81,73,0.3); }
.cert-badge-green { color: var(--green);  background: var(--green-dim);        border-color: rgba(63,185,80,0.3); }
.cert-badge-blue  { color: var(--blue);   background: var(--blue-dim);         border-color: rgba(47,129,247,0.3); }
.cert-badge-orange{ color: var(--orange); background: rgba(240,136,62,0.1);    border-color: rgba(240,136,62,0.3); }
.cert-badge-purple{ color: #d2a8ff;       background: rgba(210,168,255,0.1);   border-color: rgba(210,168,255,0.3); }

/* Hero image */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-container {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
}
.hero-img-container .img-ring {
  position: absolute;
  inset: -12px;
  border: 2px solid transparent;
  border-top-color: var(--blue);
  border-right-color: var(--green);
  border-radius: 50%;
  animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring { to { transform: rotate(360deg); } }
.hero-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
}

.hero-floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.hero-floating-card i { color: var(--blue); }
.hero-floating-card.card-1 { top: 20px; right: -40px; }
.hero-floating-card.card-2 { bottom: 40px; left: -40px; }
.hero-floating-card .fc-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex-shrink: 0; }

@media (max-width: 991px) {
  .hero-floating-card { display: none; }
  .hero-img-container { width: 260px; height: 260px; }
}
@media (max-width: 767px) {
  .hero-image-wrap { margin-top: var(--space-10); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
#stats {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-16) 0;
}
.stats-item {
  text-align: center;
  padding: var(--space-5);
  border-right: 1px solid var(--border);
}
.stats-item:last-child { border-right: none; }
.stats-item .purecounter {
  display: block;
  font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stats-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  max-width: none;
}

@media (max-width: 767px) {
  .stats-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stats-item:last-child { border-bottom: none; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: var(--radius-xl);
  border: 2px solid var(--border);
  width: 100%;
  object-fit: cover;
}
.about-img-wrap .about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-blue);
}
.about-badge .num {
  display: block;
  font-size: var(--text-3xl);
  line-height: 1;
  margin-bottom: 2px;
}

.about-content .label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-3);
}
.about-content h2 {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.about-content p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-8) 0;
}
.about-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-muted);
}
.about-meta-item i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.about-meta-item strong { color: var(--text); }

/* Terminal / philosophy block */
.terminal-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-8) 0;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-bar .term-title {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin: 0 auto;
}
.terminal-code {
  padding: var(--space-5) var(--space-6);
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
}
.term-section { color: var(--blue); }
.term-key     { color: var(--green); }
.term-val     { color: var(--orange); }
.term-comment { color: var(--text-dim); }

/* ============================================================
   EXPERTISE / SKILLS
   ============================================================ */
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out);
}
.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.skill-card .card-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.skill-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.skill-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.skill-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.65;
  max-width: none;
}
.skill-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* Skills progress bars */
.skills-content .progress {
  height: auto;
  background: transparent;
  margin-bottom: var(--space-4);
}
.skills-content .skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.skills-content .val { color: var(--text-dim); }
.skills-content .progress-bar-wrap {
  background: var(--bg-hover);
  border-radius: var(--radius-pill);
  height: 6px;
  overflow: hidden;
}
.skills-content .progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--blue), var(--green));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--green) 100%);
  opacity: 0.35;
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-item .timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out);
}
.timeline-item .timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.timeline-company {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-period {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  padding: 3px var(--space-3);
  background: var(--bg-hover);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.timeline-role {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}
.timeline-location {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.timeline-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.timeline-desc ul { padding-left: var(--space-4); margin: var(--space-2) 0 0; }
.timeline-desc li { margin-bottom: var(--space-1); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.cert-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out),
    transform    var(--duration-base) var(--ease-out);
}
.cert-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cert-card .cert-info h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.cert-card .cert-info p {
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin: 0;
  max-width: none;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-slow) var(--ease-out),
    transform    var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
/* Top accent bar — always present but transparent until hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-card .svc-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: var(--space-5);
}
.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: none;
}
.service-card ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: var(--space-5);
}
.service-card ul li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 6px;
  max-width: none;
}
.service-card ul li i { color: var(--green); font-size: var(--text-sm); flex-shrink: 0; }
.service-card .svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--duration-base) var(--ease-out), color var(--transition);
}
.service-card .svc-cta:hover { gap: var(--space-3); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-container .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  user-select: none;
  position: relative;
  min-height: var(--touch-min);
  transition: color var(--transition);
}
.faq-item h3 .num {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--blue);
  flex-shrink: 0;
}
.faq-toggle {
  position: absolute;
  right: var(--space-5);
  color: var(--text-dim);
  transition: transform var(--duration-base) var(--ease-out), color var(--transition);
}
.faq-item .faq-content {
  padding: 0 var(--space-5) var(--space-5) 44px;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}
.faq-item.faq-active { border-color: var(--border-hover); }
.faq-item.faq-active h3 { color: var(--blue); }
.faq-item.faq-active .faq-content { display: block; }
.faq-item.faq-active .faq-toggle { transform: rotate(90deg); color: var(--blue); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-24) 0;
}
.testimonial-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-3) var(--space-5);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out);
}
.testimonial-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.testimonial-item .ti-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.testimonial-item .testimonial-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.testimonial-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.testimonial-item h4 {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dim);
  margin: 0;
}
.testimonial-item .stars {
  color: #f0a500;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  letter-spacing: 1px;
}
.testimonial-item p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  font-style: italic;
  max-width: none;
}
.testimonial-item .quote-icon-left,
.testimonial-item .quote-icon-right {
  color: var(--blue);
  opacity: 0.4;
  font-size: 1.25rem;
}
.swiper-pagination { position: relative; margin-top: var(--space-8); }
.swiper-pagination-bullet {
  background: var(--border-hover);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: background var(--transition), transform var(--transition);
}
.swiper-pagination-bullet-active {
  background: var(--blue);
  transform: scale(1.25);
}

/* ============================================================
   COMMUNITY / NONPROFIT
   ============================================================ */
.org-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  height: 100%;
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out),
    transform    var(--duration-base) var(--ease-out);
}
.org-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.org-card .org-logo-area {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.org-card .org-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.org-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.org-card .org-type { font-size: var(--text-sm); color: var(--text-dim); }
.org-card .org-years {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: var(--radius-pill);
  padding: 3px var(--space-3);
  margin-bottom: var(--space-4);
}
.org-card p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: none;
}
.org-card ul { padding-left: 0; list-style: none; margin: 0; }
.org-card ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 6px;
  max-width: none;
}
.org-card ul li i { color: var(--blue); font-size: var(--text-sm); margin-top: 2px; flex-shrink: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform    var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out);
  text-decoration: none;
}
.contact-info-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.contact-info-card .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue-dim);
  border: 1px solid rgba(47,129,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-info-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-info-card p,
.contact-info-card a {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  max-width: none;
}
.contact-info-card a:hover { color: var(--blue); }

/* Contact form */
.php-email-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}
.php-email-form .form-control {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px var(--space-4);
  font-family: var(--font);
  font-size: var(--text-base);
  min-height: var(--touch-min);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out);
}
.php-email-form .form-control::placeholder { color: var(--text-dim); }
.php-email-form .form-control:focus {
  background: var(--bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,129,247,0.2);
  color: var(--text);
  outline: none;
}
.php-email-form textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.php-email-form .loading      { color: var(--text-muted); background: var(--bg-hover); border: 1px solid var(--border); }
.php-email-form .error-message{ color: var(--danger);  background: var(--danger-dim); border: 1px solid rgba(248,81,73,0.3); }
.php-email-form .sent-message  { color: var(--green);   background: var(--green-dim); border: 1px solid rgba(63,185,80,0.3); }
.php-email-form button[type=submit] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px var(--space-8);
  min-height: var(--touch-min);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-out),
    box-shadow  var(--duration-base) var(--ease-out),
    transform   var(--duration-fast) var(--ease-out);
}
.php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--blue), white 15%);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}
.php-email-form button[type=submit]:active { transform: translateY(0); box-shadow: none; }

/* Social links */
.social-links-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: 9px var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    color         var(--transition),
    border-color  var(--transition),
    background    var(--transition);
}
.social-link-btn:hover {
  color: var(--text);
  border-color: var(--blue);
  background: var(--blue-dim);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(47,129,247,0.07) 0%, rgba(63,185,80,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-24) 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.cta-section p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 0;
}
.footer-logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.footer-logo-text .accent { color: var(--blue); }
.footer-tagline {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: var(--space-3);
  line-height: 1.65;
  max-width: 280px;
}
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-base);
  transition:
    color        var(--transition),
    border-color var(--transition),
    background   var(--transition),
    transform    var(--duration-fast) var(--ease-out);
}
.footer-social a:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-dim);
  transform: translateY(-2px);
}
.footer-social a:active { transform: translateY(0); }

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links li a {
  font-size: var(--text-base);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--blue); }
.footer-links li a i { font-size: var(--text-xs); flex-shrink: 0; }

.footer-bottom {
  margin-top: var(--space-12);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-copyright { font-size: var(--text-sm); color: var(--text-dim); }
.footer-copyright a { color: var(--text-muted); }
.footer-copyright a:hover { color: var(--blue); }

/* ============================================================
   AOS — respect reduced motion handled above
   ============================================================ */
[data-aos] { transition-property: transform, opacity; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .section { padding: var(--space-20) 0; }
  .about-img-wrap .about-badge { right: 0; bottom: -10px; }
  .php-email-form { padding: var(--space-8); }
}
@media (max-width: 767px) {
  .section { padding: var(--space-16) 0; }
  .section-title { margin-bottom: var(--space-10); }
  .cert-grid    { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: var(--space-6); }
  .timeline-header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .php-email-form { padding: var(--space-6); }
  .about-meta { grid-template-columns: 1fr; }
  p, li, blockquote { max-width: 100%; }
}
