/* ─── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0e1a;
  --bg2:       #0f1525;
  --bg3:       #151c30;
  --surface:   #1a2236;
  --surface2:  #1f2940;
  --border:    #1e2d48;
  --border2:   #253352;
  --accent:    #38bdf8;
  --accent2:   #818cf8;
  --green:     #4ade80;
  --red:       #f87171;
  --yellow:    #fbbf24;
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #64748b;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --sans:      'Inter', system-ui, sans-serif;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --nav-h:     60px;
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg:        #f8fafc;
  --bg2:       #f1f5f9;
  --bg3:       #e2e8f0;
  --surface:   #ffffff;
  --surface2:  #f8fafc;
  --border:    #e2e8f0;
  --border2:   #cbd5e1;
  --text:      #0f172a;
  --text2:     #475569;
  --text3:     #94a3b8;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label { font-size: 13px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 8px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.section-sub { color: var(--text2); font-size: 17px; max-width: 560px; }

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
[data-theme="light"] .nav { background: rgba(248,250,252,0.85); }

.nav.scrolled { border-color: var(--border); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text2); transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: 16px; }

.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse-ring 2.4s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Language selector */
.lang-select {
  height: 34px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text2);
  font-size: 13px; font-family: var(--mono);
  cursor: pointer; outline: none;
  transition: border-color var(--transition), color var(--transition);
  -webkit-appearance: none; appearance: none;
  padding-right: 6px;
}
.lang-select:hover  { border-color: var(--border2); color: var(--text); }
.lang-select:focus  { border-color: var(--accent); }
.lang-select option { background: var(--bg2); }

.theme-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color var(--transition), border-color var(--transition);
}
.theme-btn:hover { color: var(--text); border-color: var(--border2); }

.nav-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface);
}
.nav-menu-btn span {
  width: 16px; height: 2px; background: var(--text2);
  border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 8px 0;
}
.nav-mobile a {
  padding: 12px 24px; font-size: 15px; color: var(--text2);
  transition: color var(--transition), background var(--transition);
}
.nav-mobile a:hover { color: var(--text); background: var(--surface); }
.nav-mobile.open { display: flex; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: var(--nav-h);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

/* Flying hello words canvas */
#hello-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 1;
}

.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
  padding-top: 40px; padding-bottom: 40px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--green);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 99px; padding: 5px 14px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse-ring 2s infinite;
}

.hero-title { margin-bottom: 20px; }
.hero-greeting { display: block; font-size: 14px; color: var(--text3); margin-bottom: 6px; }
.hero-name {
  display: block; font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  display: block; font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text2); font-weight: 500; margin-top: 4px;
}

.hero-bio { color: var(--text2); font-size: 17px; max-width: 480px; margin-bottom: 28px; }

/* Terminal */
.hero-terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 32px;
  max-width: 460px;
  box-shadow: var(--shadow);
}
.terminal-bar {
  background: var(--surface);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  font-family: var(--mono); font-size: 11px;
  color: var(--text3); margin-left: 4px;
}
.terminal-body { padding: 14px 16px; font-family: var(--mono); font-size: 13px; }
.terminal-line { line-height: 1.8; }
.t-prompt { color: var(--green); margin-right: 8px; }
.t-cmd { color: var(--accent); }
.t-output { color: var(--text2); padding-left: 20px; }
.cursor-line::after {
  content: '';
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #0a0e1a;
  box-shadow: 0 0 20px rgba(56,189,248,0.3);
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(56,189,248,0.5); }
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text3); background: var(--surface); }

/* Hero right */
.hero-right { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-avatar-wrap { position: relative; }
.hero-avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 800; color: var(--accent);
  font-family: var(--mono);
  overflow: hidden; position: relative; z-index: 1;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-avatar-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(56,189,248,0.3);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-stack {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 240px;
}
.stack-tag {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface); color: var(--accent2);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
  transition: border-color var(--transition);
}
.stack-tag:hover { border-color: var(--accent2); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--text3); animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ─── ABOUT ───────────────────────────────────────────────────────────────── */
.about-section { background: var(--bg2); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-top: 40px; align-items: start;
}
.about-right { display: flex; flex-direction: column; }

.about-text p { color: var(--text2); font-size: 16px; line-height: 1.8; }

