html, body {
  height: 100%;
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark-bg: #1a1a1a;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.header a,
.email {
  color: #fff;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  position: relative; /* ide került */
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover,
.email:hover,
.more:hover {
  opacity: 0.7;
}

.email {
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}



/* =========================
   HERO
========================= */

.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 20px;
  background: #ffffff;
  text-align: center;
}

.animated-logo-wrap {
  width: 100%;
  max-width: 780px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.animated-logo {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.logo-part {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.animate .logo-part {
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.animate .part-icon-1 { animation: slideUpSoft 0.9s 0.05s forwards; }
.animate .part-icon-2 { animation: slideDownSoft 0.9s 0.18s forwards; }
.animate .part-icon-3 { animation: rotateFade 1s 0.32s forwards; }

.animate .part-word-1 { animation: revealRight 0.75s 0.75s forwards; }
.animate .part-word-2 { animation: revealRight 0.75s 0.88s forwards; }
.animate .part-word-3 { animation: revealRight 0.75s 1.01s forwards; }
.animate .part-word-4 { animation: revealRight 0.75s 1.14s forwards; }
.animate .part-word-5 { animation: revealRight 0.75s 1.27s forwards; }
.animate .part-word-6 { animation: revealRight 0.75s 1.40s forwards; }

@keyframes slideUpSoft {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes slideDownSoft {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes rotateFade {
  0% {
    opacity: 0;
    transform: rotate(-8deg) scale(0.94);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes revealRight {
  0% {
    opacity: 0;
    transform: translateX(22px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* =========================
   GENERIC SECTIONS
========================= */

.section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
}

.services h2,
.press h2,
.gallery-inner h2,
.team h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}

.section-intro {
  margin-bottom: 40px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

/* =========================
   QUOTE
========================= */

.quote-section {
  max-width: 900px;
  margin: 10px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.quote-text {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 10px;
}

.quote-author {
  font-size: 14px;
  font-weight: 500;
  color: #777;
}

/* =========================
   SERVICES
========================= */

.services {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  
  justify-items: center;
}



.service-item {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-item img {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.service-item h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}

.service-item p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: #444;
  text-align: justify;
  max-width: 300px;
}

.service-item {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.service-item:hover {
  transform: translateY(-6px);
}

.service-item h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.service-item h3::after {
  content: "";
  position: absolute;
  left: 0;              /* változás */
  bottom: 0;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-item:hover h3::after {
  width: 100%;
}


/* =========================
   TEAM
========================= */

.team-section {
  width: 100%;
  padding: 70px 0 120px;
  background: var(--dark-bg);

  box-shadow: 
    0 -6px 20px rgba(0,0,0,0.4),  /* felső */
    0 6px 20px rgba(0,0,0,0.4);   /* alsó */
}

.team {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.team h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  justify-items: center;
}

.team-photo {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.team-img {
  width: 100%;
  height: auto;
  display: block;
}

.team-img.bw {
  filter: grayscale(100%) contrast(1.05);
}

/* alap: fekete-fehér */
.team-img.color {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.member-name {
  width: 100%;
  margin-top: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

/* DESKTOP: csak hover */
@media (hover: hover) and (pointer: fine) {
  .team-photo:hover .team-img.color {
    opacity: 1;
  }

  .team-item:hover .member-name {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBIL / touch: in-view */
@media (hover: none), (pointer: coarse) {
  .team-section.in-view .team-img.color {
    opacity: 1;
  }

  .team-section.in-view .team-item .member-name {
    opacity: 1;
    transform: translateY(0);
  }
}



/* =========================
   ABOUT / CONTACT
========================= */

.about p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
}

.more {
  margin-top: 20px;
  display: inline-block;
  font-weight: 500;
}

.contact-line {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .services-row {
    grid-template-columns: 1fr;
  }



  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

section {
  scroll-margin-top: 100px;
}

/* =========================
   contact
========================= */

.contact-section {
  width: 100%;
  padding: 24px 0;
  background: var(--dark-bg);
  color: #fff;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.4);
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-logo {
  height: 26px;
  width: auto;
  display: block;
}

.contact-quote {
  font-size: 13px;
  font-weight: 300;
  color: #999;
  line-height: 1;
  white-space: nowrap;
}

.contact-right {
  text-align: right;
}

.contact-right p {
  font-size: 14px;
  font-weight: 300;
  color: #aaa;
  margin-bottom: 6px;
}

.contact-right a {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.contact-right a:hover {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-right {
    flex-direction: row;
    gap: 0;
  }

  .services-row {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .contact-right {
    text-align: left;
  }

  .contact-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .contact-quote {
    white-space: normal;
    line-height: 1.6;
  }
}

/* =========================
   aparitii in reviste
========================= */

.press-section {
  width: 100%;
  padding: 100px 0;
  background: #fff;
}

.press {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.press h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.press-item {
  display: block;
  overflow: hidden;
  background: #f5f5f5;
}

.press-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.press-item:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

@media (max-width: 1100px) {
  .press-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .press-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   galerie
========================= */
.gallery-section {
  width: 100%;
  padding: 100px 0;
  background: #fff;
  overflow: hidden;
}

.gallery-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.gallery-inner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}

.gallery-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0 30px;
  perspective: 1200px;
  cursor: grab;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-viewport:active {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  gap: 16px;
  align-items: center;
  width: max-content;
  padding: 0 10vw;
  transform-style: preserve-3d;
}

.gallery-item {
  flex: 0 0 auto;
  width: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
  transform-origin: center center;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease;
  will-change: transform;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* tablet */
@media (max-width: 900px) {
  .gallery-inner {
    padding: 0 20px;
  }

  .gallery-item {
 transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  }

  .gallery-track {
    gap: 18px;
    padding: 0 5vw;
  }
}

/* mobil */
@media (max-width: 600px) {
  .gallery-item {
    width: 260px;
  }

  .gallery-inner h2 {
    font-size: 28px;
  }
}

.nav a.active {
  opacity: 1;
}

/* //labjegyzet facebok felirat */

.contact-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

.facebook-icon {
  display: flex;
  align-items: center;
}

.facebook-icon img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.facebook-icon:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.page-content {
  flex: 1;
}