/*--- Fonts ---*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*-- CSS --*/

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   text-decoration: none;
   list-style: none;
   scroll-behavior: smooth;
}

:root {
   --color-black1: #878044;
   --color-white2: #cac16f;
   --color-white: white;
   --shadow-color: #c0c0c0;

   --transition: .4s ease;
}

body {
   font-family: "Poppins", sans-serif;
   color: var(--color-white);
   background-color: #181818;
}

b {
   color: #878044;
}

h1,h2,h3,h4,h5 {
   color: var(--color-black1);
}

h1 {
   font-size: 60px;
}

h2 {
   font-size: 55px;
}

h3 {
   font-size: 32px;
}

h4 {
   font-size: 24px;
}

h5 {
   font-size: 20px;
}

p {
   font-size: 19px;
}

a {
   font-size: 19px;
   color: var(--color-black1);
}

.btn {
   display: inline-block;
   width: fit-content;
   text-align: center;
   padding: 10px 40px;
   background: var(--color-black1);
   color: var(--color-white);
   cursor: pointer;
   transition: var(--transition);
   border-radius: 50px;
}

.btn:hover {
   opacity: 0.8;
   transform: scale(1.07);
   border-radius: 10px;
}

img {
   width: 100%;
   display: block;
   object-fit: cover;
}

section {
   padding: 80px 0;
   opacity: 0;
   transform: translateY(100px);
   transition: opacity 1s ease, transform 3s ease;
}

section.visible {
   opacity: 1;
   transform: translateY(0);
}

.container {
   width: 90%;
   margin: 0 auto;
   max-width: 1200px;
}

/*-- NAV --*/

nav {
   height: 5rem;
   width: 100%;
   display: flex;
   align-items: center;
   top: 0;
   left: 0;
   position: fixed;
   z-index: 10;
   background: #00000100;
   backdrop-filter: blur(15px);
}

.nav-container {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.logo img {
   max-width: 52px;
}

.navlinks {
   display: flex;
   align-items: center;
   gap: 48px;
   text-transform: uppercase;
}

.navlinks li a {
   border-bottom: 3px solid transparent;
   padding-bottom: 2px;
   transition: var(--transition);
}

.navlinks li a:hover {
   border-color: var(--color-white2);
   color: var(--color-white2);
}

/*-- Header --*/

header {
   height: 100vh;
   display: grid;
   align-items: center;
}

.header-container {
   display: grid;
   grid-template-columns: 52% auto;
   gap: 80px;
   align-items: center;
}

.header-container .header-right img {
   border-radius: 50%;
   animation: animate 5s ease-in-out infinite;
   transition: all 1 ease-in-out;
   filter: grayscale(35%);
   -webkit-filter: grayscale(35%);
}

@keyframes animate {
   0% {
      border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
   }
   50% {
      border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
   }
   100% {
      border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
   }
}

.header-container p {
   margin-bottom: 30px;
   font-size: 20px;
}

/*-- About --*/

#About {
  padding: 50px 0;
  position: relative;
  background-color: #1e1e1e;
  color: white;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 140px;
  align-items: center;
  position: relative;
}

.about-left img {
  width: 100%;
  border-radius: 10%;
  filter: grayscale(40%);
}

.about-right h2 {
  margin-bottom: 10px;
}

.about-right p {
  margin-bottom: 1rem;
}

.decor-arrow {
  position: absolute;
  bottom: -20px;  
  left: 0;      
  width: 100%;  
  height: 50px;  
  pointer-events: none;
}



/*-- Services --*/

.services-container h2 {
   text-align: center;
}

.myservices {
   margin-top: 90px;
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 30px;
}

.myservices article {
   text-align: center;
   display: flex;
   flex-direction: column;
   gap: 30px;
   padding: 40px 20px;
   border-radius: 10px;
   transition: var(--transition);
}

.myservices article:hover {
   transform: scale(1.1);
}

.myservices article i {
   font-size: 4rem;
   margin: auto;
   animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
   0% {
       transform: translateY(0);
   }
   50% {
       transform: translateY(-15px);
   }
   100% {
       transform: translateY(0);
   }
}

/*-- Equipment --*/

#Equipment {
  position: relative;
  background-color: #1e1e1e;
  color: white;
  padding: 50px 0;
  overflow: hidden;
}

.bg-squares {
  position: absolute;
  top: 0;
  left: 0;
   width: 100%;
  height: auto; /* megtartja az arányokat */
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* hátteret ad */
  opacity: 75%;
}

.skills-container {
  position: relative; /* hogy a tartalom a négyzetek fölött legyen */
  z-index: 1;
}

