/* ---------- Common ---------- */
*{
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    background-color: white; 
}

html.lenis{
  height:auto;
}

.lenis.lenis-smooth{
  scroll-behavior:auto;
}

body {
  margin: 0;
}

#page { 
  position: relative;
  z-index: 0;
}

.bi {
  font-size: 48px;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
}

/* ---------- Hero ---------- */
#hero {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  background-color: white;
}

#hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.01);
}

#hero h1 {
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 40px;
  font-size: 100px;
  letter-spacing: 3px;
  font-weight: 700;
  z-index: inherit;
}

.title-line {
  display: block;
}

.main-title {
  -webkit-text-stroke: 3px;
  -webkit-text-stroke-color: white;
  color: transparent;
  font-family: Arial, Helvetica, sans-serif;
  display: block;
}

#first-hero-title {
  padding-top: 60px;
}

#sub-title {
  color: white;
}

#hero-description {
  font-size: 25px;
  margin-bottom: 40px;
  font-weight: 600;
  color: white;
  z-index: inherit;
}

.primary-link {
  background-color: white;
  color: black;
  border: 1px solid white;
  padding: 14px 32px;
  width: fit-content;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#hero-button {
  z-index: inherit;
}

#hero-button:hover {
  background-color: #481366;
  border-color: #481366;
  color: white;
}

@media (max-width: 1292px) {
  #hero h1 {
    font-size: clamp(32px, 16vw, 64px);
    line-height: 1.1;
  }
  
  .main-title{
    -webkit-text-stroke: 2px;
    -webkit-text-stroke-color: white;
  }

  #hero video{
    transform: none;
  }

  #hero-description {
    font-size: clamp(22px, 4vw, 35px);
    padding: 0 10px;
  }

  .primary-link {
    padding: 7px 14px;
    font-size: clamp(18px, 2vw, 16px);
  }
}

/* ---------- Shapes ---------- */
.right-side-shape {
  position: absolute;
  right: -160vw;
  top: auto;
  width: 1750px;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  transform: scaleY(-1);
}

.left-side-shape {
  position: absolute;
  left: -45vw;
  top: auto;
  width: 1600px;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

@media (min-width: 320px) {
  .right-side-shape {
    right: -495vw;
    width: 2150px;
  }
}

@media (min-width: 400px) {
  .right-side-shape {
    right: -350vw;
    width: 1950px;
  }
}

@media (min-width: 500px) {
  .right-side-shape {
    right: -245vw;
    width: 1750px;
  }
}

@media (min-width: 556px) {
  .right-side-shape {
    right: -220vw;
  }
}

@media (min-width: 662px) {
  .right-side-shape {
    right: -180vw;
  }
}

@media (min-width: 768px) {
  .right-side-shape {
    right: -140vw;
    width: 1650px;
  }
}

@media (min-width: 900px) {
  .right-side-shape {
    right: -110vw;
    width: 1650px;
  }
}

@media (min-width: 1000px) {
  .right-side-shape {
    right: -100vw;
    width: 1675px;
  }
}

@media (min-width: 1100px) {
  .right-side-shape {
    right: -85vw;
    width: 1750px;
  }
}

@media (min-width: 1200px) {
  .right-side-shape {
    right: -77vw;
    width: 1750px;
  }
}

@media (min-width: 1340px) {
  .right-side-shape {
    right: -60vw;
    width: 1725px;
  }
}

@media (min-width: 1536px) {
  .right-side-shape {
    right: -40vw;
    width: 1550px;
  }
}

@media (min-width: 1710px) {
  .right-side-shape {
    right: -30vw;
    width: 1550px;
  }
}

@media (min-width: 2200px) {
  .right-side-shape {
    right: -20vw;
    width: 1550px;
  }
}

@media (min-width: 2500px) {
  .right-side-shape {
    right: -15vw;
    width: 1550px;
  }
}

@media (min-width: 320px) {
  .left-side-shape {
    left: -675vw;
    width: 3850px;
  }
}

@media (min-width: 400px) {
  .left-side-shape {
    left: -625vw;
    width: 3850px;
  }
}

@media (min-width: 500px) {
  .left-side-shape {
    left: -475vw;
    width: 3850px;
  }
}

@media (min-width: 556px) {
  .left-side-shape {
    left: -375vw;
  }
}

@media (min-width: 662px) {
  .left-side-shape {
    left: -350vw;
  }
}

@media (min-width: 768px) {
  .left-side-shape {
    left: -335vw;
    width: 3850px;
  }
}

@media (min-width: 800px) {
  .left-side-shape {
    left: -300vw;
    width: 3850px;
  }
}

@media (min-width: 900px) {
  .left-side-shape {
    left: -185vw;
    width: 2450px;
  }
}

@media (min-width: 1000px) {
  .left-side-shape {
    left: -150vw;
    width: 2450px;
  }
}

@media (min-width: 1100px) {
  .left-side-shape {
    left: -125vw;
    width: 2450px;
  }
}

@media (min-width: 1200px) {
  .left-side-shape {
    left: -125vw;
    width: 2450px;
  }
}

@media (min-width: 1340px) {
  .left-side-shape {
    left: -95vw;
    width: 2450px;
  }
}

@media (min-width: 1536px) {
  .left-side-shape {
    left: -90vw;
    width: 2450px;
  }
}

@media (min-width: 1710px) {
  .left-side-shape {
    left: -50vw;
    width: 1850px;
  }
}

@media (min-width: 2200px) {
  .left-side-shape {
    left: -40vw;
    width: 1950px;
  }
}

@media (min-width: 2500px) {
  .left-side-shape {
    left: -30vw;
    width: 1950px;
  }
}

/* ---------- Blog ---------- */
#blog {
  padding: 80px 20px;
  text-align: center;
}

