/* =========================================
   WORKWALAA ASSIST SECTION (Premium Dark 3D)
   ========================================= */
.assist-section {
  padding: 8rem 5%;
  margin: 0 auto;
  max-width: 1300px;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-bottom: 4rem;
}

/* Inner mysterious glow */
.assist-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--brand-yellow-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.assist-content {
  position: relative;
  z-index: 2;
}

.assist-header {
  text-align: center;
  margin-bottom: 4rem;
}

.assist-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.assist-header h2 span {
  background: linear-gradient(135deg, var(--brand-yellow), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.assist-tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.assist-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  /* wider landscape text area */
  gap: 3rem;
  align-items: center;
}

.assist-text-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Waitlist Excitement Graphic */
.assist-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

.waitlist-hero-graphic {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsing core rings to create anticipation */
.pulse-ring-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--brand-yellow);
  border-radius: 50%;
  animation: expandPulse 3s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 2s;
}

@keyframes expandPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* The Main Glowing Invite / Future Card */
.invite-card-wrapper {
  position: relative;
  z-index: 5;
  animation: floatSmooth 4s infinite ease-in-out;
}

.invite-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(242, 202, 0, 0.4);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(242, 202, 0, 0.1);
  backdrop-filter: blur(10px);
  width: 250px;
  position: relative;
  overflow: hidden;
}

.invite-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, rgba(242, 202, 0, 0.2) 0%, transparent 50%);
  animation: rotateGlow 8s infinite linear;
  z-index: -1;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.invite-icon {
  font-size: 3.5rem;
  color: var(--brand-yellow);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(242, 202, 0, 0.6));
}

.invite-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.invite-subtitle {
  color: var(--brand-yellow);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Floating elements around the card */
.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: 10px 15px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 6;
  backdrop-filter: blur(5px);
}

.floating-badge i {
  color: var(--brand-yellow);
  font-size: 1.2rem;
}

.badge-1 {
  top: 10%;
  left: -10%;
  animation: floatSmooth 5s infinite ease-in-out reverse;
}

.badge-2 {
  bottom: 20%;
  right: -20%;
  animation: floatSmooth 6s infinite ease-in-out 1s;
}

/* Success / Satisfaction Animation styles */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.success-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.success-check {
  font-size: 4rem;
  color: #00e676;
  /* bright satisfying green */
  margin-bottom: 1rem;
  animation: popCheck 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0);
}

.success-overlay.active .success-check {
  animation-delay: 0.2s;
}

@keyframes popCheck {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  80% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-text {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.4s;
}

.success-overlay.active .success-text {
  opacity: 1;
  transform: translateY(0);
}

.assist-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.assist-text p strong {
  color: #fff;
}

.assist-features h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #fff;
}

.assist-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.assist-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.assist-feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 202, 0, 0.3);
  transform: translateX(10px);
}

.assist-feature-item i {
  color: var(--brand-yellow);
  font-size: 2rem;
  margin-top: 2px;
  filter: drop-shadow(0 0 10px rgba(242, 202, 0, 0.4));
}

.assist-feature-item-text h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}

.assist-feature-item-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.assist-action {
  text-align: center;
  margin-top: 2rem;
  z-index: 10;
  position: relative;
  width: 100%;
}

/* Reuse standard primary button style, but make it distinct */
.btn-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-yellow);
  color: var(--text-dark);
  padding: 1rem 3rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 20px var(--brand-yellow-glow);
}

.btn-wishlist:hover {
  background: var(--brand-yellow-hvr);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(242, 202, 0, 0.4);
}

.wishlist-form-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  opacity: 0;
  width: 100%;
}

.wishlist-form-container.active {
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out 0.1s;
  margin-top: 2rem;
}

.wishlist-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  padding: 5px;
  background: var(--glass-bg);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.wishlist-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.wishlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-confirm {
  background: var(--brand-yellow);
  color: #000;
  border: none;
  padding: 0 2rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background 0.3s;
}

.btn-confirm:hover {
  background: var(--brand-yellow-hvr);
}

/* Contact Form Success Overlay */
.contact-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-elevated);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 10;
  border-radius: var(--border-radius-lg);
}

.contact-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-success-overlay .success-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-success-overlay.active .success-content {
  transform: translateY(0);
}

/* Network Connect Animation */
.network-connecting-content {
  text-align: center;
  transition: opacity 0.4s ease;
}

.network-loader {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.net-node {
  position: absolute;
  background: var(--brand-yellow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-yellow);
  z-index: 3;
}

.center-node {
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-node 1.5s infinite alternate;
}

.ext-node {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.node-a {
  top: 10%;
  left: 15%;
}

.node-b {
  top: 20%;
  right: 10%;
}

.node-c {
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
}

.net-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: center;
  z-index: 0;
}

.line-a {
  width: 2px;
  height: 45px;
  top: 15%;
  left: 32%;
  transform: rotate(-45deg);
}

.line-b {
  width: 2px;
  height: 45px;
  top: 25%;
  right: 28%;
  transform: rotate(55deg);
}

.line-c {
  width: 2px;
  height: 40px;
  bottom: 20%;
  left: calc(50% - 1px);
}

.net-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--brand-yellow);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  opacity: 0;
  z-index: 2;
  box-shadow: 0 0 8px var(--brand-yellow);
}

.packet-a {
  animation: send-a 1.5s infinite 0s;
}

.packet-b {
  animation: send-b 1.5s infinite 0.5s;
}

.packet-c {
  animation: send-c 1.5s infinite 1s;
}

@keyframes pulse-node {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 20px var(--brand-yellow);
  }
}

@keyframes send-a {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  50% {
    transform: translate(-35px, -40px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes send-b {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  50% {
    transform: translate(35px, -30px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes send-c {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  50% {
    transform: translate(0, 35px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* =========================================
   RESPONSIVE DESIGN FOR ASSIST SECTION
   ========================================= */
@media (max-width: 992px) {
  .assist-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .assist-section {
    padding: 4rem 5%;
  }

  .wishlist-form {
    flex-direction: column;
    background: transparent;
    border: none;
  }

  .wishlist-form input {
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    margin-bottom: 10px;
  }

  .btn-confirm {
    padding: 1rem;
    width: 100%;
  }

  .element-3d-wrapper {
    width: 200px;
    height: 200px;
  }

  .cube-face {
    width: 200px;
    height: 200px;
  }

  .cube-front {
    transform: rotateY(0deg) translateZ(100px);
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(100px);
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(100px);
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(100px);
  }

  .cube-top {
    transform: rotateX(90deg) translateZ(100px);
  }

  .cube-bottom {
    transform: rotateX(-90deg) translateZ(100px);
  }
}

.btn-wishlist:hover {
  background: #333;
  transform: translateY(-2px);
}

.wishlist-form-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  opacity: 0;
}

.wishlist-form-container.active {
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out 0.1s;
  margin-top: 1.5rem;
}

.wishlist-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.wishlist-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.wishlist-form input:focus {
  border-color: #d4af37;
}

.btn-confirm {
  background: #d4af37;
  color: #111;
  border: none;
  padding: 0 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background 0.3s;
}

.btn-confirm:hover {
  background: #c5a028;
}

@media (max-width: 992px) {
  .assist-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .assist-card {
    padding: 2.5rem 1.5rem;
    border-radius: 30px;
  }

  .wishlist-form {
    flex-direction: column;
  }

  .btn-confirm {
    padding: 1rem;
    width: 100%;
  }
}
