/* =========================================
   SJANKACZAR CV — Creative Portfolio Style
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg:        #08090f;
  --bg2:       #0e1018;
  --bg3:       #141622;
  --cyan:      #00d4ff;
  --purple:    #9b5de5;
  --pink:      #f72585;
  --yellow:    #f9c74f;
  --green:     #43e97b;
  --text:      #e8eaf0;
  --muted:     #6b7280;
  --border:    rgba(255,255,255,0.07);
  --glow-c:    rgba(0,212,255,0.25);
  --glow-p:    rgba(155,93,229,0.25);
  --r:         16px;
  --r2:        24px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .4;
}

/* ── ANIMATED BG BLOBS ── */
.blobs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18; animation: float 12s ease-in-out infinite;
}
.blob-1 { width:520px; height:520px; background: var(--purple); top:-120px; left:-140px; animation-delay: 0s; }
.blob-2 { width:420px; height:420px; background: var(--cyan);   top:40%; right:-120px; animation-delay: -4s; }
.blob-3 { width:360px; height:360px; background: var(--pink);   bottom:-100px; left:30%; animation-delay: -8s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-40px) scale(1.05); }
}

/* ── WRAPPER ── */
.wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative; z-index: 1;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 48px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
}

/* -- PHOTO -- */
.photo-wrap {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative;
}
.photo-ring {
  width: 160px; height: 160px;
  border-radius: 50%;
  padding: 3px;
  background: var(--border);
}
.photo-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg3);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.photo-inner img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; padding: 16px;
  text-align: center;
}
.photo-placeholder svg { opacity: .5; }
.photo-placeholder span { font-size: .72rem; color: var(--muted); }
/* -- HERO TEXT -- */
.hero-text {}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.badge-dot { width:6px; height:6px; border-radius:50%; background:var(--cyan); animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title {
  font-size: 1.05rem; color: var(--muted);
  margin-bottom: 20px;
}
.hero-title span { color: var(--purple); font-weight: 600; }

.hero-contacts {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  text-decoration: none;
  transition: var(--transition);
}
.contact-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--glow-c);
}
.contact-chip svg { flex-shrink: 0; }

/* ── GRID LAYOUT ── */
.main-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* ── SECTION TITLE ── */
.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.sec-title::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}
.sec-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── ABOUT ── */
.about-text {
  font-size: .92rem; color: var(--muted); line-height: 1.8;
}
.about-text strong { color: var(--text); }

/* ── SKILLS ── */
.skill-group { margin-bottom: 20px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group-label {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: .76rem; font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid;
  transition: var(--transition);
  cursor: default;
}
.tag-cyan   { color: var(--cyan);   border-color: rgba(0,212,255,.3);   background: rgba(0,212,255,.07); }
.tag-purple { color: var(--purple); border-color: rgba(155,93,229,.3); background: rgba(155,93,229,.07); }
.tag-pink   { color: var(--pink);   border-color: rgba(247,37,133,.3);  background: rgba(247,37,133,.07); }
.tag-yellow { color: var(--yellow); border-color: rgba(249,199,79,.3);  background: rgba(249,199,79,.07); }
.tag-green  { color: var(--green);  border-color: rgba(67,233,123,.3);  background: rgba(67,233,123,.07); }
.tag:hover  { transform: translateY(-2px); filter: brightness(1.2); }

/* ── SKILL BARS ── */
.skill-bar-item { margin-bottom: 14px; }
.skill-bar-item:last-child { margin-bottom: 0; }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.skill-bar-name  { font-size: .82rem; font-weight: 500; }
.skill-bar-pct   { font-size: .76rem; color: var(--muted); }
.skill-track {
  height: 6px; border-radius: 3px;
  background: var(--bg3);
  overflow: hidden;
}
.skill-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform-origin: left;
  animation: grow .9s cubic-bezier(.4,0,.2,1) forwards;
  transform: scaleX(0);
}
@keyframes grow { to { transform: scaleX(1); } }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), transparent);
}
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -24px; top: 5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--purple);
  box-shadow: 0 0 10px var(--glow-p);
  transition: var(--transition);
}
.tl-item:hover .tl-dot {
  background: var(--purple);
  box-shadow: 0 0 18px var(--glow-p);
}
.tl-period {
  font-size: .72rem; font-weight: 600; color: var(--cyan);
  letter-spacing: .04em; margin-bottom: 4px;
}
.tl-role {
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 2px;
}
.tl-place {
  font-size: .82rem; color: var(--purple); font-weight: 500; margin-bottom: 6px;
}
.tl-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.7;
}

