/* ==========================================================================
   GURTEK SINGH CONSULTING — Master Stylesheet
   Dark Premium Theme | Emerald Accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts
   Heading: Sora — geometric, modern, premium feel
   Body: Outfit — excellent readability, clean geometric forms
   Mono: JetBrains Mono for code blocks
   Loaded via <link> in HTML <head> (faster than @import)
   -------------------------------------------------------------------------- */

/* ==========================================================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */
:root {
  /* --- Color Palette --- */
  --color-bg:             #0a0a0f;
  --color-bg-rgb:         10, 10, 15;
  --color-surface:        #12121a;
  --color-surface-rgb:    18, 18, 26;
  --color-surface-raised: #1a1a28;
  --color-accent:         #10b981;
  --color-accent-rgb:     16, 185, 129;
  --color-accent-hover:   #059669;
  --color-accent-light:   #34d399;
  --color-accent-muted:   rgba(16, 185, 129, 0.15);
  --color-text:           #f0f0f0;
  --color-text-rgb:       240, 240, 240;
  --color-text-secondary: #8a8a9a;
  --color-text-tertiary:  #5a5a6a;
  --color-border:         #1e1e2e;
  --color-border-light:   #2a2a3a;
  --color-error:          #ef4444;
  --color-error-muted:    rgba(239, 68, 68, 0.15);
  --color-success:        #10b981;
  --color-success-muted:  rgba(16, 185, 129, 0.15);
  --color-warning:        #f59e0b;
  --color-warning-muted:  rgba(245, 158, 11, 0.15);
  --color-white:          #ffffff;
  --color-black:          #000000;

  /* --- Typography --- */
  --font-heading:    'Sora', sans-serif;
  --font-body:       'Outfit', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  --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.875rem;    /* 30px */
  --text-4xl:  2.25rem;     /* 36px */
  --text-5xl:  3rem;        /* 48px */
  --text-6xl:  3.75rem;     /* 60px */
  --text-7xl:  4.5rem;      /* 72px */

  --leading-none:    1;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.02em;
  --tracking-wider:  0.05em;
  --tracking-widest: 0.1em;

  /* --- Spacing Scale --- */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* --- Layout --- */
  --container-max:    1200px;
  --container-narrow: 800px;
  --container-wide:   1400px;

  /* --- Borders & Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl:    0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow:  0 0 20px rgba(16, 185, 129, 0.15),
                  0 0 40px rgba(16, 185, 129, 0.05);
  --shadow-glow-lg: 0 0 30px rgba(16, 185, 129, 0.25),
                    0 0 60px rgba(16, 185, 129, 0.1);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   500ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-Index Scale --- */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;

  /* --- Nav Height --- */
  --nav-height: 72px;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Noise/Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

::selection {
  background-color: rgba(16, 185, 129, 0.3);
  color: var(--color-white);
}

/* Keyboard focus — visible ring only for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}


/* ==========================================================================
   3. TYPOGRAPHY SCALE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-light);
}

strong,
b {
  font-weight: 600;
  color: var(--color-text);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

blockquote {
  position: relative;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-muted, #b0b0be);
  line-height: var(--leading-relaxed);
}

blockquote p {
  margin-bottom: 0;
  color: inherit;
}

blockquote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-accent);
  font-weight: 500;
}

blockquote cite::before {
  content: '-\00a0';
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid rgba(var(--color-accent-rgb), 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-accent-light);
}

pre {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

mark {
  background: rgba(var(--color-accent-rgb), 0.2);
  color: var(--color-accent-light);
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
}

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

/* Section labels / overlines */
.overline,
.section-label,
.hero-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}

/* Large lead text */
.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}


/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Flex */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

/* Header needs its own stacking context above <main>/<footer>
   because the page reveal animation on those elements creates
   stacking contexts that can overlap the fixed nav.               */
