/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Satoshi&display=swap');

body {
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  overflow-x: hidden;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 56px; /* Set your preferred height */
  padding: 0 2rem; /* Remove vertical padding, keep horizontal */
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  transition: top 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /*small box-shadow under*/
}

.logo {
  font-size: 2rem; /* or your preferred size */
  font-weight: bold;
  color: black;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1; /* Ensures vertical alignment */
}
.logo:hover,
.logo.active {
  color: #39ff14;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin-right: 60px;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s;
}
.nav a:hover,
.nav a.active {
  color: #39ff14;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-right: 50px;
}
.hamburger img {
  width: 30px;
  height: 30px;
  transition: filter 0.3s;
}
.hamburger:hover img {
  filter: brightness(0) saturate(100%) invert(66%) sepia(91%) saturate(749%) hue-rotate(72deg) brightness(103%) contrast(101%);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.mobile-menu a {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  margin: 1.5rem 0;
  display: block;
  transition: color 0.3s;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: #39ff14;
}

.video-section video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.gallery-section {
  margin-top: 100vh;
  background: #f0f0f0;
  padding: 4rem 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 60vw;
}

.gallery-images {
  position: relative;
  width: 90vw;
  max-width: 900px;
  aspect-ratio: 5 / 4;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto auto;
  background: transparent;
  overflow: hidden;
}

.gallery-caption {
  position: absolute;
  left: 24px;
  bottom: 40px; /* above the dots */
  color: #fff;
  font-size: 1rem;
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  max-width: 60%;
  /* Adjust as needed */
}

.gallery-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  position: absolute;
  left: 0;
  top: 0;
}
.gallery-images img.active {
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  border: none;
  padding: 0;
  background: none;
  border-radius: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.arrow:hover {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(66%) sepia(91%) saturate(749%) hue-rotate(72deg) brightness(103%) contrast(101%);
}
.arrow.left {
  left: 12px;
}
.arrow.right {
  right: 12px;
}
.arrow img, .arrow svg {
  width: 32px;
  height: 32px;
  display: block;
}

.dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.dot.active {
  background: #2bff00;
}

/* W10 page specific */

.works-content {
  padding: 20px;
  margin-top: 70px; /* Kezdődő tartalom a kép alatt */
  text-align: center;
}

.works-content img {
  max-width: 100%;
  height: auto;
  max-height: 720px;
  display: block;
  margin: 0 auto;
}
.works-content .text-container {
  max-width: 1080px;
  margin: 20px auto;
  padding: 10px;
}
.works-content .text-container p,
.works-content .text-container c {
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
}
.works-content .additional-images {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.works-content .additional-images img {
  max-width: 100%;
  height: auto;
  margin: 10px;
}

/* CV CONTENT */

.cv-content {
  font-size: clamp(14px, 2vw, 18px);
  padding: 20px;
  margin-top: 5vh; /* Kezdődő tartalom a kép alatt */
  margin-left: 0px;
}

.cv-content .underline-link {
  text-decoration: underline;
  color: rgb(42, 42, 42);
  color: inherit; /* Alapértelmezett betűszín */
  transition: color 0.3s ease; /* Betűszín átmenet */
}

        /* Hivatkozás színének megváltoztatása egér fölé helyezéskor */
.cv-content .underline-link:hover {
  color: #2bff00; /* Egér fölé helyezéskor zöld szín */
}

.cv-content .row {
  display: flex;
  color: rgb(42, 42, 42);
  font-size: 12px;
  margin-bottom: 10px;
}

.cv-content .date {
  width: 60px;
  color: rgb(42, 42, 42);
  font-size: 12px;
  margin-right: 20px;
}
        
.cv-content .fullrow {
  width: 100%;
  color: rgb(42, 42, 42);
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 12px; /* Betűméret beállítása */
}

.cv-content .text {
  flex-grow: 1;
  color: rgb(42, 42, 42);
  font-size: 12px; /* Betűméret beállítása */
}

.cv-content .title {
  font-size: clamp(18px, 2vw, 24px);; /* Betűméret beállítása */
  color: rgb(42, 42, 42);
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 15px;
  width: 100%;
}

/* text styles on works */
.works-content .text-container.simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto;
  text-align: center;
}
.works-content .text-container.simple .title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.3em;
}
.works-content .text-container.simple .subtitle {
  font-size: 1rem;
  font-weight: normal;
  color: #666;
}

.works-content .text-container.columns {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  max-width: 900px;
  min-height: 120px;
  gap: 3%;
}
.works-content .text-container.columns .col.left {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.works-content .text-container.columns .col.left .title {
  font-size: 1.5rem;
  font-weight: bold;
}
.works-content .text-container.columns .col.left .subtitle {
  font-size: 0.95rem;
  font-weight: normal;
  color: #666;
}
.works-content .text-container.columns .divider {
  width: 3px;
  height: 60%;
  background: #39ff14;
  border-radius: 2px;
  margin: 0 2vw;
  min-height: 40px;
  min-width: 3px;
}
.works-content .text-container.columns .col.right {
  width: 55%;
  text-align: left;
  display: flex;
  align-items: center;
}
.works-content .text-container.columns .col.right .description {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.5s;
}

#modalImg, .modal-content {
  display: block;
  margin: 5vh auto;
  max-width: 130vw;
  max-height: 130vh;
  width: auto;
  height: auto;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
  border-radius: 8px;
  background: #222;
  object-fit: contain;
}

.video-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .nav {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
    align-items: center;
    z-index: 102;
  }
  .logo {
    font-size: 2rem;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 101;
  }
  .mobile-menu nav ul {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    margin: 0;
  }
  .mobile-menu a {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
  }
  .mobile-menu a:hover,
  .mobile-menu a.active {
    color: #39ff14;
  }
  .gallery-section {
    padding: 2rem 0.5rem;
    min-height: 60vw;
  }
  .gallery-images {
    width: 98vw;
    max-width: 98vw;
    min-height: 120px;
    aspect-ratio: 5 / 4;
  }
  .arrow {
    width: 36px;
    height: 36px;
  }
  .arrow img, .arrow svg {
    width: 20px;
    height: 20px;
  }
  .arrow.left {
    left: 6px;
  }
  .arrow.right {
    right: 6px;
  }
  .works-content .text-container.columns {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .works-content .text-container.columns .col.left,
  .works-content .text-container.columns .col.right {
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .works-content .text-container.columns .divider {
    width: 60%;
    height: 3px;
    min-width: 40px;
    min-height: 3px;
    margin: 16px auto;
    background: #39ff14;
  }
  #modalImg, .modal-content {
  max-width: 98vw;
  max-height: 70vh;
  margin: 2vh auto;}
}

/* Always show nav and hide hamburger on desktop */
@media (min-width: 601px) {
  .nav {
    display: flex !important;
  }
  .hamburger, .mobile-menu {
    display: none !important;
  }
}
