@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@100;200;300;400;500;600;700;800;900&family=Russo+One&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  position: relative;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  padding-top: 80px;
}
.container {
  width: min(100% - 15px, 1300px);
  margin-inline: auto;
  padding: 10px;
}
.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: auto;
}
.md-2,
.md-3,
.md-4,
.md-6,
.md-8,
.md-9,
.md-12 {
  padding-top: 7.5px;
  padding-bottom: 7.5px;
}
.md-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}
.md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}
.md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.md-5 {
  flex: 0 0 41.66666%;
  max-width: 41.666666%;
}
.md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.md-7 {
  flex: 0 0 58.33333%;
  max-width: 58.33333%;
}
.md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}
.md-9 {
  flex: 0 0 75%;
  max-width: 75%;
}
.md-10 {
  flex: 0 0 83.333335%;
  max-width: 83.333335%;
}
.md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
.box {
  padding: 10px;
  margin: auto;
  position: relative;
}
a {
  color: unset;
  text-decoration: none;
}
img {
  width: 100%;
}
.hero-content {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}
header {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 720px;
  margin: auto;
}
.grey-circle {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 200px solid black;
  position: absolute;
  bottom: -50%;
  right: -45%;
  z-index: -1;
  opacity: 0.05;
}
.green-circle {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 200px solid rgb(2, 79, 37);
  position: absolute;
  bottom: -100%;
  left: -50%;
  z-index: -1;
  opacity: 0.1;
}
header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-title {
  margin: 60px auto;
  display: block;
  text-align: center;
}
.main-title img {
  max-width: 200px;
}
header h1,
header h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  translate: -50% -50%;
  z-index: 1;
  font-weight: bolder;
  font-size: 100px;
  font-family: "Russo One", sans-serif;
  color: rgb(10, 130, 22);
}
section h2 {
  font-size: 44px;
  text-align: center;
  color: rgb(103, 103, 103);
  text-transform: uppercase;
  margin-bottom: 60px;
  font-weight: bolder;
}
header h1:after {
  background: url(./img/shutterstock_358233842.jpg);
  background-size: cover;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-font-smoothing: antialiased;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  content: "PETROLTERV";
  opacity: 0.5;
}

.navbar {
  position: fixed;
  left: 50%;
  top: 50px;
  transform: translate(-50%, 0%);
  margin-right: -50%;
  background: rgb(246, 246, 246);
  z-index: 1000;
  border: 1px solid rgb(248, 248, 248);
  border-radius: 30px;
}
.menu li {
  list-style: none;
  display: inline-block;
}
.menu li a {
  padding: 15px 12px;
  display: block;
  margin: 5px;
}

.principles {
  padding: 60px 20px 120px;
  box-sizing: border-box;
  height: 100vh;
  border: 1px solid red;
}

.principles__container {
  margin: 0 auto;
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}
.principles__title {
  font-weight: bold;
  font-size: 42px;
  line-height: 54px;
  color: #1c2f6b;
  margin-bottom: 32px;
}

.principles__counter {
  position: absolute;
  right: 0;
  top: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 24px;
  line-height: 36px;
  color: #30c5ff;
}

.principles__list {
  display: flex;
}

.principles__item {
  background-color: #f5f9ff;
  min-width: 370px;
  padding: 32px;
  margin-left: 30px;
  transition: 0.5s all ease;
  cursor: pointer;
  height: 290px;
  box-sizing: border-box;
}

.principles__item:first-of-type {
  margin-left: 0;
}

.principles__item:after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background-color: #1c2f6b;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
  z-index: -1;
}

.principles__item.active:after {
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

.principles__item:hover {
  background-color: #1c2f6b;
}
.principles__item:hover .principles__description,
.principles__item.active .principles__description {
  color: #fff;
}
.principles__number {
  color: #30c5ff;
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
}
.principles__description {
  color: #1c2f6b;
  font-size: 20px;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  transition: 0.5s all ease;
}
.intro-text {
  max-width: 740px;
  font-size: 20px;
  font-weight: 600;
  margin: auto;
  color: rgb(103, 103, 103);
  letter-spacing: -1px;
  line-height: 1.5em;
}
.intro-text b {
  color: rgb(21, 183, 21);
}
section {
  position: relative;
}
.circle-intro {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: green;
  border-radius: 50%;
  overflow: hidden;
}
.circle-intro:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: url(img/blueprint.jpg);
  opacity: 0.5;
  background-size: cover;
}
#services {
  padding: 80px 0;
}
#services h2,
#tervezes h2 {
  font-size: 40px;
  text-align: left;
  color: rgb(103, 103, 103);
}
#services h2 span,
#tervezes h2 span {
  display: block;
  font-size: 70px;
  color: rgb(21, 183, 21);
}
.service-box {
  margin: 40px 0;
}
.service-box h3 {
  font-weight: bolder;
  margin-bottom: 20px;
}
.service-box p {
  color: rgb(103, 103, 103);
}
.service-circle {
  width: 70%;
  aspect-ratio: 1;
  position: absolute;
  bottom: -25%;
  right: -25%;
  border-radius: 50%;
  z-index: -1;
}
.service-circle:after {
  width: calc(100% + 180px);
  height: calc(100% + 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(21, 183, 21);
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  margin-right: -50%;
  z-index: -2;
}
.service-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  margin-right: -50%;
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
}
#services {
  overflow: hidden;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 2em 3em;
  align-items: center;
}
.partner-logo {
  padding: 30px;
}
.ai-center {
  align-items: center;
}

