/* ==========================================
   CivilsAI - Component Styles
   ========================================== */

/* ==========================================
   Universal Full-Width Sticky Header
   ========================================== */
.site-header,
.glass-nav,
header.sticky {
  position: sticky;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled,
.glass-nav.scrolled,
header.sticky.scrolled {
  background: rgba(7, 11, 20, 0.96) !important;
  border-bottom-color: rgba(255, 107, 0, 0.25) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.site-header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .site-header-inner {
    padding: 0 24px;
  }
}

@media (min-width: 768px) {
  .site-header-inner {
    padding: 0 32px;
  }
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d1d5db;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.mobile-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, #ff6b00, #ff8c00);
  color: #ffffff;
  box-shadow: var(--glow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.glass-card-featured {
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.15);
}

.glass-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Badges & Tags */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
}

.glowing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: var(--glow-amber);
  animation: pulse-glow 2s infinite;
}

/* Grids & Cards Layout */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

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

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

/* Process Timeline Component */
.timeline-stepper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  margin-top: 40px;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 179, 71, 0.2) 100%);
}

.timeline-step {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.step-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--glow-orange);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

/* Pricing Estimator Component */
.pricing-calculator-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.calc-option-group {
  margin-bottom: 28px;
}

.calc-option-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--secondary);
}

.calc-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.calc-pill {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-pill:hover {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.05);
}

.calc-pill.selected {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.calc-pill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.calc-pill-price {
  font-size: 0.85rem;
  color: var(--secondary);
  font-family: var(--font-mono);
}

.calc-summary-panel {
  margin-top: 32px;
  padding: 24px;
  background: rgba(7, 11, 20, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.total-price-display {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.total-price-display span {
  color: var(--primary);
}

/* Service Filter Component */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--glow-orange);
}

/* Modal Dialog Component */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open,
.modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-container {
  background: #0d1322;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-container,
.modal-overlay.active .modal-container {
  transform: translateY(0) !important;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

/* Glassmorphic Story Modal Scrollbar */
.story-scroll-pane::-webkit-scrollbar {
  width: 6px;
}

.story-scroll-pane::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9999px;
}

.story-scroll-pane::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.4);
  border-radius: 9999px;
}

.story-scroll-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 0, 0.8);
}

.modal-close:hover {
  color: #ffffff;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #d1d5db;
}

.form-input, .form-textarea, .form-select,
#project-modal-overlay input,
#project-modal-overlay textarea,
#project-modal-overlay select {
  width: 100%;
  padding: 12px 16px !important;
  background-color: #0f172a !important;
  background: #0f172a !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important; /* Prevents iOS auto-zoom on input focus */
  line-height: 1.5 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.25s ease !important;
}

.form-input::placeholder, 
.form-textarea::placeholder,
#project-modal-overlay input::placeholder,
#project-modal-overlay textarea::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.form-input:focus, 
.form-textarea:focus, 
.form-select:focus,
#project-modal-overlay input:focus,
#project-modal-overlay textarea:focus,
#project-modal-overlay select:focus {
  border-color: #ff6b00 !important;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.35) !important;
  background-color: #111c35 !important;
}

/* Fix dropdown options inside dark select */
.form-select option,
#project-modal-overlay select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-size: 16px !important;
}

/* Override Chrome / Safari White Autofill Background */
#project-modal-overlay input:-webkit-autofill,
#project-modal-overlay input:-webkit-autofill:hover, 
#project-modal-overlay input:-webkit-autofill:focus,
#project-modal-overlay textarea:-webkit-autofill,
#project-modal-overlay select:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #0f172a inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* ==========================================
   Mobile Bottom-Sheet & Quick-Action Bar
   ========================================== */

/* Mobile Bottom-Sheet for Modals */
@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  
  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)) 18px !important;
    margin: 0 !important;
    border-bottom: none !important;
    transform: translateY(100%) !important;
  }

  .modal-overlay.open .modal-container,
  .modal-overlay.active .modal-container {
    transform: translateY(0) !important;
  }

  .modal-close {
    top: 14px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    font-size: 1.6rem !important;
  }

  #story-modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  #story-modal-overlay .modal-container {
    width: 100vw !important;
    height: 90vh !important;
    max-height: 90vh !important;
    border-radius: 24px 24px 0 0 !important;
  }
}

