html {
  scroll-behavior: smooth;
}

body {
  color: #8f8f8f;
  background: white;
  font-family: "Montserrat", serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

section {
  scroll-margin-top: 100px;
}
@media only screen and (max-width: 1000px) {
  section {
    scroll-margin-top: 110px;
  }
}

/* Header */

.header {
  position: fixed;
  top: 0px;
  max-height: 100px;
  z-index: 999;
  width: 100%;
  padding-top: 17px;
  background: none;
  overflow: hidden;
  -webkit-transition: all 1s;
  transition: 1s;
  opacity: 0;
  top: -100px;
  padding-bottom: 6px;
  font-family: "Montserrat", sans-serif;
}

.header-logo {
  float: left;
  display: block;
  margin-top: 0;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.header-logo img{
  height: 40px;
}

.sticky {
  background-color: rgba(255, 255, 255);
  opacity: 1;
  top: 0px;
  margin-left: -8px;
  border-bottom: 1px solid gainsboro;
  transition: 1s;
}

nav {
  float: right;
  width: 60%;
}

nav ul {
  list-style: none;
  overflow: hidden;
  text-align: right;
  float: right;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}

nav ul li {
  display: inline-block;
  margin-left: 35px;
  margin-right: 10px;
  line-height: 1.5;
}

nav ul li a {
  display: inline-block;
  color: #888888;
  text-transform: uppercase;
  font-size: 12px;
  padding: 8px 8px;
  border-radius: 5px;
  transition: 1s;
  position: relative;
  z-index: 1;
}

nav ul li a:hover {
  background: #fdbf5a;
  color: #555;
  padding: 8px 8px;
}


@media only screen and (max-width: 768px) {
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
    .header-logo {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .header-logo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 40px;
    opacity: 1;
}
  nav {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
  }
  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  nav ul li {
    display: inline-block;
    margin: 0 15px;
    float: none;
  }


nav ul li a {
  display: inline-block;
  color: #888888;
  text-transform: uppercase;
  font-size: 12px;
  padding: 4px 4px;
  border-radius: 5px;
  transition: 1s;
  position: relative;
  z-index: 1;
}

nav ul li a:hover {
  background: #fdbf5a;
  color: #555;
  padding: 4px 4px;
}

  .intro-row {
    flex-direction: column;
    align-items: center;
  }
  .reka-img {
    margin-top: 16px;
    max-width: 80vw;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

nav ul a {
  color: #888888;
  text-transform: uppercase;
  font-size: 12px;
}

.row {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0 2%;
}

h1 {
  font-size: 30px;
  line-height: 1.8;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

h2 {
  font-size: 20px;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  color: #555;
}

p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.9;
  text-align: justify;
}

.content {
  padding: 10px 2% 150px;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 500px;
  overflow: hidden;
}
@media only screen and (max-width: 1000px) {
  .hero {
    min-height: 500px;
    max-height: 500px;
  }
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url(images/header.jpg) no-repeat center center fixed;
  background-size: cover;
  border-radius: 5px;
  filter: blur(0px);
  z-index: 1;
}

@media only screen and (max-width: 1000px) {
  .hero-bg {
    background-size: 300%;
    background-position: center top;
    background-attachment: scroll;
  }
}

.hero-content {
  margin-top: 50px;
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  letter-spacing: 5px;
  font-family: "Montserrat", sans-serif;
  display: inline-block;
  padding: 50px 100px 25px 100px;
  border-radius: 5px;
  background: rgba(150,150,150,0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
@media only screen and (max-width: 1000px) {
  .hero-content {
    margin-top: 75px;
    padding: 50px 10px 5px 10px;
    backdrop-filter: blur(2px);
  }
}

.hero-logo {
  display: block;
  margin-top: -10px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.hero-logo img{
  height: 70px;
  opacity: 0;
  animation: fadeinimage 2s ease 0.2s forwards;
}
@keyframes fadeinimage {
  to { opacity: 1; }
}

.scale-effect .logo {
    transform: scale(1);
    transition: 1s;
}

.scale-effect .logo:hover {
    transform: scale(1.09);
    transition: 1s;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.3;
}
@media only screen and (max-width: 1000px) {
  .hero h1 {
    font-size: 30px;
  }
}

.hero h1 span {
  font-size: 25px;
  color: #ffffff;
  border-bottom: 2px solid #666;
  padding-bottom: 20px;
  line-height: 3;
  letter-spacing: 2px;
}
@media only screen and (max-width: 1000px) {
  .hero h1 span {
    font-size: 10px;
  }
}

.blur-bg {
  display: inline-block;
  padding: 24px 32px;
  border-radius: 0px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safarira is */
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  margin-bottom: 24px;
}

.hero-logo-bg {
  margin: 0 auto 24px auto;
  width: max-content;
}

.hero-text-bg {
  margin: 0 auto;
  width: max-content;
  text-align: center;
}

.hero-contact-mobile {
  display: none;
  border-radius: 5px;
  background: rgba(150,150,150,0.2);
  backdrop-filter: blur(2px);
  padding: 30px 80px 25px 80px;
}

@media only screen and (max-width: 1000px) {
  .hero-contact-mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 16px;
    z-index: 3;
    position: relative;
  }
  .hero-contact-mobile a {
  background: rgb(253,191,90,0.8);
    color: #222;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: 1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    white-space: nowrap;
  }
  .hero-contact-mobile a:hover {
    background: #fdbf5a;
    color: #111;
    transition: 1s;
  }
}

/* REFERENCES */

#references {
  border-radius: 0px;
  margin: 2em auto;
}

#ref-list {
  display: flex;
  justify-content: center;
  gap: 1em;
  list-style: none;
  padding: 0;
  margin-bottom: 1em;
}

#ref-list li {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffd797;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-indent: -9999px;
  overflow: hidden;
}

#ref-list li.selected {
  background: #666;
}

#ref-list li:hover {
  background: #999999;
}

.slideshow-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
}

