/* ============================================================
   Lokve Personal Homepage — Main Stylesheet
   配色：白底黑字，极简克制，留白充裕
   ============================================================ */

/* ---------- CSS Variables (Light Theme) ---------- */
:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #f2f2f2;
  --bg-card: #ffffff;

  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;

  --accent: #1a1a1a;
  --accent-hover: #444444;

  --border: #e5e5e5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.06);

  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-blur: blur(12px);

  --tag-bg: #f2f2f2;
  --tag-text: #555;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  --section-gap: 140px;
  --content-width: 1040px;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --bg-primary: #111111;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222222;
  --bg-card: #1a1a1a;

  --text-primary: #e5e5e5;
  --text-secondary: #999999;
  --text-muted: #666666;

  --accent: #e5e5e5;
  --accent-hover: #ffffff;

  --border: #2a2a2a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);

  --nav-bg: rgba(17, 17, 17, 0.9);
  --nav-blur: blur(12px);

  --tag-bg: #2a2a2a;
  --tag-text: #aaa;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- SVG Icon utility ---------- */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle,
.mobile-menu-btn {
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.theme-toggle:hover,
.mobile-menu-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 40px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 0 32px;
}

/* Avatar */
.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 32px;
  background: var(--bg-secondary);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: avatar-breathe 3s ease-in-out infinite;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-avatar .avatar-placeholder {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}
@keyframes avatar-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: var(--text-primary);
}

.typewriter-wrap {
  display: inline-block;
  min-width: 1ch;
  font-weight: 600;
  margin-top: 8px;
}
.typewriter-wrap .cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--text-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--text-secondary);
  color: var(--bg-primary);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  animation: float 2s ease-in-out infinite;
}
.scroll-indicator .arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTIONS (Shared)
   ============================================================ */
.section {
  padding: var(--section-gap) 0;
}
.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 20px;
  text-indent: 2em;
}
.about-text p:last-child {
  margin-bottom: 0;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.stat-item:hover {
  background: var(--bg-tertiary);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Skills */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  max-width: 500px;
}

/* About placeholder (no data) */
.about-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.6;
  text-indent: 0;
}
.skill-tag {
  display: inline-block;
  padding: 7px 16px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 400;
  transition: all var(--transition);
}
.skill-tag:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

/* Tab bar */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.services-tab {
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.services-tab:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.services-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Step cards — PC grid layout */
.services-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-step {
  position: relative;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.service-step:nth-child(3n) {
  border-right: none;
}
.service-step:nth-child(n+4) {
  border-top: 1px solid var(--border);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.service-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.service-step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 260px;
  margin: 0 auto;
}

/* Service description */
.services-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ============================================================
   LINKS SECTION
   ============================================================ */
.links-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}
.link-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.link-card .link-icon,
.link-card .link-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  overflow: hidden;
  position: relative;
}
.link-card .link-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.link-card .link-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: 50%;
}
.link-card .link-info {
  min-width: 0;
}
.link-card .link-name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}
.link-card .link-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   BLOG PAGINATION
   ============================================================ */
.blog-empty, .blog-loading {
  text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 0.9rem;
}
.blog-empty svg { display: block; margin: 0 auto 12px; }
.blog-empty p { margin: 0; }
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.blog-pagination .page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.blog-pagination .page-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.blog-pagination .page-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.blog-pagination .page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.blog-pagination .page-dots {
  width: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-md);
}
.blog-card .blog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-tags span {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: var(--radius-sm);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1.2fr;
  gap: 0;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info-col {
  padding: 24px 32px 24px 0;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-divider {
  background: var(--border);
  width: 1px;
  height: auto;
  margin: 24px 0;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: default;
}
.contact-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contact-item .contact-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-item .contact-icon svg {
  width: 20px;
  height: 20px;
}
.contact-item .contact-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.contact-item .contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-all;
}
.contact-item .contact-value a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-item .contact-value a:hover {
  color: var(--accent);
}

/* Contact Form */
.contact-form-col {
  padding: 24px 0 24px 32px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text-muted);
  background: var(--bg-secondary);
}
.form-group textarea {
  min-height: 180px;
  flex: 1;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.form-submit:hover {
  background: var(--text-secondary);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.form-limit {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.form-msg {
  margin-top: 10px;
  font-size: 0.82rem;
  text-align: center;
}
.form-msg.success {
  color: #059669;
}
.form-msg.error {
  color: #dc2626;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0 36px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.footer-social a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.footer-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.footer-beian {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-beian a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-beian a:hover {
  color: var(--text-primary);
}

/* ============================================================
   EFFECTS PANEL
   ============================================================ */
.effects-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.effects-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.effects-toggle-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.effects-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 14px;
}
.effects-menu.open {
  display: flex;
}
.effects-menu h4 {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.effect-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.effect-toggle span {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.effect-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.effect-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.effect-switch.active {
  background: var(--text-primary);
}
.effect-switch.active::after {
  left: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-gap: 100px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-step:nth-child(2n) {
    border-right: none;
  }
  .service-step:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .service-step:nth-child(2n+1):nth-last-child(1) {
    border-right: none;
  }
  .service-step:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-divider {
    display: none;
  }
  .contact-info-col,
  .contact-form-col {
    padding: 16px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-gap: 72px;
  }
  .container {
    padding: 0 20px;
  }
  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 12px;
    gap: 2px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.9;
  }
  .hero-content {
    padding: 0 20px;
  }

  .about-stats {
    gap: 12px;
  }
  .stat-item {
    padding: 20px 12px;
  }
  .stat-number {
    font-size: 1.7rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
  .links-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile timeline */
  .services-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-step {
    text-align: left;
    padding: 20px 20px 20px 56px;
    border-right: none !important;
    border-top: none !important;
  }
  .service-step::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: var(--border);
  }
  .service-step:last-child::before {
    display: none;
  }
  .step-number {
    position: absolute;
    left: 6px;
    top: 20px;
    margin: 0;
  }
  .service-step h4 {
    text-align: left;
  }
  .service-step p {
    text-align: left;
    max-width: none;
  }

  .services-tabs {
    gap: 2px;
  }
  .services-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .contact-form {
    padding: 24px;
  }

  .effects-panel {
    bottom: 16px;
    right: 16px;
  }

  .section-header {
    margin-bottom: 48px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }

  .about-stats {
    gap: 8px;
  }
  .stat-item {
    padding: 16px 8px;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
