/* ══════════════════════════════════════════
   ALEXSTV MODERN BOLD THEME v3.0
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&family=Permanent+Marker&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text: #f5f5f5;
  --text-dim: #888888;
  --text-muted: #555555;
  --border: #222222;
  --border-light: #2a2a2a;
  --accent: #cdff50;
  --accent-dim: rgba(205, 255, 80, 0.1);
  --accent-text: #b8e63a;
  --hot: #ff5733;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #000;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════
   SECTION TRANSITIONS & DIVIDERS
   ═══════════════════════════════════════ */
.section {
  padding: 100px 24px;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.section.reveal.visible::after {
  opacity: 1;
}

.section-alt {
  background: var(--bg-elevated);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 255, 80, 0.15), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: var(--bg);
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 255, 80, 0.1), transparent);
  z-index: 1;
}

.section-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background: var(--bg-elevated);
  border-radius: 50% 50% 0 0;
  animation: wavePulse 8s ease-in-out infinite;
}

.section-divider-alt::before {
  background: var(--bg);
}

.section-divider-reverse::before {
  top: 0;
  bottom: auto;
  border-radius: 0 0 50% 50%;
}

@keyframes wavePulse {
  0%, 100% { transform: translateY(20px) scaleY(1); }
  50% { transform: translateY(0) scaleY(1.1); }
}

/* Smooth gradient transitions between sections */
.section-transition {
  position: relative;
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-transition::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg-elevated, var(--bg)) 50%,
    var(--bg-elevated, var(--bg)) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s var(--ease-out);
  transform: translateY(-100%);
  animation: headerSlideIn 0.8s var(--ease-out) forwards;
}

@keyframes headerSlideIn {
  to { transform: translateY(0); }
}

#header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px) saturate(120%);
}

#header.hidden {
  transform: translateY(-100%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}
.logo:hover {
  transform: scale(1.03);
  opacity: 0.95;
}
.logo-img {
  height: 46px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: all 0.3s var(--ease-out);
  filter: drop-shadow(0 2px 10px rgba(205, 255, 80, 0.2));
}
.logo:hover .logo-img {
  filter: drop-shadow(0 4px 18px rgba(205, 255, 80, 0.45));
}

.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}
.nav-links a.active::after {
  width: 20px;
}
.nav-links a.active {
  color: var(--accent);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 24px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); position: absolute;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { content: ''; top: -8px; }
.nav-toggle span::after { content: ''; top: 8px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; z-index: 101; }
  .logo { position: relative; z-index: 102; }
  .logo-img { height: 38px; max-width: 140px; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease-out);
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.hero.hero-v2 {
  padding: 0;
  min-height: 0;
  height: auto;
  width: 100%;
  max-width: 100%;
  position: relative;
  left: auto;
  right: auto;
  margin: 0;
  overflow: hidden;
  align-items: flex-start;
}

.hero-banner-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  border-radius: 0;
}

@media (max-width: 768px) {
  .hero-v2 {
    min-height: 0;
    height: auto;
  }
  .hero-banner-wrap {
    height: auto;
    min-height: 0;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(205, 255, 80, 0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: heroOrb1 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
  pointer-events: none;
  animation: heroOrb2 10s ease-in-out infinite;
}

@keyframes heroOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-40px, 60px) scale(1.1); opacity: 1; }
}

@keyframes heroOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(30px, -40px) scale(1.15); opacity: 0.8; }
}

/* Grid pattern background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridFade 4s ease-in-out infinite;
}

@keyframes gridFade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Floating green bubbles */
.hero-bubbles,
.section-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bubbles .bubble,
.section-bubbles .bubble {
  position: absolute;
  bottom: -80px;
  background: radial-gradient(circle at 30% 30%, rgba(205, 255, 80, 0.4), rgba(205, 255, 80, 0.03));
  border-radius: 50%;
  animation: bubbleRise linear infinite;
  opacity: 0;
}

.hero-bubbles .bubble:nth-child(1),
.section-bubbles .bubble:nth-child(1)  { left:5%;  width:12px; height:12px; animation-duration:8s;  animation-delay:0s; }
.hero-bubbles .bubble:nth-child(2),
.section-bubbles .bubble:nth-child(2)  { left:12%; width:8px;  height:8px;  animation-duration:10s; animation-delay:1s; }
.hero-bubbles .bubble:nth-child(3),
.section-bubbles .bubble:nth-child(3)  { left:18%; width:16px; height:16px; animation-duration:7s;  animation-delay:2s; }
.hero-bubbles .bubble:nth-child(4),
.section-bubbles .bubble:nth-child(4)  { left:25%; width:6px;  height:6px;  animation-duration:12s; animation-delay:0.5s; }
.hero-bubbles .bubble:nth-child(5),
.section-bubbles .bubble:nth-child(5)  { left:32%; width:10px; height:10px; animation-duration:9s;  animation-delay:3s; }
.hero-bubbles .bubble:nth-child(6),
.section-bubbles .bubble:nth-child(6)  { left:40%; width:14px; height:14px; animation-duration:11s; animation-delay:1.5s; }
.hero-bubbles .bubble:nth-child(7),
.section-bubbles .bubble:nth-child(7)  { left:48%; width:7px;  height:7px;  animation-duration:8.5s; animation-delay:4s; }
.hero-bubbles .bubble:nth-child(8),
.section-bubbles .bubble:nth-child(8)  { left:55%; width:18px; height:18px; animation-duration:6.5s; animation-delay:2.5s; }

.hero-bubbles .bubble:nth-child(9)  { left:62%; width:9px;  height:9px;  animation-duration:10.5s; animation-delay:0.8s; }
.hero-bubbles .bubble:nth-child(10) { left:70%; width:13px; height:13px; animation-duration:7.5s; animation-delay:3.5s; }
.hero-bubbles .bubble:nth-child(11) { left:78%; width:5px;  height:5px;  animation-duration:9.5s; animation-delay:1.2s; }
.hero-bubbles .bubble:nth-child(12) { left:84%; width:15px; height:15px; animation-duration:8.2s; animation-delay:2.8s; }
.hero-bubbles .bubble:nth-child(13) { left:90%; width:11px; height:11px; animation-duration:11.5s; animation-delay:4.5s; }
.hero-bubbles .bubble:nth-child(14) { left:35%; width:6px;  height:6px;  animation-duration:13s; animation-delay:5s; }
.hero-bubbles .bubble:nth-child(15) { left:60%; width:8px;  height:8px;  animation-duration:9.8s; animation-delay:5.5s; }

@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(1.8); opacity: 0; }
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left { order: 1; }
.hero-right { order: 2; display: flex; justify-content: flex-end; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(205, 255, 80, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: badgePulse 3s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(205, 255, 80, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(205, 255, 80, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-title span {
  display: inline-block;
}

#typed-title {
  display: inline-block;
  min-height: 2em;
}

#typed-title::after {
  content: '|';
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: cursorBlink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-title .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #84cc16 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #b8c9a0;
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.7;
  font-weight: 400;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  transition: color 0.3s;
}
.hero-stat:hover .hero-stat-num {
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Hero avatar */
.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all 0.5s var(--ease-out);
  transform: perspective(800px) rotateY(-5deg);
}

.hero-photo:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.02);
  box-shadow:
    0 0 60px rgba(205, 255, 80, 0.3),
    0 0 120px rgba(205, 255, 80, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: transform 0.6s var(--ease-out);
}

.hero-photo:hover img {
  transform: scale(1.08);
}

.hero-photo-decor {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.7rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  animation: decorFloat 3s ease-in-out infinite;
}

@keyframes decorFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -6px); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-left { order: 2; }
  .hero-right { order: 1; justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-photo { width: 240px; height: 240px; transform: none; }
  .hero-photo:hover { transform: scale(1.02); }
  .hero-title { letter-spacing: -1px; }
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  font-family: var(--sans);
  border-radius: var(--radius-sm);
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 0 rgba(205, 255, 80, 0);
}
.btn-primary:hover {
  background: #bfff3a;
  box-shadow: 0 8px 30px rgba(205, 255, 80, 0.3);
  transform: translateY(-3px);
}
.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(205, 255, 80, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card);
}

