/* Modern Design Compatibility Fixes */
/* This file ensures the modern design works with existing HTML structure */

/* ============================================
   Header Fixes
   ============================================ */
/* Keep header relative, not fixed */
.header_section {
  position: relative !important;
  background: #ffffff !important;
}

/* Fix sub_page hero_area background */
.sub_page .hero_area,
.hero_area {
  background: #ffffff !important;
  background-color: #ffffff !important;
  height: auto !important;
}

body.sub_page .hero_area {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Fix navigation text colors */
.navbar-brand,
.navbar-brand span {
  color: #2c3e50 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.nav-link {
  color: #2c3e50 !important;
}

.nav-link:hover {
  color: #3498db !important;
}

/* Fix dropdown colors - white background to match header */
.dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  padding: 8px 0 !important;
  margin-top: 8px !important;
}

.dropdown-item {
  color: #2c3e50 !important;
  padding: 10px 20px !important;
  transition: all 0.3s ease !important;
}

.dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #3498db !important;
}

/* ============================================
   Hero Area Fixes
   ============================================ */
/* Remove hero area background and height */
.hero_area {
  min-height: auto !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  display: block !important;
}

.hero_area::before {
  display: none !important;
}

/* ============================================
   Section Spacing Fixes
   ============================================ */
/* Ensure proper spacing without excessive padding */
section {
  padding: 60px 0 !important;
}

.who_section,
.service_section,
.work_section,
.client_section,
.reviews_section {
  padding: 60px 0 !important;
}

/* Remove alternating backgrounds */
section:nth-child(even) {
  background: transparent !important;
}

/* ============================================
   Button Fixes
   ============================================ */
/* Ensure buttons have proper colors */
.blue-button,
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

.blue-button:hover,
.btn-primary:hover {
  color: #ffffff !important;
}

/* ============================================
   Typography Fixes
   ============================================ */
/* Don't override existing heading styles too aggressively */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
}

/* ============================================
   Card Fixes
   ============================================ */
/* Ensure cards work with existing structure */
.box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Image Fixes
   ============================================ */
.with-shadow {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 0;
}

/* Remove rounded frame on screenshots containers */
.who_section .img-box {
  border-radius: 0 !important;
  overflow: visible !important;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #3498db 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.step-title {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-weight: 600;
}

.step-details {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #4a5568;
  line-height: 1.7;
}

.step-details li {
  margin: 4px 0;
}

/* ============================================
   Footer Fixes
   ============================================ */
/* Info Section - Unified Footer */
.info_section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ffffff;
  padding: 60px 0 30px;
}

.info_section h5 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 600;
}

.info_section .info_contact > div {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.info_section .info_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.info_section .info_icon svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.9);
}

.info_section .img-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.info_section .img-box img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.info_section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.info_section a {
  color: #5dade2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info_section a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Copyright Section within Footer */
.footer_copyright {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer_copyright p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer_copyright a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer_copyright a:hover {
  color: #5dade2;
}

/* Legacy footer_section support (if still used anywhere) */
.footer_section {
  background: #1a252f;
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 0;
  text-align: center;
}

.footer_section p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer_section a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer_section a:hover {
  color: #5dade2;
}

/* ============================================
   Responsive Fixes
   ============================================ */
@media (max-width: 768px) {
  section {
    padding: 40px 0 !important;
  }
  
  .who_section,
  .service_section,
  .work_section,
  .client_section,
  .reviews_section {
    padding: 40px 0 !important;
  }
}

/* ============================================
   Disable Problematic Animations
   ============================================ */
/* Remove parallax effect that might cause issues */
.hero_area {
  transform: none !important;
}

/* ============================================
   Z-index Fixes
   ============================================ */
.header_section {
  z-index: 1000;
}

.back-to-top {
  z-index: 999;
}

/* ============================================
   Layout Fixes
   ============================================ */
/* Ensure container widths are respected */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 24px;
}

/* ============================================
   Feature List Fixes
   ============================================ */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: #4a5568;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* ============================================
   System Requirements Fixes
   ============================================ */
.os-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.os-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #5dade2;
}

/* ============================================
   Heading Container Fixes
   ============================================ */
.heading_container {
  text-align: center;
  margin-bottom: 40px;
}

.heading_container h2 {
  position: relative;
  display: inline-block;
}

.heading_container p {
  max-width: 600px;
  margin: 16px auto 0;
  color: #7f8c8d;
}


/* ============================================
   FAQ Section Fixes
   ============================================ */
/* Limit FAQ box height and improve layout */
.box .detail-box {
  height: auto !important;
}

.box .detail-box h5 {
  margin-bottom: 12px;
  font-size: 1.125rem;
  line-height: 1.4;
}

.box .detail-box p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Override height: 100% for FAQ boxes */
section .box {
  height: auto !important;
  min-height: auto !important;
}


/* ============================================
   Downloads Section - Force Horizontal Layout
   ============================================ */
/* Ensure download boxes display horizontally on desktop */
.system-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.system-requirements > .col-md-6 {
  flex: 1 1 calc(50% - 12px);
  min-width: 300px;
}

@media (max-width: 768px) {
  .system-requirements > .col-md-6 {
    flex: 1 1 100%;
  }
}


/* ============================================
   Article Page Header Fixes
   ============================================ */
/* Ensure article pages have white header */
.article_page .hero_area,
.article_page .header_section {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.article_page .hero_area {
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
}


/* ============================================
   Article Page Hero Area Fix
   ============================================ */
/* Remove dark background from hero_area on article pages */
.article_page .hero_area,
.sub_page.article_page .hero_area {
  background-color: #ffffff !important;
  background: #ffffff !important;
}
