@import 'https://fonts.googleapis.com/css?family=Montserrat:300,400,700&display=swap';

/* ------------------ ZMIENNE KOLORÓW (CUSTOM PROPERTIES) ------------------ */
/*10428c*/
/*008dc0*/
/*D0EBFC*/
:root {
    --accent: #008dc0;
    --accent-secondary: #D0EBFC;
    --accent-dark: #10428c;
    --gradient-bg: linear-gradient(60deg, #10428c 0%, #008dc0 100%);
    --gradient-bg2: linear-gradient(60deg, #10428c 5%, #008dc0 85%);
    --gradient-gb: linear-gradient(60deg, #D0EBFC 20%, #10428c 50%);
    --text-light: #ffffff;
    --text-dark: #2c2c2c;
  }

/* ------------------ RESET & FONT ------------------ */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-size: 10px;
  font-family: 'Exo-2';
  src: url(/tff/Exo2-Regular.ttf);
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
}
.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
p {
  color: var(--text-dark);
  font-size: 1.4rem;
  margin-top: 5px;
  line-height: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05rem;
}
.section-title {
  font-size: 4rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
}
.section-title span {
  color: var(--accent-dark);
}

/* ------------------ CTA ------------------ */
.cta {
  display: inline-block;
  padding: 10px 30px;
  color: var(--text-light);
  background-color: transparent;
  border: 2px solid var(--accent-dark);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
}
.cta:hover {
  color: var(--text-light);
  background-color: var(--accent-dark);
}
.cta-1 {
  display: inline-block;
  padding: 10px 30px;
  color: var(--accent);
  background-color: transparent;
  border: 2px solid var(--accent-dark);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
}
.cta-1:hover {
  color: var(--text-light);
  background-color: var(--accent-dark);
}


/* ------------------ Branding ------------------ */


.brand h1 {
  font-size: 3rem;
  text-transform: uppercase;
  color: var(--text-light);

}
.brand h1 span {
  color: var(--accent);
}

/* ------------------ Header section ------------------ */
#header {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
}
#header .header {
  min-height: 8vh;
  background-image: var(--gradient-gb);
  transition: 0.3s ease;
}

#header .header img{
  height: 70px;
  width: 70px;
  border-radius: 100%;
}
#header .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1300px;
  padding: 0 10px;
}
#header .nav-list ul {
  list-style: none;
  position: absolute;
  background-color: var(--accent-dark);
  width: 100vw;
  height: 100vh;
  left: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow-x: hidden;
  transition: 0.5s ease left;
}
#header .nav-list ul.active {
  left: 0%;
}
#header .nav-list ul a {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  text-decoration: none;
  color: var(--accent-secondary);
  text-transform: uppercase;
  padding: 20px;
  display: block;
  position: relative;
}
#header .nav-list ul a::after {
  content: attr(data-after);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: rgba(240, 248, 255, 0.021);
  font-size: 13rem;
  letter-spacing: 50px;
  z-index: -1;
  transition: 0.3s ease letter-spacing;
}
#header .nav-list ul li:hover a::after {
  transform: translate(-50%, -50%) scale(1);
  letter-spacing: initial;
}
#header .nav-list ul li:hover a {
  color: var(--accent);
}
#header .hamburger {
  height: 60px;
  width: 60px;
  display: inline-block;
  border: 3px solid var(--text-light);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transform: scale(0.8);
  margin-right: 20px;
}
#header .hamburger:after {
  position: absolute;
  content: '';
  height: 100%;
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--text-light);
  animation: hamburger_puls 1s ease infinite;
}
#header .hamburger .bar {
  height: 2px;
  width: 30px;
  position: relative;
  background-color: var(--text-light);
  z-index: -1;
}
#header .hamburger .bar::after,
#header .hamburger .bar::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  background-color: var(--text-light);
  transition: 0.3s ease;
  transition-property: top, bottom;
}
#header .hamburger .bar::after {
  top: 8px;
}
#header .hamburger .bar::before {
  bottom: 8px;
}
#header .hamburger.active .bar::before {
  bottom: 0;
}
#header .hamburger.active .bar::after {
  top: 0;
}
/* ------------------ End Header section ------------------ */


/* ------------------ main Section ------------------ */
#main {
  background-image: url(./images/elektryczne.jpg);
  background-size: cover;
  background-position: top center;
  position: relative;
  z-index: 1;
}
#main::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); 
  z-index: -1;
}
#main .main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  justify-content: flex-start;
}
#main h1 {
  display: block;
  width: fit-content;
  font-size: 4rem;
  position: relative;
  color: transparent;
  animation: text_reveal 0.5s ease forwards;
  animation-delay: 1s;
  font-weight: 500;
}