.p-right {
  padding-right: 30px;
}
.szakterulet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1em;
}
.tervezoi-szakterulet-box {
  background: rgb(245, 245, 245);
  padding: 20px;
  transition: 0.2s;
}
.tervezoi-szakterulet-box:hover {
  background: rgb(229, 229, 229);
}
.tervezoi-list li {
  list-style: none;
  font-weight: 600;
  margin: 12px 0;
}
.grey-circle-2 {
  width: 80%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 200px solid rgb(21, 183, 21);
  position: absolute;
  bottom: -50%;
  left: -45%;
  z-index: -1;
}
#tervezes {
  overflow: hidden;
}
.logo {
  position: absolute;
  top: 20px;
  left: 5%;
  z-index: 100;
}
.logo img {
  max-width: 120px;
}
footer {
  padding: 60px 0;
  background: rgb(29, 29, 29);
}
footer li {
  list-style: none;
  color: white;
  margin: 10px 0;
}
.logo-font {
  font-family: "Russo One", sans-serif;
  font-size: 40px;
}
.service-list li {
  list-style: none;
  margin: 8px 0;
  font-size: 22px;
  font-weight: bold;
  color: rgb(103, 103, 103);
}
#termekeink {
  padding: 80px 0;
  z-index: 1;
  overflow: hidden;
}
#termekeink h3 {
  color: rgb(10, 130, 22);
}
#it h2 {
  color: rgb(10, 130, 22)!important;
}
.blueprint {
  background: url(img/blueprint.jpg);
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  opacity: 0.3;
  z-index: -1;
}
.service-list h3 {
  font-size: 32px;
  color: rgb(103, 103, 103);
  margin-bottom: 40px;
}
#it li {
  list-style: none;
  font-size: 20px;
  font-weight: bold;
  color: rgb(103, 103, 103);
  margin: 12px 0;
}
.szektor h2 {
  text-align: left;
}
.translate {
  margin-top: -200px;
}
li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}
#timeline{
    margin: 60px auto;
    width: 100%;
    padding: 0 3%;
    cursor: grab;
}
.timeline-box{
    background: rgb(240, 240, 240);
    padding: 12px;
    border-radius: 6px;
    display: inline-block;
    white-space: normal;
    height: 140px!important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: .4s;
}

.time::-webkit-scrollbar{
    display: none;
}
.swiper-slide{
    transition: .4s;
}
.date{
    font-size: 25px;
    font-weight: bolder;
    color: rgb(10, 130, 22);
    margin-bottom:20px;
}
.swiper-slide-active{
    background: rgb(10, 130, 22);
    color: white;
    transition: .4s!important;
}
.swiper-slide-active .date{
    color: white;
}
.swiper-button-next, .swiper-button-prev{

    background: rgba(0,0,0,.5);
    padding: 10px!important;
}
.swiper-button-next:after, .swiper-button-prev:after{
    font-size: 15px!important;
    color: white!important;
}
#gallery, #referenciak{
    padding-top: 80px;
    position: relative;

}
.gallery-grid{
    column-count: 3;
    padding: 20px 3%;



}
.gallery-grid img{
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.reference-content{
    width: min(100% - 15px, 1200px);
    margin: auto;
}
.reference-box{
    background: rgb(244, 244, 244);
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;

}
.reference-year{
    font-size: 64px;
    font-weight: bolder;
    color: rgb(10, 130, 22);
}
@media (max-width: 1024px) {
  .md-2,
  .md-3,
  .md-4,
  .md-6,
  .md-8,
  .md-9,
  .md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .szakterulet-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .translate {
    margin-top: unset;
  }
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner-logo {
    padding: 5px;
  }
  .navbar {
    all: unset;
  }
  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 18rem;
    background: white;
    z-index: 100;
    padding-top: 80px;
    translate: 18rem 0;
  }
  .menu li {
    display: block;
  }
  .hero-content {
    margin-top: 100px;
  }
  h2,
  .service-list h3 {
    font-size: 28px !important;
  }
  h2 span {
    font-size: 32px !important;
  }
  .intro-text,
  #about h2 {
    padding: 15px;
    position: relative;
    z-index: 2;
  }
  .intro-text {
    font-size: 18px;
  }
  header h1 {
    font-size: 24px;
  }
  .logo-font {
    font-size: 32px;
  }
  .circle-intro {
    opacity: 0.3;
  }
  .service-circle {
    width: 200px;
    aspect-ratio: 1;
    position: absolute;
    bottom: unset;
    top: 10px;
    right: unset;
    left: 50%;
    margin-right: -50%;
    translate: -50% 0;
    border-radius: 50%;
    z-index: -1;
  }
  .service-circle:after {
    width: calc(100% + 80px);
    height: calc(100% + 80px);
  }
  #services {
    padding-top: 240px;
  }
}
