/* ================================================================
   TDominik.eu — Global Styles
   ================================================================ */

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

:root {
  --bg:        #0A0A0A;
  --bg-alt:    #0f0f0f;
  --surface:   #141414;
  --border:    rgba(255, 255, 255, 0.07);
  --text:      #F3F3F3;
  --accent:    #FACE1C;
  --muted:     #999999;
  --nav-h:     64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Oxanium', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.sep {
  color: var(--accent);
  font-size: 0.55em;
  position: relative;
  top: -0.3em;
  margin: 0 0.5em;
  display: inline-block;
  font-family: sans-serif;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
.anim {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.anim--in {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  z-index: 100;
  transition: border-color 0.3s, background 0.3s;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
}

.nav__logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--accent); }

.nav__spacer { flex: 1; }

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
}

.nav__links a {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }
.nav__links a.active::after,
.nav__links a:hover::after { width: 100%; }

/* ─── HAMBURGER ───────────────────────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MENU MOBILNE ────────────────────────────────────────────── */
.nav__mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  gap: 1.25rem;
  list-style: none;
  z-index: 99;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav__mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__mobile a {
  font-family: 'Oxanium', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--accent); }

/* ================================================================
   SECTIONS — wspólne
   ================================================================ */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

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

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section__inner--narrow {
  max-width: 760px;
}

.section__title {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section__title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin-top: 0.6rem;
}

.section__subtitle {
  color: var(--muted);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  position: relative;
}

.hero__content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.hero__greeting {
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hero__stack {
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
}

.hero__bio {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  color: var(--accent);
  opacity: 0.6;
}
.hero__scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-block;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--accent);
  color: var(--bg);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}
.btn--sm { font-size: 0.75rem; padding: 0.5rem 1.2rem; }
.btn--full { width: 100%; text-align: center; }

.btn--reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-family: 'Oxanium', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn--reject:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ================================================================
   DOŚWIADCZENIE
   ================================================================ */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}

.exp-col__heading {
  font-family: 'Oxanium', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.exp-entry {
  margin-bottom: 2.5rem;
}

.exp-entry__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.exp-entry__company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.exp-entry__location {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.exp-entry__role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.exp-entry__title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.exp-entry__date {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.exp-entry__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.exp-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.exp-entry__tags span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.exp-entry__divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

/* Umiejętności */
.skills { margin-top: 2.5rem; }
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.skills__grid span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  font-weight: 600;
}

/* ================================================================
   CVE TRACKER
   ================================================================ */
.cve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.cve-tracker {
  height: 100%;
}

.cve-grid__right { display: contents; }

.cve-more {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 900px) {
  .cve-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .cve-grid { grid-template-columns: 1fr; }
}

.cve-tracker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cve-tracker__id {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.cve-steps {
  display: flex;
  flex-direction: column;
}

.cve-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cve-step__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  color: var(--muted);
}

.cve-step--done .cve-step__icon {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
}

.cve-step--active .cve-step__icon {
  background: transparent;
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}
.cve-step__icon--pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.cve-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.3rem;
}
.cve-step__label {
  font-size: 0.9rem;
  color: var(--text);
}
.cve-step--pending .cve-step__label { color: var(--muted); }
.cve-step__date {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.cve-step--done .cve-step__date { color: var(--accent); }

.cve-step__connector {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin-left: 13px;
}
.cve-step__connector--done { background: var(--accent); opacity: 0.5; }

.cve-tracker--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.cve-tracker--link:hover {
  border-color: rgba(250, 225, 28, 0.4);
  transform: translateY(-2px);
}

.cve-badge {
  font-family: 'Oxanium', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.cve-badge--pending {
  background: rgba(250, 225, 28, 0.12);
  color: var(--accent);
  border: 1px solid rgba(250, 225, 28, 0.3);
}
.cve-badge--published {
  background: rgba(0, 200, 100, 0.1);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.25);
}

.cve-tracker__note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* ================================================================
   BLOG
   ================================================================ */
.blog-list { margin-top: 0; }

.blog-entry {
  padding: 1.75rem 0;
}
.blog-entry--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.blog-entry--link:hover { opacity: 0.75; }
.blog-entry--link .blog-entry__title { transition: color 0.2s; }
.blog-entry--link:hover .blog-entry__title { color: var(--accent); }

.blog-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-entry__date {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.blog-entry__tags span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.blog-entry__title {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.65rem;
  line-height: 1.4;
  color: var(--text);
}

.blog-entry__excerpt {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.8;
}

.blog-divider {
  height: 1px;
  background: var(--border);
}

.blog-more {
  margin-top: 2.5rem;
}

/* ================================================================
   KONTAKT
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 0;
  align-items: start;
}

.contact-cta {
  margin-top: 2rem;
}

/* Info kontaktowe */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info__link:hover { color: var(--accent); }

.contact-info__icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  font-style: normal;
  color: var(--accent);
  transition: background 0.2s, border-color 0.2s;
}
.contact-info__link:hover .contact-info__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__logo:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer__sep {
  color: var(--accent);
  font-size: 0.65em;
  vertical-align: middle;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
.footer__links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }

/* ================================================================
   COOKIE BANNER
   ================================================================ */
.cookie {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(600px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie.visible {
  transform: translateX(-50%) translateY(0);
}
.cookie__text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: 0.03em;
  min-width: 180px;
}
.cookie__text a { color: var(--accent); text-decoration: none; }
.cookie__text a:hover { text-decoration: underline; }
.cookie__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 680px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }
}

@media (max-width: 520px) {
  footer { flex-direction: column; align-items: flex-start; }
  .blog-entry__header { flex-direction: column; align-items: flex-start; }
}