.mySlides {
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: block;
  z-index: 1;
}

.mySlides img {
  width: 100%;
}

.mySlides.active {
  opacity: 1;
  z-index: 2;
}

#reference-descriptions {
  margin: 1em auto 0 auto;
  width: 100%;
  text-align: center;
  min-height: 4em;
}

.ref-desc {
  display: none;
  font-size: 1.1em;
  border-radius: 8px;
  padding: 0.5em 0.5em;
}

.ref-desc.active {
  display: block;
}

/* MODAL STYLES */

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px #222;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from { transform: scale(0.7);}
  to { transform: scale(1);}
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}

.close:hover { color: #bbb; }

.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  font-size: 2.5em;
  color: #fff;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 48px; height: 48px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  z-index: 10001;
  transform: translateY(-50%);
}

.modal-prev { left: 20px; }

.modal-next { right: 20px; }

/* Contact */

#contact {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 500px;
  background-image: url('images/contact.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgb(205, 205, 205);
  z-index: 1;
  padding: 2em 0;
  border-radius: 0;
}

@media only screen and (max-width: 1000px) {
  #contact {
    background-attachment: scroll;
  }
}

.contact-row {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 300px;
  gap: 48px;
  padding: 40px 24px;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.contact-info h2 {
  margin-bottom: 24px;
  font-size: 2em;
  color: #333;
}

.contact-info h2 a {
  color: #333;
  transition: 1s;
}

.contact-info h2 a:hover {
  color: #444;
  transition: 1s;
}

.contact-btn {
  width: 300px; 
  text-align: center;   
  display: inline-block;
  background: rgb(253,191,90,0.8);
  color: #090808;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1.1em;
  text-decoration: none;
  transition: 1s;
}

.hero-contact-btn {
  text-align: center;   
  display: inline-block;
  background: rgb(253,191,90,0.8);
  color: #090808;
  padding: 12px 28px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 1.1em;
  text-decoration: none;
  transition: 1s;
}

.contact-btn:hover {
  width: 250px;
  background: #fdbf5a;
  color: #333;
  border-radius: 25px;
  transition: 1s;
}

@media (max-width: 900px) {
  .contact-row {
    flex-direction: column;
    gap: 24px;
    padding: 24px 8px;
    min-height: unset;
  }
  .contact-image img {
    max-width: 200px;
  }
}

 /* Réka kép a szöveg mellett */

.intro-row {
  display: flex;
  align-items: flex-start;
  gap: 24px; 
  margin-bottom: 20px;
}

.intro-row p {
  flex: 1 1 0;
  margin: 0;
}

.reka-img {
  margin-top: -20px;
  max-width: 250px;
  height: auto;
}

/* Footer */
footer {
  background: #2d3338;
  color: #999999;
  padding: 0.1em;
  margin-left: -8px;
  margin-right: -8px;
}

footer p {
  text-align: center;
}

footer a {
    color: #999999;
    text-decoration: none;
    transition: 1s;
}

footer a:hover {
    transition: 1s;
    color: #fdc355;
}

/* Háttérkép a contact oldalhoz, ugyanaz mint a #contact szekcióban */
body.contact-page-bg {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100vw;
  background: url('images/contact.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay sötétítés, ha szeretnéd */
body.contact-page-bg::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0);
  z-index: 1;
  pointer-events: none;
}

/* Névjegykártya stílus */
.business-card {
  position: relative;
  top: -80px;
  z-index: 2;
  background: rgba(255,255,255,0.6);
  border-radius: 5px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.13);
  padding: 50px 200px 50px 200px;
  min-width: 320px;
  max-width: 95vw;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  margin: 32px ;
  transition: box-shadow 0.2s;
}