header {
  position: relative;
  z-index: var(--z-overlay);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--color-bg-rgb), 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.nav.scrolled::before {
  border-bottom-color: var(--color-border);
}

.nav__inner,
.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Logo */
.nav__logo,
.nav-logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__logo:hover,
.nav-logo:hover {
  color: var(--color-accent);
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-white);
}

/* Nav Links */
.nav__links,
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link,
.nav-links a {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-base),
              background-color var(--transition-base);
}

.nav__link:hover,
.nav-links a:hover {
  color: var(--color-text);
  background: rgba(var(--color-text-rgb), 0.05);
}

.nav__link.active,
.nav-links a.active {
  color: var(--color-accent);
}

.nav__link.active::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Nav CTA */
.nav__cta {
  margin-left: var(--space-4);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
}

.nav__cta:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger,
.hamburger {
  display: none;
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
}

.nav__hamburger:hover,
.hamburger:hover {
  background: rgba(var(--color-text-rgb), 0.05);
}

.nav__hamburger-line,
.hamburger span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base),
              opacity var(--transition-base),
              background-color var(--transition-base);
}

.nav__hamburger-line::before,
.nav__hamburger-line::after,
.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base),
              opacity var(--transition-base);
}

.nav__hamburger-line::before,
.hamburger span::before {
  top: -6px;
}

.nav__hamburger-line::after,
.hamburger span::after {
  top: 6px;
}

/* Hamburger active state */
.nav__hamburger.active .nav__hamburger-line,
.hamburger.active span {
  background: transparent;
}

.nav__hamburger.active .nav__hamburger-line::before,
.hamburger.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__hamburger.active .nav__hamburger-line::after,
.hamburger.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hide extra hamburger spans — only the first span gets ::before / ::after lines */
.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  display: none;
}


/* ==========================================================================
   6. HERO SECTION (Home)
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) var(--space-6) var(--space-16);
  overflow: hidden;
}

/* Hero animated background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Large radial gradient */
.hero__bg::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 70%);
  animation: heroGradientDrift 20s ease-in-out infinite alternate;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(var(--color-accent-rgb), 0.05) 0%, transparent 70%);
  animation: heroGradientDrift 25s ease-in-out infinite alternate-reverse;
}

/* Geometric floating shapes */
.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border: 1px solid rgba(var(--color-accent-rgb), 0.1);
  border-radius: var(--radius-lg);
  animation: float 20s ease-in-out infinite;
}

.hero__shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 10%;
  transform: rotate(15deg);
  animation-delay: 0s;
  animation-duration: 22s;
}

.hero__shape:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 8%;
  transform: rotate(-10deg);
  animation-delay: -5s;
  animation-duration: 18s;
  border-radius: 50%;
}

.hero__shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 20%;
  transform: rotate(45deg);
  animation-delay: -10s;
  animation-duration: 25s;
}

.hero__shape:nth-child(4) {
  width: 100px;
  height: 100px;
  bottom: 30%;
  right: 25%;
  transform: rotate(-30deg);
  animation-delay: -3s;
  animation-duration: 20s;
  border-radius: 50%;
  border-color: rgba(var(--color-accent-rgb), 0.06);
}

/* Grid pattern overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--color-accent-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-accent-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-muted);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-full);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    var(--color-text) 50%,
    var(--color-text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-accent {
  -webkit-text-fill-color: var(--color-accent);
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}


/* ==========================================================================
   7. SECTION STYLES
   ========================================================================== */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--surface,
.section-surface {
  background-color: var(--color-surface);
}

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

.section__header,
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section__header .overline,
.section-header .overline,
.section__header .section-label,
.section-header .section-label {
  margin-bottom: var(--space-4);
}

.section__header h2,
.section-header h2 {
  margin-bottom: var(--space-6);
}

.section__header p,
.section-header p {
  font-size: var(--text-lg);
}

/* Section divider */
.section__divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-8);
}

/* Section with top accent line */
.section--accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}


