/* Demo Modal Styles */
.demo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.demo-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-modal-content {
  position: relative;
  width: 90%;
  height: 95%;
  max-width: 1600px;
  max-height: 90vh;
  background: var(--light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
  }
  
  .logo i {
    margin-right: 8px;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
  }

.demo-modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-modal-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.demo-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.demo-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--light) 0%, #e9ecef 100%);
  padding: 40px 20px;
}

.demo-modal-body::-webkit-scrollbar {
  width: 10px;
}

.demo-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.demo-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

.demo-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Live Demo Section */
.live-demo-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(80, 22, 74, 0.03) 0%, rgba(46, 139, 87, 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.live-demo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(80, 22, 74, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(46, 139, 87, 0.05) 0%, transparent 25%);
  z-index: 0;
}

.live-demo-section .container {
  position: relative;
  z-index: 1;
}

.demo-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.demo-intro h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.demo-intro p {
  font-size: 1.2rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.demo-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.demo-highlight-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--primary);
}

.demo-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.demo-highlight-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 5px 15px rgba(80, 22, 74, 0.3);
}

.demo-highlight-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.demo-highlight-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.demo-cta-container {
  text-align: center;
  margin-top: 3rem;
}

.demo-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(80, 22, 74, 0.3);
}

.demo-launch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(80, 22, 74, 0.4);
}

.demo-launch-btn i {
  font-size: 1.3rem;
  animation: pulse 2s infinite;
}

.demo-note {
  margin-top: 1rem;
  color: var(--gray);
  font-size: 0.9rem;
  font-style: italic;
}

/* Demo Content Styles Inside Modal */
.demo-modal-body .demo-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.demo-modal-body .section-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.4;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .demo-modal-content {
    width: 95%;
    height: 92%;
    border-radius: 15px;
  }

  .demo-modal-header {
    padding: 15px 20px;
  }

  .demo-modal-title {
    font-size: 16px;
  }

  .demo-modal-close {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .demo-modal-body {
    padding: 20px 15px;
  }

  .demo-intro h2 {
    font-size: 2rem;
  }

  .demo-intro p {
    font-size: 1rem;
  }

  .demo-launch-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
  }

  .demo-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .demo-intro h2 {
    font-size: 1.75rem;
  }

  .demo-modal-body .demo-section {
    padding: 20px;
  }
}