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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 35%),
    #020617;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 8%;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  color: #38bdf8;
  font-size: 26px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

nav a:hover {
  color: #38bdf8;
}

/* HERO */

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 50px;
  padding: 80px 8%;
}

.hero-content {
  min-width: 0;
}

.tag {
  color: #38bdf8;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  margin: 12px 0;
  font-size: clamp(55px, 9vw, 120px);
  line-height: 1;
}

.hero-text {
  max-width: 650px;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.7;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.primary {
  background: #38bdf8;
  color: #020617;
}

.secondary {
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
  transform: translateY(-4px);
}

.hero-card {
  width: 100%;
  max-width: 380px;
  justify-self: end;
  padding: 35px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.hero-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 22px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
}

.hero-card h2 {
  font-size: 28px;
}

.hero-card p {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* SEKCJE */

.section {
  padding: 75px 8%;
}

.section h2 {
  margin-bottom: 30px;
  font-size: clamp(30px, 4vw, 38px);
}

/* UKŁAD KART */

.cards,
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* KARTY ZE ZDJĘCIAMI */

.card,
.social-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #f8fafc;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
  overflow: hidden;
}

.card img,
.social-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: rgba(2, 6, 23, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card h3,
.social-card span {
  display: block;
  margin: 18px 20px 10px;
  color: #38bdf8;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.card p,
.social-card p {
  margin: 0 20px 22px;
  color: #cbd5e1;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card:hover,
.social-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.12);
  background: rgba(15, 23, 42, 0.9);
}

/* KOLORY HOVER DLA KONT */

.steam:hover {
  border-color: #66c0f4;
}

.discord:hover {
  border-color: #5865f2;
}

.youtube:hover {
  border-color: #ff0033;
}

.roblox:hover {
  border-color: #ffffff;
}

/* STOPKA */

footer {
  padding: 25px 8%;
  text-align: center;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* TABLETY */

@media (max-width: 950px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    justify-self: start;
  }

  .cards,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* TELEFONY */

@media (max-width: 600px) {
  header {
    padding: 16px 6%;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  .hero,
  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero {
    padding-top: 55px;
    padding-bottom: 55px;
    gap: 35px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-text {
    font-size: 18px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    max-width: 100%;
    padding: 28px;
  }

  .avatar {
    width: 110px;
    height: 110px;
    font-size: 54px;
  }

  .cards,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .social-card {
    min-height: auto;
  }

  .card img,
  .social-card img {
    height: 180px;
  }
}

/* ZNAJOMI */

#znajomi .friends-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.friend-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #f8fafc;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
  overflow: hidden;
}

.friend-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.12);
  background: rgba(15, 23, 42, 0.9);
}

.friend-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: rgba(2, 6, 23, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-card span {
  display: block;
  margin: 18px 20px 10px;
  color: #38bdf8;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.friend-card p {
  margin: 0 20px 22px;
  color: #cbd5e1;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 950px) {
  #znajomi .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #znajomi .friends-grid {
    grid-template-columns: 1fr;
  }

  .friend-card {
    min-height: auto;
  }

  .friend-card img {
    height: 180px;
  }
}

.project-card:hover {
  border-color: #22c55e;
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.14);
}

#projekty .social-card span {
  color: #22c55e;
}