/* General Body and HTML styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'monospace', monospace;
  scroll-behavior: smooth;
}

/* Background Layer - Animated SVG Titanium */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-layer-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.titanium-rect {
  animation: floatTitanium 15s ease-in-out infinite;
  transform-origin: 50px 50px;
}

.rect-1 {
  animation-delay: 0s;
}

.rect-2 {
  animation-delay: -5s;
}

.rect-3 {
  animation-delay: -10s;
}

@keyframes floatTitanium {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.6;
  }
}

/* Dynamic Island Navbar */
.mbr-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 40px);
  max-width: 1000px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 30px;
  border-radius: 10px;
  z-index: 1100;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  opacity: 0;
  animation: slideDown 0.6s ease forwards;
  animation-delay: 0.3s;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Navbar Left - Logo */
.mbr-navbar__left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.mbr-navbar__logo {
  font-size: 0.8em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mbr-navbar__logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.mbr-navbar__logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar Center - Menu */
.mbr-navbar__center {
  display: flex;
  justify-content: center;
}

.mbr-navbar__menu {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.mbr-navbar__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.mbr-navbar__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.mbr-navbar__item a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  height: 2px;
  width: calc(100% - 8px);
  background-color: #fff;
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.mbr-navbar__item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px) ;
}

.mbr-navbar__item a:hover::after {
  transform: translateX(-50%) scaleX(0.6);
}

/* Navbar Right - Socials */
.mbr-navbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.mbr-navbar__social {
  position: relative; /* ważne */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.mbr-navbar__social::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px; /* lekko wyżej niż 0 żeby wyglądało lepiej */
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  height: 2px;
  width: 60%; /* mniejsze niż full bo to ikonka */
  background-color: #fff;
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.mbr-navbar__social:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.mbr-navbar__social:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.mbr-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 100vh;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  flex-direction: column;
}

.mbr-box__magnet {
  animation: fadeInUp 1.5s ease forwards;
  opacity: 0;
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(15px);
  }
}

.mbr-hero__text {
  font-size: 4.5em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.5);
  animation: pulseGlow 4s ease-in-out infinite;
  letter-spacing: 2px;
  margin: 0;
}

.mbr-hero__subtext {
  font-size: 1.5em;
  color: #ccc;
  margin-top: 15px;
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

/* Buttons */
.mbr-buttons {
  margin-top: 30px;
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 1s;
  opacity: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.mbr-buttons__btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 15px 36px;
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mbr-buttons__btn:hover {
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.4);
}

.mbr-buttons__btn.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.mbr-buttons__btn.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Style dla dynamicznych przycisków - glass look */
.mbr-buttons__btn.btn-macro,
.mbr-buttons__btn.btn-ahk {
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    margin: 0;
    opacity: 0;
    transform: translateY(40px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mbr-buttons__btn.btn-macro.visible {
    animation: fadeInUp 0.5s ease forwards;
}

.mbr-buttons__btn.btn-ahk.visible {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.5s;
}

.mbr-buttons__btn.btn-macro:hover,
.mbr-buttons__btn.btn-ahk:hover {
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.4);
}

/* Animacje dla przycisków */
.mbr-buttons__btn.slide-out {
    animation: fadeInDown 0.4s ease forwards;
}

.mbr-buttons__btn.slide-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* MBR Arrow */
.mbr-arrow {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.mbr-arrow__link {
  display: inline-block;
  color: #fff;
  animation: floating-arrow 1.8s infinite ease-in-out;
}
.mbr-arrow__link svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

@keyframes floating-arrow {
  0% { transform: translateY(0); }
  50% { transform: translateY(12px); }
  100% { transform: translateY(0); }
}

/* Content Sections */
main {
    width: 100%;
    z-index: 10;
    position: relative;
}

.content-section {
  padding: 100px 20px;
  text-align: center;
}

#features, footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mbr-section__container {
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.content-section p {
  font-size: 1.1em;
  color: #ccc;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

.alt-bg {
  background: #050505;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.feature-item {
  text-align: left;
  padding: 20px;
  border: 1px solid #222;
  border-radius: 8px;
  background: #111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.feature-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #fff;
}

.feature-item p {
    font-size: 1em;
    color: #aaa;
    margin: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 5px 20px;
  color: #888;
  background: #0a0a0a;
  border-top: 1px solid #222;
}
