/* styles.css (NO HEADER / NAV STYLES)
   This file intentionally contains:
   - theme variables (general)
   - page background (mesh)
   - layout container + page spacing
   - ABOUT / PROJECTS / SUMMARY styles
   It intentionally DOES NOT contain:
   - .nav-wrap / nav.site-nav / .pills / .pill / .lang-group / .l-btn / header .btn / .nav-tools
*/

/* ===== Theme tokens ===== */
:root[data-theme="light"] {
  --bg: #f1f5f9;
  --card: #ffffff;
  --text-h: #0f172a;
  --text-p: #475569;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --border: #e2e8f0;
  --shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

:root[data-theme="dark"] {
  --bg: #020617;
  --card: #0f172a;
  --text-h: #f8fafc;
  --text-p: #94a3b8;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.10);
  --border: #1e293b;
  --shadow: 0 20px 25px -5px rgba(0,0,0,0.30);
}

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

html, body { height: 100%; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-p);
  line-height: 1.6;
  transition: background 0.35s, color 0.35s;
}

/* disable transitions during initial load (if you use .preload) */
.preload * {
  transition: none !important;
  animation: none !important;
}

/* optional mesh background element */
.mesh-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(at 0% 0%, var(--accent-soft) 0, transparent 50%),
    radial-gradient(at 100% 100%, var(--accent-soft) 0, transparent 45%),
    radial-gradient(at 80% 10%, rgba(99,102,241,0.10) 0, transparent 50%);
  pointer-events: none;
  z-index: -1;
  filter: saturate(1.1);
}

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

/* page top padding accounts for fixed header sitting above */
.page { padding: 170px 0 60px; }

/* ===== Generic card ===== */
.card {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== ABOUT (Variant A) ===== */
.aboutA { padding-top: 150px; }

.aboutA-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

.aboutA-left {
  position: sticky;
  top: 120px;
  align-self: start;
}

.aboutA-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.aboutA-meta { margin-top: 16px; }

.aboutA-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.aboutA-name {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-h);
  letter-spacing: -0.9px;
}

.aboutA-role {
  margin-top: 6px;
  font-weight: 650;
  color: var(--text-h);
  opacity: 0.82;
}

.aboutA-lead {
  margin-top: 10px;
  font-weight: 600;
  opacity: 0.92;
}

.aboutA-contactBtns {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* contact icon buttons (NOT header) */
.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 18px -10px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 26px -16px rgba(0,0,0,0.45);
  filter: brightness(1.03);
}

.icon-btn.mail { background-color: rgba(37,99,235,0.95); }
.icon-btn.linkedin { background-color: rgba(14,118,168,0.95); }
.icon-btn.telegram { background-color: rgba(34,158,217,0.95); }

.icon-btn i { font-size: 18px; color: #fff; opacity: 0.95; }

/* tooltips (NOT header) */
.icon-btn[aria-label]::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s, transform 0.16s;
  z-index: 10;
}

.icon-btn[aria-label]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
  z-index: 10;
}

.icon-btn:hover::after,
.icon-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -110%);
}

.icon-btn:hover::before,
.icon-btn:focus-visible::before { opacity: 1; }

.icon-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.aboutA-sideNote {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.aboutA-sideNote .k {
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.aboutA-sideNote .v {
  margin-top: 6px;
  font-weight: 600;
  color: var(--text-h);
  opacity: 0.85;
}

.aboutA-right { min-width: 0; }

.aboutA-flow {
  max-width: 780px;
  padding-top: 6px;
}

.aboutA-p {
  font-size: 1.02rem;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.75;
  margin: 0 0 16px;
}

.aboutA-quote {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  margin: 18px 0 22px;
}

.aboutA-quote .mark {
  position: absolute;
  top: -10px;
  left: 16px;
  font-weight: 900;
  font-size: 3rem;
  color: rgba(37, 99, 235, 0.35);
  line-height: 1;
}

.aboutA-quote .text {
  font-weight: 600;
  color: var(--text-h);
  opacity: 0.9;
  letter-spacing: -0.2px;
  line-height: 1.65;
}

.aboutA-rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(148,163,184,0.35), transparent);
  margin: 18px 0;
}

.aboutA-h2 {
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--text-h);
  letter-spacing: -0.5px;
  margin: 0 0 12px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.mini-ico {
  width: 22px;
  height: 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.aboutA-mini { padding: 10px 0; }

.aboutA-mini .t {
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -0.2px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.aboutA-mini .d {
  margin-top: 8px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.75;
}

.aboutA-def {
  margin-top: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.aboutA-def .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(148,163,184,0.35);
}
.aboutA-def .row:last-child { border-bottom: none; }

.aboutA-def .k {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.aboutA-def .v {
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.7;
}

.aboutA-tail {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.aboutA-tail .hint { opacity: 0.65; }
.aboutA-tail a { color: var(--text-h); text-decoration: none; }
.aboutA-tail a:hover { text-decoration: underline; }
.aboutA-tail .sep { opacity: 0.4; }

/* ===== PROJECTS ===== */
.projects { padding-top: 150px; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-head__title {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-h);
  letter-spacing: -0.8px;
}

.page-head__chips {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  color: var(--text-h);
  font-weight: 900;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.18s;
  text-decoration: none;
}

.chip:hover { transform: translateY(-1px); }
.chip.active { background: var(--accent); border-color: transparent; color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(0,0,0,0.35);
}

.tile__img {
  height: 140px;
  background: radial-gradient(500px 250px at 10% 10%, rgba(37,99,235,0.30), transparent 60%),
              radial-gradient(500px 250px at 100% 30%, rgba(99,102,241,0.28), transparent 55%),
              rgba(255,255,255,0.15);
}

.tile__body { padding: 16px; }

.tile__title {
  font-weight: 900;
  color: var(--text-h);
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.tile__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== SUMMARY / CV ===== */
.cv { padding-top: 150px; }

.cv-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.cv-block {
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cv-h {
  font-weight: 900;
  color: var(--text-h);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cv-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(148,163,184,0.35);
}
.cv-item:last-child { border-bottom: none; }

.cv-role { font-weight: 900; color: var(--text-h); }
.cv-meta { margin-top: 4px; font-size: 0.9rem; opacity: 0.85; line-height: 1.55; }

/* ===== Misc ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(37,99,235,0.92), rgba(99,102,241,0.88));
  box-shadow: 0 28px 40px -28px rgba(37,99,235,0.55);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.highlight p { opacity: 0.95; }
.highlight h3 { color: #fff; }

.radar-container { height: 300px; width: 100%; position: relative; }

/* ===== Responsive (NO HEADER RULES) ===== */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .page { padding: 190px 0 42px; }

  .card { padding: 20px; }

  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-head__chips { justify-content: flex-start; flex-wrap: wrap; }

  .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .highlight { padding: 20px; }
  .radar-container { height: 260px; }

  .cv-grid { grid-template-columns: 1fr; }
  .cv-block { padding: 16px; }

  .aboutA-layout { grid-template-columns: 1fr; gap: 18px; }
  .aboutA-left { position: static; }
  .aboutA-photo { height: 360px; border-radius: 18px; }
  .aboutA-flow { max-width: 100%; }
  .aboutA-def .row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 420px) {
  .page { padding-top: 200px; }
  .aboutA-photo { height: 320px; }
  .icon-btn { width: 38px; height: 38px; }
}