.btn-sm { padding: 8px 16px; font-size: 0.78rem; }
.btn-lg { padding: 16px 32px; font-size: 0.95rem; }

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 18px;
  line-height: 1.1;
}

.section-desc {
  color: #a0a890;
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
  position: relative;
  padding-top: 18px;
}

.section-desc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.7;
}

/* ═══════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  color: var(--text);
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(205, 255, 80, 0.1), var(--shadow-lg);
}

.portfolio-item img {
  width: 100%; height: 220px; object-fit: cover; object-position: center; display: block;
  transition: transform 0.6s var(--ease-out);
}
.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  border-radius: var(--radius);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out) 0.1s;
}
.portfolio-item:hover .portfolio-overlay h3 { transform: translateY(0); }
.portfolio-overlay p {
  font-size: 0.8rem;
  color: var(--text-dim);
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out) 0.15s;
}
.portfolio-item:hover .portfolio-overlay p { transform: translateY(0); }

.portfolio-placeholder {
  aspect-ratio: 16/9;
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
  gap: 10px; color: var(--text-dim);
  transition: background 0.4s;
}
.portfolio-item:hover .portfolio-placeholder {
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, #1f1f3a 100%);
}
.portfolio-placeholder .icon { font-size: 2.2rem; opacity: 0.5; transition: all 0.4s; }
.portfolio-item:hover .portfolio-placeholder .icon { opacity: 0.8; transform: scale(1.2); }

/* Telegram mockup inside portfolio */
.telegram-mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #17212b;
  font-family: var(--sans);
  overflow: hidden;
}
.tg-header {
  background: #242f3d;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.tg-back { color: #6ab3f3; font-size: 1rem; font-weight: 600 }
.tg-avatar {
  width: 34px; height: 34px;
  background: #4a9c5d;
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tg-header-info { display: flex; flex-direction: column; line-height: 1.2 }
.tg-name { color: #fff; font-size: 0.82rem; font-weight: 600 }
.tg-status { color: #6ab3f3; font-size: 0.68rem }
.tg-chat {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.tg-msg {
  max-width: 80%;
  padding: 8px 12px;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 10px;
  color: #e9e9e9;
  animation: none;
}
.tg-msg.bot {
  background: #1e2c3a;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.tg-msg.user {
  background: #2b5278;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.tg-msg:last-child { opacity: 0.65 }

/* ═══════════════════════════════════════
   BLOG
   ═══════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.blog-section {
  background: var(--bg-elevated);
  position: relative;
}

.blog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(205, 255, 80, 0.03), transparent),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(205, 255, 80, 0.02), transparent);
  pointer-events: none;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-out), box-shadow 0.6s var(--ease-out);
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(205, 255, 80, 0.06), transparent 70%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(205, 255, 80, 0.35);
  box-shadow: 0 16px 40px rgba(205, 255, 80, 0.12), 0 0 30px rgba(205, 255, 80, 0.06);
}

.blog-card:hover::after {
  opacity: 1;
}
.blog-card-image {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a2a1a 100%);
}

.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(205, 255, 80, 0.05), transparent 40%, rgba(205, 255, 80, 0.04));
  transition: opacity 0.5s ease;
}

.blog-card:nth-child(2n) .blog-card-image {
  background: linear-gradient(135deg, #16213e, #1a1a2e, #1a2a1a);
}

.blog-card:nth-child(3n) .blog-card-image {
  background: linear-gradient(135deg, #1a2a1a, #16213e, #1a1a2e);
}

.blog-card:hover .blog-card-image {
  transform: scale(1.03);
}

.blog-card:hover .blog-card-image::after {
  background: linear-gradient(135deg, rgba(205, 255, 80, 0.12), transparent 50%, rgba(205, 255, 80, 0.08));
}
.blog-card-body { padding: 24px; }
.blog-card-date {
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
  font-family: var(--mono);
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s;
}
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   TECH
   ═══════════════════════════════════════ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
}
.tech-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(205, 255, 80, 0.08);
}
.tech-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  transition: transform 0.4s var(--ease-spring);
}
.tech-item:hover .tech-icon { transform: scale(1.3) rotate(-5deg); }
.tech-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.tech-level { font-size: 0.72rem; color: var(--text-dim); }

/* ═══════════════════════════════════════
   QUIZ
   ═══════════════════════════════════════ */
.quiz-section {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.quiz-container {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(205, 255, 80, 0.08);
}

.quiz-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(205, 255, 80, 0.3), transparent, rgba(205, 255, 80, 0.3));
  z-index: -1;
  animation: quizGlow 4s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes quizGlow {
  0%, 100% { opacity: 0.3; filter: blur(8px); }
  50% { opacity: 0.6; filter: blur(12px); }
}
.quiz-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.quiz-subtitle { color: #a0a890; font-size: 0.85rem; margin-bottom: 28px; }
.quiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
  animation: questionFadeIn 0.4s var(--ease-out);
}
@keyframes questionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 20px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.88rem;
  transition: all 0.3s var(--ease-out);
  text-align: left;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.quiz-option:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(205, 255, 80, 0.08);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.quiz-result { display: none; }
.quiz-result.show { display: block; animation: resultShow 0.6s var(--ease-out); }

@keyframes resultShow {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.quiz-result-icon { font-size: 3.5rem; margin-bottom: 16px; }
.quiz-result-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.quiz-result-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
.quiz-progress {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 24px;
}
.quiz-progress span {
  width: 8px; height: 8px;
  background: var(--border);
  border-radius: 50%;
  transition: all 0.4s var(--ease-spring);
}
.quiz-progress span.done {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--accent);
}
.quiz-progress span.current { background: var(--text); }

/* ═══════════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9998;
}
.chat-toggle {
  width: 56px; height: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.chat-toggle:hover {
  background: var(--bg-card-hover);
  transform: scale(1.08) rotate(10deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.chat-box {
  display: none;
  position: absolute;
  bottom: 72px; right: 0;
  width: 340px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: chatSlideIn 0.3s var(--ease-out);
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-box.open { display: block; }
.chat-header {
  background: var(--bg-card);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.chat-header .avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900;
}
.chat-header-info h4 { font-size: 0.85rem; font-weight: 700; }
.chat-header-info span {
  font-size: 0.72rem; color: var(--accent); display: flex; align-items: center; gap: 4px;
}
.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: var(--radius);
  animation: msgFade 0.3s var(--ease-out);
}
@keyframes msgFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--accent-dim);
  border: 1px solid rgba(205, 255, 80, 0.2);
  align-self: flex-end;
}
.chat-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 40px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.chat-send:hover { background: #bfff3a; transform: scale(1.05); }

@media (max-width: 768px) {
  .chat-box { width: calc(100vw - 48px); right: -8px; }
}

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */
.cta {
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(205, 255, 80, 0.04), transparent);
  animation: ctaGlow 6s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.cta-desc {
  color: #a0a890;
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 1rem;
  position: relative;
  padding-top: 18px;
}

.cta-desc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.7;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
#footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}
.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}
.footer-brand:hover { transform: scale(1.04); opacity: 0.95; }
.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.3s var(--ease-out);
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(205, 255, 80, 0.15);
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.heart {
  display: inline-block;
  color: var(--accent);
  animation: heartbeat 1.2s ease-in-out infinite;
  text-shadow: 0 0 10px var(--accent), 0 0 20px rgba(205, 255, 80, 0.5);
  margin-left: 4px;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  10%, 30% { transform: scale(1.3); opacity: 1; }
  20% { transform: scale(1.1); opacity: 0.9; }
  40%, 90% { transform: scale(1); opacity: 0.8; }
}

@media (max-width: 768px) {
  .footer-content { flex-direction: column; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .portfolio-grid, .blog-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 70px 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════
   CARDS & TAGS
   ═══════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.4s var(--ease-out);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(205, 255, 80, 0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 16px;
}
.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(205, 255, 80, 0.2);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }
.card-meta { display: flex; gap: 16px; margin-top: 16px; font-size: 0.72rem; color: var(--text-dim); }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 0.65rem;
  padding: 3px 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(205, 255, 80, 0.15);
  border-radius: 100px;
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   PAGE
   ═══════════════════════════════════════ */
.page-content { padding: 120px 24px 80px; position: relative; }
.page-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(205, 255, 80, 0.03), transparent);
  pointer-events: none;
}
.page-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.page-content p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   FORM
   ═══════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: 0.82rem; color: var(--text-dim);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(205, 255, 80, 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ═══════════════════════════════════════
   DOWNLOADS
   ═══════════════════════════════════════ */
.downloads-list { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin: 0 auto; }
.download-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: all 0.3s var(--ease-out);
  text-decoration: none; color: var(--text);
}
.download-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}
.download-info { display: flex; flex-direction: column; gap: 4px; }
.download-name { font-weight: 700; font-size: 0.95rem; }
.download-meta { font-size: 0.75rem; color: var(--text-dim); }
.download-btn {
  padding: 8px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(205, 255, 80, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.download-btn:hover {
  background: var(--accent);
  color: #000;
}

/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════
   ENHANCED GLOW EFFECTS
   ═══════════════════════════════════════ */
.cta {
  position: relative;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(205, 255, 80, 0.25), transparent);
}

.portfolio-item {
  box-shadow: 0 0 0 0 rgba(205, 255, 80, 0);
  transition: all 0.4s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.portfolio-item:hover {
  box-shadow: 0 24px 60px rgba(205, 255, 80, 0.15), 0 0 40px rgba(205, 255, 80, 0.05);
}

/* Enhanced reveal stagger — up to 15 items */
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 1.0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 1.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(13) { transition-delay: 1.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(14) { transition-delay: 1.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(15) { transition-delay: 1.4s; opacity: 1; transform: translateY(0); }

/* Enhanced photo glow ring */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 80px rgba(205, 255, 80, 0.1),
    0 0 100px rgba(205, 255, 80, 0.15),
    0 0 180px rgba(205, 255, 80, 0.08);
  pointer-events: none;
  animation: photoRingPulse 3s ease-in-out infinite;
}

@keyframes photoRingPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Hero photo-bg enhanced */
.hero-photo-bg {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(205, 255, 80, 0.15), transparent 55%);
  border-radius: 50%;
  animation: photoGlow 3s ease-in-out infinite;
  filter: blur(20px);
}

@keyframes photoGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

/* Quiz section glow enhancement */
.quiz-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(205, 255, 80, 0.06), transparent 55%);
  pointer-events: none;
  animation: floatQuiz 12s ease-in-out infinite;
}

@keyframes floatQuiz {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, 50px); }
}

/* Download section glow */
.download-item:hover {
  box-shadow: 0 8px 30px rgba(205, 255, 80, 0.08), 0 0 20px rgba(205, 255, 80, 0.03);
}

/* ═══════════════════════════════════════
   AUTH + VPN CABINET
   ═══════════════════════════════════════ */
.auth-page, .vpn-page { padding: 120px 0 80px; }
.auth-page { position: relative; overflow: hidden; min-height: 70vh; display: flex; align-items: center; }
.auth-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.auth-glow-1 { width: 460px; height: 460px; top: -120px; left: 50%; transform: translateX(-120%); background: radial-gradient(circle, rgba(205,255,80,0.55), transparent 70%); animation: authFloat 9s ease-in-out infinite; }
.auth-glow-2 { width: 420px; height: 420px; bottom: -140px; right: 50%; transform: translateX(120%); background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 70%); animation: authFloat 11s ease-in-out infinite reverse; }
@keyframes authFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -30px; } }
.auth-card {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 34px 28px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  text-align: center;
  animation: authIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.auth-card-wide { max-width: 520px; }
@keyframes authIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.auth-brand { margin-bottom: 8px; }
.auth-logo { width: 42px; height: 42px; object-fit: contain; opacity: 0.95; }
.auth-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.auth-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 900; margin: 0 0 10px; letter-spacing: -0.5px; }
.auth-lead, .vpn-lead { color: var(--text-dim); margin: 0 auto 24px; font-size: 0.95rem; line-height: 1.5; max-width: 40ch; }
.auth-switch { margin-top: 20px; font-size: 0.9rem; color: var(--text-dim); padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.07); }
.auth-switch a { color: var(--accent); font-weight: 700; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }
.auth-messages { margin: 0 0 16px; }
.auth-msg { padding: 11px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 0.88rem; text-align: left; }
.auth-msg-error { background: rgba(255,80,80,0.1); border: 1px solid rgba(255,90,90,0.3); color: #ff9a9a; }
.auth-msg-info, .auth-msg-success { background: rgba(205,255,80,0.1); border: 1px solid rgba(205,255,80,0.3); color: #e0ff8a; }
.auth-shield {
  margin-top: 18px; font-size: 0.8rem; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0.75;
}
.auth-shield svg { flex: none; color: var(--accent); }

.auth-card form { text-align: left; }
.auth-card form .form-field,
.auth-card form p { margin: 0 0 14px; }
.auth-card form label {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 7px;
}
.auth-card form input[type="text"],
.auth-card form input[type="email"],
.auth-card form input[type="password"] {
  width: 100%;
  background: rgba(10,12,16,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 15px;
  margin: 0;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-card form input::placeholder { color: rgba(255,255,255,0.35); }
.auth-card form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(205,255,80,0.18);
  background: rgba(10,12,16,0.85);
}
.auth-card form .form-actions,
.auth-card form .buttons,
.auth-card form button,
.auth-card .button { margin-top: 6px; }
.auth-card form button,
.auth-card .button {
  background: linear-gradient(135deg, var(--accent), #aaff55);
  color: #0a0d00;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  width: 100%;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 10px 24px rgba(205,255,80,0.22);
}
.auth-card form button:hover,
.auth-card .button:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(205,255,80,0.3); }
.auth-card form button:active { transform: translateY(0); }
.auth-card form .form-field .required { color: var(--accent); }
.auth-card form .form-message,
.auth-card form .form-error { font-size: 0.82rem; color: #ff9a9a; margin-top: 4px; }
/* VPN sub-signature field — keep original styling so the cabinet is untouched */
.sig {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 10px;
  font-size: 15px;
  font-family: inherit;
}

.vpn-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
.vpn-userbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 16px;
}
.vpn-nick { color: var(--text-dim); margin-left: 6px; }
.vpn-stats { display: flex; gap: 14px; color: var(--text-dim); font-size: 0.9rem; }
.vpn-dot { color: var(--text-dim); }
.vpn-dot.on { color: var(--accent); }
.vpn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.vpn-card h2 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px; }
.vpn-card .desc { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.vpn-card .desc b { color: var(--accent); }
.note {
  background: #1a1400;
  border: 1px solid rgba(205,255,80,0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px; line-height: 1.6;
  color: #e8f7ad;
  margin-bottom: 16px;
}
.note b { color: var(--accent); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li { font-size: 13px; line-height: 1.6; color: #cfcfcf; }
.steps li b { color: var(--accent); }
.code { font-family: var(--mono); background: #1a1a1a; border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: 11px; }
.link-block { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.link-block:first-of-type { border-top: none; padding-top: 0; }
.link-block h3 { font-size: 13px; color: var(--accent); margin: 12px 0 6px; }
.rl { background: #111; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 11px; word-break: break-all; margin: 2px 0; color: #ddd; }
.link-block img { display: block; width: 150px; height: 150px; background: #fff; border-radius: 8px; margin: 8px 0; }
.vpn-page .row { display: flex; gap: 8px; flex-wrap: wrap; }
.vpn-page .btn { border: none; cursor: pointer; text-decoration: none; font-weight: 800; border-radius: 8px; padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.btn-copy { background: var(--accent); color: #000; }
.btn-ng { background: #34d399; color: #052e16; }
.btn-win { background: #8b5cf6; color: #fff; }
.download {
  display: inline-block; text-align: center; background: var(--accent); color: #000;
  padding: 16px 20px; font-weight: 900; font-size: 13px; text-transform: uppercase;
  letter-spacing: 1px; border-radius: var(--radius); text-decoration: none;
}
.download.second { background: #8b5cf6; color: #fff; }
.sig-err { color: #ff6b6b; font-size: 13px; margin: 4px 0 10px; }

@media (max-width: 768px) {
  .auth-page, .vpn-page, .help-page { padding: 96px 0 48px; }
  .auth-card, .vpn-card { padding: 20px 16px; }
}

/* ═══════════════════════════════════════
   FIX PACK 2026-09-25
   ═══════════════════════════════════════ */

/* Портфолио: одинаковая высота всех карточек */
.portfolio-item { height: 220px; }
.portfolio-item img { height: 220px; }
.portfolio-item .telegram-mockup { height: 100%; overflow: hidden; border-radius: var(--radius); }

/* Логотип на входе/регистрации — крупнее */
.auth-brand { margin-bottom: 14px; }
.auth-logo { width: 68px; height: 68px; }

/* Формы от плагинов: чиним разметку (обёртки/текстовые поля) */
.auth-card form .form-label-wrapper { margin-bottom: 7px; }
.auth-card form .form-data { margin: 0; }
.auth-card form .form-input-wrapper { display: block; }
.auth-card form .form-input,
.auth-card form textarea {
  width: 100%; background: rgba(10,12,16,0.6); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); border-radius: 12px; padding: 13px 15px; font-size: 15px;
  font-family: inherit; box-sizing: border-box;
}
.auth-card form textarea { min-height: 110px; resize: vertical; }
.auth-card form input:disabled,
.auth-card form input[readonly] { opacity: 0.6; cursor: not-allowed; }

/* «Запомнить меня» (логин) — аккуратной строкой */
.auth-card form .rememberme,
.auth-card form .form-data.rememberme { display: flex; align-items: center; gap: 9px; margin: 4px 0 16px; }
.auth-card form .rememberme label.inline,
.auth-card form label.inline {
  display: inline; margin: 0; text-transform: none; letter-spacing: 0;
  font-weight: 500; font-size: 0.85rem; color: var(--text-dim);
}
.auth-card form input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; flex: none;
  accent-color: var(--accent); background: rgba(10,12,16,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}
.auth-card form button { width: 100%; }

/* Щит — аккуратно, с переносом строк */
.auth-shield { flex-wrap: wrap; text-align: center; line-height: 1.45; }

/* VPN-страница: серый текст -> белый */
.vpn-page { color: #fff; }
.vpn-page .vpn-lead,
.vpn-page .vpn-nick,
.vpn-page .vpn-stats,
.vpn-page .vpn-dot,
.vpn-page .vpn-card .desc,
.vpn-page .steps li { color: #fff; }
.vpn-page .steps li b,
.vpn-page .vpn-card .desc b { color: var(--accent); }

/* Лид кабинета: слева, читаемой шириной, с аккуратной акцентной линией
   (базовый .vpn-lead центрирован и зажат в 40ch — это для карточек входа) */
.vpn-page .vpn-lead {
  color: var(--text-dim);
  margin: 0 0 22px;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 640px;
  padding-left: 14px;
  border-left: 2px solid rgba(205, 255, 80, 0.45);
}

/* Профиль */
.profile-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; text-align: left; }
.profile-avatar {
  width: 64px; height: 64px; flex: none; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(10,12,16,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: var(--accent);
}
.profile-name { font-size: 1.15rem; font-weight: 800; }
.profile-sub { color: var(--text-dim); font-size: 0.85rem; margin-top: 3px; }
.profile-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 16px; text-align: left;
}
.profile-block h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 10px; }
.profile-block p.desc { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 10px; }
.profile-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.92rem; }
.profile-kv:last-child { border-bottom: none; }
.profile-kv span:first-child { color: var(--text-dim); }
.profile-kv span:last-child { color: #fff; font-weight: 600; text-align: right; word-break: break-word; }

/* Инструкция на странице VPN */
.vpn-hint {
  background: rgba(205,255,80,0.06); border: 1px solid rgba(205,255,80,0.25);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.6; color: #fff;
}
.vpn-hint b { color: var(--accent); }

/* Технологии: красивые значки */
.tech-icon { line-height: 0; margin-bottom: 12px; }
.tech-icon svg {
  width: 52px; height: 52px; border-radius: 12px; display: inline-block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}
.tech-item:hover .tech-icon { transform: translateY(-4px) scale(1.08); }
.tech-item:hover .tech-icon svg { filter: drop-shadow(0 10px 22px rgba(205,255,80,0.28)); }

/* Кнопки в формах: текст строго по центру (был прижат влево из-за inline-flex) */
.auth-card form button,
.auth-card .button { justify-content: center; text-align: center; }

/* Логотип на входе/регистрации — ещё крупнее */
.auth-logo { width: 84px; height: 84px; }
.auth-brand { margin-bottom: 16px; }

/* Логин: строка «Запомнить меня» + «Забыли пароль?» + кнопка на всю ширину */
.auth-card form .button-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.auth-card form .button-wrapper .rememberme,
.auth-card form .button-wrapper .form-data.rememberme { margin: 0; flex: 1 1 auto; }
.auth-card form .button-wrapper a.btn {
  flex: 0 0 auto; margin-left: auto; padding: 2px 0; background: none;
  color: var(--accent); font-size: 0.85rem; font-weight: 700; gap: 0;
}
.auth-card form .button-wrapper a.btn::before { display: none; }
.auth-card form .button-wrapper a.btn:hover { background: none; color: #d8ff7a; text-decoration: underline; }
.auth-card form .button-wrapper button.btn { flex: 1 1 100%; width: 100%; }
.auth-card form .button-wrapper i.fa { display: none; } /* FontAwesome не подключён — убираем пустые иконки */

/* ═══ Статьи блога и материалы ═══ */
.article { max-width: 860px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--text-dim); font-size: 0.85rem; margin: 0 0 18px; }
.article-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.article-meta .tag { font-size: 0.7rem; }
.article-preview { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 0 0 20px; display: block; }
.article-body { color: var(--text); line-height: 1.75; font-size: 1rem; }
.article-body h2 { margin: 26px 0 12px; font-size: 1.35rem; }
.article-body h3 { margin: 22px 0 10px; font-size: 1.12rem; }
.article-body p { margin: 0 0 14px; }
.article-body a { color: var(--accent); }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body code { font-family: var(--mono); background: #151821; border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.article-body pre { background: #0e1118; border: 1px solid var(--border); border-radius: 12px; padding: 14px; overflow: auto; }
.article-back { margin-top: 26px; }
.article-back a { color: var(--text-dim); font-size: 0.9rem; text-decoration: none; }
.article-back a:hover { color: var(--accent); }
.article-download { margin: 8px 0 22px; }

/* Карточки списка (блог/файлы) */
.card { display: block; }
.card-preview { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; display: block; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.card-tags .tag { font-size: 0.68rem; }

/* Херо на главной: опустить под фиксированный навбар (не перекрывать баннер) */
.hero.hero-v2 { padding-top: 72px; }
@media (max-width: 768px) {
  .hero.hero-v2 { padding-top: 78px; }
  .hero-banner-img { object-position: center top; }
}

/* Технологии: надёжная сетка (не столбик) + без переполнения на узких экранах */
.tech-grid { display: grid; }
.tech-item { min-width: 0; }
.tech-level { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tech-item { padding: 14px 8px; }
  .tech-icon svg { width: 42px; height: 42px; }
  .tech-name { font-size: 0.8rem; }
  .tech-level { font-size: 0.62rem; }
}
@media (max-width: 360px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Мобильное меню: полностью прятать закрытое (убираем «полосу» сверху) */
@media (max-width: 768px) {
  .nav-links {
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ════════════════════════════════════════════════════════════
   NEON PACK 2026-09-25 — навбар и футер, зелёная подсветка
   ════════════════════════════════════════════════════════════ */

:root {
  --text-dim: #9aa39a;               /* вторичный текст: было «серо-серо» */
  --glow: rgba(205, 255, 80, 0.55);
}

/* ── НАВБАР ────────────────────────────────────────────────── */
#header {
  background: linear-gradient(180deg, rgba(13, 15, 11, 0.94) 0%, rgba(10, 10, 10, 0.72) 100%);
  border-bottom: 1px solid rgba(205, 255, 80, 0.16);
  box-shadow: 0 10px 40px -20px rgba(205, 255, 80, 0.45);
}
#header.scrolled {
  background: rgba(10, 11, 10, 0.96);
  border-bottom-color: rgba(205, 255, 80, 0.30);
  box-shadow: 0 1px 0 rgba(205, 255, 80, 0.10), 0 16px 50px -20px rgba(205, 255, 80, 0.55);
}

/* бегущий «луч» по нижней кромке */
#header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(205, 255, 80, 0.9) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  opacity: 0.75;
  animation: navBeam 6s linear infinite;
}
@keyframes navBeam {
  0%   { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

.logo-img { filter: drop-shadow(0 0 10px rgba(205, 255, 80, 0.35)); }

.nav-links a {
  color: #cfd6cf;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-links a::after {
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}
.nav-links a:hover {
  color: var(--accent);
  background: rgba(205, 255, 80, 0.08);
  text-shadow: 0 0 14px rgba(205, 255, 80, 0.55);
}
.nav-links a.active {
  color: var(--accent);
  background: rgba(205, 255, 80, 0.10);
  box-shadow: inset 0 0 0 1px rgba(205, 255, 80, 0.32);
}

/* «ALEXSTV-VPN» — как кнопка со свечением */
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  border: 1px solid rgba(205, 255, 80, 0.42);
  background: linear-gradient(180deg, rgba(205, 255, 80, 0.16), rgba(205, 255, 80, 0.04));
  box-shadow: 0 6px 24px -12px rgba(205, 255, 80, 0.95), inset 0 0 12px -6px rgba(205, 255, 80, 0.6);
}
.nav-links a.nav-cta::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: ctaPulse 2s ease-in-out infinite;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
  text-shadow: none;
  box-shadow: 0 0 28px rgba(205, 255, 80, 0.55);
}
.nav-links a.nav-cta:hover::before { background: #0a0a0a; box-shadow: none; }
@keyframes ctaPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* ── ФУТЕР ─────────────────────────────────────────────────── */
#footer {
  position: relative;
  border-top: none;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(205, 255, 80, 0.07) 0%, transparent 55%),
    var(--bg-elevated);
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 255, 80, 0.85), transparent);
  box-shadow: 0 0 26px rgba(205, 255, 80, 0.45);
}
.footer-nav a { color: #cfd6cf; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); text-shadow: 0 0 12px rgba(205, 255, 80, 0.6); }
.footer-socials a:hover { box-shadow: 0 6px 22px -6px rgba(205, 255, 80, 0.55); }

.footer-bottom {
  border-top: 1px solid rgba(205, 255, 80, 0.12);
  color: var(--text-dim);
}
.fb-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.fb-brand {
  background: linear-gradient(90deg, #7fb800 0%, #cdff50 25%, #f2ffcc 50%, #cdff50 75%, #7fb800 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.18em;
  filter: drop-shadow(0 0 14px rgba(205, 255, 80, 0.45));
  animation: brandShimmer 7s linear infinite;
}
@keyframes brandShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: -200% center; }
}
/* сердце остаётся зелёным, несмотря на прозрачную заливку текста выше */
.footer-bottom .heart { -webkit-text-fill-color: var(--accent); }

@media (max-width: 768px) {
  #header::after { animation: none; opacity: 0.5; background-position: 50% 0; }
  .fb-copy { letter-spacing: 0.08em; }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR ALIGN FIX 2026-09-25 — выравнивание пунктов меню
   ════════════════════════════════════════════════════════════ */

/* Все пункты одинаковой высоты и строго по центру строки.
   До этого «ALEXSTV-VPN» (с рамкой и точкой) отличался высотой
   из-за паддингов и рамки — пункты стояли вразнобой. */
.nav-links { align-items: center; }
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  line-height: 1;
  white-space: nowrap;
}
.nav-links a.nav-cta { height: 36px; padding: 0 14px; }

/* ── мобильное меню: ровные строки на всю ширину ── */
@media (max-width: 768px) {
  .nav-links { align-items: stretch; }
  .nav-links li { display: block; }
  .nav-links a {
    display: flex;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 0.95rem;
    justify-content: flex-start;
  }
  .nav-links a.nav-cta { justify-content: flex-start; }
  .nav-links a::after { display: none; }
}









/* ============================================================
   PORTFOLIO 2026 — bento-сетка, свечение, лайтбокс (добавлено 28.09.2026)
   ============================================================ */

.btn-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #04231a;
  border: none;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.38);
  color: #04231a;
}

.pf-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.pf-card {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%),
    var(--bg-card, #161616);
  border: 1px solid var(--border, #222);
  transition: transform var(--transition, .3s), border-color var(--transition, .3s), box-shadow var(--transition, .3s);
  will-change: transform;
}
.pf-card.pf-w2 { grid-column: span 2; }
.pf-card.pf-w3 { grid-column: span 3; }
.pf-card.pf-w4 { grid-column: span 4; }
.pf-tall { min-height: 330px; }
.pf-card:not(.pf-tall) { min-height: 250px; }

.pf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(205, 255, 80, 0.45);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(205, 255, 80, 0.12);
}

.pf-link { display: block; height: 100%; color: inherit; text-decoration: none; }

.pf-media {
  position: relative;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}
.pf-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.1s var(--ease-out, cubic-bezier(.16,1,.3,1)), filter var(--transition, .3s);
  filter: saturate(0.92) contrast(1.02);
}
.pf-card:hover .pf-media img { transform: scale(1.07); filter: saturate(1.05) contrast(1.05); }

/* затемнение снизу, чтобы текст читался поверх картинки */
.pf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.92) 100%);
  pointer-events: none;
  transition: opacity var(--transition, .3s);
}
.pf-card:hover::after { opacity: 0.92; }

/* блик, пробегающий по карточке при наведении */
.pf-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg);
  transition: left 0.9s var(--ease-out, cubic-bezier(.16,1,.3,1));
  pointer-events: none;
}
.pf-card:hover .pf-shine { left: 120%; }

.pf-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 20px 20px;
}
.pf-body h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-body p { margin: 0; color: var(--text-dim, #9aa39a); font-size: 0.86rem; }
.pf-arrow {
  display: inline-block;
  color: var(--accent, #cdff50);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--transition, .3s);
}
.pf-card:hover .pf-arrow { opacity: 1; transform: translate(0, 0); }

.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pf-tags span {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent-text, #b8e63a);
  background: rgba(205, 255, 80, 0.09);
  border: 1px solid rgba(205, 255, 80, 0.22);
  backdrop-filter: blur(4px);
}

.pf-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: all var(--transition, .3s);
  backdrop-filter: blur(8px);
}
.pf-zoom svg { width: 16px; height: 16px; }
.pf-card:hover .pf-zoom { opacity: 1; transform: translateY(0); }
.pf-zoom:hover { background: var(--accent, #cdff50); color: #000; border-color: transparent; }
@media (hover: none) { .pf-zoom { opacity: 1; transform: none; } }

.pf-media-mock { background: #0d1117; }
.pf-media-mock .telegram-mockup { height: 100%; border-radius: 0; border: none; }

/* лайтбокс */
.pf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(6, 6, 6, 0.88);
  backdrop-filter: blur(16px);
}
.pf-lightbox.open { display: flex; }
.pf-lightbox img {
  max-width: min(1500px, 94vw);
  max-height: 84vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: pfIn 0.32s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
@keyframes pfIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.pf-lightbox-cap {
  position: absolute;
  bottom: 4vmin;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono, monospace);
  font-size: 0.8rem;
  color: var(--text-dim, #9aa39a);
  letter-spacing: 0.04em;
}
.pf-lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition, .3s);
}
.pf-lb-btn:hover { background: var(--accent, #cdff50); color: #000; }
.pf-lb-close { top: 2.4vmin; right: 2.4vmin; }
.pf-lb-prev { left: 2.4vmin; top: 50%; transform: translateY(-50%); }
.pf-lb-next { right: 2.4vmin; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .pf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-card.pf-w4, .pf-card.pf-w2, .pf-card.pf-w3 { grid-column: span 2; }
  .pf-tall, .pf-card:not(.pf-tall) { min-height: 230px; }
}
@media (max-width: 560px) {
  .pf-bento { grid-template-columns: 1fr; }
  .pf-card.pf-w4, .pf-card.pf-w2, .pf-card.pf-w3 { grid-column: span 1; }
}

/* ═══════════════════════════════════════
   СТРАНИЦА «КАК ПОДКЛЮЧИТЬ» (/help) + общие блоки инструкции
   ═══════════════════════════════════════ */

/* --- Шапка страницы --- */
.help-page { color: #fff; }
.help-hero { max-width: 800px; margin-bottom: 32px; }
.help-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900;
  letter-spacing: -0.5px; line-height: 1.1; margin: 8px 0 14px;
}
.help-lead { font-size: 1.05rem; line-height: 1.7; color: #cfcfcf; margin: 0; }
.help-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.help-chip {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: #e6f7bb; background: rgba(205, 255, 80, 0.06);
  border: 1px solid rgba(205, 255, 80, 0.22); border-radius: 999px; padding: 7px 13px;
  white-space: nowrap;
}

/* --- Шаги (вертикальный таймлайн) --- */
.help-steps { display: flex; flex-direction: column; gap: 16px; }
.help-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; transition: border-color var(--transition), box-shadow var(--transition);
}
.help-step:hover { border-color: rgba(205, 255, 80, 0.32); box-shadow: var(--shadow-md); }
.help-step-num {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.05rem; color: #0a0a0a;
  background: linear-gradient(135deg, #ddff75, #a8e02f);
  box-shadow: 0 6px 18px rgba(205, 255, 80, 0.22);
}
.help-step h2 { font-size: 1.08rem; font-weight: 800; margin: 8px 0 10px; color: #fff; }
.help-step p { color: #cfcfcf; font-size: 0.95rem; line-height: 1.7; margin: 0 0 10px; }
.help-step p:last-child { margin-bottom: 0; }
.help-step a:not(.btn) { color: var(--accent); }
.help-step a:not(.btn):hover { color: #ddff75; }

/* --- Списки --- */
.help-list { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.help-list:last-child { margin-bottom: 0; }
.help-list li { font-size: 0.93rem; line-height: 1.65; color: #cfcfcf; }
.help-list li b { color: var(--accent); }

/* --- Выноски --- */
.help-callout {
  background: rgba(205, 255, 80, 0.06); border: 1px solid rgba(205, 255, 80, 0.22);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 14px; font-size: 0.92rem; line-height: 1.65; color: #eaf7c8;
}
.help-callout:last-child { margin-bottom: 0; }
.help-callout b { color: var(--accent); }
.help-callout.warn {
  background: rgba(255, 87, 51, 0.07); border-color: rgba(255, 87, 51, 0.3);
  border-left-color: var(--hot); color: #ffd8ce;
}
.help-callout.warn b { color: #ff9379; }

/* --- Карточки-плитки --- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 12px; }
.help-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: border-color var(--transition), transform var(--transition);
}
.help-card:hover { border-color: rgba(205, 255, 80, 0.3); transform: translateY(-2px); }
.help-card h3 { font-size: 0.95rem; font-weight: 800; margin: 0 0 8px; color: var(--accent); }
.help-card p { font-size: 0.88rem; line-height: 1.65; color: #cfcfcf; margin: 0; }

/* --- Секции --- */
.help-section { margin-top: 34px; }
.help-section > h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 16px; color: #fff; }

/* --- Кнопки --- */
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Текст кнопок всегда контрастный: ссылки-«кнопки» не должны наследовать
   зелёный цвет текстовых ссылок (иначе он совпадает с зелёным фоном) */
.help-page .btn,
.help-page .btn-primary { color: #0a0a0a; }
.help-page .btn-primary:hover { color: #0a0a0a; }
.help-page .btn-outline { color: var(--text); border-color: var(--border-light); background: transparent; }
.help-page .btn-outline:hover { color: #fff; background: var(--bg-card); }

/* --- FAQ (аккордеон без JS) --- */
.help-faq { display: flex; flex-direction: column; gap: 10px; }
.help-faq details {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--transition);
}
.help-faq details[open] { border-color: rgba(205, 255, 80, 0.3); }
.help-faq summary {
  cursor: pointer; list-style: none; padding: 15px 18px;
  font-weight: 700; font-size: 0.95rem; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.help-faq summary:hover { color: var(--accent); }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after {
  content: '+'; flex: none; color: var(--accent);
  font-weight: 900; font-size: 1.2rem; line-height: 1;
  transition: transform var(--transition);
}
.help-faq details[open] summary::after { transform: rotate(45deg); }
.help-faq .help-faq-body { padding: 0 18px 16px; font-size: 0.9rem; line-height: 1.7; color: #cfcfcf; }
.help-faq .help-faq-body b { color: var(--accent); }
.help-faq .help-faq-body p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.7; color: #cfcfcf; }
.help-faq .help-faq-body p:last-child { margin-bottom: 0; }

/* --- Финальный блок --- */
.help-cta {
  margin-top: 34px; text-align: center;
  background: linear-gradient(160deg, rgba(205, 255, 80, 0.09), rgba(205, 255, 80, 0.02));
  border: 1px solid rgba(205, 255, 80, 0.24); border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.help-cta h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 10px; color: #fff; }
.help-cta p { color: #cfcfcf; font-size: 0.95rem; line-height: 1.7; margin: 0 0 18px; }
.help-cta .help-actions { justify-content: center; }

@media (max-width: 640px) {
  .help-step { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px; }
  .help-step-num { width: 40px; height: 40px; font-size: 0.95rem; }
  .help-step h2 { margin-top: 0; }
  .help-cta { padding: 24px 16px; }
  .help-actions .btn { width: 100%; justify-content: center; }
}


/* ════════════════════════════════════════════════════════════
   ПОДПИСЬ В ФУТЕРЕ — «Let’s Create Something Awesome!»
   добавлено 2026-10-02 по просьбе владельца (как в референсе)
   ════════════════════════════════════════════════════════════ */
.footer-sign {
  text-align: center;
  padding: 0 0 22px;
  font-family: 'Permanent Marker', 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--accent);
  transform: rotate(-1.6deg);
  text-shadow: 0 0 22px rgba(205, 255, 80, 0.35);
  user-select: none;
}
@media (max-width: 640px) {
  .footer-sign { transform: rotate(-1deg); padding-bottom: 18px; }
}


/* ════════════════════════════════════════════════════════════
   CTA-РАМКА С МОЛНИЯМИ + молнии в фоне секций
   по макету владельца (dobavka.png), добавлено 2026-10-02
   ════════════════════════════════════════════════════════════ */
.cta { padding: 64px 24px 84px; text-align: left; }
.cta::before, .cta::after { display: none; }
.cta .container { max-width: 1120px; }

.cta-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 46px 54px;
  border: 1px solid rgba(205, 255, 80, 0.45);
  border-radius: 18px;
  background: radial-gradient(125% 145% at 50% 48%, #0e1506 0%, #050a03 56%, #030502 100%);
  box-shadow:
    inset 0 0 0 1px rgba(205, 255, 80, 0.07),
    0 0 46px rgba(168, 232, 10, 0.26),
    0 34px 90px -46px rgba(205, 255, 80, 0.55);
}
.cta-inner::before,
.cta-inner::after {
  content: '';
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}
.cta-inner::before {
  left: -4%; bottom: -46%;
  width: 34%; height: 118%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20400%20300'%20fill%3D'none'%3E%3Cdefs%3E%3Cfilter%20id%3D'g'%20x%3D'-40%25'%20y%3D'-40%25'%20width%3D'180%25'%20height%3D'180%25'%3E%3CfeGaussianBlur%20stdDeviation%3D'6'%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D'url(%23g)'%20stroke%3D'%23cdff50'%20stroke-width%3D'9.600000000000001'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20opacity%3D'0.50'%3E%3Cpath%20d%3D'M400%20214%20L332%20228%20L278%20192%20L216%20236%20L158%20198%20L96%20240%20L36%20206%20L0%20224'%2F%3E%3Cpath%20d%3D'M278%20192%20L258%20142'%2F%3E%3Cpath%20d%3D'M158%20198%20L144%20252%20L118%20274'%2F%3E%3Cpath%20d%3D'M96%20240%20L74%20286'%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D'%23cdff50'%20stroke-width%3D'3'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20stroke-opacity%3D'1'%3E%3Cpath%20d%3D'M400%20214%20L332%20228%20L278%20192%20L216%20236%20L158%20198%20L96%20240%20L36%20206%20L0%20224'%2F%3E%3Cpath%20d%3D'M278%20192%20L258%20142'%2F%3E%3Cpath%20d%3D'M158%20198%20L144%20252%20L118%20274'%2F%3E%3Cpath%20d%3D'M96%20240%20L74%20286'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-position: left bottom;
  opacity: 0.6;
}
.cta-inner::after {
  right: -4%; top: -44%;
  width: 37%; height: 120%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20420%20400'%20fill%3D'none'%3E%3Cdefs%3E%3Cfilter%20id%3D'g'%20x%3D'-40%25'%20y%3D'-40%25'%20width%3D'180%25'%20height%3D'180%25'%3E%3CfeGaussianBlur%20stdDeviation%3D'7'%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D'url(%23g)'%20stroke%3D'%23cdff50'%20stroke-width%3D'9.600000000000001'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20opacity%3D'0.50'%3E%3Cpath%20d%3D'M0%20158%20L64%20152%20L118%20166%20L158%20124%20L204%20154%20L250%2096%20L296%20132%20L342%2064%20L420%2092'%2F%3E%3Cpath%20d%3D'M204%20154%20L222%20206%20L250%20226'%2F%3E%3Cpath%20d%3D'M296%20132%20L312%2078'%2F%3E%3Cpath%20d%3D'M342%2064%20L364%20114'%2F%3E%3Cpath%20d%3D'M118%20166%20L104%20216'%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D'%23cdff50'%20stroke-width%3D'3'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20stroke-opacity%3D'1'%3E%3Cpath%20d%3D'M0%20158%20L64%20152%20L118%20166%20L158%20124%20L204%20154%20L250%2096%20L296%20132%20L342%2064%20L420%2092'%2F%3E%3Cpath%20d%3D'M204%20154%20L222%20206%20L250%20226'%2F%3E%3Cpath%20d%3D'M296%20132%20L312%2078'%2F%3E%3Cpath%20d%3D'M342%2064%20L364%20114'%2F%3E%3Cpath%20d%3D'M118%20166%20L104%20216'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-position: right top;
  opacity: 0.68;
}

.cta-text { position: relative; z-index: 2; max-width: 640px; }
.cta-title {
  text-align: left;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: clamp(1.6rem, 3.3vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(205, 255, 80, 0.55), 0 0 64px rgba(205, 255, 80, 0.22);
}
.cta-desc {
  text-align: left;
  margin: 0;
  max-width: 540px;
  padding-top: 0;
  color: #a2b0a2;
  font-size: 1rem;
}
.cta-desc::before { display: none; }
.cta-actions { position: relative; z-index: 2; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex: 0 0 auto; }
.cta-actions .btn-primary {
  background: linear-gradient(180deg, #cbff52 0%, #9be000 100%);
  color: #12210a;
  border: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px -8px rgba(205, 255, 80, 0.9), 0 0 44px -6px rgba(205, 255, 80, 0.55);
}
.cta-actions .btn-outline {
  border-color: rgba(205, 255, 80, 0.3);
  background: rgba(10, 11, 10, 0.93);
}

@media (max-width: 880px) {
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 34px 26px; }
  .cta-actions { justify-content: flex-start; }
  .cta-inner::before { width: 26%; opacity: 0.45; }
  .cta-inner::after { width: 28%; opacity: 0.5; }
}

/* ── молнии в фоне секций главной (там фон прозрачный, значит видно) ── */
body.is-home #portfolio {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20620%20420'%20fill%3D'none'%3E%3Cdefs%3E%3Cfilter%20id%3D'g'%20x%3D'-40%25'%20y%3D'-40%25'%20width%3D'180%25'%20height%3D'180%25'%3E%3CfeGaussianBlur%20stdDeviation%3D'9'%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D'url(%23g)'%20stroke%3D'%23cdff50'%20stroke-width%3D'7.68'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20opacity%3D'0.15'%3E%3Cpath%20d%3D'M0%20150%20L96%20176%20L176%20118%20L268%20186%20L352%20128%20L448%20190%20L546%20140%20L620%20168'%2F%3E%3Cpath%20d%3D'M176%20118%20L196%2040'%2F%3E%3Cpath%20d%3D'M268%20186%20L250%20274%20L288%20330'%2F%3E%3Cpath%20d%3D'M352%20128%20L384%2048'%2F%3E%3Cpath%20d%3D'M96%20176%20L74%20250'%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D'%23cdff50'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20stroke-opacity%3D'0.3'%3E%3Cpath%20d%3D'M0%20150%20L96%20176%20L176%20118%20L268%20186%20L352%20128%20L448%20190%20L546%20140%20L620%20168'%2F%3E%3Cpath%20d%3D'M176%20118%20L196%2040'%2F%3E%3Cpath%20d%3D'M268%20186%20L250%20274%20L288%20330'%2F%3E%3Cpath%20d%3D'M352%20128%20L384%2048'%2F%3E%3Cpath%20d%3D'M96%20176%20L74%20250'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right -140px top 10px;
  background-size: 880px auto;
}
body.is-home #blog-section {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20520%20780'%20fill%3D'none'%3E%3Cdefs%3E%3Cfilter%20id%3D'g'%20x%3D'-40%25'%20y%3D'-40%25'%20width%3D'180%25'%20height%3D'180%25'%3E%3CfeGaussianBlur%20stdDeviation%3D'9'%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D'url(%23g)'%20stroke%3D'%23cdff50'%20stroke-width%3D'7.68'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20opacity%3D'0.13'%3E%3Cpath%20d%3D'M470%2060%20L372%2096%20L292%2044%20L196%20108%20L112%2056%20L36%20104%20L0%2078'%2F%3E%3Cpath%20d%3D'M292%2044%20L272%20-30'%2F%3E%3Cpath%20d%3D'M196%20108%20L216%20200%20L178%20254'%2F%3E%3Cpath%20d%3D'M372%2096%20L394%2022'%2F%3E%3Cpath%20d%3D'M112%2056%20L92%20132'%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D'%23cdff50'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20stroke-opacity%3D'0.26'%3E%3Cpath%20d%3D'M470%2060%20L372%2096%20L292%2044%20L196%20108%20L112%2056%20L36%20104%20L0%2078'%2F%3E%3Cpath%20d%3D'M292%2044%20L272%20-30'%2F%3E%3Cpath%20d%3D'M196%20108%20L216%20200%20L178%20254'%2F%3E%3Cpath%20d%3D'M372%2096%20L394%2022'%2F%3E%3Cpath%20d%3D'M112%2056%20L92%20132'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: left -160px top 30px;
  background-size: 720px auto;
}
body.is-home #quiz-section {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20620%20420'%20fill%3D'none'%3E%3Cdefs%3E%3Cfilter%20id%3D'g'%20x%3D'-40%25'%20y%3D'-40%25'%20width%3D'180%25'%20height%3D'180%25'%3E%3CfeGaussianBlur%20stdDeviation%3D'9'%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D'url(%23g)'%20stroke%3D'%23cdff50'%20stroke-width%3D'7.68'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20opacity%3D'0.15'%3E%3Cpath%20d%3D'M0%20150%20L96%20176%20L176%20118%20L268%20186%20L352%20128%20L448%20190%20L546%20140%20L620%20168'%2F%3E%3Cpath%20d%3D'M176%20118%20L196%2040'%2F%3E%3Cpath%20d%3D'M268%20186%20L250%20274%20L288%20330'%2F%3E%3Cpath%20d%3D'M352%20128%20L384%2048'%2F%3E%3Cpath%20d%3D'M96%20176%20L74%20250'%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D'%23cdff50'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'miter'%20stroke-opacity%3D'0.3'%3E%3Cpath%20d%3D'M0%20150%20L96%20176%20L176%20118%20L268%20186%20L352%20128%20L448%20190%20L546%20140%20L620%20168'%2F%3E%3Cpath%20d%3D'M176%20118%20L196%2040'%2F%3E%3Cpath%20d%3D'M268%20186%20L250%20274%20L288%20330'%2F%3E%3Cpath%20d%3D'M352%20128%20L384%2048'%2F%3E%3Cpath%20d%3D'M96%20176%20L74%20250'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right -180px top 0;
  background-size: 720px auto;
}
@media (max-width: 880px) {
  body.is-home #portfolio,
  body.is-home #blog-section,
  body.is-home #quiz-section { background-size: 560px auto; background-position: right -120px top 0; }
}


/* ════════════════════════════════════════════════════════════
   ПОРТФОЛИО — премиум-оформление «Выполненные проекты»
   добавлено 2026-10-06 по просьбе владельца (модно и красиво)
   ════════════════════════════════════════════════════════════ */
.pf-bento { counter-reset: pf; gap: 16px; margin-top: 12px; }
.pf-card {
  counter-increment: pf;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px -34px rgba(0, 0, 0, 0.95);
}
.pf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(205, 255, 80, 0.5);
  box-shadow: 0 44px 96px -38px rgba(0, 0, 0, 0.92), 0 0 62px -22px rgba(205, 255, 80, 0.5);
}

/* градиентная кромка по контуру при наведении */
.pf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(205, 255, 80, 0.95), rgba(205, 255, 80, 0) 42%, rgba(205, 255, 80, 0) 60%, rgba(205, 255, 80, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 0.35s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.pf-card:hover::before { opacity: 1; }

/* номер проекта */
.pf-media::before {
  content: counter(pf, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 4;
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(8, 10, 8, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.pf-card:hover .pf-media::before {
  color: var(--accent);
  border-color: rgba(205, 255, 80, 0.45);
  background: rgba(12, 16, 6, 0.72);
}

/* затемнение снизу + лёгкая вуаль сверху под номер */
.pf-card::after {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0) 26%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.6) 52%, rgba(10, 10, 10, 0.94) 100%);
}

/* текст карточки */
.pf-body { padding: 20px 22px 22px; }
.pf-body h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.012em; margin: 0 0 6px; }
.pf-card.pf-w4 .pf-body h3 { font-size: 1.6rem; }
.pf-body p { font-size: 0.9rem; color: #a7b2a7; }
.pf-body h3::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(205, 255, 80, 0.75);
  transition: width 0.42s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.pf-card:hover .pf-body h3::after { width: 48px; }

/* теги */
.pf-tags { gap: 7px; margin-bottom: 12px; }
.pf-tags span {
  padding: 5px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  background: rgba(205, 255, 80, 0.1);
  border-color: rgba(205, 255, 80, 0.26);
}

/* CTA, выезжающий при наведении */
.pf-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: max-height 0.4s var(--ease-out, cubic-bezier(.16,1,.3,1)), opacity 0.3s, margin-top 0.4s;
}
.pf-card:hover .pf-open { max-height: 2rem; opacity: 1; margin-top: 12px; }
.pf-open i { font-style: normal; transition: transform 0.3s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.pf-card:hover .pf-open i { transform: translateX(4px); }
@media (hover: none) { .pf-open { max-height: 2rem; opacity: 1; margin-top: 12px; } }

/* Узкая карточка + широкий скриншот: показываем снимок целиком (вписанным),
   фоном — размытая копия того же снимка, поэтому «полей» не видно */
.pf-card .pf-media--contain { background: #050705; }
.pf-card .pf-media--contain img.pf-shot-blur {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  object-fit: cover;
  transform: none;
  filter: blur(30px) brightness(0.5) saturate(1.3);
  opacity: 0.9;
}
.pf-card .pf-media--contain img.pf-shot { object-fit: contain; transform: none; }
.pf-card:hover .pf-media--contain img.pf-shot { transform: scale(1.025); }
.pf-card:hover .pf-media--contain img.pf-shot-blur { transform: none; filter: blur(30px) brightness(0.5) saturate(1.3); }

@media (max-width: 560px) {
  .pf-body h3, .pf-card.pf-w4 .pf-body h3 { font-size: 1.25rem; }
}
