/* MB_main.css */

/* Popup Overlay */
/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--vvh, 100vh);
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  padding: 16px;
  z-index: 10000;
}

/* Prevent scrolling when popup is open */
body.popup-open {
  overflow: hidden;
}

/* Popup Container */
.popup-container {
  background: white;
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  width: min(92vw, 500px);
  max-height: calc(var(--vvh, 100vh) - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Popup Content */
.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* Popup Image */
.popup-image {
  max-width: 100%;
  height: auto;
  max-height: 40vh;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Popup Message */
.popup-message {
  color: #666;
  line-height: 1.6;
}

.popup-message p {
  margin: 10px 0;
  font-size: 18px;
}

.team-signature {
  font-style: italic;
  color: #888;
  font-size: 16px;
  margin-top: 15px;
}

/* Enhanced Continue Button - blue style matching your cta-primary */
.popup-continue-btn {
  background: #3498db;
  color: white;
  border: 2px solid #3498db;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  min-height: 44px;
  min-width: 180px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.popup-continue-btn:hover {
  background: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.popup-continue-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

/* Fade out animation */
.popup-overlay.fade-out {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.6s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: #f8f9fa;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation Bar */
.navbar {
  position: relative;
  background: white;
  border-bottom: 1px solid #e1e8ed;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #34495e;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3498db;
}

.contact-btn {
  background: #3498db;
  color: white !important;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #3498db;
}

.contact-btn:hover {
  background: #2980b9;
  border-color: #2980b9;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(52, 152, 219, 0.1);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #2c3e50;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Dropdown */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(52, 152, 219, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  gap: 0;
}

.mobile-menu-links .nav-link {
  padding: 1.4rem 2rem !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(52, 152, 219, 0.15);
  font-size: 1.1rem;
  text-align: center;
  display: block;
  width: 100%;
  color: #34495e;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  transition: all 0.3s ease;
}

.mobile-menu-links .nav-link:hover {
  background: rgba(52, 152, 219, 0.05);
  color: #3498db;
}

.mobile-menu-links .nav-link:last-child {
  border-bottom: none;
}

/* Special styling for contact button in mobile menu */
.mobile-menu-links .contact-btn {
  margin: 1.5rem 2rem !important;
  padding: 1.2rem 1.5rem !important;
  border-radius: 8px !important;
  background: #3498db !important;
  color: white !important;
  border: 2px solid #3498db !important;
  border-bottom: 2px solid #3498db !important;
  width: calc(100% - 4rem) !important;
  box-sizing: border-box !important;
  font-weight: 600 !important;
}

.mobile-menu-links .contact-btn:hover {
  background: #2980b9 !important;
  border-color: #2980b9 !important;
  color: white !important;
}

/* App Section */
.app-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.error-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e8ed;
}

.error-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.construction-icon {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
}

.gear-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gear {
  position: absolute;
  border-radius: 50%;
  border: 8px solid #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear::before {
  content: "";
  position: absolute;
  background: #3498db;
}

.gear-large {
  width: 120px;
  height: 120px;
  top: 20px;
  left: 40px;
  animation: rotate-clockwise 4s linear infinite;
}

.gear-large::before {
  width: 8px;
  height: 40px;
  border-radius: 4px;
}

.gear-large::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 8px;
  border-radius: 4px;
  background: #3498db;
}

@keyframes rotate-clockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-counter {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.progress-indicator {
  width: 200px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
  width: 0%;
  animation: progress 3s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 75%;
  }
  100% {
    width: 0%;
  }
}

.progress-text {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

.error-content {
  max-width: 500px;
}

.status-code {
  display: inline-block;
  background: #e8f4fd;
  color: #3498db;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.error-message {
  font-size: 1.2rem;
  color: #5a6c7d;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.error-description {
  color: #7f8c8d;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.app-preview {
  margin-bottom: 2.5rem;
}

.app-preview h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
}

.feature-icon.check {
  background: #27ae60;
}

.feature-icon.check::after {
  content: "✓";
}

.feature-icon.development {
  background: #f39c12;
  animation: pulse-orange 2s ease-in-out infinite;
}

.feature-icon.development::after {
  content: "⋯";
}

@keyframes pulse-orange {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.feature-row span {
  color: #5a6c7d;
  font-size: 0.95rem;
}

.notify-section {
  background: #f8f9fa;
  padding: 2rem 2rem 0.5rem 2rem; /* top right bottom left - reduces bottom padding */
  border-radius: 12px;
  border: 1px solid #e9ecef;
  margin-bottom: 2rem;
}

.notify-section h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.email-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.email-input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: #3498db;
}

.notify-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.notify-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.notify-result {
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
}

.notify-result.success {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.notify-result.error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.alternative-actions h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.action-btn {
  text-decoration: none;
  padding: 1rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-btn.primary {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.action-btn.primary:hover {
  background: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
}

.action-btn.secondary {
  background: transparent;
  color: #3498db;
  border-color: #3498db;
}

.action-btn.secondary:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Ensure popup stays usable at high zoom */
  .popup-container {
    width: min(94vw, 520px);
    padding: 28px;
    max-height: calc(var(--vvh, 100vh) - 24px);
  }

  .popup-image {
    max-height: 32vh;
  }

  .popup-continue-btn {
    width: 100%;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  .error-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }

  .error-title {
    font-size: 2rem;
  }

  .email-form {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .nav-right {
    display: none;
  }

  .construction-icon {
    width: 150px;
    height: 150px;
  }

  .gear-large {
    width: 90px;
    height: 90px;
    top: 15px;
    left: 30px;
  }

  .gear-small {
    width: 60px;
    height: 60px;
    top: 8px;
    right: 15px;
  }

  .progress-indicator {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .error-container {
    padding: 1.5rem;
  }

  .error-title {
    font-size: 1.8rem;
  }

  /* Smaller screens: keep popup readable and actionable */
  .popup-container {
    width: 100%;
    padding: 20px;
    max-height: calc(var(--vvh, 100vh) - 16px);
  }

  .popup-image {
    max-height: 28vh;
  }

  .popup-continue-btn {
    min-width: 0;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
}

/* Disable hover translate on touch devices to avoid jitter */
@media (hover: none) {
  .popup-continue-btn:hover,
  .popup-continue-btn:active {
    transform: none;
  }
}