/* ==========================================================================
   8. CARD COMPONENTS
   ========================================================================== */
.card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
  overflow: hidden;
}

/* Gradient border effect */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--color-border),
    var(--color-border-light),
    var(--color-border)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(var(--color-accent-rgb), 0.08);
}

.card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(var(--color-accent-rgb), 0.5),
    rgba(var(--color-accent-rgb), 0.1),
    rgba(var(--color-accent-rgb), 0.5)
  );
}

.card__icon,
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-muted);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  color: var(--color-accent);
  font-size: var(--text-2xl);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.card:hover .card__icon,
.card:hover .card-icon {
  background: rgba(var(--color-accent-rgb), 0.2);
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.15);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.card__link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-base),
              color var(--transition-base);
}

.card__link:hover,
.card-link:hover {
  gap: var(--space-3);
  color: var(--color-accent-light);
}

.card__link-arrow {
  transition: transform var(--transition-base);
}

.card:hover .card__link-arrow {
  transform: translateX(4px);
}

/* Card variants */
.card--featured {
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  background: linear-gradient(
    135deg,
    var(--color-surface) 0%,
    rgba(var(--color-accent-rgb), 0.03) 100%
  );
}

.card--featured::before {
  background: linear-gradient(
    135deg,
    rgba(var(--color-accent-rgb), 0.3),
    rgba(var(--color-accent-rgb), 0.05),
    rgba(var(--color-accent-rgb), 0.3)
  );
}

/* Number card (for process steps) */
.card--numbered,
.card.process-card {
  padding-top: var(--space-12);
}

.card__number,
.process-number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: rgba(var(--color-accent-rgb), 0.07);
  line-height: 1;
}


/* Service capability lists */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.service-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   9. BUTTON STYLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary button (emerald filled) */
.btn--primary,
.btn-primary {
  color: var(--color-white);
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn--primary:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(var(--color-accent-rgb), 0.2);
}

/* Secondary button (outline) */
.btn--secondary,
.btn-secondary {
  color: var(--color-accent);
  background: transparent;
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
}

.btn--secondary:hover,
.btn-secondary:hover {
  background: var(--color-accent-muted);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.1);
  transform: translateY(-2px);
  color: var(--color-accent-light);
}

.btn--secondary:active,
.btn-secondary:active {
  transform: translateY(0);
}

/* Ghost button (text only with subtle bg on hover) */
.btn--ghost,
.btn-ghost {
  color: var(--color-text-secondary);
  background: transparent;
}

.btn--ghost:hover,
.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(var(--color-text-rgb), 0.05);
}

/* White button (for dark backgrounds) */
.btn--white {
  color: var(--color-bg);
  background: var(--color-white);
}

.btn--white:hover {
  background: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-bg);
}

/* Button sizes */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* Button with icon */
.btn__icon {
  display: inline-flex;
  font-size: 1.1em;
  transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
  transform: translateX(2px);
}

/* Button loading state */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--space-2);
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* Social links */
.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-text-rgb), 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.3);
  background: var(--color-accent-muted);
  transform: translateY(-2px);
}

/* Footer columns */
.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-base),
              padding-left var(--transition-base);
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: var(--space-2);
}

/* Footer bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.footer__bottom a {
  color: var(--color-text-secondary);
}

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


/* ==========================================================================
   11. FORM STYLES
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-accent);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: rgba(var(--color-surface-rgb), 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--color-border-light);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15),
              0 0 20px rgba(var(--color-accent-rgb), 0.05);
  background: var(--color-surface);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

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

/* Validation states */
.form-input--error,
.form-textarea--error {
  border-color: var(--color-error);
}

.form-input--error:focus,
.form-textarea--error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-muted),
              0 0 20px rgba(239, 68, 68, 0.05);
}

.form-input--success,
.form-textarea--success {
  border-color: var(--color-success);
}

.form-input--success:focus,
.form-textarea--success:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-muted);
}

