:root {
  --primary: #7f5cff;
  --primary-light: #a390ff;
  --accent: #27f2ff;
  --font-heading: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-base: 0.25s;
}

[data-theme='dark'] {
  --bg: #05070f;
  --bg-alt: #0c1020;
  --text: #f2f4ff;
  --text-muted: rgba(242, 244, 255, 0.75);
  --border: rgba(127, 92, 255, 0.25);
  --border-soft: rgba(255, 255, 255, 0.08);
  --cta-bg: rgba(127, 92, 255, 0.14);
  --cta-border: rgba(127, 92, 255, 0.35);
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.65);
  --surface-elevated: rgba(12, 16, 32, 0.85);
  --surface-muted: rgba(12, 16, 32, 0.75);
  --surface-panel: rgba(5, 7, 15, 0.85);
  --surface-accent: rgba(39, 242, 255, 0.08);
  --surface-soft-accent: rgba(127, 92, 255, 0.12);
  --header-bg: rgba(5, 7, 15, 0.82);
  --header-border: rgba(127, 92, 255, 0.18);
  --footer-bg: rgba(5, 7, 15, 0.95);
  --canvas-base: #05070f;
  --canvas-grad1: rgba(127, 92, 255, 0.35);
  --canvas-grad2: rgba(39, 242, 255, 0.2);
  --glow-linear: rgba(127, 92, 255, 0.2);
  --glow-radial: rgba(39, 242, 255, 0.1);
  --neutral: rgba(255, 255, 255, 0.08);
  --outline-strong: rgba(127, 92, 255, 0.45);
  --outline-soft: rgba(127, 92, 255, 0.25);
  --outline-accent: rgba(39, 242, 255, 0.2);
  --button-secondary-bg: rgba(255, 255, 255, 0.04);
  --button-secondary-border: rgba(242, 244, 255, 0.18);
  --mouse-border: rgba(242, 244, 255, 0.45);
  --mouse-wheel: rgba(242, 244, 255, 0.6);
  --input-bg: rgba(12, 16, 32, 0.8);
  --input-border: rgba(242, 244, 255, 0.2);
  --quote-meta: rgba(242, 244, 255, 0.55);
  --ring-border: rgba(242, 244, 255, 0.25);
}

[data-theme='light'] {
  --bg: #f5f7ff;
  --bg-alt: #ffffff;
  --text: #111321;
  --text-muted: rgba(17, 19, 33, 0.65);
  --border: rgba(127, 92, 255, 0.3);
  --border-soft: rgba(17, 19, 33, 0.08);
  --cta-bg: rgba(127, 92, 255, 0.18);
  --cta-border: rgba(127, 92, 255, 0.35);
  --shadow: 0 25px 45px -20px rgba(15, 23, 42, 0.2);
  --surface-elevated: rgba(255, 255, 255, 0.95);
  --surface-muted: rgba(244, 246, 255, 0.92);
  --surface-panel: rgba(255, 255, 255, 0.97);
  --surface-accent: rgba(127, 92, 255, 0.12);
  --surface-soft-accent: rgba(127, 92, 255, 0.16);
  --header-bg: rgba(245, 247, 255, 0.85);
  --header-border: rgba(127, 92, 255, 0.2);
  --footer-bg: rgba(240, 243, 255, 0.94);
  --canvas-base: #eef2ff;
  --canvas-grad1: rgba(127, 92, 255, 0.2);
  --canvas-grad2: rgba(39, 242, 255, 0.18);
  --glow-linear: rgba(127, 92, 255, 0.15);
  --glow-radial: rgba(39, 242, 255, 0.18);
  --neutral: rgba(17, 19, 33, 0.08);
  --outline-strong: rgba(127, 92, 255, 0.5);
  --outline-soft: rgba(127, 92, 255, 0.25);
  --outline-accent: rgba(39, 170, 220, 0.28);
  --button-secondary-bg: rgba(17, 19, 33, 0.06);
  --button-secondary-border: rgba(17, 19, 33, 0.12);
  --mouse-border: rgba(17, 19, 33, 0.4);
  --mouse-wheel: rgba(17, 19, 33, 0.5);
  --input-bg: rgba(255, 255, 255, 0.92);
  --input-border: rgba(17, 19, 33, 0.18);
  --quote-meta: rgba(17, 19, 33, 0.55);
  --ring-border: rgba(17, 19, 33, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body,
.site-header,
.site-footer,
.hero-visual .card,
.about-card,
.impact-card,
.service-card,
.project-card,
.stack-card,
.process-card,
.contact-form,
.social-proof div,
.header-actions .cta-button,
.hero-actions .secondary,
.nav-toggle,
.theme-toggle {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

canvas#constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 20% 20%, var(--canvas-grad1), transparent 55%),
    radial-gradient(circle at 80% 0%, var(--canvas-grad2), transparent 55%),
    var(--canvas-base);
}

.glow-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, var(--glow-linear), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--glow-radial), transparent 60%);
  mix-blend-mode: screen;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1.25rem;
  line-height: 1.65;
  color: var(--text-muted);
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.section {
  padding: 6rem 0;
  position: relative;
}

