:root {
  --primary-bg: rgb(38, 77, 141);
  --secondary-bg: rgba(255, 255, 255, 1);
  --dark-bg: #1f1f1f;
  --secondary-rgb: 114, 17, 245;
  --primary-rgb: 0, 242, 254;
  --secondary: rgb(var(--secondary-rgb));
  --primary: rgb(var(--primary-rgb));
  --secondary-text: #fff;
  --text-light-rgb: 225, 225, 225;
  --text-dark-rgb: 33, 43, 59;

  --container-max-width: 1440px;

  --text-light: rgb(var(--text-light-rgb));
  --text-dark: rgb(var(--text-dark-rgb));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
  background-color: var(--primary-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h2 {
  font-size: 2rem;
}

a {
  color: rgba(var(--primary-rgb), 0.75);
  transition: color 0.1s ease-in-out;

  &:hover {
    color: rgba(var(--primary-rgb), 1);
  }
}

.container {
  max-width: var(--container-max-width);
  display: flex;
  margin: auto;
  flex-wrap: wrap;
}

.container,
.container-fluid,
.row {
  padding: 0;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 0;

  @media (max-width: 40em) {
    flex-wrap: wrap;
  }
}

p {
  text-align: justify;
}

/* UTILITIES */

.flex-1 {
  flex: 1;
}

.text-light {
  color: var(--text-light);
}

.text-lighter {
  color: rgba(var(--text-light-rgb), 0.75);
}

.text-dark {
  color: var(--text-dark);
}

.dark-bg {
  background: radial-gradient(circle at center, #212b3b 0%, #1f1f1f 100%);

  background-color: #1f1f1f !important;
}

.glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  filter: blur(80px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: move 5s infinite alternate;
}

.blob-1 {
  width: 40vw;
  height: 40vw;
  background: rgb(var(--primary-rgb));
  top: -100px;
  left: -10%;
  opacity: 0.1;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  background: rgb(var(--secondary-rgb));
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes move {
  from {
    transform: translate(0, 0) scale(0.5);
  }
  to {
    transform: translate(100px, 150px) scale(1.2);
  }
}

.futuristic-data-bg {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1;
  overflow: hidden;

  @media (max-width: 40em) {
    bottom: 0;
  }
}

.futuristic-data-bg svg {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  display: block;
}

.elevated {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* HERO SECTION */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation-delay: 0.3s;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-left {
  opacity: 0;
  animation-delay: 0.3s;
  animation: fadeInLeft 0.6s ease-out forwards;
}

.hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  height: 100dvh;
  padding-top: 53px;

  @media (max-width: 640px) {
    padding-bottom: 6rem;
  }

  @media (max-width: 40em) {
    padding-bottom: unset;
    max-height: 745px;
  }
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100vw;
  height: 100%;
  z-index: 0;
}

.brand-title {
  letter-spacing: -1px;

  background: linear-gradient(
    90deg,
    var(--secondary) 0%,
    var(--primary) 33%,
    var(--secondary) 100%
  );

  /* Rozciągamy tło bardziej, by animacja była gładsza */
  background-size: 300% auto;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.2));

  /* Spowalniamy animację dla lepszego efektu "płynięcia" */
  animation: shine 20s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center; /* Przesuwamy o pełną szerokość powtórzenia */
  }
}

.btn-group {
  width: 100%;
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn {
  min-width: 11rem;

  text-decoration: none;
  padding: 1rem;
  font-size: inherit;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;

  @media (min-width: 1100px) {
    font-size: 1.5rem;
    min-width: 16rem;
  }
}

.outline-btn {
  border: 1px solid var(--text-light);
  color: var(--text-light);
  background-color: transparent;

  &:hover {
    box-shadow:
      0 0 10px rgba(var(--text-light-rgb), 0.2),
      0 0 40px rgba(var(--text-light-rgb), 0.2);
    color: var(--text-light);
  }

  &:active {
    box-shadow: 0 0 10px rgba(var(--text-light-rgb), 0.7);
  }
}

.neon-btn {
  border: 1px solid var(--text-light);
  color: var(--text-light);
  background-color: var(--secondary);

  &:hover {
    box-shadow:
      0 0 10px rgba(var(--text-light-rgb), 0.2),
      0 0 40px rgba(var(--text-light-rgb), 0.2);
    border: 1px solid rgba(var(--text-light-rgb), 0.9);
    color: var(--text-light);
  }

  &:active {
    box-shadow: 0 0 10px rgba(var(--text-light-rgb), 0.7);
  }
}

.left-panel-bg {
  width: 50vw;
  position: relative;
  height: 100%;
  z-index: 3;

  @media (max-width: 40em) {
    display: none;
  }
}

.right-panel-bg {
  background-color: var(--primary-bg);
  width: 50vw;
  height: 100%;

  @media (max-width: 40em) {
    display: none;
  }
}

.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: center;
  padding-top: 53px;
  padding-bottom: 25dvh;

  @media (max-width: 40em) {
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    padding-top: 0.5rem;
  }

  .row {
    flex: 0;
  }
}

.left-panel,
.right-panel {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  @media (max-width: 40em) {
    width: 100%;
    justify-content: flex-start;
  }
}

.left-panel {
  justify-content: flex-end;
  align-items: flex-start;
  flex-direction: row;
  @media (max-width: 40em) {
    justify-content: center;
    padding-right: 0rem !important;
  }
}

.left-panel .title {
  /* font-size: 10vh; */
  font-size: 3.5rem;
  color: var(--secondary-text);
  text-align: right;
  font-weight: 700;

  @media (max-width: 40em) {
    text-align: center;
  }
  @media (min-width: 1450px) {
    font-size: 9rem;
  }
  @media (min-width: 1200px) and (max-width: 1449px) {
    font-size: 7rem;
  }
  @media (min-width: 1000px) and (max-width: 1199px) {
    font-size: 6rem;
  }
  @media (min-width: 800px) and (max-width: 999px) {
    font-size: 4.5rem;
  }
}

.right-panel {
  text-align: left;
  flex: 1;
}

.description-hero {
  font-size: 1rem;

  @media (max-width: 40em) {
    color: rgba(var(--text-light-rgb), 0.8);
  }

  @media (min-width: 1100px) {
    font-size: 1.5rem;
    text-align: justify;
  }
}

.buildings {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(calc(-50% - 0.28rem));
  height: 25dvh;
  max-height: 240px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(15px -15px 15px rgba(0, 0, 0, 0.2));

  @media (max-width: 40em) {
    display: none;
  }

  @media (max-width: 1015px) {
    transform: unset !important;
    left: 20px;
  }
}

.affiliations {
  color: black;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  justify-content: center;
  align-items: center;

  .col {
    max-width: 50%;
  }

  gap: 2rem;
  position: sticky;
  top: 20dvh;

  @media (max-width: 40em) {
    font-size: 0.8rem;
    position: unset;
    .col {
      flex-direction: column;
      height: 100%;

      img {
        margin-bottom: 0.5rem;
      }
    }
  }
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

/* NAVIGATION */

nav {
  width: 100%;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-items: space-between;
  justify-content: center;

  .logo {
    height: 2rem;
    width: auto;
  }

  .container {
    width: 100%;
    max-width: 600px;
  }

  .lang-picker-container {
    position: relative;
  }

  @media (max-width: 515px) {
    overflow-y: hidden;

    .lang-picker-container {
      position: absolute;
      right: 0.1rem;
      top: 0.25rem;
    }

    .spacer {
      flex: 1;
    }

    .menu-button {
      display: flex; /* Pokazujemy na mobile */
      align-items: center;
    }

    .nav-items {
      overflow: hidden;
      max-height: 0;
      transition:
        max-height 0.5s ease-in-out,
        opacity 0.2s ease-in-out,
        margin-top 0.5s ease-in-out;
      opacity: 0;
      position: relative;
      margin-top: 0;
      margin-left: -5rem;
      width: calc(100vw - 0.5rem);
      flex-direction: column;
      flex: 1;

      .nav-item {
        height: 2.5rem;
        width: 100%;
      }
    }

    .nav-items.opened {
      max-height: 300px;
      opacity: 1;
      pointer-events: auto;
      margin-bottom: 0.5rem;
      margin-top: 2.75rem;
    }

    .container {
      align-items: start;
    }

    .spacer {
      flex: 0;
      width: 1rem;
    }
  }
}

.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  display: none; /* Ukryty na desktopie */
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  height: 2rem;
  width: 2rem;
}

.menu-button .icon-close {
  display: none;
}

.nav-items {
  list-style: none;
}

.nav-items.opened {
  max-height: 500px;
}

.nav-item {
  text-align: center;
  a {
    display: block;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    background-color: transparent;
    border-radius: 0.5rem;

    &:hover,
    &:focus {
      background-color: rgba(var(--text-light-rgb), 0.1);
    }
  }
}

/* VIDEO */

#video {
  scroll-margin-top: 3rem;
  width: 100vw;
  padding: 2rem 0.5rem 2rem 0.5rem;
  position: relative;
  z-index: 2;

  @media (max-width: 40em) {
    padding: 1rem 0 1rem 0;
  }
  z-index: 2;

  .container {
    margin: auto;
  }

  h2 {
    color: var(--text-light);
  }
}

