:root {
  color-scheme: dark;
  --bg: #06080f;
  --bg-elevated: #0c1019;
  --bg-card: rgba(14, 20, 32, 0.88);
  --bg-card-hover: rgba(18, 26, 42, 0.95);
  --text: #f4f7fb;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #0f8b6d;
  --accent-light: #14a882;
  --accent-glow: rgba(15, 139, 109, 0.25);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
  --section-pad: clamp(48px, 6vw, 80px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(15, 139, 109, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(15, 139, 109, 0.06), transparent),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #04120c;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent-light);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-label-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(15, 139, 109, 0.3);
  border-radius: 8px;
  background: rgba(15, 139, 109, 0.1);
  color: var(--accent-light);
  place-items: center;
}

.section-label-icon svg {
  width: 16px;
  height: 16px;
}

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

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-header-center .section-label {
  justify-content: center;
}

.section-header h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.section-intro {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 139, 109, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(15, 139, 109, 0.08);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-live .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: none;
  border-radius: 999px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #04120c;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(15, 139, 109, 0.4);
  background: rgba(15, 139, 109, 0.08);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text small {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta-hint {
  flex-direction: column;
  gap: 2px;
  min-height: auto;
  padding: 8px 18px 6px;
  animation: nav-cta-bounce 2.5s ease-in-out infinite;
}

.nav-cta-hint svg {
  flex-shrink: 0;
}

.nav-cta-hint:hover {
  animation: none;
  transform: translateY(-2px);
}

.nav-cta.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.nav-cta.btn-primary:hover {
  background: #f0f0f0;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.22);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  animation: fade-up 0.8s ease both;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
}

.hero-subtitle {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.hero-panel {
  animation: fade-up 0.8s 0.15s ease both;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.code-window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.code-window-bar span:nth-child(1) { background: #ff5f57; }
.code-window-bar span:nth-child(2) { background: #febc2e; }
.code-window-bar span:nth-child(3) { background: #28c840; }

.code-window-bar p {
  margin: 0 0 0 8px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.code-window-body {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.c-prompt { color: var(--accent-light); }
.c-output { color: var(--text-muted); }
.c-blink { color: var(--accent-light); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  background: var(--bg-card);
  text-align: center;
}

.stat-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.4rem;
  font-weight: 800;
}

.stat-item span {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.3;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  transform: translateX(-50%);
  animation: bounce 2.5s ease-in-out infinite;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-card);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  border-color: rgba(15, 139, 109, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(15, 139, 109, 0.1);
  color: var(--accent-light);
  place-items: center;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-short {
  margin-bottom: 12px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.92rem;
}

.service-desc {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-deliverables {
  margin-bottom: 16px;
  list-style: none;
}

.service-deliverables li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.service-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-deliverables li + li {
  margin-top: 6px;
}

.service-card .tag-list {
  margin-top: auto;
  padding-top: 16px;
}

.service-link {
  margin-top: 16px;
  color: var(--accent-light);
  font-size: 0.88rem;
  font-weight: 600;
}

.service-link:hover {
  color: var(--accent);
}

/* Process */
.process-section {
  background: linear-gradient(180deg, transparent, rgba(15, 139, 109, 0.03), transparent);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  counter-reset: process;
}

.process-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
}

.process-step {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.process-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.process-card p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  border-color: rgba(15, 139, 109, 0.25);
  transform: translateY(-3px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-category {
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-company {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-card p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.about-summary {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.75;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

.about-content p + p {
  margin-top: 14px;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-card);
}

.info-card h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.info-card ul {
  list-style: none;
}

.info-card li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.info-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.info-card span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Experience Timeline */
.timeline {
  position: relative;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--accent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 36px;
}

.timeline-item + .timeline-item {
  margin-top: 20px;
}

.timeline-marker {
  position: absolute;
  top: 20px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.timeline-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--bg-card);
  transition: border-color 0.2s ease;
}

.timeline-card:hover {
  border-color: rgba(15, 139, 109, 0.25);
}

.timeline-card time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.timeline-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.timeline-card h3 span {
  color: var(--text-muted);
  font-weight: 600;
}

.timeline-card p {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card);
}

.skill-group h3 {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.skill-bars {
  list-style: none;
}

.skill-bars li + li {
  margin-top: 16px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.skill-label span:last-child {
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.skill-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.skill-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-fill.animated {
  width: var(--level);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.2s ease;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item[open] {
  border-color: rgba(15, 139, 109, 0.25);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  padding-right: 16px;
  font-size: 1rem;
  font-weight: 600;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* Contact */
.contact-section {
  padding-bottom: calc(var(--section-pad) + 40px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(15, 139, 109, 0.3);
  transform: translateY(-2px);
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card strong {
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-cta-panel {
  border: 1px solid rgba(15, 139, 109, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  background:
    linear-gradient(160deg, rgba(15, 139, 109, 0.1), transparent 50%),
    var(--bg-card);
}

.contact-cta-panel h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.contact-cta-panel p {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-note {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 28px;
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h3 {
  margin-bottom: 16px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.footer-links ul {
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.84rem;
}

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

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes nav-cta-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 8, 15, 0.96);
    backdrop-filter: blur(16px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 12px;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .projects-grid,
  .process-grid,
  .contact-methods {
    grid-template-columns: 1fr;
  }

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

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
