/* ================================================================
   index.css – Homepage only (split-panel)
   ZMIANY:
   – usunięty #preloader
   – .nav-available z pulsującą kropką
   – kulki (canvas) działają poprawnie (fix w index.js)
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap");

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

:root {
  --p: #7c3aed;
  --p2: #a855f7;
  --p3: #c084fc;
  --blk: #060608;
  --g1: #111115;
  --g2: #1a1a20;
  --s: #c0c0c0;
  --txt: #f0f0f0;
  --mut: #666;
  --accent: #a855f7;
}

html,
body {
  height: 100%;
  background: var(--blk);
  color: var(--txt);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
  }
}

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--p), var(--p2));
}

/* ================================================================
   NOISE OVERLAY
   ================================================================ */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ================================================================
   CURSOR
   ================================================================ */
#cursor,
#cursor-trail {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  #cursor {
    display: block;
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--p2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
      transform 0.12s,
      width 0.2s,
      height 0.2s;
    mix-blend-mode: difference;
  }
  #cursor-trail {
    display: block;
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
  }
}

/* ================================================================
   NAV
   ================================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 0.9rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
#nav .logo,
#nav .nav-right {
  pointer-events: auto;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  animation: fadeDown 0.7s 0.4s forwards;
}
.logo span {
  color: var(--p2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  animation: fadeDown 0.7s 0.55s forwards;
}

/* Dostępni teraz z pulsem */
.nav-available {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.nav-avail-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: availPulse 2s ease-in-out infinite;
}

@keyframes availPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

.nav-avail-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

/* ================================================================
   BACKGROUND CANVAS – full page
   ================================================================ */
#c-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ================================================================
   PANELS WRAP
   ================================================================ */
.panels-wrap {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: row;
}

@media (max-width: 768px) {
  .panels-wrap {
    position: relative;
    flex-direction: column;
    height: 100vh;
    min-height: 100svh;
  }
}

/* ================================================================
   SINGLE PANEL
   ================================================================ */
.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    flex 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    background 0.4s;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(124, 58, 237, 0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s;
}
.panel:hover::before {
  opacity: 1;
}
.panel:hover {
  flex: 1.45;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.04) 0%,
    transparent 20%,
    transparent 80%,
    rgba(124, 58, 237, 0.04) 100%
  );
  pointer-events: none;
}

/* ================================================================
   PANEL DIVIDER
   ================================================================ */
.panel-divider-right {
  position: absolute;
  top: 10%;
  right: 0;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(124, 58, 237, 0.5) 30%,
    rgba(168, 85, 247, 0.5) 70%,
    transparent 100%
  );
}
.panel:last-child .panel-divider-right {
  display: none;
}

/* ================================================================
   PANEL CONTENT
   ================================================================ */
.panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2rem 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.panel-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p2);
  transition: all 0.4s;
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
}
.panel-icon svg {
  width: 28px;
  height: 28px;
}

.panel:hover .panel-icon {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow:
    0 0 30px rgba(124, 58, 237, 0.35),
    0 0 60px rgba(124, 58, 237, 0.12);
  transform: scale(1.08);
}

.panel-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color 0.3s;
}
.panel:hover .panel-title {
  background: linear-gradient(135deg, #fff 0%, var(--p2) 80%, var(--p3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-desc {
  color: var(--mut);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 220px;
  transition: color 0.3s;
}
.panel:hover .panel-desc {
  color: rgba(255, 255, 255, 0.5);
}

/* ================================================================
   VERTICAL SIDE LABEL
   ================================================================ */
.panel-vertical-label {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  font-family: "JetBrains Mono", monospace;
  color: rgba(124, 58, 237, 0.35);
  transition: color 0.3s;
  white-space: nowrap;
}
.panel:hover .panel-vertical-label {
  color: rgba(168, 85, 247, 0.6);
}

/* ================================================================
   BOTTOM BAR
   ================================================================ */
.bottom-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}
.typed-cursor-b {
  animation: blink 0.8s infinite;
  color: var(--p2);
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 768px) {
  .panels-wrap {
    flex-direction: column;
  }
  .panel {
    flex: 1;
    min-height: 0;
  }
  .panel:hover {
    flex: 1.3;
  }
  .panel-divider-right {
    display: none;
  }
  .panel-divider-bottom {
    display: block;
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(124, 58, 237, 0.45),
      transparent
    );
  }
  .panel:last-child .panel-divider-bottom {
    display: none;
  }
  .panel-vertical-label {
    display: none;
  }
  .panel-title {
    font-size: 2.4rem;
  }
  #nav {
    padding: 0.8rem 1.4rem;
  }
  .bottom-bar {
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .panel-content {
    padding: 1.5rem 1.5rem;
  }
  .panel-title {
    font-size: 2rem;
  }
}
