/* ═══════════════════════════════════════════════════
   MATEUSZ KRAUT — Premium Portfolio
   style.css
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          #080608;
  --bg-2:        #0d090c;
  --surface:     rgba(255,255,255,0.04);
  --surface-h:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);

  --burg:        #6b1c2e;
  --burg-mid:    #9b2541;
  --burg-light:  #c23258;
  --burg-glow:   rgba(155,37,65,0.25);

  --gold:        #c9a96e;
  --gold-light:  #e8c990;

  --text:        #f0ece8;
  --text-2:      rgba(240,236,232,0.55);
  --text-3:      rgba(240,236,232,0.30);

  /* Typography */
  --font-serif:  'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:   'Syne', system-ui, sans-serif;
  --font-mono:   'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --section-py:  8rem;
  --container:   72rem;

  /* Radius */
  --r-sm:  0.5rem;
  --r-md:  1rem;
  --r-lg:  1.5rem;
  --r-xl:  2rem;
  --r-2xl: 3rem;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm:   0 0.125rem 0.5rem rgba(0,0,0,0.4);
  --shadow-md:   0 0.5rem 2rem rgba(0,0,0,0.5);
  --shadow-lg:   0 1.5rem 4rem rgba(0,0,0,0.6);
  --shadow-burg: 0 0.5rem 2rem var(--burg-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; }
textarea { resize: vertical; }

/* ── AMBIENT BACKGROUND ─────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
  animation: blobDrift 20s ease-in-out infinite alternate;
}

.blob-1 {
  width: 40rem; height: 40rem;
  background: radial-gradient(circle, var(--burg-mid), transparent 70%);
  top: -10rem; left: -10rem;
  animation-duration: 24s;
}

.blob-2 {
  width: 30rem; height: 30rem;
  background: radial-gradient(circle, #3a0a18, transparent 70%);
  bottom: 10rem; right: -8rem;
  animation-duration: 18s;
  animation-delay: -6s;
}

.blob-3 {
  width: 20rem; height: 20rem;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: 50%; left: 40%;
  opacity: 0.06;
  animation-duration: 30s;
  animation-delay: -12s;
}

@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3rem, 2rem) scale(1.05); }
  100% { transform: translate(-2rem, 3rem) scale(0.95); }
}

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

/* ── LAYOUT ─────────────────────────────────────── */
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-py);
  position: relative;
  z-index: 2;
}

/* ── GLASS CARD ─────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-h);
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-h);
}

/* ── GLASS TAG ─────────────────────────────────── */
.glass-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
}

.tag-dot {
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: var(--burg-light);
  box-shadow: 0 0 0.4rem var(--burg-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0.4rem var(--burg-light); }
  50%       { opacity: 0.5; box-shadow: 0 0 0.8rem var(--burg-light); }
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; }

.section-label {
  color: var(--burg-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--burg-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--r-lg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease);
}

.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-0.15rem); }
.btn:active { transform: translateY(0.05rem); }

.btn-primary {
  background: linear-gradient(135deg, var(--burg), var(--burg-mid));
  color: #fff;
  box-shadow: var(--shadow-burg);
}

.btn-primary:hover {
  box-shadow: 0 0.75rem 2.5rem rgba(155,37,65,0.45);
}

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

.btn-ghost:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
  box-shadow: var(--shadow-sm);
}

.btn.full-width {
  width: 100%;
  justify-content: center;
}

/* ── REVEAL ANIMATIONS ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 6vw 6rem;
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 36rem;
}

.hero-tag { align-self: flex-start; }

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.2rem;
}

.title-mateusz {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.02em;
}

.title-kraut {
  font-family: var(--font-sans);
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--text) 0%, var(--burg-light) 40%, var(--gold) 70%, var(--text) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s ease-in-out infinite alternate;
}

@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 26rem;
}

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

/* Hero card */
.hero-card-wrap {
  perspective: 60rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: min(22rem, 90vw);
  padding: 2.5rem;
  transform-style: preserve-3d;
  transition: transform 0.1s linear, border-color 0.3s var(--ease);
  cursor: default;
  will-change: transform;
}

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}

.card-inner { position: relative; z-index: 1; }

.card-label {
  color: var(--burg-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.65rem;
  margin-bottom: 1.5rem;
}

.card-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stack-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background: rgba(155,37,65,0.15);
  border: 1px solid rgba(155,37,65,0.3);
  color: var(--burg-light);
  letter-spacing: 0.05em;
}

.card-metric {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric { display: flex; flex-direction: column; gap: 0.2rem; }

.metric-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-divider {
  width: 1px; height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 6vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-3);
}