#blog h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 80px;
  color: #231F20;
}

.blog-wrapper .card-list {
  display: flex;
  align-items: stretch !important;
}

.blog-wrapper .swiper-slide {
  height: auto;
}

.blog-wrapper .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 25px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  border: 2px solid #0B00CF;
}

.blog-wrapper .card:hover {
  border: 2px solid #EE3732;
}

.card-list {
  margin-bottom: 50px;
}

.card .card-image {
  position: relative;
}

.card .card-image img {
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card .card-image .card-tag {
  position: absolute;
  left: 25px;
  top: 25px;
  color: #0B00CF;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.80rem;
  padding: 5px 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.blog-wrapper .card:hover .card-tag,
.blog-wrapper .card:hover .card-title {
  color: #EE3732;
}

.card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px 25px 25px;
}

.card .card-content .card-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  min-height: calc(1.2em * 2);
  max-height: calc(1.2em * 2);
  color: #0B00CF;
}

.card .card-content .card-text {
  color: #747474;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: calc(2em * 3);
  max-height: calc(2em * 3);
}

.card .card-content .card-footer {
  display: flex;
  align-items: center;
  padding-top: 15px;
  margin-top: auto;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card .card-footer .card-button {
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
  background-color: #0B00CF;
  transition: background-color 0.3s;
}

.blog-wrapper .card:hover .card-button {
  background-color: #EE3732;
}

.card .card-footer .card-button:hover {
  background-color: #EE3732;
}

.blog-wrapper .swiper-pagination-bullet {
  height: 10px;
  width: 10px;
  background-color: royalblue;
}

@media (min-width: 344px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3.8);
    max-height: calc(2em * 3.8);
  }
}

@media (min-width: 390px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3);
    max-height: calc(2em * 3);
  }
}

@media (min-width: 414px) {
  .card .card-content .card-text {
    min-height: calc(2em * 2.5);
    max-height: calc(2em * 2.5);
  }
}

@media (min-width: 768px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3);
    max-height: calc(2em * 3);
  }
}

@media (min-width: 820px) {
  .card .card-content .card-text {
    min-height: calc(2em * 2.5);
    max-height: calc(2em * 2.5);
  }
}

@media (min-width: 1280px) {
  .card .card-content .card-text {
    min-height: calc(2em * 2);
    max-height: calc(2em * 2);
  }
}

@media (min-width: 1536px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3.5);
    max-height: calc(2em * 3.5);
  }
}

@media (min-width: 1722px) {
  .card .card-content .card-text {
    min-height: calc(2em * 3);
    max-height: calc(2em * 3);
  }
}

