/*
Theme Name: Mój Motyw
Description: Motyw stworzony z HTML
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ===== CSS RESET & ROOT VARIABLES ===== */
*,
*::before,
*::after,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

:root {
  /* Colors */
  --text: #000;
  --secondary-text: #808080;
  --light-background: #f4f8fa;
  --light-border: #d1d1d1;
  --primary-gradient: linear-gradient(
    90deg,
    #0086ce 0%,
    #31aaa3 50%,
    #72b94e 100%
  );
  --primary-blue: #0086ce;
  --eu-blue: #039;

  /* Fonts */
  --font-oswald: "Oswald", sans-serif;
  --font-poppins: "Poppins", sans-serif;

  /* Border radius */
  --border-radius-lg: 3rem;
  --border-radius-xl: 3.125rem;
  --border-radius-md: 1.5rem;
  --border-radius-sm: 30px;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1.25rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 5rem;
  --spacing-xl: 7.5rem;

  /* Common sizes */
  --input-padding: 1.6rem;
  --button-padding: 1.25rem 2.5rem;
  --container-desktop: calc(100% - 40rem);
  --container-tablet: calc(100% - 10rem);
  --container-mobile: calc(100% - 5rem);
}

/* ===== BASE STYLES ===== */
body {
  font-family: var(--font-oswald);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  width: 100%;
  padding-top: 3rem;
}

a {
  text-decoration: none;
  color: var(--text);
}

/* Typography */
h1 {
  font-weight: 600;
  font-size: 7.25rem;
  line-height: 8.75rem;
  text-transform: uppercase;
}

h2 {
  font-size: 3.9rem;
  text-transform: uppercase;
  color: var(--secondary-text);
}

h3 {
  font-size: 3.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

h4 {
  font-size: 1.875rem;
  line-height: 100%;
  font-weight: 500;
  text-transform: uppercase;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Common paragraph styles */
p {
  color: var(--secondary-text);
  font-family: var(--font-poppins);
  font-weight: 500;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: var(--container-desktop);
  margin: 0 auto;
}

.backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  z-index: 999;
  pointer-events: none;
}

.backdrop.active {
  display: block;
  pointer-events: auto;
}

section,
footer {
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-xl) auto;
  scroll-margin-top: 6rem;
}

footer {
  margin-bottom: var(--spacing-lg);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;

  background-color: white;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 13.75rem;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.125rem 0;
}