.myskills {
   margin-top: 90px;
   display: grid;
   grid-template-columns: repeat(3,1fr);
   gap: 30px;
}

.myskills article {
   text-align: center;
   flex-direction: column;
   display: flex;
   background-color: #323232;
   box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
   border-radius: 25px;
   align-items: center;
   justify-content: center;
   padding: 20px 0;
   opacity: 90%;
   transition: var(--transition);
}

.skills-container h2 {
   text-align: center;
}

.myskills article:hover {
   box-shadow: none;
}

.myskills article img {
   max-width: 150px;
}

/*-- Partners --*/

#Partners {
  padding: 80px 0;
  background-color: #1e1e1e;/* sötét háttér a vizuális kontraszthoz */
  color: white;
  text-align: center;
}

.partners-container h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  width: 100%;
}

.partner img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle, rgba(255,255,255,1) 25%, rgba(0, 0, 0, 0) 100%);
}

.partner p {
  font-size: 1rem;
  margin: 20px;
}

/*-- References --*/

#References {
  padding: 80px 0;
  background-color: #111;
  color: white;
  text-align: center;
}

.references-container h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.references-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.reference {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
}

.reference iframe {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  margin-bottom: 15px;
}

.reference p {
  font-size: 1rem;
  margin: 0;
}

/*-- Calculator --*/

  #calculator  {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
    padding: 80px 0;
  }

  .calculator-container h2 {
   font-size: 2.5rem;
   margin-bottom: 50px;
   text-align: center;
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
  }
  thead {
    background: #878044;
    color: white;
    font-weight: 600;
  }
  th, td {
    padding: 15px 20px;
    text-align: center;
    user-select: none;
  }
  tbody tr {
    border-bottom: 1px solid #cac16f;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }
  tbody tr:hover {
    background-color: #97947d;
  }

  input[type="checkbox"] {
    position: absolute;
    left: -9999px;
  }

  td.selectable {
    position: relative;
    width: 90px;
    text-align: center;
  }
  td.selectable label::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #878044;
    border-radius: 6px;
    vertical-align: middle;
    background: white;
    transition: background-color 0.3s, border-color 0.3s;
  }
  input[type="checkbox"]:checked + label::before {
    background-color: #878044;
    border-color: #878044;
  }
  input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
  }

  label {
    display: block;
    height: 100%;
    cursor: pointer;
    padding-left: 10px;
  }

  .service-name, .service-price {
    padding-left: 10px;
  }

  .total-table {
    width: 320px;
    margin: 25px auto 0;
    border-radius: 12px;
    background: #878044;
    box-shadow: 0 4px 20px rgb(63 81 181 / 0.1);
  }
  .total-table td {
    white-space: nowrap;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 18px;
  }
  .total-table td:last-child {
    text-align: right;
  }

  @media (max-width: 600px) {
    section {
      padding: 80px 0;
    }
    .total-table {
      width: 100%;
      box-shadow: none;
      background: #878044;
      color: #fff;
      font-weight: 700;
    }
    th, td {
      padding: 12px 10px;
    }
  }

/*-- Contact --*/

.contact-form {
   text-align: center;
}

form { max-width:420px; margin:50px auto; }

.feedback-input {
   display: flex;
   color:white;
   font-family: Helvetica, Arial, sans-serif;
   font-weight:500;
   font-size: 18px;
   border-radius: 5px;
   line-height: 22px;
   background-color: transparent;
   border:2px solid #878044;
   transition: all 0.3s;
   padding: 13px;
   margin-bottom: 15px;
   width:100%;
   box-sizing: border-box;
   outline:0;
 }
 
 .feedback-input:focus { opacity: 0.8; }
 
 textarea {
   height: 150px;
   line-height: 150%;
   resize:vertical;
 }
 
 [type="submit"] {
   width: 100%;
   background:#878044;
   border-radius:5px;
   border:0;
   cursor:pointer;
   color:white;
   font-size:24px;
   padding-top:10px;
   padding-bottom:10px;
   transition: all 0.3s;
   margin-top:-4px;
   font-weight:700;
 }
 [type="submit"]:hover { opacity:0.8; }

/*-- Footer --*/

.footer{
   padding-top: 50px;
   padding-bottom: 50px;
   text-align:center;
   background-color: #1e1e1e;
   }
   
   .footer .row{
   width:100%;
   margin:1% 0%;
   padding:0.1% 0%;
   color:gray;
   font-size:0.8em;
   }
   
   .footer .row a{
   text-decoration:none;
   color:gray;
   transition:0.5s;
   }
   
   .footer .row a:hover{
   color:#fff;
   }
   
   .footer .row a i{
   font-size:2em;
   margin:0% 0.5%;
   }

   .menu {
      display: none;
   }
   
   @media (max-width:700px){
   .footer{
   text-align:center;
   padding-bottom: 50px;
   }

   .footer .row a i{
   margin:0% 3%;
   }
   }