.scroll-line {
  width: 1px; height: 3rem;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about { background: linear-gradient(to bottom, transparent, rgba(107,28,46,0.04), transparent); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.about-right p {
  color: var(--text-2);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.atag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  color: var(--text-2);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-card {
  padding: 2rem;
}

.skill-icon {
  width: 3rem; height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(155,37,65,0.12);
  border: 1px solid rgba(155,37,65,0.2);
  color: var(--burg-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.skill-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.skill-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--text-3);
  font-size: 0.72rem;
}

.skill-list li::before {
  content: '→ ';
  color: var(--burg-light);
}

/* ═══════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════ */
.portfolio { }

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

.project-card {
  overflow: hidden;
  cursor: pointer;
}

.project-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  transition: transform 0.4s var(--ease);
}

/* Unique gradient for each project */
.project-card:nth-child(1) .project-placeholder { background: linear-gradient(135deg, #1a0810, #3d0f20); }
.project-card:nth-child(2) .project-placeholder { background: linear-gradient(135deg, #080d1a, #0f2040); }
.project-card:nth-child(3) .project-placeholder { background: linear-gradient(135deg, #0d1a08, #1a3d0f); }
.project-card:nth-child(4) .project-placeholder { background: linear-gradient(135deg, #1a1208, #3d2e0f); }
.project-card:nth-child(5) .project-placeholder { background: linear-gradient(135deg, #180818, #300830); }
.project-card:nth-child(6) .project-placeholder { background: linear-gradient(135deg, #08161a, #0f3038); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-placeholder { transform: scale(1.04); }

.project-link {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--burg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  transform: translateY(0.5rem);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: var(--shadow-burg);
}

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

.project-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ptag {
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  background: rgba(155,37,65,0.1);
  border: 1px solid rgba(155,37,65,0.2);
  color: var(--burg-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.contact { }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-left p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.contact-link i {
  width: 2rem; height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(155,37,65,0.12);
  border: 1px solid rgba(155,37,65,0.2);
  color: var(--burg-light);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.contact-link:hover { color: var(--text); }

/* Form */
.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-group label {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
}

.field-group input,
.field-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--text-3);
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: rgba(155,37,65,0.5);
  background: rgba(155,37,65,0.04);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  padding: 2rem 0 8rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════
   macOS DOCK
   ═══════════════════════════════════════════════════ */
.dock {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.dock-inner {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: rgba(20, 12, 16, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  box-shadow:
    0 1.5rem 4rem rgba(0,0,0,0.6),
    0 0 0 0.5px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.dock-separator {
  width: 1px; height: 2rem;
  background: rgba(255,255,255,0.1);
  margin-inline: 0.25rem;
  align-self: center;
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring);
}

.dock-icon {
  width: 2.75rem; height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.25s var(--ease-spring);
}

.dock-item:hover { transform: translateY(-0.5rem); }
.dock-item:hover .dock-icon {
  background: rgba(155,37,65,0.2);
  border-color: rgba(155,37,65,0.3);
  color: var(--text);
  box-shadow: 0 0.25rem 1rem rgba(155,37,65,0.2);
}

/* Neighbour scale effect (JS-driven) */
.dock-item.neighbour-1 { transform: translateY(-0.35rem) scale(0.95); }
.dock-item.neighbour-2 { transform: translateY(-0.15rem) scale(0.9); }

.dock-dot {
  width: 0.25rem; height: 0.25rem;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.dock-item.active .dock-dot {
  opacity: 1;
  background: var(--burg-light);
  box-shadow: 0 0 0.3rem var(--burg-light);
}

.dock-tip {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.3rem);
  background: rgba(20,12,16,0.9);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dock-item:hover .dock-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 75rem) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 60rem) {
  :root { --section-py: 5rem; }

  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 5vw 5rem;
    min-height: auto;
    gap: 3rem;
  }

  .hero-inner { max-width: 100%; }
  .hero-card-wrap { justify-content: flex-start; }
  .scroll-hint { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 40rem) {
  .title-mateusz { font-size: clamp(2.5rem, 10vw, 4rem); }
  .title-kraut   { font-size: clamp(3rem, 12vw, 5.5rem); }

  .dock-inner { padding: 0.5rem 0.6rem; gap: 0.25rem; }
  .dock-icon  { width: 2.25rem; height: 2.25rem; font-size: 0.85rem; border-radius: 0.65rem; }

  .footer .container { flex-direction: column; gap: 0.5rem; }
}
/* ── CERTIFICATE LINKS ──────────────────────────── */
.dynamic-links {
  list-style: none !important; /* Całkowite wyłączenie kropek/kwadratów */
  padding-left: 0 !important;   /* Usunięcie wcięcia listy */
}

.dynamic-links li {
  margin-bottom: 0.8rem;
  padding: 0 !important;
  display: block !important;
  list-style: none !important;
}

/* Blokada dla ewentualnych ukrytych znaczników z głównego stylu */
.dynamic-links li::before,
.dynamic-links li::after {
  content: none !important;
  display: none !important;
}

.dynamic-links li:last-child {
  margin-bottom: 0;
}

.cert-link {
  display: flex; /* Powrót do czystego flexa, bo bez śmieci z listy nic się nie rozjedzie */
  align-items: center;
  gap: 0.7rem;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
  box-sizing: border-box;
}

.cert-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

/* Efekt Hover */
.cert-link:hover {
  color: var(--text);
  background: rgba(155, 37, 65, 0.15); /* Twój burgund */
  border-color: rgba(155, 37, 65, 0.3);
  transform: translateX(6px); /* Lekkie schoowanie/wysunięcie w prawo */
}

.cert-link i.fa-check-double {
  color: var(--gold); /* Twój złoty akcent */
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cert-link:hover i.fa-check-double {
  transform: scale(1.1);
}
