
/* === Global Styles === */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: white;
  scroll-behavior: smooth;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-button {
  background: none;
  border: 2px solid #00ffcc;
  color: #00ffcc;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  background: #00ffcc;
  color: #000;
}

li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

li::before {
  content: '→';
  color: #00ffcc;
  position: absolute;
  left: 0;
  top: 0.2rem;
}

/* === Header === */
header {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  background: #12102b;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.subtitle,
p.subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* === Navigation === */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

nav a {
  color: #00ffcc;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #4dff00;
  transform: scale(1.1);
}

/* === Call-to-Action Button === */
.cta-button {
  background: linear-gradient(45deg, #00ffcc, #4dff00);
  color: #000;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 8px #00ffc8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 1.8s infinite;
}
.tab-button:focus-visible,
.cta-button:focus-visible,
section:focus-visible {
  outline: 3px solid #00ffcc;
  outline-offset: 2px;
  z-index: 2;
}
.cta-button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px #00ffcc;
}

/* === Sections === */
section {
  max-width: 960px;
  margin: 3rem auto 4rem;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

section.interactive {
  cursor: pointer;
}

section.interactive:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #00ffcc;
}

.section-content {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* === Section Types === */
.section-iot,
.section-experience {
  background: rgba(0, 255, 204, 0.1);
  color: #c5ffe3;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.section-ai,
.section-skills,
.section-roadmap {
  background: rgba(77, 255, 0, 0.1);
  color: #d9ffd2;
  box-shadow: 0 0 15px rgba(77, 255, 0, 0.4);
}

.section-blockchain,
.section-education {
  background: rgba(0, 204, 204, 0.12);
  color: #b2f0f0;
  box-shadow: 0 0 15px rgba(0, 204, 204, 0.4);
}

.section-usecases,
.section-contact {
  background: rgba(45, 45, 90, 0.15);
  box-shadow: 0 0 20px rgba(77, 204, 204, 0.3);
}

.section-whyblockchain {
  background: rgba(0, 150, 100, 0.15);
  color: #bbffd8;
  box-shadow: 0 0 15px rgba(0, 150, 100, 0.4);
}

.section-impact {
  background: rgba(40, 50, 70, 0.18);
  box-shadow: 0 0 20px rgba(77, 255, 0, 0.25);
}

/* (Poprawka literówki w .section-about) */
.section-about {
  background: rgba(0, 255, 204, 0.1);
  color: #c5ffe3;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* === Headings === */
h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

/* === Timeline === */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  text-align: left;
}

.timeline li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.timeline li::before {
  content: '→';
  color: #00ffcc;
  position: absolute;
  left: 0;
  top: 0.2rem;
}

.timeline li strong {
  color: #00ffcc;
  font-weight: 700;
}

.timeline li p {
  margin: 0.5rem 0 0;
  opacity: 0.9;
}

/* === Icons === */
.icon:hover {
  transform: scale(1.08) rotate(-3deg);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
  filter: drop-shadow(0 0 8px #00ffcc);
}
.icon {
  display: block;
  margin: 0 auto 1rem;
  width: 50px;
  height: 50px;
  fill: #00ffcc;
  filter: drop-shadow(0 0 3px #00ffcc);
}

img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.2);
  cursor: pointer;
}

/* === Separator === */
.separator {
  width: 80px;
  height: 4px;
  margin: 1.5rem auto 2.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #00ffcc, #4dff00);
  box-shadow: 0 0 10px #00ffcc;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.9rem;
  opacity: 0.6;
  background: #0c0a1f;
  position: relative;
  overflow: hidden;
}

footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(270deg, #00ffcc, #4dff00, #00ffcc);
  background-size: 600% 600%;
  animation: gradientShift 10s ease infinite;
  border-radius: 4px 4px 0 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 8px #00ffc8; }
  50% { box-shadow: 0 0 24px #00ffcc; }
  100% { box-shadow: 0 0 8px #00ffc8; }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    margin: 2rem 1rem 3rem;
    padding: 1.5rem 1rem;
  }
}
h2 {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.2s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}    
/* Styl dla loadera danych blockchain */
#blockchain-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 43, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 15px;
    transition: opacity 0.5s ease;
}

.blockchain-loader-content {
    text-align: center;
    max-width: 300px;
}

.blockchain-loader-title {
    color: #00ffcc;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.blockchain-loader-desc {
    color: #a0a0ff;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.blockchain-loader-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.blockchain-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
    animation: pulse 1.5s infinite;
}

.node1 { top: 0; left: 40px; animation-delay: 0s; }
.node2 { top: 40px; right: 0; animation-delay: 0.3s; }
.node3 { bottom: 0; left: 40px; animation-delay: 0.6s; }
.node4 { top: 40px; left: 0; animation-delay: 0.9s; }

.blockchain-connection {
    position: absolute;
    width: 2px;
    background: rgba(0, 255, 204, 0.6);
    transform-origin: top left;
}

.conn1 { top: 10px; left: 50px; height: 40px; transform: rotate(45deg); }
.conn2 { top: 50px; right: 10px; height: 40px; transform: rotate(135deg); }
.conn3 { bottom: 10px; left: 50px; height: 40px; transform: rotate(225deg); }
.conn4 { top: 50px; left: 10px; height: 40px; transform: rotate(315deg); }
.date-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0 30px;
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.date-selector label {
  font-size: 1.1rem;
  color: #00ffcc;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

.date-picker {
  background: rgba(18, 16, 43, 0.8);
  color: #00ffcc;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.3);
}

.date-picker:hover {
  background: rgba(0, 255, 204, 0.1);
  box-shadow: 0 0 18px rgba(0, 255, 204, 0.5);
}

.date-picker:focus {
  outline: none;
  border-color: #4dff00;
  box-shadow: 0 0 20px rgba(77, 255, 0, 0.5);
}

.date-picker:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.load-button {
  background: linear-gradient(45deg, #00ffcc, #4dff00);
  color: #000;
  padding: 10px 25px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 8px #00ffc8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 22px;
}

.load-button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px #00ffcc;
}

.load-button:disabled {
  background: linear-gradient(45deg, #555, #777);
  box-shadow: none;
  cursor: not-allowed;
}

.date-display {
  color: #00ffcc;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 10px;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}
.navbar {
  position: relative;
  display: flex;
  justify-content: center; 
  align-items: center;
  padding: 0.5rem 1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: #00ffcc;
  font-weight: bold;
  text-decoration: none;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  padding: 0.3rem 0.6rem;
}

.nav-login {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-login .cta-button {
  padding: 0.5rem 1rem;
  border: none;
  background: #00ffcc;
  color: #12102b;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.nav-login .cta-button:hover {
  background: #00e6b8;
  transform: scale(1.05);
}
.modal {
  display: none; 
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 43, 0.75);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

/* Kontener okna */
.modal-content {
  background: #1a183a;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  color: #fff;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
  }


  
  /* Krzyżyk do zamykania */
  .close-btn {
    position: absolute;
    top: 14px;
    color: #00ffcc;
  right: 18px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.7rem;
  font-weight: bold;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
  z-index: 10;

}
.modal-content input {
  width: 100%;
  padding: 0.6rem;
  margin: 0.45rem 0;
  border: 1px solid #00ffcc;
  border-radius: 6px;
  background: #12102b;
  color: #fff;
}

.modal-content label {
  display: block;
  text-align: left;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: bold;
}

.register-link {
  display: block;
  margin: 0.6rem 0;
  color: #00ffcc;
  text-decoration: none;
  font-size: 0.95rem;
}
.register-link:hover { text-decoration: underline; }

.modal-content .cta-button {
  width: 100%;
  margin-top: 1rem;
}
.user-menu-wrap {
  position: relative;
  display: inline-block;
}

.user-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #111026;
  border: 1px solid rgba(0,255,204,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  border-radius: 10px;
  padding: 8px;
  transform-origin: top right;
  transform: translateY(-6px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms cubic-bezier(.2,.9,.3,1), opacity 150ms ease;
  z-index: 2000;
  backdrop-filter: blur(6px);
  color: #cfeee3;
}

.user-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.user-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.user-menu .menu-item:hover,
.user-menu .menu-item:focus {
  background: rgba(0,255,204,0.06);
  outline: none;
}

.user-menu .menu-item.logout {
  color: #ffb3b3;
}

.user-menu .menu-item .kbd {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.7;
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-login {
    position: static;
    margin-top: 0.7rem;
    display: flex;
    justify-content: center;
  }
  .nav-login .cta-button {
    width: 100%;
    max-width: 220px;
    font-size: 1.05rem;
  }
}
.tabs {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.tab-button {
  flex: 1 1 130px; 
  max-width: 160px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 600px) {
  .tab-button {
    flex: 1 1 45%;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}
