/* ============================================
   TechFlux LLC — Global variables & base styles
   ============================================ */

:root {
  --color-bg: #2b2b2b;
  --color-bg-elevated: #333333;
  --color-accent: #2ecc71;
  --color-accent-hover: #27ae60;
  --color-accent-soft: rgba(46, 204, 113, 0.15);
  --color-white: #ffffff;
  --color-text: rgba(255, 255, 255, 0.9);
  --color-text-muted: rgba(255, 255, 255, 0.62);
  /* Light surfaces (About + form panel) */
  --color-surface-light: #eceef0;
  --color-surface-white: #ffffff;
  --color-text-dark: #1c1c1c;
  --color-text-soft: #5a5f66;
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-header: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.28);
  --shadow-card-light: 0 8px 32px rgba(0, 0, 0, 0.08);
  /* Logo-inspired: sharp geometry, minimal radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --chamfer: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --transition: 0.28s ease;
  --container: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-white);
}

/* ============================================
   Layout utilities
   ============================================ */

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(35, 35, 35, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Logo mark — no panel; image alpha shows on dark header */
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo:hover .logo-mark img {
  opacity: 0.92;
  transform: scale(1.03);
}

.logo-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
  transition: opacity var(--transition), transform var(--transition);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--color-white);
  line-height: 1.2;
}

.logo-text-accent {
  color: var(--color-accent);
  font-weight: 700;
}

.main-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--color-white);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(4.5rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% 15%, rgba(46, 204, 113, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 45% at 10% 85%, rgba(255, 255, 255, 0.04), transparent 45%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(46, 204, 113, 0.07), transparent 50%),
    linear-gradient(168deg, #222222 0%, #2b2b2b 42%, #303030 100%);
  z-index: 0;
}

/* Diagonal mesh + square grid — ties to logo geometry */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 38px,
      rgba(46, 204, 113, 0.06) 38px,
      rgba(46, 204, 113, 0.06) 39px
    ),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 88%);
  pointer-events: none;
}

/* Large watermark of the brand mark */
.hero-mark {
  position: absolute;
  right: min(6%, 4rem);
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
  filter: grayscale(0.2);
}

.hero-mark img {
  width: min(42vw, 280px);
  height: auto;
  max-width: none;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.45);
}

@media (max-width: 900px) {
  .hero-mark {
    opacity: 0.08;
    right: 50%;
    transform: translate(50%, -50%) rotate(-12deg);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0 0 1.35rem;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 2.15rem;
  max-width: 34rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 204, 113, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Section spacing & typography
   ============================================ */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
}

/* Angled transition between major bands */
.about::before,
.services::before,
.portfolio::before,
.clients::before,
.contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(46, 204, 113, 0.5) 20%,
    rgba(46, 204, 113, 0.85) 50%,
    rgba(46, 204, 113, 0.5) 80%,
    transparent 100%
  );
  transform: skewX(-18deg) scaleX(1.05);
  opacity: 0.85;
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(2.75rem, 5vw, 3.75rem);
}

.section-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section:not(.section--light) .section-eyebrow {
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 0 24px rgba(46, 204, 113, 0.35);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  color: var(--color-white);
  margin: 0 0 0.85rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section:not(.section--light) .section-title {
  display: inline-block;
}

.section:not(.section--light) .section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, var(--color-accent), rgba(46, 204, 113, 0.15));
  border-radius: 1px;
}

.section-subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 32rem;
  margin-inline: auto;
}

/* Light band: off-white surface + white cards (professional contrast) */
.section--light {
  background: linear-gradient(180deg, #e8eaed 0%, var(--color-surface-light) 40%, #e4e6e9 100%);
  color: var(--color-text-dark);
}

.section--light .section-eyebrow {
  color: #169a55;
  text-shadow: none;
}

.section--light .section-title {
  color: var(--color-text-dark);
}

.section--light .section-title::after {
  display: none;
}

.section--light .section-subtitle {
  color: var(--color-text-soft);
}

/* ============================================
   About Section
   ============================================ */

.about {
  background: linear-gradient(180deg, #242424 0%, var(--color-bg) 35%, #2a2a2a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* “About TechFlux” — bardhë e qëndrueshme mbi bandën e errët (cilësi të njëjtë në të gjitha viewport-et) */
.about .section-header > .section-title,
.about h2.section-title,
#about-heading {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: var(--color-surface-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  clip-path: var(--chamfer);
  padding: 1.85rem 1.65rem;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  box-shadow: var(--shadow-card-light);
}

.about-card:hover {
  border-color: rgba(46, 204, 113, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.about-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text-dark);
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-accent-soft);
}

.about-card p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* ============================================
   Services Section
   ============================================ */

.services {
  background: linear-gradient(180deg, var(--color-bg) 0%, #262626 50%, var(--color-bg) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: linear-gradient(145deg, #363636 0%, var(--color-bg-elevated) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  clip-path: var(--chamfer);
  padding: 2rem 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 204, 113, 0.5);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #3d3d3d 0%, #383838 100%);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: url("assets/techflux-logo.png") center / contain no-repeat;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity var(--transition), transform var(--transition), filter var(--transition);
  filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.2));
}