#main p {
  color: var(--accent);
}

#main h1:nth-child(1) {
  animation-delay: 1s;
}
#main h1:nth-child(2) {
  animation-delay: 2s;
}
#main h1:nth-child(3) {
  animation-delay: 3s;
  
}
#main h1 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--accent-dark);
  animation: text_reveal_box 1s ease;
  animation-delay: 0.5s;
}
#main h1:nth-child(1) span {
  animation-delay: 0.5s;
}
#main h1:nth-child(2) span {
  animation-delay: 1.5s;
}
#main h1:nth-child(3) span {
  animation-delay: 2.5s;
}
/* ------------------ End main Section ------------------ */


/* ------------------ Services Section ------------------ */
#services .services {
  flex-direction: column;
  text-align: justify;
  max-width: 1500px;
  margin: 0 auto;
  padding: 100px 0;
}
#services .service-top {
  max-width: 900px;
  margin: 20px ;
  margin-bottom: 0px;
  padding: 20px;
}
#services .service-top p{
  font-size: 2rem;

}
#services .service-service {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

#services .service-element{
  flex-basis: 80%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background-image: var(--gradient-bg2);
  padding: 30px;
  border-radius: 10px;
  background-size: cover;
  margin: 10px 5%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#services .service-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}
#services .service-item {
  flex-basis: 80%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  border-radius: 10px;
  background-size: cover;
  margin: 10px 5%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
#services .service-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: var(--gradient-bg);
  opacity: 0.9;
  z-index: -1;
}
#services .service-element::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: var(--gradient-bg2);
  opacity: 0.9;
  z-index: -1;
}
#services .service-service .icon {
  height: 80px;
  width: 80px;
  margin-bottom: 20px;
}
#services .service-bottom .icon {
  height: 80px;
  width: 80px;
  margin-bottom: 20px;
}
#services .service-item h2 {
  font-size: 2rem;
  color: var(--text-light); 
  margin-bottom: 10px;
  text-transform: uppercase;
}
#services .service-element h2 {
  font-size: 2.5rem;
  color: var(--text-light); 
  margin-bottom: 10px;
  text-transform: uppercase;
}
#services .service-item p {
  color: var(--text-light);
  text-align: left;
}
#services .service-element p {
  color: var(--text-light);
  text-align: left;
  font-size: 2rem;
}

.map-body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.word-cloud {
  position: relative;
  width: 80%;
  max-width: 1000px; /* Opcjonalny limit szerokości */
  height: 60vh;
  background: #ffffff;
  overflow: hidden; /* Ukrywa część słów, jeśli by „wystawały” */
  border-radius: 8px; 
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Ogólne style dla słów */
.word {
  position: absolute;
  font-weight: bold;
  color: #333;
  white-space: nowrap; /* Zapobiega zawijaniu tekstu */
  transition: transform 0.3s ease;
}

/* Pozycjonowanie i rozmiar poszczególnych słów (prosty przykład) */
.word-1 {
  font-size: 3rem;
  left: 10%;
  top: 10%;
}
.word-2 {
  font-size: 2.5rem;
  left: 50%;
  top: 15%;
}
.word-3 {
  font-size: 2.8rem;
  left: 30%;
  top: 35%;
}
.word-4 {
  font-size: 2.2rem;
  left: 70%;
  top: 25%;
}
.word-5 {
  font-size: 2.4rem;
  left: 15%;
  top: 60%;
}
.word-6 {
  font-size: 2rem;
  left: 80%;
  top: 50%;
}
.word-7 {
  font-size: 2.6rem;
  left: 40%;
  top: 70%;
}
.word-8 {
  font-size: 2.1rem;
  left: 5%;
  top: 75%;
}
.word-9 {
  font-size: 2.3rem;
  left: 60%;
  top: 40%;
}
.word-10 {
  font-size: 2.5rem;
  left: 50%;
  top: 55%;
}

/* Dodanie prostego efektu powiększenia przy najechaniu kursorem */
.word:hover {
  transform: scale(1.1);
}

/* Media query – mniejsze ekrany */
@media screen and (max-width: 768px) {
  .word-cloud {
    width: 95%;
    height: 50vh;
  }

  .word {
    font-size: 1.5rem; /* zmniejszamy czcionkę wszystkich słów na mniejszych ekranach */
  }

  /* Można dodatkowo dostosować pozycje, aby były gęściej lub luźniej rozstawione */
  .word-1 { left: 10%; top: 5%; }
  .word-2 { left: 55%; top: 15%; }
  .word-3 { left: 20%; top: 30%; }
  .word-4 { left: 70%; top: 25%; }
  .word-5 { left: 10%; top: 60%; }
  .word-6 { left: 75%; top: 50%; }
  .word-7 { left: 40%; top: 65%; }
  .word-8 { left: 5%; top: 75%; }
  .word-9 { left: 60%; top: 40%; }
  .word-10 { left: 45%; top: 50%; }
}
/* ------------------ End Services Section ------------------ */


/* ------------------ Projects section ------------------ */
#projects .projects {
  /* Kontener sekcji projektów */
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}

