/* ===========================================================
   DANIEL PRAJSNAR — PORTFOLIO
   Token system: kolory, typografia, odstępy
   =========================================================== */

:root {
  /* Kolory */
  --bg:            #0A0E14;
  --bg-elevated:   #11161F;
  --bg-elevated-2: #161C27;
  --border:        #1E2530;
  --border-strong: #2A3340;
  --text:          #E8EBF0;
  --text-dim:      #8B96A8;
  --text-faint:    #5A6578;
  --accent:        #4D8AFF;
  --accent-soft:   #4D8AFF1A; /* 10% alpha */
  --accent-dim:    #2A4A8A;

  /* Typografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Animacje */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================================================
   RESET
   =========================================================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================================================
   TŁO — delikatna siatka punktowa (sygnatura wizualna)
   =========================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(77, 138, 255, 0.16) 1px, transparent 0);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ===========================================================
   NAWIGACJA
   =========================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav__logo-dot {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__links a:not(.nav__cta) {
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}

.nav__links a:not(.nav__cta):hover {
  color: var(--text);
}

.nav__cta {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #07101F;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent);
}

/* ===========================================================
   HERO
   =========================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
}

.hero__inner {
  max-width: 760px;
  animation: hero-rise 0.9s var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--bg-elevated);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

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

.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B9C6DE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #07101F;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--accent);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--border-strong));
}

.hero__scroll-hint span {
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: scroll-dot 2.2s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}

/* ===========================================================
   SEKCJE — wspólne
   =========================================================== */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
}

.section__header {
  margin-bottom: 56px;
}

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

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
}

/* ===========================================================
   PROJEKTY
   =========================================================== */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* Karta projektu — cały blok jest linkiem */
.project-card {
  display: block;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--accent-soft),
    0 0 40px -8px var(--accent-dim);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated-2);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.06);
}

/* Półprzezroczysty pasek na dole zdjęcia */
.project-card__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #FFFFFF;
}

.project-card__status {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(77, 138, 255, 0.18);
  color: #8FB6FF;
  white-space: nowrap;
}

/* Status "W trakcie" — dodaj tę klasę do .project-card__status */
.project-card__status.is-progress {
  background: rgba(255, 184, 77, 0.16);
  color: #FFC979;
}

.project-card__desc {
  padding: 18px 20px 22px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ===========================================================
   O MNIE
   =========================================================== */

.about__inner {
  max-width: 720px;
}

.about__text {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* ===========================================================
   KONTAKT
   =========================================================== */

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-top: 8px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact__link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 12px 32px -16px var(--accent-dim);
}

.contact__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

.contact__value {
  font-weight: 600;
  font-size: 1rem;
}

/* ===========================================================
   STOPKA
   =========================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ===========================================================
   RESPONSYWNOŚĆ
   =========================================================== */

@media (max-width: 640px) {
  .nav__links {
    gap: 16px;
    font-size: 0.85rem;
  }

  .nav__cta {
    padding: 8px 14px;
  }

  .hero {
    padding: 120px 20px 64px;
  }

  .hero__br {
    display: none;
  }

  .section {
    padding: 80px 20px;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .contact__link {
    padding: 16px 18px;
  }
}

@media (max-width: 400px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
.contact__link {
  /* dla buttona — usuń domyślne stylowanie przeglądarki */
  color: inherit;
  border: 1px solid var(--border);
  font: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
:root {
  --patronite:       #F0472A;
  --patronite-light: #FF7A45;
  --patronite-soft:  rgba(240, 71, 42, 0.12);
}

.support__inner {
  max-width: 760px;
  margin: 0 auto;
}

.support__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Baner — cały blok jest klikalnym linkiem */
.support__banner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240, 71, 42, 0.28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(240, 71, 42, 0.14) 0%, transparent 58%),
    var(--bg-elevated);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.support__banner:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 71, 42, 0.6);
  box-shadow:
    0 24px 48px -18px rgba(0, 0, 0, 0.6),
    0 0 44px -12px rgba(240, 71, 42, 0.5);
}

.support__banner:focus-visible {
  outline: 2px solid var(--patronite-light);
  outline-offset: 3px;
}

/* Jasna "płytka" pod logo — logo Patronite ma czarny napis,
   więc na ciemnym tle potrzebuje jasnego podkładu. */
.support__plate {
  flex: 0 0 auto;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}

.support__plate img {
  width: 100%;
  height: auto;
}

.support__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.support__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--patronite-soft);
  color: #FF9B72;
}

.support__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--text);
}

.support__url {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint);
  word-break: break-word;
}

.support__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--patronite-soft);
  color: var(--patronite-light);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.support__arrow svg {
  width: 20px;
  height: 20px;
}

.support__banner:hover .support__arrow {
  transform: translateX(4px);
  background: var(--patronite);
  color: #FFFFFF;
}

.support__note {
  margin-top: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.86rem;
}

/* Baner na węższych ekranach — układa się w pionie */
@media (max-width: 720px) {
  .support__banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 20px;
    padding: 22px;
  }

  .support__plate {
    width: 100%;
  }

  .support__body {
    align-items: center;
  }

  .support__badge {
    align-self: center;
  }

  .support__arrow {
    margin: 0 auto;
  }
}

/* Nawigacja ma teraz o jeden link więcej — ściskamy odstępy na małych ekranach */
@media (max-width: 640px) {
  .nav__links {
    gap: 14px;
  }
}

@media (max-width: 400px) {
  .nav__links {
    gap: 10px;
    font-size: 0.8rem;
  }

  .nav__cta {
    padding: 8px 12px;
  }
}