.business-card h2 a {
  margin-bottom: 8px;
  font-size: 1.6em;
  color: #555;
  font-weight: bold;
  letter-spacing: 5px;
  transition: 1s;
}

.business-card a {
  margin-bottom: 8px;
  font-size: 1.4em;
  color: #555;
  font-weight: bold;
  letter-spacing: 3px;
  transition: 1s;
}

.business-card a:hover {
  color: #fdbf5a;
  transition: 1s;
}

.business-card p {
  margin: 8px 0;
  font-size: 1.1em;
  color: #555;
  letter-spacing: 2px;
  text-align: center;
}

.business-card .contact-info a {
  display: inline-block;
  background: rgb(253,191,90,0.8);
  width: 300px;
  border-radius: 10px;
  color: #222;
  padding: 5px 12px;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  margin: 6px 8px;
  transition: 1s;
  text-align: center;   
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.business-card .contact-info a:hover {
  background: #fdbf5a;
  border-radius: 15px;
  color: #111;
  transition: 1s;
  width: 250px;
}

/* Mobil reszponzivitás */
@media (max-width: 768px) {
  .business-card {
    padding: 24px 8px;
    min-width: unset;
    margin: 10px 10px;
    margin-top: 8px;
    position: relative;
    top: 0px;
    max-width: calc(100% - 20px);
  }

  .business-card h2,.business-card a {
    font-size: 1.2em;
  }

  .business-card p {
    font-size: 1em;
  }

  .business-card {
    position: relative;
    top: 0px;
  }

}

/* DARK */

@media (prefers-color-scheme: dark) {
  body {
      background: #2d3338;
      color: #a5a5a5;
  }

  h2,h1,.hero h1 span {
    color: #a5a5a5;
  }

footer {
  background: #222;
}

  img {
    filter: grayscale(20%) brightness(0.7);
  }

.hero-bg {
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('images/header.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
}

  .hero-contact-mobile a {
  background: rgb(253,191,90,0.5);
  }

  .hero-contact-mobile a:hover {
    background: rgb(253,191,90,0.7);
  }

.sticky {
  background-color: #2d3338;
  border-bottom: 1px solid #444;
}

#contact {
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('images/contact.jpg');
}

.contact-btn {
  background: rgb(253,191,90,0.5);
}

.contact-btn:hover {
  background: rgb(253,191,90,0.6);
}

#ref-list li {
  background: rgb(253,191,90,0.5);
}

  .business-card {
    background: rgba(30, 30, 30, 0.85);
    color: #eee;
    box-shadow: 0 4px 32px rgba(0,0,0,0.35);
  }
  .business-card h2,
  .business-card p {
    color: #eee;
  }
  .business-card a {
    color: #fdbf5a;
  }
  .business-card .contact-info a {
    background: rgba(253,191,90,0.3);
    color: #fff;
  }
  .business-card .contact-info a:hover {
    background: #fdbf5a;
    color: #222;
  }

  body.contact-page-bg {
    background-image:
      linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
      url('images/contact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

}

/* CLOUDS */

#clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px; 
  pointer-events: none;
  overflow: visible;
  z-index: 0;
  background: transparent;
}

.cloud {
  position: absolute;
  background: url('images/cloud.png') no-repeat;
  background-size: contain;
  width: 200px;
  height: 80px;
  opacity: 0.6;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.cloud1 {
  top: 200px;
  left: 0px;
  animation-name: floatCloud;
  animation-duration: 60s;
  animation-delay: 0s;
}

.cloud2 {
  top: 160px;
  left: -300px;
  width: 200px;
  height: 110px;
  opacity: 0.5;
  animation-name: floatCloud;
  animation-duration: 80s;
  animation-delay: 10s;
}

.cloud3 {
  top: 140px;
  left: -350px;
  width: 180px;
  height: 70px;
  opacity: 0.55;
  animation-name: floatCloud;
  animation-duration: 70s;
  animation-delay: 20s;
}

.cloud4 {
  top: 40px;
  left: -400px;
  width: 220px;
  height: 90px;
  opacity: 0.4;
  animation-name: floatCloud;
  animation-duration: 90s;
  animation-delay: 5s;
}

.cloud5 {
  top: 80px;
  left: -280px;
  width: 160px;
  height: 65px;
  opacity: 0.45;
  animation-name: floatCloud;
  animation-duration: 75s;
  animation-delay: 30s;
}

@keyframes floatCloud {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(120vw);
    opacity: 0;
  }
}