/* Nagłówek główny sekcji */
#projects .projects-header h1 {
  margin-bottom: 50px;
  font-size: 5rem;
}

.projects-description h2{
  font-size: 2rem;
  font-weight: 500;
  text-align:center;
}
.projects-description p{
  font-size: 1.4rem;
  font-weight: 500;
  text-align:center;
}

/* Pasek zakładek (linki do filtrów) */
.projects-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;  /* Możesz zmienić na left lub right */
  margin: 20px 0;
}

/* Same linki zakładek */
.projects-tabs .tab-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 2rem;
  transition: color 0.3s ease;
}

/* Podkreślenie na hover */
.projects-tabs .tab-link:hover {
  text-decoration: underline;
}

/* Styl aktywnej zakładki (pokazujemy, że jest aktualnie wybrana) */
.projects-tabs .tab-link.active {
  font-weight: bold;
  text-decoration: underline;
  color: var(--accent-dark);
}

/* Kontener sekcji (ogólny) */
.projects.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Nagłówek sekcji (tytuł) */
.projects-header .section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Pasek zakładek (linki) - bardziej szczegółowe style */
.projects-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.projects-tabs .tab-link {
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: #ddd;
  color: #333;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.projects-tabs .tab-link:hover {
  background-color: #bbb;
}

.projects-tabs .tab-link.active {
  background-color: var(--accent-dark);
  color: #fff;
}

.projects-content {
  display: none;
  width: 100%; 
}

.projects-content.active {
  display: block;
}

.projects-content ul {
  display: block;   
  list-style: none;   
  margin: 0;
  padding: 0;
}

.projects-content li {
  background: #f8f8f8;
  padding: 1.6rem;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 1rem; 
}

.projects-content .title {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
}

.projects-content li .location,
.projects-content li .range,
.projects-content li .general-investor {
  overflow: visible;
  text-overflow: ellipsis;
  white-space: wrap;
  margin: 0.2rem 0;
}


/* ------------------ End Projects section ------------------ */


/* ------------------ About Section ------------------ */
#about .about {
  flex-direction: column-reverse;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}
#about .col-left {
  width: 200;
  height: 200px;
}
#about .col-right {
  width: 100%;
}
#about .col-right h2 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  margin-bottom: 10px;
}
#about .col-right p {
  margin-bottom: 20px;
  font-size: 2rem;
  text-align: justify;
}
#about .col-right .cta {
  color: var(--text-dark);
  margin-bottom: 50px;
  padding: 10px 20px;
  font-size: 2rem;
}
#about .col-right .cta-1 {
  color: var(--text-dark);
  margin-bottom: 50px;
  padding: 10px 20px;
  font-size: 2rem;
}
#about .col-left .about-img {
  height: 100%;
  width: auto;
  position: relative;
  border: 10px solid var(--text-light);
}
#about .col-left .about-img::after {
  content: '';
  position: absolute;
  left: -33px;
  top: 19px;
  height: 98%;
  width: 98%;
  border: 7px solid var(--accent);
  z-index: -1;
}
/* ------------------ End About Section ------------------ */

#references {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

#references .references-header h1 {
  margin-bottom: 50px;
  text-align: center;
  margin: 0%;
  padding-right: 50px;
}

.slider-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  display: block;
  height: auto;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background-color: #fafafa;
  border-top: 1px solid #eee;
}

.logo-item {
  width: 65px;
  height: 65px;
  cursor: pointer;
  transition: transform 0.3s;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  object-fit:inherit;
  
}

.logo-item:hover {
  transform: scale(1.3);
}