/*-- Responsive --*/

@media (max-width:1200px) {

   h1 {
      font-size: 50px;
   }

   h2 {
      font-size: 40px;
   }

   h3 {
      font-size: 28px;
   }

   h4 {
      font-size: 24px;
   }

   h5 {
      font-size: 18px;
   }

   .menu {
    display: flex;
    background: #00000017;
    backdrop-filter: blur(15px);
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%);
    padding: .8rem 1.8rem;
    border-radius: 20px;
    width: fit-content;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: opacity 0.3s ease;
   }

   .menu.hidden {
      opacity: 0;
      pointer-events: none;
  }

   .menu a {
      font-size: 20px;
      background: var(--shadow-color);
      border-radius: 50%;
      display: flex;
      padding: .8rem;
      transition: var(--transition);
   }

   .menu a:hover {
      background: var(--color-black1);
      color: var(--color-white);
   }

   .navlinks {
      display: none;
   }

   .logo {
      margin: auto;
   }

   header {
      height: auto;
      padding-top: 200px;
   }

   #About {
      padding-top: 150px !important;
      text-align: center;
   }

   .about-container {
      gap: 100px;
   }

   .myservices {
      grid-template-columns: 1fr 1fr;
   }
   
}

@media (max-width:700px) {

   h1 {
      font-size: 46px;
   }

   h2 {
      font-size: 38px;
   }

   p {
      font-size: 18px;
   }

   body {
      font-size: 18px;
   }

   nav {
      height: 4.4rem;
      background: #00000017;
      backdrop-filter: blur(15px);
   }

   header {
      padding-top: 140px;
      padding-bottom: 175px;
   }

   .header-container {
      grid-template-columns: 1fr;
      gap: 30px;
   }

   .header-right {
      grid-row: 1;
      width: 80%;
      margin: auto;
   }

   .header-left {
      text-align: center;
   }

   .about-container {
      grid-template-columns: 1fr;
      gap: 40px;
   }

   .about-left {
      width: 70%;
      margin: auto;
   }

   .myservices, .myskills {
      grid-template-columns: 1fr;
      margin-top: 40px;
   }
}

@media (max-width: 768px) {
   form {
       max-width: 100%;
       margin: 20px;
   }

   .feedback-input {
       font-size: 16px;
       padding: 10px;
   }

   [type="submit"] {
       font-size: 20px;
       padding-top: 8px;
       padding-bottom: 8px;
   }
}

@media (max-width: 480px) {
   .feedback-input {
       font-size: 14px;
       padding: 8px;
   }

   [type="submit"] {
       font-size: 18px;
       padding-top: 6px;
       padding-bottom: 6px;
   }
}

/*---- Scrollbar ---*/

::-webkit-scrollbar {
   width: 10px;
}

::-webkit-scrollbar-track {
   background: black;
}

::-webkit-scrollbar-thumb {
   background: #8780449a;
}

/*---- Fade -----*/

p, li, h2, img, .myservices {
   animation: fade linear both;
   animation-timeline: view();
   animation-range: entry 30% cover 30%;
}

@keyframes fade {
   from {
      opacity: 0;
   }
   to {
      opacity: 1;
   }
}

/*---- Loading -----*/

#loading {
   position: fixed;
   width: 100%;
   height: 100%;
   background: #181818;
   color: #7d7b49;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 2em;
   z-index: 1000;
   transition: .3s;
   transition: opacity 0.5s ease-out;
   animation: colorChange 0.7s infinite;
}

#loading .dots {
   display: inline-block;
   margin-left: 0.1em;
}

#loading .dot {
   display: inline-block;
   width: 0.2em;
   height: 0.2em;
   background-color: #7d7b49;
   border-radius: 50%;
   margin: 0 0.1em;
   opacity: 0;
   animation: dotAnimation 1s infinite;
}

#loading .dot:nth-child(1) {
   animation-delay: 0s;
}

#loading .dot:nth-child(2) {
   animation-delay: 0.2s;
}

#loading .dot:nth-child(3) {
   animation-delay: 0.4s;
}

@keyframes dotAnimation {
   0%, 20% { opacity: 0; }
   50% { opacity: 1; }
   100% { opacity: 0; }
}

/*---- Bubbles -----*/