.service-card:hover::before {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.45));
}

.service-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-white);
  margin: 0 0 0.65rem;
  padding-right: 2.75rem;
}

.service-card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio {
  background: linear-gradient(180deg, #2a2a2a 0%, #242424 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  display: block;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* Decorative thumbnails — CSS-only (no external placeholder images) */
.portfolio-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.portfolio-item:hover .portfolio-thumb {
  transform: scale(1.06);
}

/* Alpha — dashboard / web: mesh grid + emerald glow */
.portfolio-thumb--alpha {
  background:
    radial-gradient(ellipse 85% 55% at 92% 8%, rgba(46, 204, 113, 0.28), transparent 52%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(46, 204, 113, 0.1), transparent 48%),
    linear-gradient(152deg, #2d3331 0%, #1c211f 42%, #262928 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 21px,
      rgba(255, 255, 255, 0.035) 21px,
      rgba(255, 255, 255, 0.035) 22px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 21px,
      rgba(255, 255, 255, 0.035) 21px,
      rgba(255, 255, 255, 0.035) 22px
    );
}

/* Beta — mobile: soft orbs + cool slate */
.portfolio-thumb--beta {
  background:
    radial-gradient(circle at 72% 28%, rgba(80, 170, 220, 0.28), transparent 42%),
    radial-gradient(circle at 22% 78%, rgba(46, 204, 113, 0.2), transparent 48%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(30, 40, 48, 0.9), transparent 60%),
    linear-gradient(168deg, #252d34 0%, #1a2229 50%, #1e262d 100%);
}

/* Gamma — brand: diagonal light + depth */
.portfolio-thumb--gamma {
  background:
    linear-gradient(128deg, rgba(46, 204, 113, 0.12) 0%, transparent 42%),
    linear-gradient(308deg, rgba(120, 90, 160, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #2a2633 0%, #1e1c24 55%, #25222e 100%);
}

/* Delta — API: subtle grid + glow nodes */
.portfolio-thumb--delta {
  background:
    radial-gradient(circle at 18% 28%, rgba(46, 204, 113, 0.35), transparent 38%),
    radial-gradient(circle at 88% 42%, rgba(46, 204, 113, 0.22), transparent 32%),
    radial-gradient(circle at 48% 82%, rgba(46, 204, 113, 0.18), transparent 40%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 22px,
      rgba(46, 204, 113, 0.1) 22px,
      rgba(46, 204, 113, 0.1) 23px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 22px,
      rgba(46, 204, 113, 0.07) 22px,
      rgba(46, 204, 113, 0.07) 23px
    ),
    linear-gradient(165deg, #23282c 0%, #181c20 100%);
}

/* Epsilon — consulting: warm neutral bands */
.portfolio-thumb--epsilon {
  background:
    linear-gradient(95deg, rgba(255, 255, 255, 0.04) 0%, transparent 35%),
    linear-gradient(180deg, #2e2c2a 0%, #242220 38%, #2a2826 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(46, 204, 113, 0.15), transparent 60%);
}

/* Zeta — design system: accent bar + modular columns */
.portfolio-thumb--zeta {
  background:
    linear-gradient(180deg, rgba(46, 204, 113, 0.45) 0%, rgba(46, 204, 113, 0.45) 12%, transparent 12%),
    linear-gradient(
      90deg,
      #2e2e2e 0%,
      #2e2e2e 30%,
      #262626 30%,
      #262626 31%,
      #343434 31%,
      #343434 63%,
      #262626 63%,
      #262626 64%,
      #2e2e2e 64%,
      #2e2e2e 100%
    ),
    linear-gradient(180deg, #2c2c2c 0%, #222 100%);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.25rem 1.35rem;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 0.94) 0%,
    rgba(35, 35, 35, 0.45) 45%,
    transparent 78%
  );
  opacity: 1;
  transition: background var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.97) 0%,
    rgba(35, 35, 35, 0.5) 42%,
    transparent 76%
  );
}

.portfolio-overlay-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
}

.portfolio-overlay-meta {
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

/* ============================================
   Clients Section
   ============================================ */

.clients {
  background: linear-gradient(180deg, #f0f2f4 0%, var(--color-surface-light) 50%, #ebecef 100%);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.client-card {
  background: var(--color-surface-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  clip-path: var(--chamfer);
  padding: 1.65rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-card-light);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
}

.client-card:hover {
  border-color: rgba(46, 204, 113, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.client-card-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #169a55;
}

.client-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text-dark);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.client-card-meta {
  margin: -0.15rem 0 0.35rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-soft);
}

.client-card-project {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  flex-grow: 1;
}

.client-card-project-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.client-card-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #169a55;
  align-self: flex-start;
}

.client-card-link:hover {
  color: var(--color-accent);
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--color-bg);
}

.contact-layout {
  max-width: 36rem;
  margin-inline: auto;
}

.contact-panel {
  background: var(--color-surface-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  padding: 2rem 1.85rem 2.25rem;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.contact-panel-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text-dark);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.contact-panel-lead {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* Phone & email — angular chips aligned with brand geometry */
.contact-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(46, 204, 113, 0.2);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  color: inherit;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.contact-chip:hover {
  border-color: rgba(46, 204, 113, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  color: var(--color-white);
}

.contact-chip-icon {
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  transform: rotate(45deg);
  transition: background var(--transition), border-color var(--transition);
}

.contact-chip:hover .contact-chip-icon {
  background: rgba(46, 204, 113, 0.22);
  border-color: var(--color-accent);
}

.contact-chip-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  transform: rotate(-45deg);
  transition: color var(--transition);
}

.contact-chip:hover .contact-chip-svg {
  color: var(--color-white);
}

.contact-chip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.contact-chip-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
  word-break: break-word;
}

.contact-chip:hover .contact-chip-value {
  color: var(--color-white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-status {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.form-status--success {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.35);
  color: #0d4d26;
}

.form-status--error {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.25);
  color: #7a1e29;
}

.form-row--captcha {
  gap: 0.5rem;
}

.captcha-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.captcha-question {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-dark);
}

.captcha-row-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.captcha-input {
  flex: 1;
  min-width: 6rem;
  max-width: 10rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  padding: 0.75rem 0.9rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.captcha-input:hover,
.captcha-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface-white);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
}

.btn-captcha-refresh {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.65rem 1rem;
  color: var(--color-text-soft);
  background: #e8eaed;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn-captcha-refresh:hover {
  background: #dde0e4;
  color: var(--color-text-dark);
}

.captcha-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-panel .form-row label {
  color: var(--color-text-dark);
}

.form-row label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  padding: 0.85rem 1rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.contact-panel .form-row input,
.contact-panel .form-row textarea {
  color: var(--color-text-dark);
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-panel .form-row input::placeholder,
.contact-panel .form-row textarea::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

.contact-panel .form-row input:hover,
.contact-panel .form-row textarea:hover {
  border-color: rgba(46, 204, 113, 0.45);
  background: var(--color-surface-white);
}

.contact-panel .form-row input:focus,
.contact-panel .form-row textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
  background: var(--color-surface-white);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: rgba(46, 204, 113, 0.35);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  border: none;
}

.btn-submit:hover {
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: linear-gradient(180deg, #1e1e1e 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.75rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--color-white);
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 0.9;
  color: var(--color-white);
}

.footer-logo-mark {
  display: flex;
  flex-shrink: 0;
}

.footer-logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-contact {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-contact-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.42);
  transition: color var(--transition);
}

.footer-contact-item:hover .footer-contact-icon {
  color: var(--color-accent);
}

.footer-contact a {
  color: var(--color-text-muted);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact-sep {
  margin: 0 0.4rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-links {
  justify-self: center;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  justify-self: end;
  text-align: right;
}

.social-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-accent);
  transform: rotate(45deg) translateY(-2px);
}

.social-icon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: rotate(-45deg);
}

.social-icon--fb {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.social-icon--gh {
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
}

/* ============================================
   Responsive — tablets & mobile
   ============================================ */

@media (max-width: 900px) {
  .contact-direct {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
  }

  .footer-social {
    justify-self: center;
    text-align: center;
  }

  .social-list {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding-block: 1rem;
  }

  .main-nav .nav-list {
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 1.65rem 1.35rem 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
