* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: auto;
    font-style: normal;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top img {
    width: 100%;
    height: auto;
    transition: transform 0.2s;
}

.back-to-top:hover img {
    transform: scale(1.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.logo {
    width: 300px;
}

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100px;
    transition: height 0.3s ease;
    z-index: 1000;
    background-color: #e0e0e0c6;
}

.nav.shrink {
    height: 50px;
}

.nav-logo {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}
.main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding-left: 10vw;
}

.main-menu > ul {
    display: flex;
    justify-content: space-between;
    width: 300px;
    padding: 20px;
}

.main-menu li {
    list-style: none;
}

.main-menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
}
.main-menu a:hover {
    font-weight: 600;
    transition: 0.3s;
}
.dropdown {
  position: relative;
}

.submenu { /*DROPDOWN MENU*/
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e0e0e0;
    list-style: none;
    padding: 0;
    width: 200px;
    z-index: 1000;
  }
  
  .dropdown:hover .submenu {
    display: block;
  }
  
  .submenu li a {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    color: #000000;
  }

.nyelv {
    color: rgb(0, 0, 0);
    margin-left: 140px;
}

.nyelv .lang-link {
    font-size: 14px;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 200;
    transition: color 1s;
}

.nyelv .lang-link:hover {
    font-weight: 600;
}

.nyelv .active {
    font-weight: 600;
    text-decoration: underline;
}

/* Hamburger gomb */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
}

/* --- NAV mobil nézet --- */
@media (max-width: 1024px) {
    .logo {
        width: 280px;
    }
    .menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        background-color: #e0e0e0c6;
    }
/* FŐMENÜ */
    .main-menu.open { 
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .main-menu .open ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .main-menu a {
        font-size: 20px;
        margin: 0px;
        left: 0;
    }
    .nyelv {
        display: flex;
        justify-content: center;
        margin: 20px 0 10px 0;
      }
    .nyelv .lang-link{
        font-size: 16px;
    }
    .dropdown{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .submenu {
        width: 350px;
        position: absolute;
        background-color: #e0e0e0dd;
        list-style: none;
        z-index: 1000;
    }
      .submenu li a {
        width: 100%;
        display: block;
        padding: 20px 25px;
        text-decoration: none;
        color: #000000;
      }
    .dropdown:hover .submenu {
        display: block !important;
      }
}

/* MAIN */
.hero {
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: relative;
    margin: 0 auto;
    margin-top: -20px;
    padding-left: 10vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
      transition: background-image 1s ease-in-out;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    color: rgb(33, 33, 33);
    text-shadow: #acacac 0.5px 0.5px 0.5px;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 150;
}

/* PORTFOLIO */
.portfolio {
    width: 100%;
    margin: 0 auto;
    margin-top: 3px;
    gap: 3px;
    box-sizing: border-box;
}
.card-row{
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 3px;
    flex-wrap: nowrap;
}
.card {
    flex: 1;
    text-decoration: none;
}
.card-image {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: background 0.6s, opacity 0.6s;
  }
.overlay h3{
    font-weight: 300;
  }
.card:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
  }
.card-1{
    position: relative;
    overflow: hidden;
  }
@media screen and (max-width: 1024px) {
.card {
  flex: 1;
  text-decoration: none;
}

.card-image {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  bottom: 0; /* Alul rögzítve */
  top: auto;
  height: 40px; /* Fix magasság */
  background: rgba(0, 0, 0, 0.4);
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center; /* Függőleges közép a sávon belül */
  justify-content: center; /* Vízszintesen középre a szöveg */
  font-size: 12px;
  text-align: center;
  opacity: 1;
}

.overlay h3 {
  font-weight: 300;
  margin: 0;
}
  .back-to-top {
    display: none !important;
  }
}

/* BIO */
.bio-hero {
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10vw;
}
.bio-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.bio-hero-content p {
    margin-bottom: 20px;
}
.bio-hero h1 {
    font-size: 5vw;
    margin: 1.5rem 0;
    font-weight: 900;
}
.me img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30vw;
    margin: 50px;
}
.logobio {
    position: absolute;
    z-index: 1000;
}


/* CONTACT */
.cont {
    background-image: url(img/eames_bg.png);
    background-position:right;
    background-size:contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    color: rgb(0, 0, 0);
}

.info h1 {
    font-size: 36px;
    color: rgb(0, 0, 0);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.contact-item img {
    margin: 10px;
    width: 24px;
    height: 24px;
}

.contact-item a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #dddddd;
    text-decoration: underline;
}

.social {
    display: flex;
    align-items: center;
    margin: 40px;
    gap: 1.5rem;
}

.social img {
    width: 40px;
}

@media (max-width: 1150px) {
    .info {
        margin-top: 70px;
    }

    .map {
        margin: 0 auto;
    }
}

/* FOOTER */
.foot {
    background-color: #ffffffb4;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 120px;
    color: white;
}

.footb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footlogo {
    width: 230px;
    height: auto;
}
.social2 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.social2 img {
    width: 20px;
}

.footj {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}
.vonal {
    width: 1px;
    height: 20px;
    background-color: #000000;
    margin-top: 6px;
}

.contact-item2 {
    display: flex;
    align-items: center;
    margin: 7px;
    font-size: 14px;
    font-weight: 600;
}

.contact-item2 p, .contact-item2 a {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    text-decoration: none;
}

.contact-item2 a:hover {
    color: #4e4e4e;
    text-decoration: underline;
}

@media screen and (max-width: 1025px) {
    .foot {
    background-color: #ffffffb4;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100px;
    color: white;
    }
.contact-item2 p, .contact-item2 a {
    margin: 0;
    font-size: 9px;
    font-weight: 200;
    color: #333;
    text-decoration: none;
    }
}

/* OTTHON */
.hero2 {
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -20px;
}
.hero-home {
    position: relative;
    z-index: 3;
}
.hero-home h1 {
    font-size: 10vw;
    font-weight: 900;
    color: white;
}

.card-row-home{
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 3px;
    flex-wrap: nowrap;
}
.card {
    flex: 1;
    text-decoration: none;
  }
  .card-image-home {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

/* HOME - aloldalak */
.home-al{
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: -20px;
}
.home-al-cim h1{
    font-size: 16px;
    font-weight: 200;
    color: white;
}
.home-al-cim-fekete h1{
    font-size: 16px;
    font-weight: 200;
    color: rgb(0, 0, 0);
}
.kettessor{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
    flex-wrap: nowrap;
}
.kettessor img{
    aspect-ratio: 3 / 4;
    width: 50%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.egyessor{
    gap: 3px;
    margin-bottom: 3px;
}
.egyessor img{
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.leiras{
    width: 80%;
    margin: 20px;
}
.leiras h1{
    font-size: 16px;
    font-weight: 400;
    color: rgb(0, 0, 0);
    margin: 20px;
}
.leiras p{
    font-size: 14px;
    font-weight: 300;
    color: rgb(0, 0, 0);
    margin: 20px;
    font-family: Helvetica, sans-serif;
}