/* ── PROJECT CARDS ── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.proj-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.proj-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  opacity: 0;
  transition: var(--transition);
}
.proj-card:hover {
  border-color: rgba(155,93,229,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155,93,229,.2);
}
.proj-card:hover::before { opacity: .04; }
.proj-card > * { position: relative; z-index: 1; }
.proj-icon {
  font-size: 1.6rem; margin-bottom: 12px;
  display: block;
}
.proj-name {
  font-family: 'Syne', sans-serif;
  font-size: .95rem; font-weight: 700;
  margin-bottom: 6px;
}
.proj-desc {
  font-size: .8rem; color: var(--muted); line-height: 1.65; margin-bottom: 12px;
}
.proj-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-stack .tag { font-size: .68rem; padding: 2px 9px; }

/* ── WISHLIST CARDS ── */
.wish-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: flex; gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}
.wish-card:hover {
  border-color: rgba(249,199,79,.25);
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(249,199,79,.1);
}
.wish-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  opacity: .25;
  flex-shrink: 0;
  width: 36px;
}
.wish-body {}
.wish-title {
  font-family: 'Syne', sans-serif;
  font-size: .95rem; font-weight: 700;
  margin-bottom: 5px;
}
.wish-desc { font-size: .8rem; color: var(--muted); line-height: 1.65; }
.wish-list { display: flex; flex-direction: column; gap: 12px; }

/* ── DREAM JOB ── */
.dream-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 40px;
  position: relative; overflow: hidden;
  margin-top: 0;
}
.dream-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(247,37,133,.06), rgba(155,93,229,.06), rgba(0,212,255,.06));
}
.dream-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan), var(--green));
}
.dream-card > * { position: relative; z-index: 1; }
.dream-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
}
.dream-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pink); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.dream-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff, var(--pink), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dream-desc {
  font-size: .9rem; color: var(--muted); line-height: 1.8; max-width: 520px;
}
.dream-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 0 20px var(--pink));
  animation: float-em 4s ease-in-out infinite;
}
@keyframes float-em {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-12px) rotate(5deg); }
}

/* ── SIDEBAR EXTRAS ── */
.lang-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lang-item:last-child { margin-bottom: 0; }
.lang-flag { font-size: 1.3rem; }
.lang-info { flex: 1; }
.lang-name  { font-size: .85rem; font-weight: 600; margin-bottom: 3px; }
.lang-level { font-size: .75rem; color: var(--muted); }
.lang-dots  { display: flex; gap: 4px; }
.lang-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.lang-dot.active { background: var(--cyan); box-shadow: 0 0 6px var(--glow-c); }

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding-top: 48px;
  font-size: .8rem; color: var(--muted);
}
.footer span { color: var(--pink); }

/* ── PRINT ── */
@media print {
  body { background: white; color: #111; }
  .blobs, body::before { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .main-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-contacts { justify-content: center; }
  .photo-wrap { align-self: center; }
  .dream-inner { grid-template-columns: 1fr; text-align: center; }
  .dream-emoji { font-size: 3rem; }
}
@media (max-width: 560px) {
  .wrapper { padding: 20px 16px 60px; }
  .hero { padding: 28px; }
  .proj-grid { grid-template-columns: 1fr; }
}
