/* ==========================================================================
   JAKUB JATKOWSKI — PORTFOLIO DESIGN SYSTEM
   Modern Creative Studio (Dark Slate & Sapphire Oxford)
   ========================================================================== */

:root {
  /* Tła */
  --bg-dark: #0a0e17;
  --bg-surface: #101726;
  --bg-card: #121c2f;
  --bg-card-hover: #17243c;
  --bg-input: #0b1120;

  /* Akcenty */
  --accent: #3b82f6;             /* Szafirowy błękit Oxford */
  --accent-hover: #2563eb;       /* Ciemniejszy błękit */
  --accent-light: #60a5fa;       /* Jasny błękit lazurowy */
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-soft: rgba(59, 130, 246, 0.12);

  /* Typografia */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Kolory tekstu */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Obramowania & Cienie */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.28);
  --border-card: #1c2b47;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.7), 0 0 28px rgba(59, 130, 246, 0.2);

  /* Zaokrąglenia */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Płynność */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s var(--ease-smooth);
}

/* Reset bazowy */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent);
  color: #ffffff;
}

/* Kontener */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Typografia wspólna */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 8px;
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 6px 26px rgba(59, 130, 246, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--accent-light);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ==========================================================================
   NAGŁÓWEK NAWIGACYJNY
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  border: 1px solid var(--border-highlight);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-main);
}

/* ==========================================================================
   SEKCJA HERO
   ========================================================================== */
.hero-section {
  padding: 65px 0 50px 0;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text-block {
  max-width: 600px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulseBeaconGreen 2.2s infinite ease-in-out;
}

@keyframes pulseBeaconGreen {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 20px;
}

.highlight-text {
  color: var(--accent-light);
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-lead strong {
  color: var(--text-main);
}

.hero-button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

/* Karta z sylwetką */
.hero-portrait-block {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.portrait-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 440px;
}

.portrait-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.portrait-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.18));
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  transition: transform 0.4s var(--ease-smooth);
}

.portrait-stage:hover .portrait-image {
  transform: translateY(-4px) scale(1.02);
}

.feature-badge {
  position: absolute;
  z-index: 3;
  background: rgba(16, 23, 38, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-highlight);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background-color: var(--accent-soft);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.badge-content strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-content span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.badge-top {
  top: 10%;
  right: -10px;
}

.badge-bottom {
  bottom: 8%;
  left: -10px;
}

/* ==========================================================================
   SEKCJA PROJEKTY (PORTFOLIO)
   ========================================================================== */
.projects-section {
  padding: 60px 0 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.filter-group {
  display: flex;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background-color: var(--bg-card);
  color: #ffffff;
  border: 1px solid var(--accent);
}

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

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card);
}

.project-card.hidden {
  display: none;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #070a12;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.project-card:hover .card-thumb img {
  transform: scale(1.05);
}

.card-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 3;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 14, 23, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 2;
}

.overlay-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(4px);
  transition: transform 0.22s var(--ease-smooth);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.project-card:hover .overlay-btn {
  transform: translateY(0);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-title {
  font-size: 1.08rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

.card-tech {
  color: var(--text-dim);
  font-weight: 500;
}

.card-link {
  color: var(--accent-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.project-card:hover .card-link {
  gap: 7px;
  color: var(--accent);
}

/* ==========================================================================
   SEKCJA O MNIE & WARSZTAT
   ========================================================================== */
.about-section {
  padding: 20px 0 60px 0;
}

.about-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-title {
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.about-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.software-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}

.software-card i {
  color: var(--accent-light);
  font-size: 1.1rem;
}

.software-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.2;
}

.software-card span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.software-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

/* ==========================================================================
   SEKCJA PROCES WSPÓŁPRACY
   ========================================================================== */
.process-section {
  padding: 30px 0 70px 0;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 40px;
}

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

.process-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
  opacity: 0.85;
}

.step-title {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   SEKCJA KONTAKTOWA
   ========================================================================== */
.contact-section {
  padding: 30px 0 70px 0;
}

.contact-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 36px;
}

.contact-heading {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.contact-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.direct-email-card {
  margin-bottom: 24px;
}

.email-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.email-button {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  max-width: 320px;
  transition: all var(--transition-fast);
}

.email-button:hover {
  background-color: var(--bg-input);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.copy-pill {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  background-color: var(--accent-soft);
  color: var(--accent-light);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-highlight);
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  color: #fff;
  border-color: var(--accent);
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Formularz */
.contact-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.select-container {
  position: relative;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.form-textarea {
  resize: vertical;
  min-height: 95px;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
}

/* Stopka */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.back-top {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.back-top:hover {
  color: var(--accent);
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-card);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease-smooth);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}

.modal-image-col {
  background-color: #060912;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info-col {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.modal-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.tags-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.tag-badge {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.modal-footer-action {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast i {
  color: var(--accent-light);
}

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 960px) {
  .hero-section {
    padding: 50px 0 40px 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-portrait-block {
    order: -1;
  }

  .portrait-stage {
    max-width: 320px;
    min-height: 380px;
  }

  .portrait-image {
    max-width: 300px;
    max-height: 380px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-box {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 20px;
  }

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

  .modal-image-col {
    max-height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-stats-row {
    flex-wrap: wrap;
    gap: 14px;
  }

  .stat-divider {
    display: none;
  }

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

  .form-row-2 {
    grid-template-columns: 1fr;
  }

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

  .badge-top {
    right: 0px;
    top: 6%;
  }

  .badge-bottom {
    left: 0px;
    bottom: 6%;
  }
}
