/* ============================================================
   RUDRAX.CLOUD — COMPONENTS (QCLAY AESTHETIC)
   ============================================================ */

/* ============================================================
   NAVIGATION (Floating Pill)
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: var(--space-4);
  left: 0; right: 0;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through outside the pill */
  display: flex;
  justify-content: center;
}

.nav {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 12px 8px 24px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  transition: box-shadow var(--duration-base);
  box-shadow: var(--shadow-card);
}

.nav.is-scrolled {
  box-shadow: var(--shadow-float);
  background: rgba(255, 255, 255, 0.9);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-dot {
  width: 10px; height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
}

.nav__links {
  display: flex;
  gap: var(--space-6);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.nav__link:hover, .nav__link.is-active {
  color: var(--text-primary);
}

/* Mobile Nav Drawer */
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav__toggle span {
  width: 16px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta-desktop { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================================
   BUTTONS (Oversized Pills)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--duration-base) var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-secondary);
}

.btn--primary:hover {
  background: var(--accent-primary);
  transform: scale(1.02);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn--secondary:hover {
  border-color: var(--text-primary);
  transform: scale(1.02);
}

.btn--sm {
  padding: 12px 24px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 20px 48px;
  font-size: 1.125rem;
}

/* ============================================================
   BENTO CARDS (Extreme Radii)
   ============================================================ */
.bento-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-bounce), box-shadow var(--duration-base);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-float);
}

.bento-card--dark {
  background: var(--bg-dark);
  color: var(--text-light-primary);
}

.bento-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
}

.bento-card__desc {
  color: var(--text-secondary);
  font-size: var(--text-body);
}
.bento-card--dark .bento-card__desc { color: var(--text-light-secondary); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-16);
}
.section-header h2 {
  font-size: var(--text-h1); /* Huge section headers */
  max-width: 900px;
}
.section-header p {
  margin-top: var(--space-6);
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 600px;
}

/* ============================================================
   FOOTER (Massive typography)
   ============================================================ */
.footer {
  padding: var(--space-32) 0 var(--space-8);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.footer__big-text {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  line-height: 0.8;
  white-space: nowrap;
  margin-bottom: var(--space-16);
  text-align: center;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-8);
}

.footer__col h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-6);
}

.footer__col a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  font-weight: 500;
  transition: color var(--duration-fast);
}
.footer__col a:hover { color: var(--text-primary); }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: var(--space-16) auto;
  max-width: var(--max-width);
}

.video-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.video-wrapper iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.video-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: var(--space-6);
}

.video-overlay h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  color: white;
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.video-overlay p {
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* AI Mesh Animated Background (Replaces Blocked Videos) */
.ai-mesh-container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  overflow: hidden;
  filter: blur(60px);
}

.ai-mesh-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 { width: 60vw; height: 60vw; background: var(--accent-primary); top: -10vw; left: -10vw; animation-delay: 0s; }
.orb-2 { width: 50vw; height: 50vw; background: #FF3A70; bottom: -10vw; right: -10vw; animation-delay: -5s; animation-direction: alternate-reverse; }
.orb-3 { width: 70vw; height: 70vw; background: #3AFFFF; top: 40vh; left: 40vw; animation-delay: -10s; }
.orb-4 { width: 40vw; height: 40vw; background: #9D3AFF; top: -20vh; right: 20vw; animation-delay: -15s; animation-direction: alternate-reverse; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10vw, 15vh) scale(1.2); }
  66% { transform: translate(-10vw, 20vh) scale(0.9); }
  100% { transform: translate(15vw, -10vh) scale(1.1); }
}

/* ============================================================
   AI CHATBOT WIDGET
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 1000;
  font-family: var(--font-body);
}

.chat-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform var(--duration-base) var(--ease-bounce);
}

.chat-toggle:hover {
  transform: scale(1.1);
  background: var(--accent-primary);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--duration-base) var(--ease-bounce);
  transform-origin: bottom right;
}

.chat-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-close {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1;
}

.chat-body {
  height: 300px;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-2);
  background: var(--bg-secondary);
}

.chat-input-area input {
  flex-grow: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9375rem;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.chat-input-area button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 32px); position: fixed; right: 16px; bottom: 90px; }
  .video-section { height: 60vh; border-radius: 0; margin: 0; }
}
