@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

@import url("./responsiveATM.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat";
  color: var(--fontColor);
}

:root {
  --fontColor: #003049;
  --orangeColor: #f5831f;
  --bgColor: #f5f5f5;
}

body {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

li {
  list-style: none;
}
a {
  text-decoration: none;
  color: var(--fontColor);
}

nav {
  width: 100%;
  height: 70px;
}

nav .navbar {
  height: 100%;
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
}

nav .navbar .nav-links {
  height: 100%;
  line-height: 70px;
}

nav .navbar .links {
  display: flex;
}

nav .navbar .links .arrow {
  height: 100%;
  width: 22px;
  text-align: center;
  line-height: 70px;
  transition: all 0.3s ease;
}

nav .navbar .nav-links .links li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

nav .navbar .nav-links .links .contactBtn,
nav .navbar .nav-links .links .lang {
  display: none;
}

nav .navbar .contact-lang .links li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

nav .navbar .contact-lang .links li a,
nav .navbar .nav-links .links li a {
  height: 100%;
  white-space: nowrap;
}
nav .navbar .contact-lang .links li.contactBtn a {
  font-weight: 700;
  color: var(--orangeColor);
}

nav .navbar .nav-links .links li:hover .arrow,
nav .navbar .contact-lang .links li:hover .arrow {
  transform: rotate(180deg);
  text-decoration: none;
}

nav .navbar .nav-links .links .subMenu {
  position: absolute;
  z-index: 100;
  top: 70px;
  left: 0;
  line-height: 40px;
  box-shadow: 0 0 5px var(--fontColor);
  border-radius: 10px;
  display: none;
  background: var(--bgColor);
}

nav .navbar .contact-lang .links .subMenu {
  position: absolute;
  top: 50px;
  left: 10px;
  line-height: 40px;
  box-shadow: 0 0 5px var(--fontColor);
  border-radius: 10px;
  display: none;
}

/* /////////////////////////////////////////// */
nav .navbar .nav-links .links .subMenu li:hover,
nav .navbar .contact-lang .links .contactLangSubmenu li:hover {
  background: #eae2b7;
  border-radius: 10px;
}
/* /////////////////////////////////////////// */

nav .navbar .nav-links .links .subMenu li {
  padding: 0 15px;
  line-height: 50px;
}

nav .navbar .nav-links .links .subMenu li a {
  color: var(--fontColor);
}

nav .navbar .nav-links .links li:hover .enterprisesSubmenu {
  display: block;
  z-index: 100;
}

.navbar .bx-menu,
nav .navbar .nav-links .sidebar-logo,
.nav-links .sidebar-logo .bx-x {
  display: none;
}

.lineDots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 80%;
  margin: 5rem auto;
}

.lineDot {
  position: relative;
  text-align: center;
}