/* ---------- About ---------- */
#about {
  padding: 80px 20px;
  display: flex;
  justify-content: flex-start; /* <-- fontos! */
}

#about-container {
  max-width: 1200px;
  width: 100%;
  text-align: left;
  margin: 0 auto;
}

@media (max-width: 1300px) {
  #about-container {
      max-width: 550px;
  }
}

#about h2 {
  font-size: 100px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 1200px;
  color: #231F20;
}

#about p {
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 50px;
  max-width: 700px;
  text-align: justify;
}

#about-button {
  background-color: #0B00CF;
  color: white;
  padding: 15px 20px;
  font-size: 18px;
  border-radius: 40px;
  text-decoration: none;
}

#about-button:hover {
  background-color: #EE3732;
}

@media (max-width: 1079px) {
  #about h2 {
    font-size: clamp(36px, 16vw, 56px);
  }
}

/* ---------- Numbers ---------- */
.numbers {
  background-color: #ee383210;
  margin: 80px -20px;
  padding: 90px;
  position: relative;
  z-index: 1;
}

.numbers .items {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.numbers .items .item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.numbers .items .item h3 {
  font-size: 80px;
  line-height: 100px;
  font-weight: 800;
  color: red;
  margin-bottom: 0;
  text-transform: uppercase;
}

.numbers .items .item p {
  font-size: 20px;
  line-height: 28px;
  color: red;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0;
}

@media (max-width: 1079px) {
  .numbers {
    padding: 40px;
    margin: 60px -20px;
  }

  .numbers .items {
    flex-direction: column;
    gap: 40px;
  }

  .numbers .items .item {
    align-items: center;
    text-align: center;
  }

  .numbers .items .item h3 {
    font-size: 60px;
    line-height: 80px;
  }
}

/* ---------- Services ---------- */
#services {
  padding: 80px 20px;
  text-align: center;
  scroll-margin-top: 100px;
}

#services h2 {
  font-size: 70px;
  margin-bottom: 80px;
  font-weight: 700;
  text-transform: uppercase;
  color: #231F20;
}

.blog-wrapper {
  min-width: 450px;
  padding: 20px 10px;
  margin: 0 auto;
  overflow: hidden;
  max-width: 1820px;
  width: 100%; 
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 30px 30px;
  max-width: 350px;
  text-align: left;
  border: 2px solid #0B00CF;
  transition: border 0.3s;
  background-color: white;
}

.service-card:hover {
  border: 2px solid #EE3732;
}

.card-header {
  display: flex;
  flex-direction: column;
}

.card-header .bi {
  color: #0B00CF;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.service-card:hover .card-header .bi {
  color: #EE3732;
}

.card-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: #0B00CF;
  margin-top: 16px;
  margin-bottom: 16px;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.service-card:hover .card-header h3 {
  color: #EE3732;
}

.card-description {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-description p {
  font-size: 18px;
  color: black;
  line-height: 1.2;
}

.service-about {
  padding-top: 30px;
}

.service-about a {
  background-color: #0B00CF;
  color: white;
  padding: 15px 20px;
  font-size: 18px;
  border-radius: 40px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.service-card:hover .service-about a {
  background-color: #EE3732;
}

.service-about a:hover {
  background-color: #EE3732;
}

@media (max-width: 1079px) {
  #services h2 {
    font-size: clamp(16px, 13vw, 46px);
  }
}

/* ---------- Partners ---------- */
#partners {
  padding: 80px 20px 120px 20px;
  text-align: center;
}

#partners h2 {
  font-size: 70px;
  margin-bottom: 80px;
  font-weight: 700;
  text-transform: uppercase;
  color: #231F20;
}

.partners-overlay {
  border-radius: 12px;
}

#partners p {
  font-size: 18px;
  margin-bottom: 40px;
}

.partner-logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.partner-logos-container .swiper {
  width: 90%;
}

.partner-logos-container .swiper-slide {
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logos-container .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: filter .3s;
}

.partners-wrapper .swiper-wrapper{
  transition-timing-function: linear;
}

@media (max-width: 1079px) {
  #partners h2 {
    font-size: clamp(16px, 13vw, 46px);
  }
}