/* ==========================================
   CUSTOM MOUSE CURSOR STYLES
   ========================================== */

/* Hide default cursor on desktop devices */
@media (hover: hover) and (pointer: fine) {
  body, a, button, .button, .w-button, [role="button"], .play-btn, .expandable-item, .wtd-pcard-btn {
    cursor: none !important;
  }

  .custom-cursor-dot,
  .custom-cursor-circle {
    display: block !important;
  }
}

/* Base cursor element styles */
.custom-cursor-dot,
.custom-cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  border-radius: 50%;
  display: none; /* Hidden by default (e.g. mobile) */
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

/* The inner solid dot */
.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  mix-blend-mode: difference;
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}

/* The outer trailing circle */
.custom-cursor-circle {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background-color: transparent;
  mix-blend-mode: difference;
  /* Smooth transform scale transition, coordinates are updated via requestAnimationFrame */
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
              height 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
              background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
              border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover States: Circle expands, Dot scales down */
.custom-cursor-circle.hover {
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.95);
}

.custom-cursor-dot.hover {
  width: 0px;
  height: 0px;
}

/* Click Active States */
.custom-cursor-circle.active {
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 1);
}

/* ==========================================
   UI ENHANCEMENTS AND FIXES
   ========================================== */

/* Modern scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #080516;
}

::-webkit-scrollbar-thumb {
  background: #1f1b2e;
  border-radius: 5px;
  border: 2px solid #080516;
}

::-webkit-scrollbar-thumb:hover {
  background: #3c3258;
}

/* Ensure smooth scrolling across the app */
html {
  scroll-behavior: smooth;
}

/* Prevent text highlighting bugs on interactive loops */
.text-extrabig-loop-wrap,
.logo_component-slider {
  user-select: none;
}

/* Hide Webflow badge completely */
.w-webflow-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Fix hand image getting cut off on the right */
.no-writing-image-copy {
  object-fit: contain !important;
  object-position: center bottom !important;
}

/* Make phone mockup larger and center it between the texts on desktop */
@media screen and (min-width: 992px) {
  .gradient-grid-item._2 {
    width: 640px !important;
    margin-left: -110px !important;
    height: 85vh !important;
  }
}

/* Ensure Join Waitlist button stays on a single line and matches glowing animation bounds */
.glowing-wrapper-button,
.glowing-wrapper.glowing-wrapper-active {
  width: 175px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

/* ==========================================
   ELEMENTOR COMPATIBILITY & OVERRIDES
   ========================================== */

/* Force Elementor layout elements to be visible without WordPress/Elementor JS scroll animations */
.cmsmasters-main__outer .elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

/* Ensure featured box graphic/shape icons are colored correctly and visible */
.cmsmasters-main__outer .elementor-widget-cmsmasters-featured-box__icon-wrap i {
  color: #4fb7e3 !important; /* Original light blue theme color */
  opacity: 1 !important;
  visibility: visible !important;
  font-style: normal !important;
}

/* ==========================================
   WAITLIST MODAL POPUP STYLES
   ========================================== */

.waitlist-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.waitlist-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-modal-container {
  position: relative;
  width: 70vw;
  height: 70vh;
  min-width: 800px;
  min-height: 500px;
  max-width: 95vw;
  max-height: 95vh;
  background-image: url('../images/71-popup-clean.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waitlist-modal-overlay.open .waitlist-modal-container {
  transform: scale(1);
}

/* Close Button styling */
.waitlist-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.waitlist-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* Glassmorphic Form Card overlay */
.waitlist-modal-card {
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 420px;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 5;
  box-sizing: border-box;
}

.waitlist-modal-title {
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.waitlist-modal-desc {
  color: rgba(255, 255, 255, 0.7);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Form inputs styling */
.waitlist-form-el {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.waitlist-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.waitlist-input-wrap {
  flex: 1;
}

.waitlist-input-wrap.textarea-wrap {
  flex: none;
  margin-bottom: 20px;
}

.waitlist-input {
  width: 100%;
  height: 44px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0 16px;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

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

.waitlist-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.4);
  outline: none;
}

.waitlist-textarea {
  width: 100%;
  height: 110px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  resize: none;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.waitlist-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.waitlist-textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.4);
  outline: none;
}

.waitlist-submit-wrap {
  margin-top: auto;
}

.waitlist-submit {
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
  display: inline-block;
  line-height: 1;
}

.waitlist-submit:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.waitlist-submit:active {
  transform: scale(0.98);
}

.waitlist-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Overrides */
@media screen and (max-width: 767px) {
  .waitlist-modal-container {
    width: 95%;
    max-width: 440px;
    height: auto;
    background-image: none !important; /* Hide image background on mobile to keep form simple/readable */
    background-color: #0c081e;
    border-radius: 16px;
  }
  
  .waitlist-modal-card {
    position: static;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 24px;
  }
  
  .waitlist-modal-close {
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .waitlist-form-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }
}


