@font-face {
  font-family: 'fontello';
  src: url('/source/font/fontello.woff2') format('woff2');
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

/**
* *************************************
* *  _   _                _           *
* * | | | | ___  __ _  __| | ___ _ __ *
* * | |_| |/ _ \/ _` |/ _` |/ _ \ '__|*
* * |  _  |  __/ (_| | (_| |  __/ |   *
* * |_| |_|\___|\__,_|\__,_|\___|_|   *
* *                                   *
* *************************************
*/

#header_center_section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}

.header_h1 {
  font-family: poppins;
  text-align: center;
  font-size: 80px;
  padding-top: 220px;
}

.contact_h1_subheader {
  font-family: meri;
  font-size: 22px;
  text-align: center;
  margin: 0;
  color: #65778c;
}

.contact_spacer-line {
  margin: 50px 0px;
  justify-content: center;
  display: flex;
  width: 100%;
}

.contact_line_80 {
  width: 80%;
  background: linear-gradient(90deg, #33333300, #d6d6d6, #33333300);
  height: 1px;
  margin: 50px auto;
}

@media only screen and (max-width: 1000px) {
  #header_center_section {
      padding: 0 12.5%;
  }

  .header_h1 {
    font-size: 60px;
  }
}

/**
*  ____            _   _               ____
* / ___|  ___  ___| |_(_) ___  _ __   |___ \
* \___ \ / _ \/ __| __| |/ _ \| '_ \    __) |
*  ___) |  __/ (__| |_| | (_) | | | |  / __/
* |____/ \___|\___|\__|_|\___/|_| |_| |_____|
*/
/* SECTION 2 */

#services_section {
  width: 100%;
  padding: 200px 0 100px 0;
}

.s2_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 6%;  /* horizontal space between columns */
  row-gap: 50px;     /* vertical space between rows */
  padding: 0 50px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box; /* ensures padding is included in max-width */
}

.s2_cell {
  align-content: center;
  /* border: 1px solid black; */
}

.s2_cell:nth-child(3) {
  order: 4;
}

.s2_cell:nth-child(4) {
  order: 3;
}

.s2_cell:nth-child(5) {
  order: 5;
}

.s2_cell:nth-child(6) {
  order: 6;
}

.s2_nadpis {
  font-family: poppins;
  padding-top: 10px;
  letter-spacing: -.67px !important;
  font-weight: 100;
  font-size: 36px;
  line-height: 36px;
}

.s2_popis {
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #65778c;
  font-size: 16px;
    letter-spacing: -.18px;
    line-height: 30px;
    margin-top: 20px;
}

.service_image {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  width: 100%;
  background-size: contain;        /* alebo contain */
  background-position: center;   /* alebo top / bottom / left / right */
  background-repeat: no-repeat;  /* aby sa neopakoval */
}

.modeling {
  /* background-image: url('/source/media/services/Modeling.webp'); */
  background-image: url('/source/media/services/3D_modeling.webp');
}

.texturing {
  /* background-image: url('/source/media/services/Texturing.webp'); */
  background-image: url('/source/media/services/UV_Check.webp');
}

.material {
  /* background-image: url('/source/media/services/Material.webp'); */
  background-image: url('/source/media/services/Materials.webp');
}

.photog {
  /* background-image: url('/source/media/services/Photogrammetry.webp'); */
  background-image: url('/source/media/services/Photogrammetry_1.webp');
}

.tracking {
  /* background-image: url('/source/media/services/Tracking.webp'); */
  background-image: url('/source/media/services/Camera_tracking.webp');
}

.matchmoving {
  background-image: url('/source/media/services/Matchmoving.webp');
}

.rigging {
  /* background-image: url('/source/media/services/Rigging.webp'); */
  background-image: url('/source/media/services/Rigging_1.webp');
}

.weight {
  /* background-image: url('/source/media/services/Weight.webp'); */
  background-image: url('/source/media/services/Weightmapping.webp');
}

.animation {
  /* background-image: url('/source/media/services/Animation.webp'); */
  background-image: url('/source/media/services/Animation_1.webp');
}

.particles {
  /* background-image: url('/source/media/services/Particles.webp'); */
  background-image: url('/source/media/services/Particles_1.webp');
}

.volume {
  /* background-image: url('/source/media/services/Volume.webp'); */
  background-image: url('/source/media/services/3D_Volumes.webp');
}

.fluids {
  /* background-image: url('/source/media/services/Fluids.webp'); */
  background-image: url('/source/media/services/3D_Fluids.webp');
}

.aov {
  /* background-image: url('/source/media/services/aov.webp'); */
  background-image: url('/source/media/services/aov_1.webp');
}

.shadow {
  /* background-image: url('/source/media/services/shadow.webp'); */
  background-image: url('/source/media/services/Shadow_matte.webp');
}

.comp {
  /* background-image: url('/source/media/services/comp.webp'); */
  background-image: url('/source/media/services/compositing.webp');
}

