/* ==========================================================================
   MAHENDRA SINGH ENTERPRISE — Components & Interactive Systems
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO CINEMATIC SLIDESHOW (3-Second Auto Ken Burns)
   -------------------------------------------------------------------------- */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: clamp(580px, 88vh, 820px);
  overflow: hidden;
  background-color: #050505;
}

.slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 7s ease-out;
}

.hero-slide.active .slide-image {
  transform: scale(1.1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.88) 55%,
    rgba(10, 10, 10, 0.98) 100%
  );
  z-index: 2;
}

.slide-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 45%, rgba(212, 175, 55, 0.1), transparent 65%);
}

.hero-content-container {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 820px;
  padding: 2.5rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border-bright);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  color: var(--gold-light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-vibrant);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--gold-vibrant); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: clamp(0.975rem, 1.6vw, 1.15rem);
  color: #e2e8f0;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Slider Navigation Controls */
.slider-controls {
  position: absolute;
  bottom: 2rem;
  right: 5%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.slider-arrows {
  display: flex;
  gap: 0.5rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--gold-gradient);
  border-color: #ffd866;
  color: #000000;
  transform: scale(1.06);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Slide Progress Timer Bar */
.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold-gradient);
  z-index: 25;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   2. STATS & HIGHLIGHTS GRID
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.stat-card:hover {
  border-color: var(--gold-border-bright);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.stat-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. SERVICE CARDS SYSTEM
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  border-color: var(--gold-border-bright);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.8), 0 0 25px rgba(212, 175, 55, 0.15);
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img {
  transform: scale(1.08);
}

.service-number {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--gold-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.service-feature-item {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.service-feature-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. INDUSTRIES WE SERVE GRID
   -------------------------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  transition: all var(--transition-normal);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.industry-card:hover {
  border-color: var(--gold-border-bright);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.industry-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card:hover .industry-bg {
  transform: scale(1.08);
}

.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(10,10,10,0.85) 60%, #0d0d0d 100%);
}

.industry-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
}

.industry-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.industry-desc {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE 5-STEP PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  margin: 3rem 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-border) 0%, var(--gold-primary) 50%, var(--gold-border) 100%);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #141414;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: 'Space Grotesk', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.process-step:hover .process-node {
  background: var(--gold-gradient);
  color: #000000;
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.process-step-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.process-step-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .process-timeline::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE "GET A QUOTE" MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #111111;
  border: 1px solid var(--gold-border-bright);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #111111;
  z-index: 5;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e4e4e7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #181818;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  background: #202020;
}

.form-select option {
  background: #181818;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-feedback {
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-size: 0.925rem;
  display: none;
  margin-top: 1.25rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   7. FLOATING WHATSAPP BUTTON & QUICK ACTION WIDGET
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.floating-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.floating-call {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-fast);
}

.floating-call:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--gold-glow-strong);
}

.floating-call svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   8. PROJECT / SHOWCASE PORTFOLIO FILTER TABS
   -------------------------------------------------------------------------- */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #d1d5db;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-gradient);
  border-color: #ffd866;
  color: #000000;
  box-shadow: var(--shadow-gold);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-card:hover {
  border-color: var(--gold-border-bright);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.project-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.08);
}

.project-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.project-desc {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. CATEGORY BREAKDOWN TABLE
   -------------------------------------------------------------------------- */
.category-table-wrapper {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.category-table th {
  background: #141414;
  padding: 1.15rem 1.35rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-border);
  white-space: nowrap;
}

.category-table td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #e4e4e7;
  font-size: 0.925rem;
}

.category-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .wage-calculator-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-slider-section {
    height: auto;
    min-height: 520px;
    padding: 4.5rem 0 3.5rem;
    display: flex;
    align-items: center;
  }

  .hero-content-container {
    height: auto;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
  }

  .slider-controls {
    position: static;
    margin-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .slider-dots {
    gap: 0.35rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .services-grid, 
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .modal-box {
    max-width: 94%;
    padding: 1.5rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem 0 0.5rem;
  }

  .floating-actions {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 0.75rem;
    border-radius: 50%;
  }

  .floating-call {
    width: 42px;
    height: 42px;
  }

  .category-table-wrapper {
    margin: 0 -0.5rem;
    border-radius: var(--radius-sm);
  }

  .category-table th,
  .category-table td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-slider-section {
    min-height: 480px;
    padding: 3.5rem 0 2.5rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-desc {
    font-size: 0.88rem;
  }
}
