@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

:root {
  --bg: #0d0d0f;
  --text: #d6d6d6;
  --accent: #ffffff; 
  --card: #16161a;
  --border: #26262b;
  --subtitle: #a0a0a0;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background-color: var(--bg);
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.45) blur(1px); /* przyciemnia i lekko rozmywa */
  pointer-events: none; /* żeby film nie blokował kliknięć */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}


@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(20, 20, 25, 0.35); /* mniej kryjące tło */
  backdrop-filter: blur(18px) saturate(180%); /* mocniejsze rozmycie i kolory */
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* delikatna linia */
  border-radius: 0 0 15px 15px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}


.logo {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(90deg, #b3b3b3, #f5f5f5);
  -webkit-background-clip: text;
  color: transparent;
}

nav a {
  margin: 0 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

.section {
  padding: 8rem 2rem 4rem;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.section-desc {
  color: var(--subtitle);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.subtitle {
  font-weight: 500;
  color: var(--subtitle);
  margin-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(107, 107, 255, 0.15);
}

.project-logo {
  width: 70px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
  filter: grayscale(40%);
}

.project-card:hover .project-logo {
  transform: scale(1.1) rotate(-3deg);
  filter: grayscale(0%);
}

/* === KONTAKT === */
#contact {
  text-align: center;
}

.contact-container {
  background: var(--card);
  border-radius: 15px;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  margin: 0 auto;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-link {
  font-size: 2rem;
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  transform: scale(1.25);
  text-shadow: 0 0 12px currentColor;
}

.social-link.discord:hover { color: #5865f2; }
.social-link.steam:hover { color: #b8b8b8; }
.social-link.tiktok:hover { color: #ff0050; }
.social-link.youtube:hover { color: #ff4444; }
.social-link.github:hover { color: #9c9c9c; }

.section-desc {
  color: var(--subtitle);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}


footer {
  position: relative;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 2rem;
  background: rgba(20, 20, 25, 0.35); /* przezroczyste tło */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25); /* delikatny cień od góry */
  border-radius: 15px 15px 0 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}


.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .about-container {
    text-align: center;
  }

  .avatar {
    margin-bottom: 1rem;
  }

  .social-link {
    font-size: 1.6rem;
  }
}
.social-link {
  text-decoration: none !important;
  border: none;
  box-shadow: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: var(--accent);
}

#nav-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(20, 20, 25, 0.95);
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 15px 15px;
    display: none;
  }

  #nav-links.show {
    display: flex;
  }

  nav a {
    font-size: 1.1rem;
  }
}

nav a.active {
  border-bottom: 2px solid #fff;
  color: #fff;
}

.logo a {
  text-decoration: none;  
  color: inherit;     
  background: linear-gradient(90deg, #b3b3b3, #f5f5f5); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

