/* ============================================
   Razv — Portfolio
   ============================================ */

:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --surface: #11141d;
  --surface-2: #161a26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ecedf2;
  --text-muted: #8a8fa3;
  --text-dim: #5a5f72;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --accent-3: #ff5e9c;
  --grad: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
  --grad-2: linear-gradient(135deg, #ff5e9c 0%, #7c5cff 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Background decoration
   ============================================ */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    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: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: var(--accent);
  animation: float 20s ease-in-out infinite;
}
.orb-2 {
  top: 30%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--accent-2);
  opacity: 0.18;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 60px); }
}

main, header, footer { position: relative; z-index: 1; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 8, 13, 0.75);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--grad);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
}

.dot { color: var(--accent-2); }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a {
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grad);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease);
}
.lang-switcher:hover { border-color: var(--border-strong); }
.lang-switcher a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 2px 4px;
  transition: color 0.2s var(--ease);
}
.lang-switcher a:hover { color: var(--text); }
.lang-switcher a.lang-active {
  color: var(--accent-2);
  font-weight: 600;
}
.lang-divider {
  color: var(--text-dim);
  user-select: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.btn-block { width: 100%; justify-content: center; padding: 16px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 80px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('room-bg.svg') no-repeat center bottom;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 95%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(7, 8, 13, 0) 0%, rgba(7, 8, 13, 0.7) 60%, rgba(7, 8, 13, 0.95) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}

.hero-content {
  text-align: left;
}

/* ============================================
   Avatar / Hero visual
   ============================================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.code-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 92, 255, 0.35) 0%, rgba(0, 212, 255, 0.15) 40%, transparent 70%);
  filter: blur(50px);
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.code-window {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(180deg, #161a26 0%, #0d1018 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(124, 92, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  animation: window-bob 6s ease-in-out infinite;
}

@keyframes window-bob {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-10px) rotate(0.6deg); }
}

.cw-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.cw-dots {
  display: flex;
  gap: 7px;
}
.cw-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.cw-dot:nth-child(2) { background: #febc2e; }
.cw-dot:nth-child(3) { background: #28c840; }

.cw-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.cw-title svg { color: var(--accent); }

.cw-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: dotpulse 2s ease-in-out infinite;
}
@keyframes dotpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.cw-body {
  padding: 20px 18px 22px;
  font-size: 13px;
  line-height: 1.85;
}

.cw-line {
  display: flex;
  white-space: pre;
  color: var(--text);
}

.cw-ln {
  color: var(--text-dim);
  width: 26px;
  user-select: none;
  flex-shrink: 0;
  text-align: right;
  padding-right: 12px;
}

.cw-cm { color: var(--text-dim); font-style: italic; }
.cw-kw { color: #c879ff; }
.cw-vr { color: var(--accent-2); }
.cw-pr { color: #79c0ff; }
.cw-st { color: #7ee787; }
.cw-bl { color: #ff7b72; }
.cw-fn { color: #d2a8ff; }

.cw-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-2);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 1.1s step-end infinite;
  box-shadow: 0 0 8px var(--accent-2);
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cw-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.cw-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cw-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
}

.cw-lang {
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

/* ============================================
   Floating icons around avatar
   ============================================ */
.floating-icon {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(22, 26, 38, 0.85);
}

.icon-code {
  top: 12%;
  left: 2%;
  width: 56px;
  height: 56px;
  font-size: 16px;
  color: var(--accent);
  animation: float-1 6s ease-in-out infinite;
}
.icon-brace {
  bottom: 18%;
  left: 0%;
  width: 56px;
  height: 56px;
  color: var(--accent-3);
  animation: float-2 7s ease-in-out infinite;
}
.icon-spark {
  top: 8%;
  right: 4%;
  width: 52px;
  height: 52px;
  color: var(--accent-2);
  animation: float-3 5.5s ease-in-out infinite;
}
.icon-bolt {
  bottom: 26%;
  right: 0%;
  width: 50px;
  height: 50px;
  color: #f59e0b;
  animation: float-1 6.5s ease-in-out infinite reverse;
}
.icon-tag {
  bottom: 4%;
  right: 22%;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
  background: var(--grad);
  border: none;
  animation: float-2 8s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(6px, -14px) rotate(4deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) rotate(3deg); }
  50% { transform: translate(-8px, -10px) rotate(-3deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-6px, 12px) rotate(8deg); }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 32px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d4ff;
  position: relative;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00d4ff;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-2 {
  background: var(--grad-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--text-muted);
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 110px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 50%, transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 70px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.05);
}

.section h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

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

.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), var(--surface));
  border-color: rgba(124, 92, 255, 0.25);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent);
  margin-bottom: 24px;
}
.service-card.featured .service-icon {
  background: var(--grad);
  color: #fff;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

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

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.project-visual {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: var(--surface-2);
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.12;
  transition: opacity 0.4s var(--ease);
}
.project:hover .project-visual::before { opacity: 0.25; }

.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 50%);
}