.form-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-error);
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-success);
}

.form-hint {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  margin-top: 2px;
}

.form-check input[type="radio"] {
  border-radius: 50%;
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border: 2px solid var(--color-white);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.form-check input[type="radio"]:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-white);
  border-radius: 50%;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}


/* ==========================================================================
   11b. CONTACT PAGE STYLES
   ========================================================================== */

/* Contact page grid — form left, info right */
.contact-grid {
  align-items: start;
  gap: var(--space-8);
}

.contact-grid .contact-form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-grid .contact-form-wrapper h2 {
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}

/* Style bare form elements inside the contact form */
#contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

#contact-form .required {
  color: var(--color-accent);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg, #0a0a0f);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

#contact-form input[type="text"]::placeholder,
#contact-form input[type="email"]::placeholder,
#contact-form textarea::placeholder {
  color: var(--color-text-tertiary, #555568);
}

#contact-form input[type="text"]:hover,
#contact-form input[type="email"]:hover,
#contact-form textarea:hover {
  border-color: var(--color-border-light, #2e2e3e);
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
              0 0 20px rgba(16, 185, 129, 0.05);
  background: var(--color-surface);
}

#contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

#contact-form button[type="submit"] {
  margin-top: var(--space-4);
  width: 100%;
}

/* Inline validation error messages */
.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444 !important;
}

.form-group .error-message {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: #ef4444;
}

/* Success / error banners (contact page) */
.contact-grid .form-success {
  padding: var(--space-6);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-grid .form-success h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.contact-grid .form-error {
  padding: var(--space-4);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  color: #ef4444;
}

/* Contact info column — high specificity to override BEM .contact-info */
.contact-grid .contact-info {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-grid .contact-info h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
}

.contact-grid .contact-info > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.contact-grid .contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.contact-grid .contact-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.contact-grid .contact-item a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-base);
}

.contact-grid .contact-item a:hover {
  color: var(--color-accent-light, #34d399);
  text-decoration: underline;
}

.contact-grid .contact-item span {
  color: var(--color-text-secondary);
}

.contact-grid .contact-availability {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.contact-grid .contact-availability h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.contact-grid .contact-availability p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Responsive: stack on mobile */
@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid .contact-form-wrapper,
  .contact-grid .contact-info {
    padding: var(--space-6);
  }
}


/* ==========================================================================
   12. BLOG STYLES
   ========================================================================== */

/* Blog listing — post cards */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--color-border), var(--color-border-light));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background var(--transition-base);
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(var(--color-accent-rgb), 0.06);
}

.blog-card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(var(--color-accent-rgb), 0.4),
    rgba(var(--color-accent-rgb), 0.1)
  );
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.blog-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.blog-card__category {
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.blog-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
  transition: color var(--transition-base);
}