/* ==========================================
   Floating Circular WhatsApp Button (FAB)
   ========================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: whatsapp-float 3.5s ease-in-out infinite;
  cursor: pointer;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.floating-whatsapp-btn:active {
  transform: scale(0.94);
}

.whatsapp-icon-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.floating-whatsapp-btn:hover .whatsapp-icon-svg {
  transform: rotate(6deg) scale(1.06);
}

/* Radiating Pulse Ripple Rings */
.whatsapp-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.whatsapp-ring-1 {
  animation: whatsapp-pulse-ripple 2.4s ease-out infinite;
}

.whatsapp-ring-2 {
  animation: whatsapp-pulse-ripple 2.4s ease-out infinite 1.2s;
}

@keyframes whatsapp-pulse-ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0;
  }
}

@keyframes whatsapp-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
  }
  
  .whatsapp-icon-svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================
   Industry Horizontal Carousel Component
   ========================================== */
@media (min-width: 768px) {
  .industry-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 22px 4px;
    cursor: grab;
    user-select: none;
  }

  .industry-carousel:active {
    cursor: grabbing;
  }

  .industry-carousel-card {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 280px;
    scroll-snap-align: start;
  }

  /* Custom Styled Scrollbar for Carousel */
  .industry-carousel::-webkit-scrollbar {
    height: 6px;
  }

  .industry-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
  }

  .industry-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff6b00, #ffb347);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
  }

  .industry-carousel::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
  }
}

@media (max-width: 767px) {
  .industry-carousel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    overflow: visible;
  }

  .industry-carousel-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding: 24px 20px !important;
  }

  .carousel-controls-wrapper {
    display: none !important;
  }
}

/* Carousel Arrow Controls (Desktop / Tablet) */
.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 50, 0.85);
  border: 1.5px solid rgba(255, 107, 0, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.carousel-nav-btn:hover {
  background: #ff6b00;
  border-color: #ff6b00;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
  transform: scale(1.08);
}

/* Toast Component */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-card-hover);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  color: #ffffff;
  box-shadow: var(--glow-orange);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer Component */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px 0;
  margin-top: 100px;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .glass-nav .btn { display: none; }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-calculator-box { padding: 24px; }
  .calc-summary-panel { flex-direction: column; align-items: flex-start; }
}

/* Digital Shift Network Nodes & Fiber-Optic Stream */
.network-node-left {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.network-node-right {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.5);
  transition: transform 0.3s ease;
}

.network-node-right:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.8);
}

