@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #ff3366;
  --bg: #111111;
  --text: #ffffff;
  --muted: #888888;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a:focus-visible, button:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

/* ====== NAV ====== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 22px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 50px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav .logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.25s;
}

nav a:hover { color: #fff; }

/* ====== ELEMENTY WSPÓLNE ====== */
.cta {
  display: inline-block;
  padding: 14px 30px;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ====== HERO ====== */
#hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #111 45%, #2a2a2a 100%);
}

.hero-text {
  padding: 0 50px 0 60px;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: #fff;
}

.hero-text p {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
}

.hero-cta { margin-top: 36px; }

.hero-image {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%) brightness(0.85);
  transition: filter 0.5s;
}

.hero-image::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 120px;
  background: linear-gradient(to right, #111, transparent);
  z-index: 1;
}

/* ====== SECTIONS ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 30px;
}

section { border-top: 1px solid rgba(255,255,255,0.04); }
#about { border-top: none; }

.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.8;
}

/* ====== GRID & KAFELKI ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.project-card {
  background: #161616;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(255, 51, 102, 0.3);
}

.thumbnail {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #222;
}

.card-body { padding: 26px 24px; }

.card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.project-card p {
  font-size: 0.86rem;
  color: #777;
  max-width: 100%;
}

/* ====== O MNIE & SKILLS ====== */
.about-row {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  margin-top: 40px;
}

.about-left, .about-right { flex: 1; }

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.skill-tag {
  padding: 6px 14px;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #999;
  transition: all 0.25s;
}

.skill-tag:hover {
  color: #fff;
  border-color: var(--accent);
}

p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ====== NOWE DODATKI WIZUALNE ====== */

/* Animowany Equalizer w Muzyce */
.mock-waveform {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 36px;
  margin-top: 24px;
}
.mock-waveform span {
  display: block;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1.1s infinite ease-in-out;
}
.mock-waveform span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.mock-waveform span:nth-child(2) { height: 100%; animation-delay: 0.4s; }
.mock-waveform span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.mock-waveform span:nth-child(4) { height: 80%; animation-delay: 0.5s; }
.mock-waveform span:nth-child(5) { height: 30%; animation-delay: 0.1s; }
.mock-waveform span:nth-child(6) { height: 90%; animation-delay: 0.3s; }
.mock-waveform span:nth-child(7) { height: 50%; animation-delay: 0.2s; }
.mock-waveform span:nth-child(8) { height: 75%; animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Karta Pomocy Psychologicznej */
.support-box {
  background: #161616;
  border: 1px solid rgba(162, 0, 255, 0.2);
  border-left: 4px solid var(--accent);
  padding: 30px;
  border-radius: 8px;
}
.support-box h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}
.helplines {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.helplines li {
  font-size: 0.88rem;
  color: #ddd;
  background: #1f1f1f;
  padding: 10px 14px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.03);
}
.helplines strong {
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}
.support-note {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
}

/* UWAGA: Nowy blok ostrzegawczy na stronie wsparcia */
.crisis-notice {
  margin: 24px auto;
  padding: 16px 20px;
  background: rgba(255, 51, 102, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ffccd7;
  max-width: 600px;
  text-align: left;
}
.crisis-notice strong {
  color: #fff;
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 40px 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #444;
  font-size: 0.78rem;
  letter-spacing: 1px;
}
footer span { color: var(--accent); }

/* ====== REVEAL ====== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: 0.3s;
}

@media (max-width: 992px) {
  #hero {
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 120px;
    text-align: center;
  }
  .hero-text { padding: 0 20px; order: 2; }
  .hero-text p { margin: 20px auto 0; }
  .hero-image {
    height: 400px;
    order: 1;
    mask-image: linear-gradient(to bottom, black 80%, transparent);
  }
  .hero-image::before { display: none; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 12px 24px; }

  .nav-links {
    position: absolute;
    top: 100%; right: -100%;
    height: 100vh; width: 75%;
    background: #0d0d0d;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    gap: 28px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.active { right: 0; }
  
  .about-row { flex-direction: column; gap: 35px; }
  .container { padding: 70px 20px; }

  #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
  #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}