/* ============================================
   CONSCIOUS ENTRY PORTAL
   "Entering the Mind"
   ============================================ */

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

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d2b 0%, #1a1a3e 25%, #2d2b55 50%, #5c4b8a 75%, rgba(200, 164, 94, 0.4) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  -webkit-font-smoothing: antialiased;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating particles */
.portal-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.portal-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 164, 94, 0.15);
  animation: portalFloat linear infinite;
}

@keyframes portalFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Portal Container */
.portal-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portal-container.dissolving {
  opacity: 0;
  transform: scale(1.5);
  filter: blur(20px);
}

/* Breathing Circle */
.breathing-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.breathing-orb .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 94, 0.25);
  animation: portalBreathe 6s ease-in-out infinite;
}

.breathing-orb .ring-1 {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.breathing-orb .ring-2 {
  width: 120%;
  height: 120%;
  animation-delay: 0.5s;
  border-color: rgba(200, 164, 94, 0.12);
}

.breathing-orb .ring-3 {
  width: 140%;
  height: 140%;
  animation-delay: 1s;
  border-color: rgba(200, 164, 94, 0.06);
}

.breathing-orb .core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 94, 0.4) 0%, rgba(200, 164, 94, 0.05) 70%);
  animation: portalBreathe 6s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(200, 164, 94, 0.2);
}

@keyframes portalBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Text */
.portal-text {
  text-align: center;
}

.portal-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 300;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.portal-text p {
  font-size: 0.8rem;
  color: rgba(200, 164, 94, 0.6);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Input Area */
.portal-input-wrap {
  position: relative;
  width: 280px;
}

.portal-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 164, 94, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.15em;
  outline: none;
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
}

.portal-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.2em;
}

.portal-input:focus {
  border-color: rgba(200, 164, 94, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(200, 164, 94, 0.1);
}

.portal-input.error {
  border-color: rgba(200, 100, 100, 0.5);
  animation: portalPulse 0.6s ease;
}

@keyframes portalPulse {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Enter Button */
.portal-enter {
  padding: 0.8rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(200, 164, 94, 0.3);
  border-radius: 50px;
  color: rgba(200, 164, 94, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease;
}

.portal-enter:hover {
  background: rgba(200, 164, 94, 0.1);
  border-color: rgba(200, 164, 94, 0.5);
  box-shadow: 0 0 30px rgba(200, 164, 94, 0.15);
}

/* Success expanding circle overlay */
.portal-success-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 94, 0.3), #f8f6f3);
  transform: translate(-50%, -50%);
  z-index: 100;
  transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.portal-success-overlay.expanding {
  width: 300vmax;
  height: 300vmax;
}

/* Responsive */
@media (max-width: 480px) {
  .breathing-orb {
    width: 120px;
    height: 120px;
  }

  .breathing-orb .core {
    width: 45px;
    height: 45px;
  }

  .portal-text h1 {
    font-size: 1.3rem;
  }

  .portal-input-wrap {
    width: 240px;
  }
}
