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

:root {
  --color-primary:          #C9973E;
  --color-primary-hover:    #E8C87A;
  --color-accent:           #9A7EB0;
  --color-accent-hover:     #B89ECC;
  --color-bg:               #0D0B0F;
  --color-surface:          #1A1225;
  --color-text:             #F0E6C8;
  --color-text-secondary:   #9A7EB0;
  --color-border:           #2E2040;
  --color-card-info-bg:     #C9973E;
  --color-card-info-text:   #0D0B0F;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

a {
  color: var(--color-primary);
  transition: color 0.3s;
}

a:hover {
  color: var(--color-primary-hover);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.4rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Header & Navigation */
header {
  background-color: #0a0814;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #F5E6A0 0%, #C9973E 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-family: 'Cinzel Decorative', serif;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Hero */
.hero {
  background: #0a0814;
  color: var(--color-text);
  padding: 5rem 2rem 4rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(60,30,90,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(30,20,60,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-frame-wrapper {
  position: relative;
  display: block;
  width: fit-content;
  max-width: calc(100% - 6rem);
  margin: 0 auto 1.8rem;
  padding: 1.4rem 3.5rem;
}

.hero-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
  background: linear-gradient(180deg, #F5E6A0 0%, #C9973E 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: #C9973E;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.2vw, 0.82rem);
  color: #9A7EB0;
  letter-spacing: 0.08em;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.hero h1,
.hero h2 {
  font-family: 'Cinzel Decorative', serif;
  background: linear-gradient(180deg, #F5E6A0 0%, #C9973E 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Filter */
.filter-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  border-radius: 8px;
  cursor: pointer;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.gallery-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  border-radius: 4px;
}

.view-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.view-btn:hover {
  background: var(--color-primary-hover);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  margin: 10vh auto;
  padding: 2rem;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.modal-close:hover {
  color: white;
}

/* 3D Catalogue Slider */
.page-mid-section {
  position: relative;
  width: 100%;
  margin: 4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  overflow: hidden;  /* ÚJ */
}

.memory-section {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 max(40px, 5vw);
  z-index: 0;
}

.memory-column {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.memory-column.left {
  align-items: flex-start;
}

.memory-column.right {
  align-items: flex-end;
}

.book-page {
  width: min(200px, 20vw);
}

.book-page img {
  width: 100%;
  border-radius: 14px;
}

.cat-main-title {
  font-family: 'Cinzel Decorative', serif;
  background: linear-gradient(180deg, #F5E6A0 0%, #C9973E 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cat-subtitle {
  font-family: 'Cinzel', serif;
  color: #9A7EB0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.cat-body {
  position: relative;
  padding: 40px 20px;
  overflow: hidden; /* ÚJ */
  z-index: 1;
}

.cat-header {
  text-align: center;
  margin-bottom: 60px;
}

.cat-slider-container {
  perspective: 1500px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  cursor: grab;
}

.cat-slider-container.dragging {
  cursor: grabbing;
}

.cat-slider-track {
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  width: 100%;
  gap: 5px;
  margin: 0 auto;
}

.cat-card {
  flex-shrink: 0;
  width: clamp(70px, 18vw, 200px);
  height: auto;
  aspect-ratio: 240 / 400;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, clip-path;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card.expanded {
  z-index: 1000 !important;
}

.cat-card.clone {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(201, 151, 62, 0.15);
  border-radius: 4px;
}

.cat-slider-track.blurred .cat-card:not(.expanded) {
  filter: blur(8px);
}

.cat-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.cat-hover-overlay span {
  font-size: min(14px, 3vw);
}

.cat-card:hover .cat-hover-overlay { opacity: 1; }

.cat-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card-close svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.cat-card.expanded .cat-card-close {
  opacity: 1;
  pointer-events: all;
}

.cat-card-info {
  position: fixed;
  bottom: max(20px, 10vh);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-card-info-bg);
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.6s;
  z-index: 1001;
  max-width: 90vw;
  display: none !important;
}

.cat-card-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 8, 20, 0.97) 60%, transparent 100%);
  border-top: 1px solid rgba(201, 151, 62, 0.3);
  padding: 1.2rem 1rem 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.cat-card.expanded .cat-card-overlay-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.overlay-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #F5E6A0 0%, #C9973E 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(201, 151, 62, 0.5));
  display: inline-block;
}

.overlay-desc {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #D4C4E8;
  letter-spacing: 0.06em;
  line-height: 1.8;
  white-space: pre-line;
}

#cardTitle {
  font-size: min(1.5rem, 5vw);
  margin-bottom: 0.5rem;
}

#cardDesc {
  font-size: min(0.9rem, 3vw);
  white-space: pre-line;
}

.cat-card-info.visible { opacity: 1; pointer-events: all; }

/* Info sections */
.info-section {
  padding: 4rem 0;
  text-align: center;
}

.info-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  background: linear-gradient(180deg, #F5E6A0 0%, #C9973E 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: inline-block;
}

.info-section p {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* Footer */
footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: var(--color-text-secondary);
  font-size: 1.4rem;
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
}

.footer-social a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-divider p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Hamburger gomb */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: 8px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.faq-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-title {
  font-family: 'Cinzel', serif;
  color: var(--color-text);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-plus {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.4s ease;
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  background-color: var(--color-primary);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.faq-plus::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-plus::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-card.active .faq-plus {
  transform: rotate(180deg);
}

.faq-card.active .faq-plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-content {
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s;
  visibility: hidden;
  opacity: 0;
}

.faq-card.active .faq-content {
  max-height: 500px;
  transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s;
  visibility: visible;
  opacity: 1;
}

.faq-inner {
  padding: 0 2rem 1.5rem 2rem;
}

.faq-inner p {
  font-family: 'Cinzel', serif;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {

  /* NAV */
  .nav-toggle {
    display: flex;
  }

  nav {
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0814;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    z-index: 150;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 2rem;
    display: block;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.8rem;
  }

  /* HERO */
  .hero {
    padding: 3rem 1.5rem 2.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .hero-frame-svg {
    display: block;
  }

  .hero-frame-wrapper {
    padding: 3.1rem 3.1rem;
    max-width: calc(100% - 2rem);
    margin-bottom: 1rem;
  }
  
  .hero-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    letter-spacing: 0.08em;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 0 1rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    padding: 0 1rem;
  }

  /* FILTER */
  .filter-section {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
  }

  /* PAGE MID */
  .page-mid-section {
    min-height: auto;
    margin: 0.5rem 0;
  }

  /* MEMORY */
  .memory-section {
    display: none;
  }

  /* SLIDER */
  .cat-body {
    min-height: auto;
    padding: 10px 5px;
  }

  .cat-header {
    margin-bottom: 20px;
  }

  .cat-slider-container {
    overflow: hidden;
    width: 100%;
    perspective: 800px; /* Erősebb 3D hatás mobilon */
  }
   
  .cat-slider-track {
    gap: 0;
  }

  .cat-main-title {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  .cat-hover-overlay {
    display: none;
  }

  .overlay-title {
    font-size: 0.75rem;
  }

  .overlay-desc {
    font-size: 0.6rem;
  }

  /* INFO SECTIONS */
  .info-section {
    padding: 2rem 1rem;
  }

  /* FAQ */
  .faq-section {
    padding: 3rem 0;
  }

  .faq-trigger {
    padding: 1.2rem;
  }

  .faq-title {
    font-size: 0.85rem;
  }

  .faq-inner {
    padding: 0 1.2rem 1.2rem;
  }

}