.project-visual[data-project="elegance"]::before { background: linear-gradient(135deg, #ff5e9c, #7c5cff); }
.project-visual[data-project="nodeway"]::before { background: linear-gradient(135deg, #00d4ff, #7c5cff); }
.project-visual[data-project="lagrotta"]::before { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.project-visual[data-project="firestorm"]::before { background: linear-gradient(135deg, #ef4444, #f59e0b); }
.project-visual[data-project="lastrada"]::before { background: linear-gradient(135deg, #10b981, #00d4ff); }
.project-visual[data-project="master"]::before { background: linear-gradient(135deg, #7c5cff, #10b981); }

.project-tag {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}

.project-info {
  padding: 24px 26px 28px;
}
.project-info h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.project-info p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
  min-height: 42px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tech span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ============================================
   Featured project
   ============================================ */
.project-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.project-featured:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-featured-visual {
  position: relative;
  min-height: 380px;
  background: linear-gradient(135deg, #00d4ff 0%, #7c5cff 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.project-featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.2), transparent 50%);
}

.project-status {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.05em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 10px #ffd166;
  animation: dotpulse 2s ease-in-out infinite;
}

.project-mock {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}
.mock-line-1 { width: 60%; background: rgba(255, 255, 255, 0.4); }
.mock-line-2 { width: 85%; }
.mock-line-3 { width: 45%; }
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.mock-cell {
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mock-cell:nth-child(1) { background: rgba(124, 92, 255, 0.35); }
.mock-cell:nth-child(4) { background: rgba(0, 212, 255, 0.3); }

.project-featured-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-featured-info .project-tag {
  position: static;
  align-self: flex-start;
  margin-bottom: 14px;
  font-size: 11px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent-2);
}
.project-featured-info h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.project-lead {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.6;
}
.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.project-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}
.project-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
  border-radius: 0 0 0 1px;
}
.project-featured-info .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   Reviews
   ============================================ */
.reviews-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
}
.reviews-list::-webkit-scrollbar { width: 6px; }
.reviews-list::-webkit-scrollbar-track { background: transparent; }
.reviews-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.review-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  animation: review-in 0.5s var(--ease);
}
@keyframes review-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-card:hover { border-color: var(--border-strong); }

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}
.review-meta { flex: 1; min-width: 0; }
.review-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.review-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.review-stars {
  display: flex;
  gap: 2px;
  color: #ffc857;
  font-size: 14px;
  letter-spacing: 1px;
}
.review-stars .empty { color: var(--text-dim); opacity: 0.4; }

.review-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
}

.reviews-empty {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
}

.review-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.review-form-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.review-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-form input,
.review-form textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s var(--ease);
  resize: vertical;
}
.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.rating-input {
  display: flex;
  gap: 4px;
}
.rating-input .star {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  transition: all 0.15s var(--ease);
  line-height: 1;
}
.rating-input .star:hover { transform: scale(1.15); }
.rating-input .star.active,
.rating-input .star.preview { color: #ffc857; text-shadow: 0 0 12px rgba(255, 200, 87, 0.4); }

.review-form-success {
  padding: 14px;
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
  border-radius: 10px;
  color: #28c840;
  font-size: 14px;
  text-align: center;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

#turnstileWidget {
  min-height: 65px;
  display: flex;
  justify-content: center;
}

/* ============================================
   Process
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.4s var(--ease);
}
.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================
   Contact
   ============================================ */
.section-contact { padding-bottom: 130px; }

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 48px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--grad);
}

.contact-card .eyebrow { margin-bottom: 18px; }
.contact-card h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.contact-card > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

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

.contact-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  border: 1px solid;
}
.contact-status[data-type="success"] {
  background: rgba(40, 200, 64, 0.1);
  border-color: rgba(40, 200, 64, 0.3);
  color: #28c840;
}
.contact-status[data-type="error"] {
  background: rgba(255, 95, 87, 0.1);
  border-color: rgba(255, 95, 87, 0.3);
  color: #ff8a85;
}

.contact-direct {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.contact-channels {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.channel:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent-2);
  transform: translateY(-2px);
}
.channel svg { flex-shrink: 0; }

.channel-static {
  cursor: default;
  color: var(--text-muted);
}
.channel-static:hover {
  border-color: var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  transform: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: var(--text); }

/* ============================================
   Animations on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 8, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .nav .btn-sm { display: none; }
  .nav-actions { gap: 8px; }
  .lang-switcher { padding: 5px 8px; font-size: 11px; }

  .hero { padding: 50px 0 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    margin-bottom: 50px;
  }
  .hero-content { text-align: center; }
  .hero-content .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .avatar-stage { max-width: 340px; }
  .hero-stats { gap: 36px; padding-top: 30px; }

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

  .project-featured { grid-template-columns: 1fr; }
  .project-featured-visual { min-height: 260px; }
  .project-featured-info { padding: 28px 24px; }
  .project-featured-info h3 { font-size: 24px; }

  .reviews-layout { grid-template-columns: 1fr; gap: 24px; }
  .review-form { position: static; padding: 22px; }
  .reviews-list { max-height: none; padding-right: 0; }

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

  .section { padding: 80px 0; }

  .form-row { grid-template-columns: 1fr; }

  .contact-card { padding: 40px 26px; }

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

@media (max-width: 500px) {
  .process { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 26px; }
}