.blog-card:hover .blog-card__title {
  color: var(--color-accent);
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.blog-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card__author-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.blog-card__read-time {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Single post typography */
.post {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.post__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.post__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.post__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.post__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.post__meta-divider {
  width: 4px;
  height: 4px;
  background: var(--color-text-tertiary);
  border-radius: 50%;
}

/* Post content body */
.post__content {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.post__content h2 {
  font-size: var(--text-3xl);
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.post__content h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.post__content h4 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.post__content p {
  margin-bottom: var(--space-6);
  color: inherit;
}

.post__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(var(--color-accent-rgb), 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-base);
}

.post__content a:hover {
  text-decoration-color: var(--color-accent);
}

.post__content ul,
.post__content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
}

.post__content ul {
  list-style: none;
}

.post__content ul li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.post__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.post__content ol {
  list-style: decimal;
}

.post__content ol li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
}

.post__content ol li::marker {
  color: var(--color-accent);
  font-weight: 600;
}

.post__content img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.post__content figure {
  margin: var(--space-10) 0;
}

.post__content figcaption {
  text-align: center;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* Code blocks in posts */
.post__content pre {
  position: relative;
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.post__content pre code {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* Code block header (language label) */
.code-block {
  position: relative;
  margin: var(--space-8) 0;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.code-block__header + pre {
  margin-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.code-block__copy {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  background: rgba(var(--color-text-rgb), 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.code-block__copy:hover {
  color: var(--color-text);
  border-color: var(--color-border-light);
}

/* Syntax-friendly colors for code */
.token-keyword   { color: #c792ea; }
.token-string    { color: #c3e88d; }
.token-function  { color: #82aaff; }
.token-comment   { color: #546e7a; font-style: italic; }
.token-number    { color: #f78c6c; }
.token-operator  { color: #89ddff; }
.token-class     { color: #ffcb6b; }
.token-variable  { color: #f07178; }
.token-property  { color: var(--color-accent-light); }

/* Post tags */
.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post__tag {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: rgba(var(--color-text-rgb), 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.post__tag:hover {
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.3);
  background: var(--color-accent-muted);
}


/* ==========================================================================
   13. ANIMATIONS
   ========================================================================== */

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.15);
  }
  50% {
    box-shadow: 0 0 30px rgba(var(--color-accent-rgb), 0.3);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(var(--rotation, 0deg));
  }
  50% {
    transform: translateY(-20px) rotate(var(--rotation, 0deg));
  }
}

@keyframes heroGradientDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 20px) scale(1.1);
  }
}

@keyframes scrollLine {
  0% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ---- Scroll Animations ---- */


/* CTA accent line */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  opacity: 0;
  transform: scaleX(0);
  transition: none;
}

.cta-glow-active::before {
  animation: ctaLine 1s ease forwards;
}

@keyframes ctaLine {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 0.5; transform: scaleX(1); }
}

/* Contact form field focus underline */
.form-group {
  position: relative;
}

.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.field-focus-active::after {
  width: 100%;
  left: 0;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* Stat numbers */
.stat-number {
  display: inline-block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card,
  .testimonial-card,
  .process-card,
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- Tablet (max-width: 1199px) --- */
@media (max-width: 1199px) {
  :root {
    --nav-height: 64px;
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }

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

  .section__header {
    margin-bottom: var(--space-12);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* --- Mobile (max-width: 767px) --- */
@media (max-width: 767px) {
  :root {
    --nav-height: 60px;
  }

  html {
    font-size: 15px;
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

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

  .section__header {
    margin-bottom: var(--space-8);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-auto {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .nav__links,
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: rgba(var(--color-bg-rgb), 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base),
                visibility var(--transition-base),
                transform var(--transition-base);
    z-index: 1;
  }

  .nav__links.open,
  .nav-links.open,
  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link,
  .nav-links a {
    font-size: var(--text-xl);
    padding: var(--space-3) var(--space-6);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-4);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-8);
  }

  .nav__hamburger,
  .hamburger {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    min-height: calc(100vh - var(--nav-height));
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-12);
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .hero__shape:nth-child(1) {
    width: 150px;
    height: 150px;
  }

  .hero__shape:nth-child(2) {
    width: 100px;
    height: 100px;
  }

  .hero__shape:nth-child(3),
  .hero__shape:nth-child(4) {
    display: none;
  }

  /* Card mobile */
  .card {
    padding: var(--space-6);
  }

  /* Footer mobile */
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  /* Blog mobile */
  .post__content {
    font-size: var(--text-base);
  }

  .post__content pre {
    padding: var(--space-4);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
  }

  /* Form mobile */
  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--space-3);
  }

  /* Button mobile */
  .btn--xl {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }

  blockquote {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }
}

/* --- Small mobile (max-width: 479px) --- */
@media (max-width: 479px) {
  html {
    font-size: 14px;
  }

  .hero__badge {
    font-size: 0.65rem;
  }
}


/* ==========================================================================
   15. HAMBURGER MENU (Mobile Overlay)
   ========================================================================== */

/* Mobile menu overlay backdrop */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
              visibility var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Body lock when menu is open */
body.menu-open,
body.nav-open {
  overflow: hidden;
}


/* ==========================================================================
   16. PAGE HERO (Inner Pages)
   ========================================================================== */
.page-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
  overflow: hidden;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 80% at 50% 20%,
    rgba(var(--color-accent-rgb), 0.06) 0%,
    transparent 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin: 0 auto;
}

/* Breadcrumb */
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.page-hero__breadcrumb a {
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-accent);
}

.page-hero__breadcrumb-sep {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}


/* ==========================================================================
   16b. ABOUT PAGE — PHOTO
   ========================================================================== */
.about-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-xl, 1rem);
  object-fit: cover;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(var(--color-accent-rgb), 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-photo:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(var(--color-accent-rgb), 0.2),
    0 0 30px rgba(var(--color-accent-rgb), 0.08);
}

@media (max-width: 768px) {
  .about-image {
    justify-content: center;
    margin-top: var(--space-8);
  }

  .about-photo {
    max-width: 280px;
  }
}


/* ==========================================================================
   17. UTILITY CLASSES
   ========================================================================== */

/* Text alignment */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* Text color */
.text-accent    { color: var(--color-accent); }
.text-primary   { color: var(--color-text); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary  { color: var(--color-text-tertiary); }

/* Font weight */
.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

/* Margin bottom */
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: var(--space-2); }
.mb-2  { margin-bottom: var(--space-4); }
.mb-3  { margin-bottom: var(--space-8); }
.mb-4  { margin-bottom: var(--space-12); }
.mb-5  { margin-bottom: var(--space-16); }

/* Margin top */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: var(--space-2); }
.mt-2  { margin-top: var(--space-4); }
.mt-3  { margin-top: var(--space-8); }
.mt-4  { margin-top: var(--space-12); }

/* Padding */
.section-padding {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.py-1  { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-2  { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-3  { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-4  { padding-top: var(--space-12); padding-bottom: var(--space-12); }

.px-1  { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-2  { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-3  { padding-left: var(--space-8); padding-right: var(--space-8); }

/* Width */
.w-full  { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Display */
.hidden     { display: none; }
.block      { display: block; }
.inline     { display: inline; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

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

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

/* Tag / Badge */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-surface-raised) 50%,
    var(--color-surface) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-md);
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast),
              transform var(--transition-fast),
              visibility var(--transition-fast);
  pointer-events: none;
  z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   ADDITIONAL COMPONENTS
   ========================================================================== */

/* Testimonial */
.testimonial {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.testimonial__quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.testimonial__quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-style: normal;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.testimonial__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Stats / Numbers */
.stat,
.stat-card {
  text-align: center;
}

.stat__number,
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-tight);
  display: block;
}

.stat__label,
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  display: block;
}

/* Timeline (for About / Process) */
.timeline {
  position: relative;
  padding-left: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-10);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-10) + 8px);
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  z-index: 1;
}

.timeline__item:first-child .timeline__dot {
  background: var(--color-accent);
}

.timeline__date {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Service / Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.feature-list__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-muted);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: var(--text-sm);
  margin-top: 2px;
}

.feature-list__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: var(--space-16) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(
    ellipse,
    rgba(var(--color-accent-rgb), 0.1) 0%,
    transparent 70%
  );
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-banner__text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* Contact info blocks (BEM — used in component contexts) */
.contact-info__block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}

.contact-info__block:hover {
  border-color: rgba(var(--color-accent-rgb), 0.3);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-muted);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Success / Alert messages */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.alert--success {
  background: var(--color-success-muted);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  color: var(--color-success);
}

.alert--error {
  background: var(--color-error-muted);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-error);
}

.alert--warning {
  background: var(--color-warning-muted);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.pagination__item:hover {
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.pagination__item.active {
  color: var(--color-white);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.pagination__item--arrow {
  color: var(--color-text-tertiary);
}

.pagination__item--arrow:hover {
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.3);
}


/* ==========================================================================
   14. PAGE TRANSITIONS — "G" SHARD EFFECT
   ==========================================================================
   8 triangular shards converge from screen edges toward a center "G",
   closing like a geometric iris. On reveal, shards expand outward.
   ========================================================================== */

/* --- Overlay base --- */
#g-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

#g-transition-overlay.g-hidden {
  display: none;
}

/* --- Shard container --- */
.g-shards {
  position: absolute;
  inset: 0;
}

/* --- Individual shard base ---
   Each shard is a wide panel that uses clip-path to form a triangle
   pointing at the center of the screen. They're positioned off-screen
   by default and slide inward.                                       */
.g-shard {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0c0c14;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  /* Subtle emerald edge glow visible between shards */
  filter: drop-shadow(0 0 1px rgba(16, 185, 129, 0.5));
}

/* --- Shard shapes (clip-path triangles pointing at center) ---
   Each shard covers a 45° wedge of the screen. The clip-path
   carves a triangle whose tip is at the screen center (50% 50%)
   and whose base spans the relevant edge/corner.                   */

/* Top shard — triangle from top-left/top-right to center */
.g-shard-top {
  clip-path: polygon(30% 0%, 70% 0%, 50% 50%);
  transform: translateY(-100%);
}

/* Top-right shard */
.g-shard-top-right {
  clip-path: polygon(70% 0%, 100% 0%, 100% 30%, 50% 50%);
  transform: translate(100%, -100%);
}

/* Right shard */
.g-shard-right {
  clip-path: polygon(100% 30%, 100% 70%, 50% 50%);
  transform: translateX(100%);
}

/* Bottom-right shard */
.g-shard-bottom-right {
  clip-path: polygon(100% 70%, 100% 100%, 70% 100%, 50% 50%);
  transform: translate(100%, 100%);
}

/* Bottom shard */
.g-shard-bottom {
  clip-path: polygon(70% 100%, 30% 100%, 50% 50%);
  transform: translateY(100%);
}

/* Bottom-left shard */
.g-shard-bottom-left {
  clip-path: polygon(30% 100%, 0% 100%, 0% 70%, 50% 50%);
  transform: translate(-100%, 100%);
}

/* Left shard */
.g-shard-left {
  clip-path: polygon(0% 70%, 0% 30%, 50% 50%);
  transform: translateX(-100%);
}

/* Top-left shard */
.g-shard-top-left {
  clip-path: polygon(0% 30%, 0% 0%, 30% 0%, 50% 50%);
  transform: translate(-100%, -100%);
}

/* --- SHARD STATES --- */

/* Closed: shards at center (covering screen) */
.g-shards-closed .g-shard {
  transform: translate(0, 0) !important;
}

/* Open: shards pushed off-screen (default transform above) */
.g-shards-open .g-shard {
  transition: none;
}

/* Closing animation: shards flying inward */
.g-shards-closing .g-shard {
  transform: translate(0, 0) !important;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Stagger the inward flight for a cascading effect */
.g-shards-closing .g-shard-top          { transition-delay: 0.00s; }
.g-shards-closing .g-shard-bottom       { transition-delay: 0.01s; }
.g-shards-closing .g-shard-left         { transition-delay: 0.02s; }
.g-shards-closing .g-shard-right        { transition-delay: 0.02s; }
.g-shards-closing .g-shard-top-left     { transition-delay: 0.03s; }
.g-shards-closing .g-shard-top-right    { transition-delay: 0.03s; }
.g-shards-closing .g-shard-bottom-left  { transition-delay: 0.04s; }
.g-shards-closing .g-shard-bottom-right { transition-delay: 0.04s; }

/* Opening animation: shards flying outward */
.g-shards-opening .g-shard {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Stagger the outward flight */
.g-shards-opening .g-shard-top          { transition-delay: 0.01s; }
.g-shards-opening .g-shard-bottom       { transition-delay: 0.01s; }
.g-shards-opening .g-shard-left         { transition-delay: 0.03s; }
.g-shards-opening .g-shard-right        { transition-delay: 0.03s; }
.g-shards-opening .g-shard-top-left     { transition-delay: 0.05s; }
.g-shards-opening .g-shard-top-right    { transition-delay: 0.05s; }
.g-shards-opening .g-shard-bottom-left  { transition-delay: 0.06s; }
.g-shards-opening .g-shard-bottom-right { transition-delay: 0.06s; }

/* Alternate shard shades for visible depth + geometric iris look */
.g-shard-top          { background: #0e0e18; }
.g-shard-bottom       { background: #0e0e18; }
.g-shard-left         { background: #0a0a12; }
.g-shard-right        { background: #0a0a12; }
.g-shard-top-left     { background: #0c0c16; }
.g-shard-top-right    { background: #0c0c16; }
.g-shard-bottom-left  { background: #080810; }
.g-shard-bottom-right { background: #080810; }

/* Emerald edge glow on each shard for depth + visible seams */
.g-shard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(16, 185, 129, 0.12) 0%,
    rgba(16, 185, 129, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Emerald line at shard edges (visible seam effect) */
.g-shard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent 46%,
    rgba(16, 185, 129, 0.25) 49%,
    rgba(16, 185, 129, 0.4) 50%,
    rgba(16, 185, 129, 0.25) 51%,
    transparent 54%
  );
  pointer-events: none;
}

/* =========================================================
   CENTER "G" LETTER
   ========================================================= */
.g-center-letter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.transition-g-svg {
  width: 140px;
  height: 140px;
  display: block;
}

/* G visible */
.g-center-visible .g-center-letter {
  opacity: 1;
}

/* G glow pulse */
.g-center-pulse .g-center-letter {
  animation: g-shard-pulse 0.6s ease-in-out;
}

@keyframes g-shard-pulse {
  0%   { filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0));    transform: translate(-50%, -50%) scale(1); }
  50%  { filter: drop-shadow(0 0 50px rgba(16, 185, 129, 0.7)); transform: translate(-50%, -50%) scale(1.12); }
  100% { filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3)); transform: translate(-50%, -50%) scale(1); }
}

/* G fade out */
.g-center-fadeout .g-center-letter {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================================
   BODY STATES
   ========================================================= */

/* Instant hide during page transition — set by inline <script> before paint */
html.g-loading {
  opacity: 0 !important;
}

/* Intro active — hide page content behind shards */
body.g-intro-active {
  overflow: hidden;
}

/* Hide all layout children during intro / page arrival */
body.g-intro-active > *:not(#g-transition-overlay):not(script),
body.g-arriving > *:not(#g-transition-overlay):not(script) {
  opacity: 0 !important;
}

/* ---- Smooth content reveal ---- */
/* Single graceful fade-in of all page content after shards open */
body.g-content-reveal > *:not(#g-transition-overlay):not(script):not(#scroll-progress) {
  animation: g-smooth-reveal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes g-smooth-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Page transition overlay — block interactions */
#g-transition-overlay.g-page-transition {
  pointer-events: all;
}

/* =========================================================
   MOBILE TRANSITION ADJUSTMENTS
   ========================================================= */
@media (max-width: 768px) {
  /* Faster transitions on mobile for snappier feel */
  .g-shard {
    transition-duration: 0.3s;
  }

  .g-shards-opening .g-shard {
    transition-duration: 0.35s;
  }

  /* Remove the diagonal line effect on mobile — too prominent on small screens */
  .g-shard::before {
    display: none;
  }

  /* Smaller G on mobile */
  .transition-g-svg {
    width: 100px;
    height: 100px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .g-shard,
  .g-center-letter {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  body.g-content-reveal > * {
    animation-duration: 0.01ms !important;
  }
}