@media (max-width: 1000px) {
  .s2_nadpis {
    font-size: 30px;
    line-height: 30px;
  }
}
@media (max-width: 900px) {
  #services_section {
    height: auto;
    padding-top: 0px;
    padding-bottom: 100px;
  }

  .service_image {
    border-radius: 0px;
    aspect-ratio: 1 / 1;
    width: 100%;
    background-size: cover;        /* alebo contain */
    background-position: center;   /* alebo top / bottom / left / right */
    background-repeat: no-repeat;  /* aby sa neopakoval */
  }

  .s2_container {
    grid-template-columns: 1fr;
    padding: 0px;
  }

  .s2_cell {
    text-align: center;
    width: 85%;
    margin: 0 auto;
  }

  .s2_nadpis {
    font-size: 24px;
    line-height: 24px;
  }

  .s2_cell:has(.service_image) {
    width: 100%;
  }

  .s2_cell:nth-child(1) {
    order: 1; /* Presunuté na iné miesto */
  }

  .s2_cell:nth-child(2) {
    order: 2; /* Presunuté na iné miesto */
  }

  .s2_cell:nth-child(3) {
    order: 3; /* Presunuté na iné miesto */
  }

}

/**
* *********************************************************
* *  ____                  _            _   _             *
* * / ___|  ___ _ ____   _(_) ___ ___  | \ | | __ ___   __*
* * \___ \ / _ \ '__\ \ / / |/ __/ _ \ |  \| |/ _` \ \ / /*
* *  ___) |  __/ |   \ V /| | (_|  __/ | |\  | (_| |\ V / *
* * |____/ \___|_|    \_/ |_|\___\___| |_| \_|\__,_| \_/  *
* *                                                       *
* *********************************************************
*/
/* Service Nav */

#services_nav_section {
  display: flex;
  align-items: anchor-center;
  padding: 100px 50px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box; /* ensures padding is included in max-width */
}

.services_nav_left{
  flex: 1;

  display: flex;
  justify-content: flex-start;
}

.services_nav_center{
  /* background-color: #c4c4ff; */
  text-align: center;
  justify-items: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.services_nav_right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  text-align: end;
}

.services_cell a {
  display: flex;
  align-items: center;
  gap: 1rem; /* spacing between icon and text */
  text-decoration: none;
}

.services_lootie_icon {
  width: 60px;
  height: 60px;
}

.services_nadpis {
  font-family: meri;
  font-size: 16px;
  letter-spacing: -.28px;
  margin: 0;
  color: #65778c;
}

.services_popis {
  font-family: poppins;
  font-size: 22px;
  letter-spacing: -.28px;
  margin: 0;
  color: #000;
  padding-top: 10px;
}

.arrow {
    font-family: 'fontello';
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 0px;
    color: #000;
    user-select: none;
}

.arrow.left {
    /* left: 20px; */
}

.arrow.right {
    /* right: 20px; */
}

.icon-right-open-big:before { content: '\e800'; } /* '' */
.icon-left-open-big:before { content: '\e801'; } /* '' */
.icon-cancel:before { content: '\e802'; } /* '' */
.icon-plus:before { content: '\e803'; } /* '' */

a.hover-wrapper {
  display: inline-flex;
  width: 50px;
  height: 50px;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  position: relative;
}

.button-cube {
  width: 14px;
  height: 14px;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s , height 0.2s ;
  pointer-events: none; /* so the button doesn't block the link */
}

.button-cube .dot {
  width: 4px;
  height: 4px;
  background: black;
  position: absolute;
  transition: all 0.2s ease;
}

/* Corner positions */
.dot.tl { top: 0; left: 0; }
.dot.tr { top: 0; right: 0; }
.dot.bl { bottom: 0; left: 0; }
.dot.br { bottom: 0; right: 0; }

/* Hover effect from link wrapper */
a.hover-wrapper:hover .button-cube {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  #services_nav_section {
    padding: 100px 0;
    width: 95%;
  }
}

@media (max-width: 768px) {
  .services_lootie_icon {
    display: none;
  }

  .services_popis {
    font-size: 22px;
    font-size: 3.6svw;
  }
}

/**
* **************************************
* *  _____            _                *
* * | ____|_  ___ __ | | ___  _ __ ___ *
* * |  _| \ \/ / '_ \| |/ _ \| '__/ _ \*
* * | |___ >  <| |_) | | (_) | | |  __/*
* * |_____/_/\_\ .__/|_|\___/|_|  \___|*
* *            |_|                     *
* **************************************
*/
/* Explore */

#explore_section {
  display: flex;
  justify-content: center;
}

.all-projects {
  font-family: poppins;
  text-align: center;
  border: 1px solid #c8d8df;
  border-radius: 50px;
  box-sizing: border-box;
  color: #65778c;
  font-size: 18px;
  height: 90px;
  letter-spacing: -.5px;
  line-height: 88px;
  padding: 0 45px;
  position: relative;
  transition: all .2s ease-out;
  -webkit-user-select: none;
  text-decoration: none;
}

a.all-projects:hover {
    background-color: #65778c;
    border-color: #65778c;
    color: #fff;
}

@media (hover: none) {
  .all-projects {
    background-color: #65778c;
    border-color: #65778c;
    color: #fff;
  }
}

@media (max-width: 768px) {
  .all-projects {
    width: 85%;
  }
}
