/* ====== Portal / Landing ====== */

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  background: #0a0a0a;
}

.portal {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

.portal__side {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 2rem;
}

.portal__side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  transition: opacity 0.6s ease, transform 0.8s ease;
  z-index: 0;
}

.portal__side--pablo {
  background: #1F3A2E;
  color: #E8D4B0;
}

.portal__side--zlata {
  background: #D45D3F;
  color: #FAF3E7;
}

.portal__side:hover {
  flex: 1 1 65%;
}

.portal__side:hover::before {
  opacity: 0.25;
  transform: scale(1.05);
}

.portal__side > * {
  position: relative;
  z-index: 1;
}

.portal__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: transform 0.6s ease;
}

.portal__side:hover .portal__logo {
  transform: translateY(-8px);
}

.portal__logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
}

.portal__logo-script {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-top: -0.5rem;
  font-weight: 500;
}

.portal__logo--zlata .portal__logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.portal__tagline {
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 2.5rem;
  opacity: 0.85;
  text-align: center;
  max-width: 28ch;
  font-style: italic;
}

.portal__cta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portal__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.portal__side:hover .portal__cta {
  color: var(--cta-hover-color, #1F3A2E);
}

.portal__side--zlata:hover .portal__cta {
  --cta-hover-color: #D45D3F;
}

.portal__side:hover .portal__cta::after {
  transform: translateX(0);
}

.portal__cta {
  position: relative;
  z-index: 1;
}

.portal__cta > * { position: relative; z-index: 2; }

/* Center divider with text */
.portal__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FAF3E7;
  color: #1F3A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 0.5rem;
  font-weight: 500;
}

.portal__center-text {
  display: block;
  line-height: 1.3;
}

/* Lang toggle */
.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  gap: 0.4rem;
  font-family: inherit;
}

.lang-toggle__opt {
  opacity: 0.55;
  transition: opacity 0.2s;
}

.lang-toggle__opt.is-active {
  opacity: 1;
  font-weight: 600;
}

.lang-toggle__opt:hover {
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 768px) {
  .portal {
    flex-direction: column;
  }

  .portal__side {
    flex: 1 1 50%;
    padding: 1.5rem;
  }

  .portal__side:hover {
    flex: 1 1 60%;
  }

  .portal__logo-main {
    font-size: 3rem;
  }

  .portal__logo-script {
    font-size: 1.8rem;
  }

  .portal__tagline {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .portal__center {
    width: 70px;
    height: 70px;
    font-size: 0.55rem;
  }
}

/* Subtle entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal__side > * {
  animation: fadeUp 0.8s ease both;
}

.portal__side--pablo .portal__logo { animation-delay: 0.1s; }
.portal__side--pablo .portal__tagline { animation-delay: 0.3s; }
.portal__side--pablo .portal__cta { animation-delay: 0.5s; }
.portal__side--zlata .portal__logo { animation-delay: 0.2s; }
.portal__side--zlata .portal__tagline { animation-delay: 0.4s; }
.portal__side--zlata .portal__cta { animation-delay: 0.6s; }