.about-meta {
  margin-top: 24px; display: flex; flex-direction: column; gap: 10px;
}
.meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text2);
}
.meta-row .label { color: var(--text3); font-family: var(--mono); font-size: 12px; min-width: 80px; }

.about-skills { display: flex; flex-direction: column; gap: 16px; }
.skill-group { }
.skill-group-title {
  font-size: 12px; font-family: var(--mono);
  color: var(--text3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 13px; padding: 5px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-family: var(--mono);
  transition: all var(--transition);
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* About grid adjusted for new right column */
.about-right { display: flex; flex-direction: column; gap: 0; }

/* Hobbies */
.about-hobbies { margin-top: 24px; }
.hobbies-label { font-size: 12px; color: var(--text3); margin-bottom: 8px; letter-spacing: 0.06em; }
.hobbies-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hobby-tag {
  font-size: 13px; padding: 5px 13px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); transition: border-color var(--transition), color var(--transition);
}
.hobby-tag:hover { border-color: var(--accent2); color: var(--accent2); }

/* ─── LANGUAGE BARS ───────────────────────────────────────────────────────── */
.langs-block { margin-top: 56px; }
.langs-title { font-size: 12px; color: var(--text3); margin-bottom: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.langs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lang-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.lang-info { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lang-flag  { font-size: 18px; line-height: 1; }
.lang-name  { font-weight: 600; font-size: 14px; flex: 1; }
.lang-level { font-size: 12px; font-family: var(--mono); color: var(--accent); }
.lang-bar-wrap {
  height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden;
}
.lang-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── CHANNELS ────────────────────────────────────────────────────────────── */
.channels-block { margin-top: 40px; }
.channels-title { font-size: 12px; color: var(--text3); margin-bottom: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.channels-list { display: flex; flex-wrap: wrap; gap: 14px; }
.channel-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-width: 220px; flex: 1;
}
.channel-card:hover {
  transform: translateY(-2px); border-color: var(--border2);
  box-shadow: var(--shadow);
}
.channel-icon { color: var(--text2); flex-shrink: 0; }
.channel-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.channel-label { font-size: 14px; font-weight: 600; }
.channel-note  { font-size: 12px; color: var(--text3); }
.channel-arrow { color: var(--text3); flex-shrink: 0; }
.channel-soon { opacity: .6; pointer-events: none; }

/* ─── PRODUCTS ────────────────────────────────────────────────────────────── */
.products-section { padding-bottom: 112px; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 40px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-color, var(--accent));
  opacity: 0; transition: opacity 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card:hover::before { opacity: 1; }
.product-card:hover { border-color: var(--border2); }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.card-icon {
  font-size: 28px; width: 52px; height: 52px;
  background: var(--bg2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.card-status {
  font-size: 11px; font-family: var(--mono); font-weight: 600;
  padding: 3px 9px; border-radius: 99px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.status-live   { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.25); }
.status-beta   { background: rgba(251,191,36,0.1);  color: var(--yellow); border: 1px solid rgba(251,191,36,0.25); }
.status-dev    { background: rgba(148,163,184,0.1); color: var(--text3);  border: 1px solid rgba(148,163,184,0.2); }
.status-coming { background: rgba(129,140,248,0.1); color: var(--accent2); border: 1px solid rgba(129,140,248,0.25); }

.card-name { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card-tagline { font-size: 14px; color: var(--text2); margin-bottom: 14px; line-height: 1.5; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.card-tag {
  font-size: 11px; font-family: var(--mono);
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text3); padding: 2px 8px; border-radius: 5px;
}
.card-actions { display: flex; gap: 10px; }
.card-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--bg2); color: var(--text2);
}
.card-btn.primary {
  background: var(--card-color, var(--accent));
  color: #0a0e1a; border-color: transparent;
  box-shadow: 0 0 16px color-mix(in srgb, var(--card-color, var(--accent)) 30%, transparent);
}
.card-btn.primary:hover { filter: brightness(1.1); }
.card-btn:not(.primary):hover { color: var(--text); border-color: var(--border2); }

/* Skeleton */
.skeleton-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); height: 260px;
  animation: shimmer 1.6s infinite linear;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── MODAL ───────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 680px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 18px; color: var(--text3);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition); z-index: 1;
}
.modal-close:hover { color: var(--text); }

.modal-header {
  padding: 28px 28px 0;
  display: flex; align-items: center; gap: 16px;
}
.modal-icon {
  font-size: 32px; width: 60px; height: 60px;
  background: var(--surface); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--border);
}
.modal-title { font-size: 22px; font-weight: 700; }
.modal-tagline { color: var(--text2); font-size: 14px; margin-top: 4px; }