.process.section {
  padding: 4.2rem 0;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section-label {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.section-header {
  max-width: 720px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--header-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

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

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base);
  color: var(--text);
}

.theme-toggle:hover {
  border-color: var(--border);
  background: var(--surface-accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .sun {
  opacity: 0;
  transform: translateY(-12px) scale(0.8);
}

.theme-toggle .moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-theme='light'] .theme-toggle .sun {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-theme='light'] .theme-toggle .moon {
  opacity: 0;
  transform: translateY(12px) scale(0.8);
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.brand span {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--primary-light);
}

.cta-button,
.hero-actions .primary,
.hero-actions .secondary,
.contact-form button,
.cta-links .primary,
.cta-links .secondary {
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta-button {
  padding: 0.65rem 1.4rem;
  background: var(--cta-bg);
  color: var(--text);
  border: 1px solid var(--cta-border);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -20px rgba(127, 92, 255, 0.8);
}

.hero {
  padding: 8rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.5vw, 3.4rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-copy .eyebrow {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.subtitle {
  max-width: 580px;
}

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

.hero-actions .primary {
  padding: 0.75rem 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
  box-shadow: 0 18px 35px -20px rgba(127, 92, 255, 0.9);
}

.hero-actions .primary:hover {
  transform: translateY(-3px);
}

.hero-actions .secondary {
  padding: 0.75rem 1.8rem;
  border: 1px solid var(--button-secondary-border);
  color: var(--text);
  background: var(--button-secondary-bg);
}

.social-proof {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.social-proof div {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.1rem 1.4rem;
  box-shadow: 0 18px 35px -28px rgba(39, 242, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.social-proof strong {
  font-size: 1.6rem;
  color: var(--text);
  display: block;
}

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.6rem;
  display: block;
}

.icon path,
.icon circle {
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-proof span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-visual .card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-visual .card:hover {
  --tiltZ: -6px;
  box-shadow: 0 35px 80px -30px rgba(127, 92, 255, 0.45);
}

.hero-visual .card::before {
  content: "";
  position: absolute;
  inset: -40% 30% 40% -30%;
  background: linear-gradient(135deg, rgba(127, 92, 255, 0.12), rgba(39, 242, 255, 0.08));
  filter: blur(70px);
  z-index: 0;
}

.hero-visual .card > * {
  position: relative;
  z-index: 1;
}

.avatar {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, rgba(127, 92, 255, 0.75), rgba(39, 242, 255, 0.55));
  display: grid;
  place-items: center;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.accent-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed var(--ring-border);
  animation: orbit 12s linear infinite;
  z-index: 0;
}

.signal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--primary-light);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.signal span svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(39, 242, 255, 0.8);
  stroke-width: 2.2;
}

.statistic h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.2rem;
  color: var(--quote-meta);
  font-size: 0.9rem;
}

.scroll-cue .mouse {
  width: 28px;
  height: 42px;
  border: 2px solid var(--mouse-border);
  border-radius: 999px;
  position: relative;
}

.scroll-cue .wheel {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: var(--mouse-wheel);
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

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

.about-card,
.impact-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.impact-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.impact-heading svg {
  width: 48px;
  height: 48px;
  stroke: url(#grad-exp);
  stroke-width: 2.6;
  fill: none;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
}

.pill-list li {
  border: 1px solid var(--outline-strong);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  background: var(--surface-accent);
  color: var(--text);
}

.impact-card ul {
  list-style: none;
  padding: 0;
}

.impact-card li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.impact-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.certification {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--surface-soft-accent);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.4rem;
}

.certification span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.certification svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(39, 242, 255, 0.85);
  stroke-width: 2.2;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.service-card {
  padding: 2.2rem;
  border-radius: 22px;
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 320px;
  transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% 40%;
  background: radial-gradient(circle at top, rgba(39, 242, 255, 0.2), transparent 65%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  --tiltZ: -12px;
  border-color: rgba(127, 92, 255, 0.45);
  box-shadow: 0 30px 80px -40px rgba(39, 242, 255, 0.65);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card h3 {
  font-size: 1.4rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  margin-bottom: 0.7rem;
  position: relative;
  padding-left: 1.3rem;
}

.service-card li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.95rem;
}

.icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--surface-soft-accent);
  border: 1px solid rgba(127, 92, 255, 0.24);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.icon-bubble svg {
  width: 36px;
  height: 36px;
  stroke: url(#grad-exp);
  stroke-width: 2.2;
  fill: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--surface-elevated);
  border-radius: 24px;
  padding: 2.2rem;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border 0.35s ease;
}

.project-card:hover {
  --tiltZ: -10px;
  border-color: rgba(39, 242, 255, 0.45);
}

.project-card h3 {
  font-size: 1.4rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.project-meta svg {
  width: 18px;
  height: 18px;
  stroke: rgba(39, 242, 255, 0.85);
  stroke-width: 2.2;
  fill: none;
}

.stack-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}

.stack-card {
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--input-bg);
  position: relative;
  overflow: hidden;
}

.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(127, 92, 255, 0.15), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stack-card:hover::after {
  opacity: 1;
}

.stack-card:hover {
  --tiltZ: -8px;
}

.stack-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--surface-soft-accent);
  border: 1px solid rgba(127, 92, 255, 0.24);
}

.stack-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: rgba(39, 242, 255, 0.9);
  stroke-width: 2.2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.process-steps {
  display: grid;
  gap: 1.2rem;
}

.process-card {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: 22px;
  background: var(--surface-panel);
  border: 1px solid rgba(127, 92, 255, 0.28);
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: -40% 50% 40% -40%;
  background: linear-gradient(135deg, rgba(127, 92, 255, 0.2), transparent 50%);
  filter: blur(60px);
}

.process-card:hover {
  --tiltZ: -10px;
}

.process-card .step {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: rgba(39, 242, 255, 0.75);
}

.process-card h3 {
  font-size: 1.3rem;
  color: var(--text);
}

.process-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(39, 242, 255, 0.4);
  background: var(--surface-accent);
  display: grid;
  place-items: center;
  margin-top: 1.2rem;
}

.process-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: rgba(127, 92, 255, 0.9);
  stroke-width: 2.4;
}

