/* ============================================
   style-updated.css - Arth Technology
   Version: 2.0
   Includes: Global Styles, Industry Pages, CRM Pages, Popup Forms, Animations
   ============================================ */

/* ===== IMPORT GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #ffffff;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: #475569;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
}

.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== SECTION STYLES ===== */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #1e293b;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -1rem auto 3rem;
  color: #64748b;
  font-size: 1.1rem;
}

/* ===== GRID SYSTEMS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ===== CARD STYLES ===== */
.card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2563eb;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== FEATURE GRID (Reusable) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2563eb;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.feature-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== BENEFITS LIST ===== */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.benefit-item {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(5px);
}

.benefit-item i {
  font-size: 2rem;
  color: #2563eb;
  flex-shrink: 0;
}

.benefit-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.benefit-item p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== WORKFLOW STEPS ===== */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.workflow-step {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.workflow-step h4 {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #1e293b;
}

/* ===== MODULES GRID ===== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.module-tag {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.module-tag:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-3px);
}

.module-tag i {
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

/* ===== AUDIENCE GRID ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.audience-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.audience-card:hover {
  background: #2563eb;
  transform: translateY(-5px);
}

.audience-card i {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.audience-card span {
  display: block;
  font-weight: 500;
  color: #1e293b;
  transition: color 0.3s ease;
}

.audience-card:hover i,
.audience-card:hover span {
  color: white;
}

/* ===== INDUSTRIES GRID ===== */
.industries-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.industries-mini-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.industries-mini-grid a i {
  font-size: 1.2rem;
}

.industries-mini-grid a:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-5px);
}

/* ===== COMPARISON TABLE ===== */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  background: #2563eb;
  color: white;
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  background: #f8fafc;
}

.comparison-table .check {
  color: #10b981;
}

.comparison-table .times {
  color: #ef4444;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.faq-list {
  max-width: 900px;
  margin: 2rem auto 0;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: #2563eb;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: #2563eb;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  margin: 0 0 1.5rem 0;
  color: #64748b;
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-global {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-global h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-global p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== POPUP FORM STYLES ===== */
.inquiry-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.inquiry-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.popup-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
  z-index: 100000;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  border-radius: 20px 20px 0 0;
}

.popup-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.popup-header h3 i {
  margin-right: 0.5rem;
}

.popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s;
  line-height: 1;
}

.popup-close:hover {
  transform: scale(1.1);
}

.popup-body {
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.popup-reference {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #92400e;
}

.popup-reference i {
  margin-right: 0.5rem;
}

.popup-reference strong {
  color: #b45309;
}

.popup-body .form-group {
  margin-bottom: 1.2rem;
}

.popup-body .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #1e293b;
  font-size: 0.85rem;
}

.popup-body .form-group label i {
  width: 20px;
  color: #2563eb;
}

.popup-body .form-group input,
.popup-body .form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.popup-body .form-group input:focus,
.popup-body .form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.popup-body .form-group.error input,
.popup-body .form-group.error textarea {
  border-color: #ef4444;
  background: #fef2f2;
}

.error-msg {
  display: none;
  font-size: 0.7rem;
  color: #ef4444;
  margin-top: 0.3rem;
}

.form-group.error .error-msg {
  display: block;
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-cancel,
.btn-submit {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel {
  background: #f1f5f9;
  color: #64748b;
}

.btn-cancel:hover {
  background: #e2e8f0;
}

.btn-submit {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.popup-form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
}

.popup-form-status.success {
  background: #d1fae5;
  color: #065f46;
}

.popup-form-status.error {
  background: #fee2e2;
  color: #991b1b;
}

.popup-body::-webkit-scrollbar {
  width: 6px;
}

.popup-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 100;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128C7E;
  color: white;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for grid items */
.features-grid .animate-on-scroll,
.benefits-list .animate-on-scroll,
.modules-grid .animate-on-scroll,
.audience-grid .animate-on-scroll {
  transition-delay: calc(0.05s * var(--item-index, 0));
}

/* ===== SKELETON LOADER ===== */
.skeleton-wrapper {
  min-height: 400px;
  background: #f8fafc;
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#main-content {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#main-content.visible {
  opacity: 1;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #38bdf8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

.social-links a i {
  font-size: 1rem;
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  color: #64748b;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  section { padding: 3rem 0; }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    gap: 1.5rem;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
  }
  
  .benefit-item i {
    margin: 0 auto 0.5rem;
  }
  
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .industries-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
  
  .popup-container {
    width: 95%;
  }
  
  .popup-buttons {
    flex-direction: column;
  }
  
  .btn {
    margin: 0.25rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .audience-grid {
    grid-template-columns: 1fr;
  }
  
  .industries-mini-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.bg-light { background: #f8fafc; }
.bg-white { background: white; }
.bg-dark { background: #0f172a; }

/* ===== PRINT STYLES ===== */
@media print {
  .whatsapp-float,
  #header,
  .inquiry-popup,
  .cta-global .btn {
    display: none !important;
  }
  
  body {
    padding: 0;
    margin: 0;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}