/* Homepage Professional Styling */

.homepage {
  max-width: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 140px);
}

.homepage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 -20px 40px -20px;
  padding: 80px 20px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 22px;
  margin: 0 0 40px 0;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.hero-btn.primary {
  background: white;
  color: #667eea;
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Section Common Styling */
.section {
  background: white;
  border-radius: 16px;
  padding: 50px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  align-items: flex-end;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.section-icon {
  font-size: 48px;
  margin-right: 15px;
  line-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: 36px;
  color: #1f2937;
  margin: 0;
  padding: 0;
  font-weight: 700;
  line-height: 48px;
  display: flex;
  align-items: center;
}

.section-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-title a:hover {
  color: #667eea;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
}

.section-content p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.section-content a {
  color: #667eea;
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.3s ease;
}

.section-content a:hover {
  color: #764ba2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.intro-text {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px !important;
  font-weight: 500;
}

.highlight-text {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #ef4444 !important;
  margin-top: 30px !important;
}

/* Quote Box */
.quote-box {
  background: #eff6ff;
  border-left: 5px solid #3b82f6;
  padding: 25px;
  margin: 30px 0;
  border-radius: 8px;
}

.quote-box p {
  font-style: italic;
  color: #1e3a8a !important;
  margin: 0 !important;
}

/* Image Container */
.image-container {
  margin: 30px 0;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.02);
}

/* Features List - Row Layout */
.features-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  max-width: 900px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  transition: background-color 0.3s ease;
}

.feature-row:hover {
  background-color: rgba(102, 126, 234, 0.03);
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-right: 0.5rem;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row .feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.feature-row p {
  margin: 0;
  line-height: 1.8;
  color: #4a5568;
  flex: 1;
  font-size: 16px;
}

.feature-row p a {
  color: #667eea;
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-row p a:hover {
  color: #764ba2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.feature-item p {
  margin: 0 !important;
  font-size: 15px;
  color: #374151 !important;
}

/* Versions Grid */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.version-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.version-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.version-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.version-card h3 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
}

/* Video Container */
.video-container {
  margin-top: 30px;
}

/* Carousel Container */
.carousel-container {
  margin-top: 30px;
}

/* Parameters Container */
.parameters-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.thumbnail-item {
  text-align: center;
}

.thumbnail-item a {
  text-decoration: none;
  display: block;
}

.overlay-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overlay-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.overlay-container .thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-container .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(102, 126, 234, 0.95);
  color: white;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.overlay-container:hover .overlay {
  background: rgba(118, 75, 162, 0.95);
  padding: 18px;
}

/* Demo Card */
.demo-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 12px;
  color: white;
  text-align: center;
}

.demo-credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.demo-credentials li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
}

.demo-credentials li:last-child {
  border-bottom: none;
}

.demo-credentials li {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.demo-credentials strong {
  display: inline-block;
  min-width: 90px;
  flex-shrink: 0;
}

.copyable-text {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  cursor: text;
  user-select: all;
  transition: background 0.3s ease;
  display: inline-block;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copyable-text:hover {
  background: rgba(255, 255, 255, 0.25);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #667eea;
  padding: 16px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.button-icon {
  width: 20px;
  height: 20px;
}

/* What Next Grid */
.whatnext-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.whatnext-card {
  background: #f9fafb;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  border: 2px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.whatnext-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

.whatnext-card h3 {
  font-size: 16px;
  color: #1f2937;
  margin: 0;
  font-weight: 600;
}

/* License Card */
.license-card {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.license-card p {
  font-size: 16px;
  color: #78350f !important;
  margin: 0 0 15px 0 !important;
}

.license-card p:last-child {
  margin: 0 !important;
}

.license-card strong {
  color: #92400e;
  font-weight: 700;
}

.license-card a {
  color: #92400e;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 300px;
  }

  .section {
    padding: 30px 20px;
  }

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

  .feature-row .feature-icon {
    font-size: 1.5rem;
  }

  .feature-row p {
    font-size: 0.95rem;
  }

  .parameters-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatnext-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

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

  .section-title {
    font-size: 24px;
  }

  .parameters-thumbnails {
    grid-template-columns: 1fr;
  }

  .whatnext-grid {
    grid-template-columns: 1fr;
  }
}