.cta {
  padding-bottom: 8rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-links .primary {
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
}

.cta-links .secondary {
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(39, 242, 255, 0.45);
  color: var(--text);
  background: var(--surface-accent);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  background: var(--surface-panel);
  border-radius: 22px;
  padding: 2.2rem;
  border: 1px solid var(--border);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg);
  border: none;
  cursor: pointer;
}

.contact-form button:hover {
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--footer-bg);
}

.site-footer .container {
  padding: 1.6rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-tilt] {
  --tiltX: 0deg;
  --tiltY: 0deg;
  --tiltZ: 0px;
  transform: translateY(var(--tiltZ)) rotateX(var(--tiltX)) rotateY(var(--tiltY));
  will-change: transform;
}

[data-tilt].visible {
  /* allow transitions post reveal */
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 92, 255, 0.28), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.orb-one {
  top: -140px;
  right: 12%;
}

.orb-two {
  bottom: -160px;
  left: 5%;
  animation-delay: -6s;
  transform: scale(0.8);
  background: radial-gradient(circle, rgba(39, 242, 255, 0.25), transparent 65%);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(-20px, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, 20px, 0) scale(1.1);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 10px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 960px) {
  .main-nav ul {
    position: absolute;
    top: 72px;
    right: 2.5vw;
    background: var(--footer-bg);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1rem;
    width: min(240px, 80vw);
    transform: scale(0.95);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .main-nav ul.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .nav-toggle {
    display: flex;
  }

  .header-controls {
    gap: 1.2rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .header-actions .cta-button {
    display: none;
  }

  .cta-button {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 6rem;
  }

    padding-left: 1.6rem;
  }

    left: -1.9rem;
  }

  .about-card,
  .impact-card,
  .service-card,
  .project-card,
    padding: 1.8rem;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .signal {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-form {
    padding: 1.6rem;
  }

  .social-proof div {
    text-align: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