.modal-body { padding: 24px 28px; overflow: hidden; }
.modal-body h2 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.modal-body h2:first-child { margin-top: 0; }
.modal-body h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; color: var(--text); }
.modal-body p { color: var(--text2); font-size: 15px; line-height: 1.75; margin-bottom: 10px; }
.modal-body ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.modal-body li { color: var(--text2); font-size: 15px; padding-left: 20px; position: relative; line-height: 1.6; }
.modal-body li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.modal-body code {
  font-family: var(--mono); font-size: 12px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 5px; color: var(--accent2);
}
.modal-body strong { color: var(--text); font-weight: 600; }

.modal-footer {
  padding: 0 28px 28px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.modal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
}
.modal-btn.primary {
  background: var(--accent); color: #0a0e1a;
  box-shadow: 0 0 16px rgba(56,189,248,0.3);
}
.modal-btn.primary:hover { box-shadow: 0 0 24px rgba(56,189,248,0.5); }
.modal-btn.ghost {
  background: var(--surface); color: var(--text2);
  border: 1px solid var(--border);
}
.modal-btn.ghost:hover { color: var(--text); border-color: var(--border2); }

/* ─── CONTACT ─────────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg2); text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner .section-sub { margin: 0 auto 40px; }

.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(56,189,248,0.15);
  color: var(--accent);
}
.contact-link svg { flex-shrink: 0; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 24px 0; border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text3);
}
.footer-copy { }
.footer-src { color: var(--text3); transition: color var(--transition); }
.footer-src:hover { color: var(--accent); }

/* ─── REVEAL ANIMATION ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── MODAL SCREENSHOTS ───────────────────────────────────────────────────── */
.modal-screenshots {
  position: relative; margin: 0 -28px 24px; overflow: hidden;
}
.ss-track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 28px 10px;
  scrollbar-width: none;
}
.ss-track::-webkit-scrollbar { display: none; }
.ss-slide {
  flex: 0 0 auto; width: 240px; height: 160px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  cursor: zoom-in;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.ss-slide:hover { border-color: var(--accent); transform: scale(1.02); }
.ss-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ss-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,14,26,0.8); border: 1px solid var(--border);
  color: var(--text); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); z-index: 2;
  transition: background 0.15s, border-color 0.15s;
}
.ss-arrow:hover { background: var(--surface2); border-color: var(--accent); }
.ss-prev { left: 6px; }
.ss-next { right: 6px; }

/* ─── LIGHTBOX ────────────────────────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: min(90vw, 1000px); max-height: 85vh;
  position: relative; z-index: 1;
}
.lb-img-wrap img {
  max-width: 100%; max-height: 85vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.lb-close {
  position: fixed; top: 18px; right: 20px;
  font-size: 28px; color: var(--text2); background: none;
  transition: color 0.15s; z-index: 2;
}
.lb-close:hover { color: var(--text); }

.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30,40,60,0.8); border: 1px solid var(--border);
  color: var(--text); font-size: 28px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); z-index: 2;
  transition: background 0.15s;
}
.lb-arrow:hover { background: var(--surface); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 13px; color: var(--text3);
  background: rgba(10,14,26,0.7); padding: 4px 14px; border-radius: 99px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* ─── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }   /* push theme+lang+menu to the right */
  .nav-menu-btn { display: flex; }
  .lang-select { font-size: 12px; height: 30px; }

  .section { padding: 64px 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .hero-right { order: -1; }
  .hero-avatar { width: 120px; height: 120px; font-size: 36px; }
  .hero-avatar-ring { inset: -5px; }
  .hero-stack { max-width: 320px; }
  .hero-terminal { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .langs-list { grid-template-columns: 1fr; }
  .channels-list { flex-direction: column; }
  .products-grid { grid-template-columns: 1fr; }

  .modal-header { padding: 20px 20px 0; }
  .modal-body   { padding: 20px; }
  .modal-footer { padding: 0 20px 20px; }
  .modal-title  { font-size: 18px; }

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

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-link { justify-content: center; }
}
