/* Custom Styles for AI Collab X - Only what Tailwind cannot do */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Account for fixed header height + margin */
}

/* From Clueless Nods Section Background */
.clueless-nods-section {
  background: #070f39;
}

/* Video Frame Containers with Custom Styling */
.video-frame-container {
  width: 100% !important;
  max-width: 585px !important;
  height: auto !important;
  border-radius: 16px !important;
  box-shadow: 0px 13.37px 53.49px 0px #254073 !important;
  background: linear-gradient(
    141.25deg,
    rgba(43, 143, 255, 0.5) -6.17%,
    rgba(191, 123, 203, 0.5) 35.78%,
    rgba(151, 192, 199, 0.5) 68.44%,
    rgba(174, 159, 198, 0.5) 77.74%
  ) !important;
  padding: 10px !important;
  position: relative !important;
  display: block !important;
}

/* Video Frame Container Images */
.video-frame-container img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  display: block !important;
}

/* Force height utilities */
.h-4 {
  height: 1rem !important;
}

.h-5 {
  height: 1.25rem !important;
}


/* Custom Gradients that Tailwind cannot create */
.bg-gradient-radial {
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.3) 0%,
    transparent 70%
  );
}

/* AI Collab X Hero Background */
.ai-collab-bg {
  background: linear-gradient(78.26deg, #1162e1 -10.21%, #844bfb 76.67%);
  width: auto;
  height: auto;
  min-width: auto;
  min-height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

/* Demo Container Background */
.demo-container-bg {
  position: relative;
  background: linear-gradient(
    141.25deg,
    rgba(43, 143, 255, 0.5) -6.17%,
    rgba(191, 123, 203, 0.5) 35.78%,
    rgba(151, 192, 199, 0.5) 68.44%,
    rgba(174, 159, 198, 0.5) 77.74%
  );
  border-radius: 24px;
  box-shadow: 0px 20.11px 80.45px 0px #254073, 0px 0px 29px 11px #b098ff78;
}

.demo-container-bg::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(
    141.25deg,
    #4ba0ff -6.17%,
    #ec88fe 35.78%,
    #97c0c7 68.44%,
    #bc96ff 77.74%
  );
  border-radius: 27px;
  z-index: -1;
}

/* Live Collaboration Styling */
.live-collaboration-dot {
  font-family: Inter;
  font-weight: 600;
  font-size: 13.4px;
  line-height: 20.09px;
  letter-spacing: 0.67px;
  text-transform: uppercase;
}

.live-collaboration-dot::before {
  content: "";
  position: absolute;
  width: 7.74px;
  height: 7.39px;
  top: 6px;
  left: 0.18px;
  border-radius: 3.69px;
  background: #10b981;
}

/* Message Sender Avatar Gradients */
.message-avatar-jordan {
  background: linear-gradient(135deg, #004ca3 0%, #0066dd 100%);
}

.message-avatar-aicollab {
  background: linear-gradient(135deg, #752ab7 0%, #9747ff 100%);
}

/* Normal Message Background */
.normal-message-bg {
  background: #3333330d;
  border: 0.96px solid #3333331a;
}

/* AI Collab Message Background */
.aicollab-message-bg {
  background: #752ab726;
  border: 0.96px solid #752ab74d;
}

/* Chat Input Styling */
.chat-input {
  background: #0000000d;
  border: 0.96px solid #ffffff1a;
  font-family: Inter;
  font-weight: 400;
  font-size: 13.4px;
  line-height: 100%;
  letter-spacing: 0%;
}

.chat-input::placeholder {
  font-family: Inter;
  font-weight: 400;
  font-size: 13.4px;
  line-height: 100%;
  letter-spacing: 0%;
}

/* Jordan/Sarah Message Cards */
.message-card-regular {
  width: 100%;
  max-width: 504px;
  min-height: 84px;
  height: auto;
  border-radius: 5.74px;
  background: #3333330d;
  border-left: 2.87px solid #0066dd;
}

/* Collaboration Buttons Container */
.collaboration-buttons-container {
  width: 100%;
  max-width: 357px;
  height: 40px;
  border-radius: 28.71px;
  border: 0.96px solid #ffffff1a;
  background: #0000001a;
}

/* Collaboration Buttons */
.collaboration-btn {
  width: 170px;
  height: 30px;
  border-radius: 28.71px;
  font-family: Inter;
  font-weight: 500;
  font-size: 11.48px;
  line-height: 100%;
  letter-spacing: 0.57px;
  text-transform: uppercase;
}

.collaboration-btn-live {
  background: linear-gradient(135deg, #004ca3 0%, #0066dd 100%);
}

/* Complex Keyframe Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

/* Orbital Animation for Service Icons */
@keyframes orbit-circle1 {
  from {
    transform: rotate(0deg) translateX(325px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(325px) rotate(-360deg);
  }
}

@keyframes orbit-circle2 {
  from {
    transform: rotate(0deg) translateX(450px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(450px) rotate(-360deg);
  }
}

@keyframes orbit-circle3 {
  from {
    transform: rotate(0deg) translateX(600px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(600px) rotate(-360deg);
  }
}

@keyframes orbit-circle4 {
  from {
    transform: rotate(0deg) translateX(750px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(750px) rotate(-360deg);
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

/* FAQ Accordion - Complex state-based styles */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content.active {
  max-height: 300px;
}

/* Tab Content Styles for Features Section */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1330;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #3b82f6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c3aed, #2563eb);
}

/* Complex Button Effects with Pseudo-elements */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Gradient Borders with Pseudo-elements */
.gradient-border {
  position: relative;
  background: linear-gradient(180deg, #1a1330, #0f0a1f);
  padding: 2px;
}

.gradient-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #8b5cf6);
  border-radius: inherit;
  z-index: -1;
  animation: gradient-animation 3s ease infinite;
  background-size: 200% 200%;
}

/* WordPress/Elementor Integration Helpers */
.elementor-widget-container {
  width: 100%;
}

.wp-header-footer {
  position: relative;
  z-index: 100;
}

/* Accessibility - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  header,
  footer,
  .no-print {
    display: none;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* Integration Modal Styles */
#integrationsModal {
  backdrop-filter: blur(8px);
}

#modalContent {
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Modal Animation Classes */
.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms ease, transform 300ms ease;
}

.modal-exit {
  opacity: 1;
  transform: scale(1);
}

.modal-exit-active {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 300ms ease, transform 300ms ease;
}

/* Responsive Breakpoints - Desktop (lg and up) */
@media (min-width: 1024px) {
  .ai-collab-bg {
    min-width: 620px;
    min-height: 112px;
  }

  .video-frame-container {
    max-width: 585px;
    padding: 17.38px;
  }

  .message-card-regular {
    width: 504px;
    height: 84px;
  }

  .collaboration-buttons-container {
    width: 357px;
  }

  .integration-header {
    transform: translateX(-50%) translateY(-670px);
  }
}

/* Mobile Integration Section Responsive Styles */
@media (max-width: 1023px) {
  #integrations {
    min-height: auto;
    height: auto;
    padding: 3rem 0;
  }

  .integration-header {
    position: relative;
    transform: none;
  }

  /* Force hide desktop orbital system on mobile */
  #integrations .hidden.lg\:flex {
    display: none !important;
  }
}

/* Desktop Integration Section Styles */
@media (min-width: 1024px) {
  /* Force hide mobile layout on desktop */
  #integrations .lg\:hidden {
    display: none !important;
  }

  /* Ensure desktop orbital system shows */
  #integrations .hidden.lg\:flex {
    display: flex !important;
  }
}
