* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #050508;
  background-image: url(./tlo.png);
  background-size: cover ;
  color: white;
  text-align: center;
  font-family: "Press Start 2P", system-ui;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

.bg-glow-1 {
  position: fixed;
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 183, 183, 0.4) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(60px);
}

.bg-glow-2 {
  position: fixed;
  bottom: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(175, 175, 175, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(70px);
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* KONTENER GŁÓWNY */
.glowny {
  display: flex;
  width: 100%;
  max-width: 1400px;
  justify-content: space-around;
  align-items: center;
  padding: 40px 20px;
  z-index: 5;
}

.srodek {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 2.8em;
  margin-bottom: 25px;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(43, 43, 43, 0.3), 3px 3px black;
}

/* TELEFON STYLIZACJA I PŁYNNA ANIMACJA */
.phone-wrapper {
  position: relative;
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1), z-index 0s 0s;
  will-change: transform;
}

.phone-wrapper.expanded {
  z-index: 2000;
}

.phone {
  position: relative;
  display: flex;
  justify-content: center;
  height: 550px;
  width: 300px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  background: #09090b;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.9),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 0 20px rgba(235, 235, 235, 0.1);
  cursor: pointer;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
  overflow: hidden;
}

.phone:hover {
  border-color: rgba(235, 235, 235, 0.8);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(235, 235, 235, 0.3);
}

.phone-wrapper.expanded .phone {
  border-color: rgba(235, 235, 235, 0.8);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(235, 235, 235, 0.4);
  background: #000;
}

/* Wcięcie Notch */
.notch {
  position: absolute;
  top: 12px;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 70px;
  height: 16px;
  border-radius: 20px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  transition: opacity 0.4s ease;
}

.notch::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #00e5ff;
}

.phone-wrapper.expanded .notch {
  opacity: 0;
}

/* Przyciski boczne */
.btn-top, .btn-bottom {
  position: absolute;
  right: -6px;
  background: linear-gradient(180deg, #27272a, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 4px;
  border-radius: 0 3px 3px 0;
}
.btn-top { top: 90px; height: 40px; }
.btn-bottom { top: 145px; height: 65px; }

/* Ekran i Odtwarzacz */
.ekran {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background-color: #000;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ekran iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1), width 0.6s cubic-bezier(0.25, 1, 0.3, 1), height 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.phone-wrapper.expanded .ekran iframe {
  pointer-events: auto;
  transform: rotate(-90deg);
  width: 480px;
  height: 280px;
}

/* Nakładka HUD na telefonie */
.hud {
  position: absolute;
  top: 36px;
  left: 0;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.phone-wrapper.expanded .hud {
  opacity: 0;
}

/* ODZNAKA LIVE / OFFLINE */
.odznaka {
  background: rgba(239, 68, 68, 0.85);
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 1px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  transition: all 0.3s ease;
}

.odznaka::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1s infinite alternate;
}

.odznaka.offline {
  background: rgba(82, 82, 91, 0.85);
  box-shadow: 0 0 8px rgba(82, 82, 91, 0.3);
}

.odznaka.offline::before {
  background: #a1a1aa;
  animation: none;
}

@keyframes pulse {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* PRZYCISK ZAMKNIĘCIA */
.zamknij {
  position: fixed;
  top: 85px;
  right: 85px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.zamknij.active {
  opacity: 1;
  pointer-events: auto;
}

.zamknij:hover {
  background: rgba(255, 0, 0, 0.6);
  transform: scale(1.1);
}

/* KAFELKI SOCIAL MEDIA */
.socials {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-bottom: 35px;
}

.socials .kafel {
  position: relative;
  width: 170px;
  height: 190px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  margin: 0 -25px;
  backdrop-filter: blur(16px);
  transform: rotate(calc(var(--r) * 1deg));
  text-decoration: none;
  overflow: hidden;
}

.socials:hover .kafel {
  transform: rotate(0deg);
  margin: 0 12px;
}

.socials .kafel::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}

.socials .kafel .icon {
  font-size: 2.8em;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
  margin-bottom: 20px;
}

.kafel.kick{
  margin-top: 28px;
}

.kafel.ig{
  margin-top: 28px;
}

/* DEDYKOWANE KOLORY */
.kafel.kick:hover {
  border-color: #53fc18;
  box-shadow: 0 0 25px rgba(83, 252, 24, 0.3);
}
.kafel.kick:hover .icon {
  color: #53fc18; transform: scale(1.15);
  filter: drop-shadow(0 0 5px #53fc18);
}

.kafel.dc:hover {
  border-color: #5865f2;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.3);
}
.kafel.dc:hover .icon {
  color: #5865f2; transform: scale(1.15);
  filter: drop-shadow(0 0 5px #5865f2);
}

.kafel.tt:hover {
  border-color: #fe2c55;
  box-shadow: 0 0 25px rgba(255, 0, 80, 0.3);
}
.kafel.tt:hover .icon {
  color: #fe2c55; transform: scale(1.15);
  filter: drop-shadow(0 0 5px #fe2c55);
}

.kafel.ig:hover {
  border-color: #DD2A7B;
  box-shadow: 0 0 25px rgba(221, 42, 123, 0.3);
}
.kafel.ig:hover .icon {
  color: rgb(221, 42, 123); transform: scale(1.15);
  filter: drop-shadow(0 0 5px #DD2A7B);
}

/* PROFILOWE */
.pfp {
  margin-top: 25px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 30px rgba(105, 105, 105, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pfp:hover {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 30px rgba(150, 150, 150, 0.6);
}

.pfp img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #3d3d3d;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 950px) {
  .glowny {
    flex-direction: column;
    gap: 50px;
  }

  h1 {
    font-size: 2em;
  }

  .socials .kafel {
    width: 140px;
    height: 160px;
    margin: 0 -15px;
  }
}