.companyLogo {
  position: relative;
  transition: transform 0.3s ease;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(245, 131, 31, 0.2);
  border-radius: 50%;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.lineDot a {
  text-decoration: none;
}

.lineDot a img {
  width: 100%;
  margin-bottom: 20px;
}

/* Animation classes */
.lineDot .dot.enlarge {
  transform: scale(2) translateX(-50%);
  background-color: #f5831f;
}

.lineDot .companyLogo.move-up {
  transform: translateY(-20px);
}

.sideDecor {
  display: flex;
  justify-content: space-between;
}

.sideDecor .leftDecor,
.sideDecor .rightDecor {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sideDecor .rightDecor {
  align-items: flex-end;
}
.sideDecor .leftDecor {
  align-items: flex-start;
}

#content {
  width: 100%;
  position: absolute;
  top: 8%;
  z-index: 5;
  flex: 1;
}

#content .container {
  width: 80%;
  margin: auto;
}
.container .rows {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.rows .servicesHeader {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(to top, #f5831f, #ffaa6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.rows .aboutCompany {
  width: 80%;
  margin: auto;
}
.aboutCompany .header {
  margin-bottom: 20px;
}
.aboutCompany .header h1 {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(to top, #f5831f, #ffaa6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.paragrph {
  margin-bottom: 80px;
}
.paragrph p {
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  font-weight: 500;
}

.paragrph p span {
  font-weight: 600;
}

.button {
  display: flex;
  justify-content: center;
}

.button a {
  text-align: center;
  padding: 10px 20px;
  background: #f5831f;
  border-radius: 6px;
  color: var(--bgColor);
  transition: all 0.5s ease;
}

.button a:hover {
  cursor: pointer;
  background: #fcbf49;
  color: var(--fontColor);
}

.rows .servicesHeader h1 {
  text-align: center;
  font-size: 40px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.servElement {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform ease 0.8s;
}
.picture {
  width: 100%;
}

.picture img {
  width: 100%;
  height: auto;
  transition: transform ease 0.8s;
}

.nameServ {
  margin: 2rem 0;
  font-weight: 500;
  font-size: 16px;
}

.servElement:hover .picture img {
  transform: scale(1.1);
}

.paper {
  /* min-height: 70vh; */
  display: grid;
  place-items: center;
  margin: 50px auto;
}

.paper .headerText {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 1rem;
}

.headerText h1 {
  font-size: 40px;
  text-align: center;
  background: linear-gradient(to top, #f5831f, #ffaa6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.headerText p {
  font-size: 18px;
  line-height: 30px;
  text-align: justify;
  font-weight: 500;
}

.headerText p span {
  font-weight: bold;
}

.paper .gallery {
  --size: 150px;
  display: grid;
  grid-template-columns: repeat(6, var(--size));
  grid-auto-rows: var(--size);
  place-items: start center;
  gap: 5px;
}

.paper .gallery:has(:hover) img:not(:hover),
.paper .gallery:has(:focus) img:not(:focus) {
  filter: brightness(0.5) contrast(0.5);
}

.gallery img {
  object-fit: cover;
  width: calc(var(--size) * 2);
  height: calc(var(--size) * 2);
  clip-path: path(
    "M 120 30 C 150 0 150 0 180 30 C 210 60 240 90 270 120 C 300 150 300 150 270 180 C 240 210 210 240 180 270 C 150 300 150 300 120 270 C 90 240 60 210 30 180 C 0 150 0 150 30 120 Z"
  );
  transition: clip-path 0.25s, filter 0.75s;
  grid-column: auto / span 2;
  border-radius: 1rem;
}

.gallery img:nth-child(5n - 1) {
  grid-column: 2 / span 2;
}

.gallery img:hover,
.gallery img:focus {
  clip-path: path(
    "M 0 0 C 150 0 150 0 300 0 C 300 75 300 75 300 120 C 300 150 300 150 300 180 C 300 225 300 225 300 300 C 150 300 150 300 0 300 C 0 225 0 225 0 180 C 0 150 0 150 0 120 Z"
  );
  z-index: 1;
  transition: clip-path 0.25s, filter 0.25s;
}

.gallery img:focus {
  outline: 1px dashed black;
  outline-offset: -5px;
}

.partners {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  width: 70%;
  margin: 100px auto;
  gap: 50px;
}

.partners .cybersecurity,
.partners .hytera,
.partners .schneider {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 10px;
  border-bottom: 2px solid rgba(0, 48, 73, 0.2);
}

.partners .schneider {
  border: none;
}

.partners .cybersecurity {
  background: url("../image/cybersecurity_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.partners .hytera {
  background: url("../image/hytera-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.partners .schneider {
  background: url("../image/Schneider_Electric_logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.partners .header h2 {
  font-size: 40px;
  text-align: center;
  background: linear-gradient(to bottom, #f5831f, #ffaa6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.partners .text {
  font-weight: 500;
  font-size: 18px;
  line-height: 35px;
  text-align: justify;
}

.partners .text span {
  font-weight: bold;
}

.partners .text span a {
  font-weight: 600;
  color: blue;
  text-decoration: underline;
}

#footer {
  width: 100%;
  padding: 20px;
  background: #f5f5f5;
  border-top: 5px solid #003049;
}

#footer .footerWrapper {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  font-weight: 500;
  background: #f5f5f5;
}

#footer a:hover {
  color: #f5831f;
  transition: all 0.3s ease;
}

#footer .footerWrapper .footerMain {
  display: flex;
  justify-content: space-evenly;
  line-height: 30px;
}

#footer .footerWrapper .footerMain .footerAdress {
  max-width: 200px;
}

#footer .footerWrapper .footerMain .footerContacts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#footer .footerWrapper .footerMain .footerMedia {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

#footer .footerWrapper .footerRights {
  width: 70%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: auto;
  padding-bottom: 30px;
}

#footer .footerWrapper .footerRights a {
  text-decoration: none;
}