.fiber-stream {
  position: absolute;
  top: 50%;
  left: 28%;
  right: 28%;
  height: 40px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.fiber-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(71, 85, 105, 0.3) 0%, rgba(249, 115, 22, 0.8) 50%, rgba(251, 146, 60, 0.9) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.fiber-particle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(90deg, transparent, #ffffff, #ffb347, transparent);
  animation: fiber-flow 2s linear infinite;
}

@keyframes fiber-flow {
  0% { left: -30%; }
  100% { left: 130%; }
}

.pedestal-base {
  width: 100%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(51, 65, 85, 0.8) 0%, rgba(15, 23, 42, 0.9) 70%, transparent 100%);
  border: 1px solid rgba(71, 85, 105, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.pedestal-base-glowing {
  width: 100%;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.4) 0%, rgba(15, 23, 42, 0.95) 70%, transparent 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

/* ==========================================
   3D Isometric Card Grid — Digital Systems
   ========================================== */

.iso-grid-wrapper {
  padding: 20px 0 40px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.iso-hub {
  min-height: 420px;
}

/* --- Individual Cards --- */
.iso-card {
  background: linear-gradient(145deg, rgba(15, 23, 50, 0.95), rgba(10, 16, 38, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(80, 120, 200, 0.35);
  border-radius: 18px;
  padding: 24px 16px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 6px 0 rgba(30, 40, 80, 0.9),
    0 8px 0 rgba(50, 70, 140, 0.3),
    0 14px 40px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(60, 100, 200, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 20px rgba(60, 100, 200, 0.04);
  transform-style: preserve-3d;
}

/* 3D depth "shelf" effect under each card */
.iso-card::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 4px;
  right: 4px;
  height: 8px;
  background: linear-gradient(180deg, rgba(30, 45, 90, 0.8), rgba(15, 25, 55, 0.9));
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(60, 100, 180, 0.2);
  border-top: none;
  z-index: -1;
}

.iso-card:hover {
  border-color: rgba(80, 140, 255, 0.6);
  box-shadow:
    0 6px 0 rgba(30, 40, 80, 0.9),
    0 8px 0 rgba(50, 80, 160, 0.4),
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(60, 120, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 30px rgba(60, 120, 255, 0.06);
  transform: translateY(-4px);
}

/* Float animation staggered by animation-delay */
@keyframes iso-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

.iso-card-float {
  animation: iso-float 4.5s ease-in-out infinite;
}

/* Card icon container */
.iso-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: rgba(60, 110, 200, 0.12);
  border: 1px solid rgba(80, 130, 220, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7da8e8;
  transition: all 0.3s ease;
}

.iso-card:hover .iso-card-icon {
  background: rgba(60, 120, 240, 0.2);
  box-shadow: 0 0 18px rgba(60, 120, 240, 0.25);
  color: #a3c4f3;
}

/* Orange variant for Automation icon */
.iso-card-icon-orange {
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.35);
  color: #ff8c00;
}

.iso-card:hover .iso-card-icon-orange {
  background: rgba(255, 107, 0, 0.25);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.3);
  color: #ffb347;
}

.iso-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.iso-card-desc {
  font-size: 0.78rem;
  color: #8899b8;
  font-style: italic;
  line-height: 1.4;
}

/* --- Center Card (YOUR BUSINESS) --- */
.iso-card-center {
  background: linear-gradient(145deg, rgba(12, 20, 45, 0.98), rgba(8, 14, 32, 0.99));
  border: 2px solid rgba(255, 107, 0, 0.45);
  box-shadow:
    0 6px 0 rgba(60, 30, 10, 0.9),
    0 8px 0 rgba(255, 107, 0, 0.25),
    0 14px 50px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(255, 107, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 30px rgba(255, 107, 0, 0.04);
  padding: 32px 18px 28px;
}

.iso-card-center::before {
  background: linear-gradient(180deg, rgba(80, 40, 10, 0.8), rgba(40, 20, 5, 0.9));
  border-color: rgba(255, 107, 0, 0.2);
}

.iso-card-center:hover {
  border-color: rgba(255, 107, 0, 0.8);
  box-shadow:
    0 6px 0 rgba(60, 30, 10, 0.9),
    0 8px 0 rgba(255, 107, 0, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(255, 107, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 40px rgba(255, 107, 0, 0.06);
}

/* Glowing bottom edge bar on center card */
.iso-card-center::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff6b00, #ffb347, #ff8c00, #ff6b00, transparent);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.7), 0 0 35px rgba(255, 107, 0, 0.35), 0 2px 8px rgba(255, 107, 0, 0.5);
  animation: center-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes center-glow-pulse {
  0%, 100% {
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.5), 0 0 25px rgba(255, 107, 0, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 22px rgba(255, 107, 0, 0.9), 0 0 50px rgba(255, 107, 0, 0.45);
  }
}

.iso-card-title-center {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.3;
}

/* --- SVG Connector Lines Pulse --- */
.iso-line {
  stroke-dasharray: 6 4;
  stroke-dashoffset: 0;
  animation: iso-line-pulse 3s ease-in-out infinite, iso-line-dash 15s linear infinite;
}

@keyframes iso-line-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes iso-line-dash {
  to { stroke-dashoffset: -100; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .iso-grid-wrapper {
    transform: rotateX(6deg) rotateY(-4deg) rotateZ(1deg) !important;
  }
  .iso-hub {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .iso-grid-wrapper {
    transform: none !important;
    perspective: none;
  }
  .iso-hub {
    min-height: auto;
    padding-bottom: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .iso-hub .iso-card {
    position: static !important;
    width: calc(50% - 6px) !important;
    transform: none !important;
    padding: 16px 12px 14px !important;
  }
  .iso-hub .iso-card-center {
    width: 100% !important;
    order: -1;
    margin-bottom: 4px;
    padding: 22px 16px !important;
  }
  .iso-hub svg {
    display: none;
  }
}

