/* === RESET === */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}


body::-webkit-scrollbar {
  display: none;               /* Chrome, Safari */
}

/* Zabezpieczenie dla obrazków */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #f0f0f0;
  background-color: #111;
  scroll-behavior: smooth;
  line-height: 1.7;
  background-image:
    radial-gradient(circle at center, rgba(255, 0, 0, 0.02) 0%, transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01) 2px, transparent 2px, transparent 6px);
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden !important;
  overflow-y: scroll;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}

body::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

header {
  margin-top: 0;
  padding-top: 0;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #111, #1a1a1a);
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto 40px;
  width: 130px;
  height: 130px;
  position: relative;
}

.hero-content {
  padding-top: 20px;
  justify-content: flex-start;
}

.logo-frame {
  position: relative;
  width: 130px;
  height: 130px;
}

.logo-border {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 0, 0, 0.45);
  animation: pulseBorder 2.5s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseBorder {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3), 0 0 16px rgba(255, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.6), 0 0 32px rgba(255, 0, 0, 0.3);
  }
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(16px);
  opacity: 0.75;
  animation: slowGlow 5s ease-in-out infinite;
  z-index: 1;
}

@keyframes slowGlow {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.logo-glass {
  opacity: 0;
  pointer-events: none;
}

.logo {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  animation: logoFade 1s ease-out forwards;
  animation-delay: 0.4s;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

@keyframes logoFade {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

/* === TEKST HERO === */
.hero h1 {
  font-size: 2.6rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #f4f4f4;
}

.tagline {
  font-size: 1.1rem;
  color: #e0e0e0;
  opacity: 1;
}

/* === CTA === */
.cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-buttons a {
  max-width: 90vw;
}

.btn {
  padding: 12px 26px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn.primary {
  background-color: #e50914;
  color: #fff;
}

.btn.secondary {
  background-color: #2a2a2a;
  color: #f1f1f1;
}

.btn.coffee {
  background-color: #c96c00;
  color: #fff;
}

.btn.coffee:hover {
  background-color: #a95600;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn.youtube {
  background-color: #ff0000;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.youtube:hover {
  background-color: #cc0000;
  transform: scale(1.03);
}

/* === DUSZEK ROGOWY === */
.floating-ghost {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  position: fixed;
  bottom: 20px;
  left: clamp(24px, 4vw, 48px);
  width: 70px;
  z-index: 1001;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
}
.floating-ghost.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-ghost img {
  width: 100%;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}
.ghost-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-style: normal;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  max-width: 260px;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.ghost-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08) transparent transparent transparent;
}
.floating-ghost:hover .ghost-tooltip {
  display: block;
}

/* === POPUP POWITALNY === */
#welcome-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
    opacity: 0;
  pointer-events: none;
   display: flex; /* ZAWSZE obecne – kontrolujemy tylko opacity */
}
#welcome-popup.visible {

   opacity: 1;
    pointer-events: auto;
}
.popup-inner {
  background: rgba(0, 0, 0, 0.6);
  padding: 32px 24px;
  border-radius: 20px;
  max-width: 560px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;

  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.popup-ghost {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px rgba(255, 200, 100, 0.3));
  opacity: 0.85;
}


.popup-text {
  font-size: 1.05rem;
  color: #f0f0f0;
  font-style: italic;
  line-height: 1.6;
  opacity: 0.9;
}

#close-popup {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
}
#close-popup:hover {
  opacity: 1;
}
#welcome-popup.hidden {
  opacity: 0;
  pointer-events: none;
}


/* === ABOUT / EKIPA / AUTOR / KONTAKT === */
section {
  padding: 80px 20px;
  text-align: center;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.subtle-text {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.8;
}
.wsparcie-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* === ZDJĘCIE EKIPY / MODAL === */
.team-photo-wrapper {
  margin-top: 30px;
}
.team-photo {
  max-width: 320px;
  width: 50%;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
    margin: 0 auto;
}
.team-photo:hover {
  transform: scale(1.03);
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
  display: block;
  margin: 5% auto;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
}




/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .logo-center {
    margin: 30px auto 20px;
  }

  .btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .subtle-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .team-photo {
    width: 90%;
    max-width: 300px;
  }

  .gargoyle {
  display: block !important;
  }

  .ghost-tooltip {
    display: none !important;
  }

  #welcome-popup .popup-inner {
    padding: 20px;
    width: 90%;
  }

  .popup-ghost {
    max-width: 80px;
  }
}
.footer-text .project-link {
  font-size: 0.85rem;
  margin-top: 5px;
  opacity: 0.6;
  text-align: center;
}

.footer-text .project-link a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 4px 0;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-text .project-link a:hover {
  color: #fff;
  text-shadow: 0 0 5px #666;
}