/* Dodatkowy styl, aby podkreślić aktywne logo */
.logo-item.active {
  border-color: #007BFF; /* lub dowolny kolor podkreślenia */
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ------------------ Contact Section ------------------ */
#contact .contact {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}
#contact .contact-items {
  width: 100%;
}
#contact .contact-item {
  width: 80%;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  padding: 30px;
  margin: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0px 0px 18px 0 #0000002c;
  transition: 0.3s ease box-shadow;
}
#contact .contact-item:hover {
  box-shadow: 0px 0px 5px 0 #0000002c;
  cursor: pointer;
}
#contact .icon {
  width: 70px;
  margin: 0 auto;
  margin-bottom: 10px;
}
#contact .contact-info h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 5px;
}
#contact .contact-info h2 {
  font-size: 1.3rem;
  line-height: 2rem;
  font-weight: 500;
}
/* ------------------ End contact Section ------------------ */


/* ------------------ Footer ------------------ */
#footer {
  background-image: var(--gradient-gb);
}
#footer .footer {
  min-height: 200px;
  flex-direction: column;
  padding-top: 50px;
  padding-bottom: 10px;
}
#footer h1 {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  margin-top: 10px;
  margin-bottom: 10px;
}
#footer h2 {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  margin-top: 10px;
  margin-bottom: 10px;
}
#footer .social-icon {
  display: flex;
  margin-bottom: 30px;
  float: left;
}
#footer .social-item {
  height: 100px;
  margin: 0 5px;
  float: left;
}
#footer .social-item img {
  transition: 0.3s ease filter;
  height: 100%;
  width: auto;
}

#footer p {
  color: var(--text-light);
  font-size: 1.3rem;
}


/* ------------------ End Footer ------------------ */


/* ------------------ Keyframes ------------------ */
@keyframes hamburger_puls {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}
@keyframes text_reveal_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}
@keyframes text_reveal {
  100% {
    color: var(--text-light);
  }
}
@keyframes text_reveal_name {
  100% {
    color: var(--accent);
    font-weight: 500;
  }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
/* ------------------ End Keyframes ------------------ */


/* ------------------ Media Query For Tablet ------------------ */
@media only screen and (min-width: 768px) {
  .cta {
    font-size: 2.5rem;
    padding: 20px 60px;
  }
  .cta-1 {
    font-size: 2.5rem;
    padding: 20px 60px;
  }
  h1.section-title {
    font-size: 6rem;
  }
  /* main */
  #main h1 {
    font-size: 7rem;
  }
  /* End main */

  /* Services Section */
  #services .service-bottom .service-item {
    flex-basis: 45%;
    margin: 2.5%;
  }

  #services .service-service .service-element {
    flex-basis: 45%;
    margin: 2.5%;
  }
  /* End Services Section */

  /* Project */

  /* End Project */

  /* About */
  #about .about {
    flex-direction: row;
  }
  #about .col-left {
    width: 100%;
    height: 100%;
    padding-left: 0px;
  }
  #about .about .col-left .about-img::after {
    left: -45px;
    top: 34px;
    height: 98%;
    width: 98%;
    border: 10px solid var(--accent);
  }
  #about .col-right {
    text-align: left;
    padding: 30px;
  }
  #about .col-right h1 {
    text-align: left;
  }
  /* End About */

  /* contact  */
  #contact .contact {
    flex-direction: column;
    padding: 100px 0;
    align-items: center;
    justify-content: center;
    min-width: 20vh;
  }
  #contact .contact-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
  }
  #contact .contact-item {
    width: 30%;
    margin: 0;
    flex-direction: row;
  }
  #contact .contact-item .icon {
    height: 100px;
    width: 100px;
  }
  #contact .contact-item .icon img {
    object-fit: contain;
  }
  #contact .contact-item .contact-info {
    width: 100%;
    text-align: left;
    padding-left: 20px;
  }
  /* End contact  */
}
/* ------------------ End Media Query For Tablet ------------------ */


/* ------------------ Media Query For Desktop ------------------ */
@media only screen and (min-width: 1200px) {
  /* header */
  #header .hamburger {
    display: none;
  }
  #header .nav-list ul {
    position: initial;
    display: block;
    height: auto;
    width: fit-content;
    background-color: transparent;
  }
  #header .nav-list ul li {
    display: inline-block;
  }
  #header .nav-list ul li a {
    font-size: 1.8rem;
  }
  #header .nav-list ul a:after {
    display: none;
  }
  /* End header */

  #references {
    flex-direction: row; /* obok siebie przy większej szerokości */
    align-items: center; /* wyrównaj pionowo */
  }

  .references-header {
    width: 40%;  /* przykładowa szerokość */
  }

  .slider-container {
    width: 60%;  /* reszta szerokości */
  }

  #services .service-bottom .service-item {
    flex-basis: 22%;
    margin: 1.5%;
  }
  #services .service-service .service-element {
    flex-basis: 22%;
    margin: 1.5%;
  }
}