/* ========================================
   style.css – Arth Technology (Updated)
   Modern premium IT company design
   ======================================== */

/* ----- CSS Variables ----- */
:root {
  --primary: #2563eb;       /* vibrant blue */
  --secondary: #7c3aed;     /* purple */
  --accent: #f97316;        /* orange */
  --success: #10b981;       /* green */
  --danger: #ef4444;        /* red */
  --warning: #f59e0b;       /* amber */
  --dark: #1e293b;          /* dark slate */
  --light: #f8fafc;         /* off-white */
  --gray: #64748b;          /* medium gray */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), #fbbf24);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 30px rgba(37,99,235,0.15);
  --transition: all 0.3s ease;
}

/* ----- Base & Typography ----- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}
.btn-whatsapp {
  background: #25d366;
  margin-left: 1rem;
}
.btn-whatsapp:hover {
  background: #128C7E;
}

/* ----- Header & Navigation (enhanced) ----- */
.site-header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}
.nav-list li a {
  text-decoration: none;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: var(--transition);
}
.nav-list li a:hover::after,
.nav-list li a.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 10;
}
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-content li {
  list-style: none;
}
.dropdown-content a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--dark) !important;
}
.dropdown-content a:hover {
  background: var(--light);
  color: var(--primary) !important;
}
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    gap: 1rem;
  }
  .nav-list.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  .dropdown-content.show {
    display: block;
  }
}

/* ----- Hero Sections (already existing, enhance with gradient animations) ----- */
.hero, .about-hero, .contact-hero, .services-page-hero, .policy-hero, .terms-hero, .service-detail-hero {
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ----- Cards & Grids ----- */
.stat-item, .service-card, .team-member, .feature-card, .testimonial-card,
.industry-card, .why-card, .process-step, .value-card, .tech-item {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}
.stat-item:hover, .service-card:hover, .team-member:hover, .feature-card:hover,
.testimonial-card:hover, .industry-card:hover, .why-card:hover, .process-step:hover,
.value-card:hover, .tech-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.tech-item {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.tech-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.tech-item span {
  font-weight: 600;
  color: var(--primary);
  display: block;
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.industry-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.industry-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.process-step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
}
.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* Why Choose Grid */
.why-grid, .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.why-card, .value-card {
  text-align: center;
}
.why-card i, .value-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Global CTA */
.cta-global {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-top: 3rem;
}
.cta-global h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-global p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.cta-global .btn {
  background: white;
  color: var(--primary);
  margin: 0 0.5rem;
}
.cta-global .btn-whatsapp {
  background: #25d366;
  color: white;
}

/* ----- Footer enhancements (existing classes preserved) ----- */
.site-footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
}
.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--primary);
}
.social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.5rem;
}
.copyright {
  text-align: center;
  padding: 2rem 0 0;
  color: #94a3b8;
}

/* ----- Responsive tweaks ----- */
@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .cta-global h2 { font-size: 1.8rem; }
  .cta-global .btn { display: block; margin: 1rem auto; width: 80%; }
}
/* 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 {
  animation: fadeIn 0.3s ease;
}

.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;
}

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

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

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #6d28d9, #2563eb);
  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: #6d28d9;
}

.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;
}

.popup-body .form-group input:focus,
.popup-body .form-group textarea:focus {
  outline: none;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 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;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.captcha-question {
  background: #f1f5f9;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 2px;
  flex: 1;
}

.captcha-refresh {
  background: #e2e8f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.captcha-refresh:hover {
  background: #cbd5e1;
}

.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, #6d28d9, #2563eb);
  color: white;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 40, 217, 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;
}

/* Scrollbar styling */
.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;
}

@media (max-width: 640px) {
  .popup-container {
    width: 95%;
  }
  .popup-body {
    padding: 1rem;
  }
  .popup-buttons {
    flex-direction: column;
  }
}