#video-player {
  width: 100%;
  max-width: calc(100% - 2rem);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: auto;

  @media (max-width: 40em) {
    border-radius: 0;
  }
}

.card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  color: var(--text-light);
}

.description {
  margin-top: 1rem;
  color: rgba(var(--text-light-rgb), 0.8);

  p {
    margin-bottom: 0.5rem;
  }
}

.expert-card {
  margin: 1rem;
  max-width: 31%;

  @media (max-width: 40em) {
    max-width: unset;
  }
}

.spec-photo {
  width: 4rem;
  border-radius: 1rem;
  margin-right: 1rem;
}

.name {
  flex: 1;
  font-size: 1.5rem;
}

/* O NAS */

#about-us {
  scroll-margin-top: 3rem;
  position: relative;
  z-index: 1;

  .container {
    padding: 1rem;
  }
}

.header-bar {
  width: 100vw;
  background-color: rgba(var(--secondary-rgb), 0.3);
  color: var(--text-light);
  text-align: center;
}

.about-us-card {
  /* margin: 1rem; */
  width: 100%;
  height: 100%;
}

.about-us-photo {
  width: 8rem;
  max-width: 400px;
  border-radius: 100%;
  margin: 1rem;
  margin-bottom: 1rem;
}

.linkedin-logo {
  height: 1.5rem;
}