.buttons-container {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

/* Navigation */
.nav .nav-list {
  list-style-type: none;
  display: flex;
}

.nav .nav-list li a {
  color: var(--secondary-text);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav .nav-list li a:hover {
  color: var(--text);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  aspect-ratio: 1/1;
  gap: 0.25rem;
  z-index: 1001;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

.hamburger-line {
  width: 1.5rem;
  height: 0.125rem;
  background-color: var(--text);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
  position: relative;
  top: 0.375rem;
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
  position: relative;
  top: -0.375rem;
}

/* ===== BUTTONS ===== */
.buttons-container .cta-button,
.contact .contact-card form button
, .contact .contact-card form [type='submit']
 {
  border-radius: var(--border-radius-xl);
  padding: var(--button-padding);
  background: var(--primary-gradient);
  font-family: var(--font-oswald);
  line-height: 100%;
  color: white;
  text-transform: uppercase;
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.buttons-container .cta-button:hover {
  transform: translateY(-2px);
}

.contact .contact-card form button {
  max-width: fit-content;
}

/* ===== HERO SECTION ===== */

.hero .hero-headers {
  display: grid;
  margin: 5rem auto;
}

.hero .hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero .hero-header .hero-header-eu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.hero .hero-header .hero-header-eu div {
  width: 6.25rem;
  height: 6.25rem;
  aspect-ratio: 1/1;
  border-radius: var(--border-radius-md);
  background-color: var(--eu-blue);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .hero-header .hero-header-eu p {
  color: var(--secondary-text);
  line-height: 1.25rem;
  text-transform: uppercase;
  max-width: 10rem;
}

.hero .hero-images {
  display: flex;
  gap: var(--spacing-md);
}

.hero .hero-images .card {
  border-radius: var(--border-radius-lg);
  text-transform: uppercase;
}

.hero .hero-images .card:nth-child(1) {
  background-color: #cfeeff;
  max-width: 31.25rem;
  height: 41rem;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  padding-top: 3.125rem;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 100%;
}

.hero .hero-images .card:nth-child(1) p {
  max-width: 22.5rem;
  color: black;
  font-family: var(--font-oswald);
  line-height: 140%;
}

.hero .hero-images .card:nth-child(1) img {
  width: 100%;
  max-width: 18.125rem;
  height: auto;
}

.hero .hero-images .card:nth-child(2) p {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.hero .hero-images .card:nth-child(2) {
  flex: 1;
  background-image: url("./assets/hero-card-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 100%;
  position: relative;
}

.hero .hero-images .card:nth-child(2) .conv1 {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 100%;
  height: auto;
  max-width: 30rem;

  transform: translate(-20%, -30%);
}

.hero .hero-images .card:nth-child(2) .conv2 {
  position: absolute;
  top: 65%;
  right: 20%;
  width: 100%;
  height: auto;
  max-width: 30rem;

  transform: translate(20%, -65%);
}

.hero .hero-images .card:nth-child(2) p {
  color: white;
  font-family: var(--font-oswald);
  text-align: center;
}

/* ===== FARADAY KEY SECTION ===== */
.faraday-key .container {
  display: flex;
  gap: var(--spacing-xl);
}

.faraday-key .texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.faraday-key .texts h4 {
  max-width: 70%;
  line-height: 140%;
}

.faraday-key .texts p {
  font-size: 1.125rem;
  line-height: 160%;
}

/* .faraday-key .image {
  background-color: #afde97;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 1/1;
}

.faraday-key .image img {
  width: 100%;
  height: auto;
  padding: 10rem;
} */

.faraday-key .image {
  background-color: #afde97;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 1/1;
  padding: 5%;
}

.faraday-key .image img {
  width: 100%;
  max-width: 70%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.faraday-key .badges ul {
  display: flex;
  gap: var(--spacing-sm);
  row-gap: 4rem;
  list-style-type: none;
  text-transform: uppercase;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.faraday-key .badges .badge {
  background-color: var(--light-background);
  padding: var(--button-padding);
  border-radius: var(--border-radius-xl);
}

/* ===== ABOUT FARADAYKEY SECTION ===== */
.about-faradaykey .container > h3 {
  text-align: center;
  margin-bottom: 3.75rem;
}

.features-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 2fr 2fr 1.3fr;
  text-transform: uppercase;
}

.feature {
  width: 100%;
  min-height: 16.25rem;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);

  display: flex;
  align-items: start;
  overflow: hidden;
}

.feature .text {
  z-index: 10;
}

.feature .text h3 {
  line-height: 6rem;
}

.feature .text h4 {
  font-size: 3.75rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.feature .text p {
  font-size: 1.6rem;
  font-weight: 500px;
  color: var(--text);
  font-family: var(--font-oswald);
}

.feature:nth-child(1) {
  align-items: end;
  text-align: left;
  background-image: url("./assets/card-bg.png");
  background-repeat: no-repeat;
  background-size: cover;

  animation-delay: 200ms;
}

.feature:nth-child(2) {
  background-color: #cfeeff;
  position: relative;
}

.feature:nth-child(2),
.feature:nth-child(3) {
  grid-row: span 2;
  align-items: end;
  padding-bottom: 5rem;
  animation-delay: 300ms;
}

.feature:nth-child(3) {
  text-align: center;
  position: relative;
  animation-delay: 400ms;
  /* padding-left: 0;
  padding-right: 0; */

  background-color: var(--light-background);
}

/* .feature:nth-child(3) .text p {
  white-space: nowrap;
} */

.feature:nth-child(3) .text {
  gap: 2rem;
}

.feature:nth-child(4) {
  padding-top: 3.5rem;
  background-color: #afde97;
  position: relative;
  animation-delay: 300ms;
}

.feature:nth-child(5) {
  grid-column: span 3;
  align-items: center;
  justify-content: center;
  animation-delay: 200ms;

  background-image: url("./assets/wide-feature-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.feature:nth-child(5) h4 {
  color: white;
  text-align: center;
  line-height: 120%;
  font-size: 2.9rem;
}

.feature:nth-child(5) .text p {
  color: #919191;
  font-size: 1.6rem;
  text-align: center;
  width: 100%;
  max-width: calc(100% - 25rem);
  margin: 1rem auto auto;
}

.feature .umbrella-icon {
  position: absolute;
  right: 2rem;
  bottom: 3rem;
  z-index: 0;
}

.feature .math-image {
  position: absolute;
  top: 0;

  left: 50%;
  transform: translate(-50%, 0%);
  z-index: 0;
}

.feature .key-image {
  position: absolute;
  top: 15%;

  left: 50%;
  transform: translate(-50%, 0%);
  z-index: 0;

  height: 250px;
}

/* ===== WHY FARADAKEY SECTION ===== */
.why-faradakey {
  background-color: var(--light-background);
  padding: 5rem 0;
}

.why-faradakey .container {
  display: grid;
  gap: 4.5rem;
}

.why-faradakey .headers {
  display: flex;
  justify-content: space-between;
}

.why-faradakey .headers h4 {
  max-width: 25rem;
  margin-top: 1rem;
  line-height: 130%;
}

.points {
  display: flex;
  gap: 7rem;
}

.points .point {
  flex: 1;
}

.points .point hr {
  border: none;
  height: 1px;
  background-color: var(--light-border);
  margin: 2rem 0;
}

.points .point article {
  display: grid;
  grid-template-columns: 2rem auto;
  gap: 2rem;
}

.points .point article img {
  margin-top: 0.3rem;
}

.points .point > div {
  display: flex;
  gap: var(--spacing-md);
}

.points .point p {
  margin-top: 1rem;
  font-size: 1rem;
}

/* Preview styles */
.points .preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 23.75rem;
  margin: auto;
}

.points .preview img {
  /* max-width: 23.75rem;
  min-width: 23.75rem; */
  width: 100%;
  height: auto;
  object-fit: cover;

  /* aspect-ratio: 1/1; */
}

.points .preview .mode {
  display: grid;
  gap: var(--spacing-sm);
}

.points .preview .mode p {
  color: var(--secondary-text);
  font-size: 0.875rem;
  text-align: center;
}

.points .preview .mode p span {
  color: var(--text);
}

.points .preview .mode .modes {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.points .preview .mode .modes hr {
  width: 3.5rem;
  height: 1px;
  background-color: var(--light-border);
  border: 0px;
}

.points .preview .mode .modes > div {
  width: 2.5rem;
  height: 2.5rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  padding: 0.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--light-border);
  box-sizing: border-box;
  cursor: pointer;
}

.points .preview .mode .modes > div.active {
  border: 1px solid #828282;
}

.points .preview .mode .modes > div > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  aspect-ratio: 1/1;
}

/* Mode colors */
.points .preview .mode .modes > div:nth-of-type(1) > div {
  background-color: #e2db80;
}

.points .preview .mode .modes > div:nth-of-type(2) > div {
  background-color: #7b90f5;
}

.points .preview .mode .modes > div:nth-of-type(3) > div {
  background-color: #6ce263;
}

.points .preview .mode .modes > div:nth-of-type(4) > div {
  background-color: #ec625a;
}

.points .preview .mode .modes > div:nth-of-type(5) > div {
  background-color: #bf63f6;
}

/* ===== USAGE SECTION ===== */
.usage {
  display: grid;
  gap: 3rem;
}

.usage .usage-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.usage .usage-list li {
  flex: 1;
  display: grid;
  flex-direction: column;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.usage .usage-list li img {
  background-color: #e6eff3;
  border-radius: var(--border-radius-sm);
  width: 7rem;
  height: 7rem;
  padding: 2rem;
  display: flex;
  aspect-ratio: 1/1;
  margin: auto;
}

.usage .usage-list li p {
  font-size: 1rem;
  text-align: center;
  word-wrap: normal;
}

/* ===== WHY US SECTION ===== */
.why-us .container {
  display: grid;
  gap: 4.5rem;
}

.why-us .headers {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.why-us .headers p {
  max-width: 43rem;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.why-us .headers p span {
  font-weight: 600;
  color: var(--text);
}

/* Team */
.team {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.team-member {
  position: relative;
  flex: 0 1 calc(25% - 2.25rem);
  min-width: 250px;
}

.team-member img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 48px;
  margin-bottom: 2rem;
}

.team-member .name {
  font-size: 1.6rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.team-member .position {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary-text);
}

.team-member a img {
  max-width: 3rem;
  width: 100%;
  height: auto;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.team-member.slide-animate.in-view {
  transition-delay: var(--animation-delay, 200ms);
}

/* ===== ROADMAP SECTION ===== */
#roadmap .images{
  margin-top: 90px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}
#roadmap .images img{
  object-fit: cover;
  object-position: center;
  border-radius: 50px;
}

#roadmap .images img:nth-child(1){
  flex: 3 1 300px;
  min-width: 300px;
}

#roadmap .images img:nth-child(2){
  flex: 1 1 300px;
  min-width: 300px;
}

.roadmap h3 {
  margin-bottom: 6rem;
  text-align: center;
}

.timeline {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2.5rem 0;
  padding: 0 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: #e1ecf4;
  z-index: 0;
  width: 0;
  max-width: 0.25rem;
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18%;
  z-index: 1;
}

.animate-timeline.in-view::before {
  animation: grow-line 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.dot {
  width: 1.8rem;
  height: 1.8rem;
  background: linear-gradient(
    120deg,
    rgba(0, 134, 206, 1) 0%,
    rgba(49, 170, 163, 1) 70%,
    rgba(114, 185, 78, 1) 100%
  );
  border-radius: 50%;
  border: 0.25rem solid #fff;
  margin-bottom: 1.25rem;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5);
}

.animate-timeline.in-view .dot {
  animation: appear-dot 0.5s forwards;
  animation-delay: 1s;
}

.animate-timeline.in-view .timeline-step .dot {
  animation-delay: calc( var(--i) * 0.2s + 1s );
}


.label {
  text-align: center;
  font-family: var(--font-poppins);

  opacity: 0;
  transform: translateY(20px);
}

.animate-timeline.in-view .label {
  animation: slide-in-label 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-timeline.in-view .timeline-step .label {
  animation-delay: calc( var(--i) * 0.2s + 1s );
}

.label strong {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  display: block;
}

.label div {
  color: #888;
  font-size: 1rem;
  margin-top: 0.125rem;
}

/* ===== CONTACT SECTION ===== */
.contact .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;

  grid-template-areas:
    "text contact"
    "photo contact";
}

.contact .container .card {
  border-radius: var(--border-radius-lg);
}

.contact .text-card {
  display: flex;
  align-items: center;
  background-color: #afde97;
  padding: 5rem 5rem;
  min-width: 34.625rem;

  grid-area: text;

  gap: 2rem;
}

.contact .text-card img {
  width: 100%;
  max-width: 2.8rem;
  height: auto;
  margin-top: -5.8rem;
}

.contact .photo-card {
  grid-row: span 2;
  width: 100%;
  height: 100%;

  grid-area: photo;
}

.contact .photo-card img {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

.contact .contact-card {
  grid-row: span 3;
  background-color: #cfeeff;
  padding: 6rem 7rem;

  grid-area: contact;
}

.contact .contact-card h4 {
  margin-bottom: 2.5rem;
}

.contact .contact-card form {
  display: grid;
  gap: 1.5rem;
}

.contact .text-card.slide-animate.in-view {
  transition-delay: 200ms;
}
.contact .photo-card.slide-animate.in-view {
  transition-delay: 300ms;
}
.contact .contact-card.slide-animate.in-view {
  transition-delay: 400ms;
}

/* Form inputs */
.input-group {
  position: relative;
}

.input-group label {
  position: absolute;
  left: var(--input-padding);
  top: 1.8rem;
  color: var(--secondary-text);
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  background-color: white;
  padding: 0 0.5rem;
  cursor: text;
}

.contact .contact-card form input,
.contact .contact-card form textarea {
  border-radius: var(--input-padding);
  padding: var(--input-padding);
  padding-top: 2rem;
  border: 0;
  outline: 0;
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 1rem;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

.contact .contact-card form input::placeholder,
.contact .contact-card form textarea::placeholder {
  color: var(--secondary-text);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: 0.7rem;
  left: 1.1rem;
  font-size: 0.75rem;
  color: var(--secondary-text);
}

.input-group textarea + label {
  top: 1.8rem;
}

.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: 0.7rem;
}

/* Checkbox styles */
.checkbox-group {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.custom-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-group label {
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--secondary-text);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-poppins);
  font-weight: 500;
}

.checkbox-group .checkmark
 {
  position: relative;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.checkbox-group .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  /* left: 0.45rem;
  top: 0.2rem;
  width: 0.4rem;
  height: 0.7rem; */
  width: 2rem;
  height: 2rem;
  left: 0.1rem;
  top: -0.2rem;
  border: none;
  background-image: url("./assets/Vector.png");
  background-repeat: no-repeat;
}

.custom-checkbox:checked + label .checkmark:after {
  display: block;
}

.checkbox-group label:hover .checkmark {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 134, 206, 0.1);
}

.custom-checkbox:focus + label .checkmark {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 134, 206, 0.2);
}

/* ===== FAQ SECTION ===== */
.faq .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.faq .text {
  max-width: 20rem;
}

.faq .questions {
  max-width: 57%;
}

.faq .question .question-header {
  display: flex;
  justify-content: space-between;

  border-bottom: 1px solid var(--light-border);

  padding: 3rem 1rem;
}

.faq .question:nth-child(1) .question-header {
  padding-top: 0.8rem;
}

.faq .questions .answer {
  max-height: 0;
  font-size: 1.25rem;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq .questions .answer-content {
  padding: 1.5rem 3rem 1.5rem 1rem;
}

.faq .questions .answer.open {
  max-height: 300px;
}

.faq .question.slide-animate.in-view {
  transition-delay: var(--animation-delay, 200ms);
}

.faq button {
  background-color: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.faq button img {
  width: 2rem;
  height: 2rem;
  aspect-ratio: 1/1;
}

/* ===== SPONSORS SECTION ===== */
.sponsors .logos {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 2rem;
}

.sponsors .logos img {
  max-width: 100%;
  height: auto;
}

.sponsors .text,
.sponsors .text span {
  font-family: var(--font-poppins);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--secondary-text);
}

.sponsors .text span {
  color: var(--text);
}

/* ===== BACKGROUNDS ===== */

.backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* lub większe niż zawartość strony */
  z-index: -1;
  pointer-events: none; /* żeby kliknięcia przechodziły */
}

.bg {
  position: absolute;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.bg-1 {
  background-image: url("./assets/bg-image-1.png");
  top: 10rem;
  height: 120vh;
}

.bg-2 {
  background-image: url("./assets/bg-image2.png");
  top: 180vh;
  height: 150vh;
}

.bg-3 {
  background-image: url("./assets/bg-image-3.png");
  top: 450vh;
  height: 150vh;
}

.bg-4 {
  background-image: url("./assets/bg-image-4.png");
  top: 600vh;
  height: 150vh;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile devices */
@media only screen and (max-width: 767px) {
  html {
    font-size: 12px;
  }

  .bg-3 {
    top: 750vh;
    height: 250vh;
  }

  .bg-4 {
    top: 950vh;
    height: 200vh;
  }

  .container {
    max-width: var(--container-mobile);
    width: 100%;
  }

  .buttons-container .cta-button {
    display: none;
  }

  /* Typography adjustments */
  h1 {
    font-size: 4rem;
    line-height: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2.5rem;
  }

  h4 {
    font-size: 1.75rem;
    line-height: 3rem;
  }

  h5 {
    font-size: 1.25rem;
  }

  /* Header adjustments */
  .buttons-container {
    gap: var(--spacing-sm);
  }

  .menu {
    margin: 2rem 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger-line {
    width: 1.6rem;
  }

  /* .faraday-key .image img {
    padding: 5rem;
  } */

  .faraday-key .image {
    padding: 5%;
    aspect-ratio: auto;
    max-height: 500px;
  }

  /* Navigation mobile */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    background-color: white;
  }

  .nav.active {
    max-height: 100vh;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1);
  }

  .nav-list {
    max-width: var(--container-mobile);
    margin: auto;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 0px;
    border-top: 0;
    list-style-type: none;
    display: flex;
  }

  .nav-list li a {
    font-size: 1.125rem;
    padding: 0.5rem 0;
    display: block;
  }

  /* Layout adjustments */
  .hero .hero-images,
  .faraday-key .container {
    flex-direction: column;
    transition: all 0.3s ease;
  }

  .faraday-key .badges ul {
    gap: calc(var(--spacing-lg) - 1rem);
    flex-wrap: wrap;
  }

  .hero .hero-header {
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: var(--spacing-sm);
  }

  .hero .hero-headers {
    gap: var(--spacing-md);
  }

  .hero .hero-images .card:nth-child(1) {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    align-items: end;
    justify-content: start;
  }

  .feature:nth-child(2),
  .feature:nth-child(3),
  .feature:nth-child(5) {
    grid-row: span 1;
    grid-column: span 1;
    padding: var(--spacing-md);
    text-align: left;
  }

  .feature:nth-child(5) .text p {
    max-width: calc(100% - 5rem);
  }

  .points {
    flex-direction: column;
  }

  .why-faradakey .headers,
  .why-us .headers {
    flex-direction: column;
  }

  .why-faradakey .headers {
    margin-bottom: 3.5rem;
  }

  .why-us .headers {
    gap: 1rem;
  }

  .team-member a img {
    max-width: 3rem;
    width: 100%;
    height: auto;
    position: absolute;
    top: 4rem;
    right: 4rem;
  }

  /* Timeline mobile */
  .timeline {
    flex-direction: column;
    align-items: center;
    margin-top: 5rem;
  }

  .timeline-step {
    width: 100%;
    margin-bottom: 3.125rem;
  }

  .timeline::before {
    width: 0.25rem;
    height: 100%;
    left: 49.45%;
    top: -10%;
    right: auto;
  }

  .dot {
    margin: 0 auto 0.5rem auto;
  }

  .team-member {
    flex: 0 1 100%;
  }

  .team {
    gap: 4rem;
  }

  /* Contact mobile */
  .contact .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    grid-template-areas:
      "text"
      "photo"
      "contact";
  }

  .contact .text-card {
    padding: 3rem 2rem;
    word-wrap: break-word;
    display: flex;
    justify-content: center;
    min-width: 100%;
  }

  .contact .contact-card {
    padding: 6rem 4rem;
  }

  .faq .container {
    gap: 5rem;
  }

  .faq .questions,
  .faq .text {
    max-width: 100%;
  }

  .faq .answer .answer-content {
    padding-right: 0px;
  }

  .feature .math-image {
    position: absolute;
    top: 50%;
    max-width: 40%;

    left: 70%;
    transform: translate(-50%, -50%);
  }

  .feature .key-image {
    position: absolute;
    top: 50%;
    max-width: 20%;

    left: 80%;
    transform: translate(-50%, -50%);
  }

  .hero .hero-headers {
    margin: 2rem auto;
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .hero .hero-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .hero-images {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .hero .hero-images .card {
    max-width: 100%;
    min-height: 16rem;
    padding: 1.5rem 0.5rem;
    font-size: 1.1rem;
  }
  .hero .hero-images .card img {
    max-width: 9rem;
  }

  .hero .hero-images .card:nth-child(1),
  .hero .hero-images .card:nth-child(1) p {
    min-width: 100%;
    text-align: center;
  }

  .hero .hero-images .card:nth-child(2) {
    min-height: 35rem;
  }

  .hero .hero-images .card:nth-child(2) .conv1 {
    position: absolute;
    top: 30%;
    left: 48.5%;
    width: 100%;
    height: auto;
    max-width: 30rem;

    transform: translate(-50%, -30%);
  }

  .hero .hero-images .card:nth-child(2) .conv2 {
    position: absolute;
    top: 65%;
    left: 48.5%;
    width: 100%;
    height: auto;
    max-width: 30rem;

    transform: translate(-50%, -65%);
  }
}

/* Tablet devices */
@media only screen and (min-width: 768px) and (max-width: 1200px) {
  html {
    font-size: 14px;
  }

  .container {
    max-width: var(--container-tablet);
  }

  .hero {
    margin-top: 10rem;
  }

  /* Typography adjustments */
  h1 {
    font-size: 6rem;
    line-height: 6.5rem;
  }

  h2 {
    font-size: 3.75rem;
  }

  h3 {
    font-size: 3.25rem;
  }

  h4 {
    font-size: 2.5rem;
  }

  h5 {
    font-size: 2.125rem;
  }

  /* Common mobile navigation for tablet */
  .hamburger {
    display: flex;
  }

  .hamburger-line {
    width: 1.6rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    background-color: white;
  }

  .nav.active {
    max-height: 100vh;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1);
  }

  .nav-list {
    max-width: var(--container-tablet);
    margin: auto;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 0px;
    border-top: 0;
    list-style-type: none;
    display: flex;
  }

  .nav-list li a {
    font-size: 1.125rem;
    padding: 0.5rem 0;
    display: block;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.875rem;
  }

  .faraday-key .container {
    flex-direction: column;
  }

  .faraday-key .image {
    padding: 5%;
    max-height: 500px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature {
    align-items: end;
    justify-content: start;
  }

  .feature:nth-child(2),
  .feature:nth-child(3) {
    grid-row: span 1;
    grid-column: span 1;
    padding: var(--spacing-md);
    text-align: left;
  }

  .feature:nth-child(5) {
    grid-column: span 2;
  }

  .feature:nth-child(5) .text p {
    max-width: calc(100% - 5rem);
  }

  .points {
    flex-direction: column;
  }

  .team-member {
    flex: 0 1 calc(50% - 1.5rem);
  }

  .contact .container {
    grid-template-columns: 1fr;

    grid-template-areas:
      "text"
      "photo"
      "contact";

    gap: var(--spacing-md);
  }

  .contact .text-card {
    padding: var(--spacing-lg);
    display: flex;
    justify-content: center;
  }

  .feature .math-image {
    position: absolute;
    top: 50%;
    max-width: 40%;

    left: 70%;
    transform: translate(-50%, -50%);
  }

  .feature .key-image {
    position: absolute;
    top: 50%;
    max-width: 20%;

    left: 80%;
    transform: translate(-50%, -50%);
  }

  .faraday-key .container {
    flex-direction: column;
  }

  .hero .hero-images {
    flex-direction: column;
    gap: 2rem;
  }
  .hero .hero-images .card {
    max-width: 100%;
    height: auto;
    min-height: 20rem;
    padding: 2rem 1rem;
    font-size: 1.4rem;
  }

  .hero .hero-images .card:nth-child(1),
  .hero .hero-images .card:nth-child(1) p {
    min-width: 100%;
    text-align: center;
  }

  .hero .hero-images .card:nth-child(2) .conv1 {
    top: 25%;
  }

  .hero .hero-images .card:nth-child(2) {
    min-height: 30rem;
  }

  .hero .hero-images .card:nth-child(1) img,
  .hero .hero-images .card:nth-child(2) img {
    max-width: 13rem;
  }
}

/* Medium desktop */
@media only screen and (min-width: 1201px) and (max-width: 1600px) {
  .container {
    max-width: calc(100% - 20rem);
  }

  .faraday-key .badges ul {
    flex-wrap: wrap;
    row-gap: 4rem;
  }

  .faraday-key .container {
    flex-direction: column;
  }

  /* .hero .hero-images .card:nth-child(2) .conv1 {
    top: 30%;
  }

  .hero .hero-images .card:nth-child(2) .conv1 {
    top: 60%;
  } */

  .points {
    flex-direction: column;
  }

  .contact .contact-card {
    padding: 6rem 4rem;
  }

  .contact .container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text photo"
      "contact contact";
  }

  /* Mobile navigation for medium desktop */
  .hamburger {
    display: flex;
  }

  .hamburger-line {
    width: 1.6rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    background-color: white;
  }

  .nav.active {
    max-height: 100vh;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.1);
  }

  .nav-list {
    max-width: calc(100% - 20rem);
    margin: auto;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 0px;
    border-top: 0;
    list-style-type: none;
    display: flex;
  }

  .nav-list li a {
    font-size: 1.125rem;
    padding: 0.5rem 0;
    display: block;
  }

  .hamburger-line {
    width: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faraday-key .image {
    max-height: 500px;
    padding: 5%;
  }
}

@media only screen and (min-width: 1601px) and (max-width: 1700px) {
  .menu .cta-button {
    display: none;
  }
}

@media only screen and (min-width: 1601px) and (max-width: 1800px) {
  .contact .container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text photo"
      "contact contact";
  }
}

/* Large desktop */
@media only screen and (min-width: 1601px) {
  .nav {
    background-color: transparent;
  }

  .nav .nav-list {
    gap: var(--spacing-sm);
    background-color: var(--light-background);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem 2.2rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes slide-in-up {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes grow-line {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes appear-dot {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-label {
  from {
    opacity: 0;
    transform: translateY(20px); /* Startuje 20px niżej */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stan początkowy */
.slide-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Po wejściu w widok */
.slide-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Przykład opóźnień dla seryjnych elementów (możesz dodawać dla innych w razie potrzeby) */
.badge.slide-animate.in-view:nth-child(1) {
  transition-delay: 0.2s;
}
.badge.slide-animate.in-view:nth-child(2) {
  transition-delay: 0.35s;
}
.badge.slide-animate.in-view:nth-child(3) {
  transition-delay: 0.5s;
}

.hero-images .card.slide-animate.in-view:nth-child(1) {
  transition-delay: 0.2s;
}
.hero-images .card.slide-animate.in-view:nth-child(2) {
  transition-delay: 0.4s;
}

.usage-list li.slide-animate.in-view {
  transition-delay: var(--animation-delay, 200ms);
}

.points .point article.slide-animate.in-view {
  transition-delay: var(--animation-delay, 200ms);
}

.feature.slide-animate.in-view:nth-child(1) {
  transition-delay: 200ms;
}
.feature.slide-animate.in-view:nth-child(2) {
  transition-delay: 300ms;
}
.feature.slide-animate.in-view:nth-child(3) {
  transition-delay: 400ms;
}
.feature.slide-animate.in-view:nth-child(4) {
  transition-delay: 300ms;
}
.feature.slide-animate.in-view:nth-child(5) {
  transition-delay: 200ms;
}
