* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; font-family: helvetica, sans-serif; }

body.disable-transitions * { transition: none !important; }

.swiper-container { width: 100vw; height: 100vh; }
.swiper-slide { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; font-size: 24px; color: #fcfcfc; }
.swiper-slide-cover { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: no-repeat center center / cover; z-index: 1; }
.fade-overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0, 0, 0, 1); z-index: 2; opacity: 0; transition: opacity 1.5s ease; }
 .swiper-pagination-bullet { display : none }

.swiper-slide.swiper-slide-prev .fade-overlay,
.swiper-slide.swiper-slide-next .fade-overlay { opacity: 1; }
.slide-label { position: absolute; bottom: 20px; left: 20px; z-index: 3; font-size: 18px; padding: 6px 12px; border-radius: 4px; }
.slide-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.overlay-logo { position: fixed; top: 0; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.65); padding: 10px 20px; z-index: 999; color: white; font-size: 20px; letter-spacing: 2px; font-weight: bold; }
.overlay-logo a  { display : block }
.side-button, .bottom-button { background: #000; color: #fff; padding: 15px 20px; cursor: pointer; font-weight: bold; z-index: 1000; text-align: center; }
.left-button { position: fixed; font-size: 20px; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); left: 0; top: 50%; transform: translateY(-50%) rotate(180deg); }
.right-button { position: fixed; font-size: 20px; writing-mode: vertical-rl; right: 0; top: 50%; transform: translateY(-50%); }
.bottom-button-desktop { position: fixed; font-size: 20px; bottom: 0; left: 50%; transform: translateX(-50%); }
.side-panel, .bottom-panel { position: fixed; background: rgba(0, 0, 0, 0.9); color: #fff; z-index: 999; transition: transform 0.5s ease; padding: 30px; overflow-y: auto; }
.left-panel { top: 0; bottom: 0; left: 0; width: 480px; transform: translateX(-100%); }
.right-panel { top: 0; bottom: 0; right: 0; width: 480px; transform: translateX(100%); }
.bottom-panel { left: 0; bottom: 0; width: 100%; transform: translateY(100%); }
.open.left-panel { transform: translateX(0); }
.open.right-panel { transform: translateX(0); }
.open.bottom-panel { transform: translateY(0); }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 50px; cursor: pointer; color: #fff; }
.button-bar { display: none; }

.panel-content a { color: white ; text-decoration: none }
    .panel-content a:hover  { text-decoration: underline  }

  @media (max-width: 1400px) {
  
  }


  @media (max-width: 1200px) {
  
  }

  @media (max-width: 992px) {
  .overlay-logo { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
  .left-button,
  .right-button,
  .bottom-button-desktop {
    display: none;
  }

  .button-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .button-bar .side-button,
  .button-bar .bottom-button {
    flex: 1;
    font-size: 19px;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: white;
  }

  .slide-label-wrapper {
      position: absolute;
      bottom: 300px;
      right: 32px;
      z-index: 10001;
      width: auto;


  }

 .slide-label {
    display: block !important;
    position: relative;
    bottom: 0px; /* net onder je logo */
    transform: rotate(90deg);
    transform-origin: top right;
    font-size: 16px;
    padding: 6px 10px;
    z-index: 10001;
    white-space: nowrap;

    background-color: rgba(0,0,0,0.4);
  }


  /* Panels from bottom */
  body.mobile #aboutPanel.left-panel,
  body.mobile #skillsPanel.right-panel,
  body.mobile #contactPanel.bottom-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    padding: 30px;
    z-index: 999;
    height: auto;
    max-height: 90vh;
    overflow: auto;
    padding-bottom: 50px;
  }

  body.mobile #aboutPanel.left-panel.open,
  body.mobile #skillsPanel.right-panel.open,
  body.mobile #contactPanel.bottom-panel.open {
    transform: translateY(0);
  }
}



@media (min-width: 769px) {
  .left-panel { top: 50%; height: 65%; transform: translateY(-50%) translateX(-100%); }
  .left-panel.open { transform: translateY(-50%) translateX(0); }
  .right-panel { top: 50%; height: 65%; transform: translateY(-50%) translateX(100%); }
  .right-panel.open { transform: translateY(-50%) translateX(0); }

  .bottom-panel {
    left: 50%;
    bottom: 0;
    width: 50%;
            overflow-y: auto;
    transform: translateX(-50%) translateY(100%);
    box-sizing: border-box;
  }
  .bottom-panel.open {
    transform: translateX(-50%) translateY(0);
  }

  body.about-open .side-button,
  body.skills-open .side-button,
  body.contact-open .side-button,
  body.about-open .bottom-button-desktop,
  body.skills-open .bottom-button-desktop,
  body.contact-open .bottom-button-desktop {
    display: none !important;
  }

}