/* KONTAKT */

#contact {
  scroll-margin-top: 3rem;
  position: relative;
  z-index: 2;

  .card {
    background-color: rgba(var(--primary-rgb), 0.07);
  }
}

.header-col {
  height: 100%;

  @media (max-width: 52em) {
    margin-bottom: 2rem;
  }
}

/* FOOTER */

/* FOOTER */

.main-footer {
}

.main-footer {
  z-index: 2;
  width: 100%;

  position: relative;

  background-color: var(--dark-bg);
  color: #e0e0e0;
  font-family: "Roboto", sans-serif;
  border-top: 1px solid rgba(var(--text-light-rgb), 0.2);
}

.footer-links-container {
  gap: 2rem; /* Odstępy między linkami */
}

.footer-legal-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.8;
}

.footer-legal-link:hover {
  opacity: 1;
  color: var(
    --primary
  ); /* Subtelne nawiązanie do koloru Twojej marki/żarówki */
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  width: 100%;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.5px;
  width: 100%;
}

/* Responsywność dla małych ekranów */
@media (max-width: 600px) {
  .footer-links-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
}

/* LANGUAGE SELECTOR */

/* Ukrycie labela dla czytników ekranu (WCAG) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lang-picker-container {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.lang-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none; /* Ukrycie domyślnej strzałki przeglądarki */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px 30px 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Stylowanie ikony strzałki */
.lang-icon {
  position: absolute;
  right: 8px;
  pointer-events: none;
  font-size: 18px !important;
  color: rgba(255, 255, 255, 0.7);
}

/* Opcje selecta - uwaga: stylowanie natywnego dropdowna jest ograniczone w systemach */
.lang-select option {
  background-color: #1a0b2e; /* Ciemne tło dopasowane do Twojej sekcji */
  color: white;
}
