/* Copyright (c) 2025 Humanola Inc. All Rights Reserved. */
/* Humanola Remote Teleoperation Styles */

/* Base styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  overflow-x: hidden;
  min-width: 320px;
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #cdff8c;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #cdff8c;
}

/* Hero Section (Landing Screen) */
.landing-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
  z-index: 999;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem 60px;
  height: calc(100vh - 180px);
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.primary-cta {
  background: linear-gradient(135deg, #cdff8c 0%, #a8e063 100%);
  color: #0f0f0f;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(205, 255, 140, 0.3);
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(205, 255, 140, 0.4);
  background: linear-gradient(135deg, #b8e877 0%, #9dd84a 100%);
}

.secondary-cta {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tech-showcase {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-circle {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(205, 255, 140, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(205, 255, 140, 0.1) 0%, transparent 70%);
  position: relative;
}

.tech-pulse {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(205, 255, 140, 0.2);
  border-radius: 50%;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Booking Interface */
.desktop-interface {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1001;
  background: #0f0f0f;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.booking-nav {
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-nav .nav-container {
  justify-content: space-between;
}

.booking-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 2rem 60px;
}

.booking-header {
  text-align: center;
  margin-bottom: 60px;
}

.booking-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.booking-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-weight: 400;
}

/* Back button in booking nav */
.booking-nav .back-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.booking-nav .back-button:hover {
  background: rgba(205, 255, 140, 0.1);
  border-color: #cdff8c;
  color: #cdff8c;
}

/* Calendly widget */
.calendly-widget {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
}

.calendly-widget .calendly-inline-widget {
  width: 100%;
  max-width: 900px;
  height: 700px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 100px 1rem 60px;
    gap: 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .primary-cta {
    width: 100%;
    text-align: center;
  }

  .secondary-cta {
    text-align: center;
  }

  .tech-showcase {
    width: 250px;
    height: 250px;
  }

  .tech-circle {
    width: 150px;
    height: 150px;
  }

  .tech-pulse {
    width: 200px;
    height: 200px;
  }

  .booking-content {
    padding: 100px 1rem 60px;
  }

  .booking-title {
    font-size: 32px;
  }

  .booking-subtitle {
    font-size: 16px;
  }

  .calendly-widget .calendly-inline-widget {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .primary-cta {
    padding: 14px 24px;
    font-size: 16px;
  }

  .booking-title {
    font-size: 28px;
  }
}

/* Landing Screen Hidden State */
.landing-screen.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.5s ease;
}

/* Main Back Button Styling */
.main-back-button {
  position: fixed !important;
  top: 20px;
  left: 20px;
  background: rgba(15, 15, 15, 0.9) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 12px 20px !important;
  border-radius: 25px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  z-index: 1500;
  margin: 0 !important;
  backdrop-filter: blur(10px);
}

.main-back-button:hover {
  background: rgba(205, 255, 140, 0.1) !important;
  border-color: #cdff8c !important;
  color: #cdff8c !important;
}

/* Desktop Header for VR Instructions Page */
.desktop-header {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px;
}

/* VR Instructions Page Styling */
.vr-instructions-section {
  margin-top: 40px;
}

.vr-instructions-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 32px;
  text-align: center;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.instruction-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.instruction-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(205, 255, 140, 0.3);
  transform: translateY(-2px);
}

.instruction-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #cdff8c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instruction-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.server-url {
  font-family: 'Monaco', 'Menlo', monospace;
  background: rgba(205, 255, 140, 0.1);
  color: #cdff8c;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid rgba(205, 255, 140, 0.2);
}

/* Robot Status Section */
.status-section {
  margin-bottom: 40px;
}

.status-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.status-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-indicator.connected {
  background: #cdff8c;
  border-color: #cdff8c;
}

.status-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

/* VR Browser Body Styling */
body.vr-browser {
  background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* VR Button Styling for when VR is detected */
#immediate-vr-button {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #cdff8c 0%, #a8e063 100%);
  color: #0f0f0f;
  border: none;
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(205, 255, 140, 0.4);
  z-index: 2000;
}

#immediate-vr-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 12px 40px rgba(205, 255, 140, 0.6);
}

#immediate-vr-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* VR Browser Back Button */
.vr-browser-back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(15, 15, 15, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1500;
}

.vr-browser-back-button:hover {
  background: rgba(205, 255, 140, 0.1);
  border-color: #cdff8c;
  color: #cdff8c;
}

/* Demo Booking Button */
.demo-booking-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1500;
}

.demo-booking-button button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-booking-button button:hover {
  background: rgba(205, 255, 140, 0.1);
  border-color: #cdff8c;
  color: #cdff8c;
}

/* Responsive adjustments for VR page */
@media (max-width: 768px) {
  .instructions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .instruction-card {
    padding: 20px;
  }
  
  .status-grid {
    flex-direction: column;
    gap: 12px;
  }
  
  #immediate-vr-button {
    padding: 18px 32px;
    font-size: 18px;
  }
}

/* Hide desktop interface in VR mode */
@media (display-mode: standalone) {
  .desktop-interface {
    display: none !important;
  }
}