/* --- HOME PAGE STYLES --- */

/* Hero Section - Keeps Dark futuristic cosmic bg */
.hero-wrapper {
  min-height: clamp(480px, 85vh, 750px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  background: #0b0f19;
  color: #ffffff;
  overflow: hidden;
}

#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: auto;
}

.hero-content {
  max-width: 800px;
  position: relative;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.5;
  margin-bottom: 3rem;
  max-width: 700px;
  color: #94a3b8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Stats Metrics Bar */
.metrics-bar {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.metrics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(130px, 20vw, 240px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.metric-card {
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Timeline (Why Choose Us) - Styled for Light bg */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  opacity: 0.15;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  justify-content: flex-start;
}

.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-blue);
  position: absolute;
  top: 1.5rem;
  right: -8px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-node {
  left: -8px;
}

.timeline-item.active .timeline-node {
  background: var(--accent-blue);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.timeline-content {
  width: 90%;
  padding: 1.5rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 1.5rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 1.5rem;
}

.timeline-item.active .timeline-content {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.12);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    justify-content: flex-start !important;
    padding-left: 40px;
  }
  .timeline-node {
    left: 12px !important;
  }
  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }
}

/* Workflow Steps */
.workflow-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 1.5rem;
}

.workflow-track::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  opacity: 0.1;
  z-index: 0;
}

.workflow-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.workflow-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 auto 1.5rem auto;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.workflow-step:hover .workflow-num {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .workflow-track {
    flex-direction: column;
    gap: 3rem;
  }
  .workflow-track::before {
    display: none;
  }
  .workflow-step {
    display: flex;
    text-align: left;
    align-items: center;
    gap: 2rem;
  }
  .workflow-num {
    margin: 0;
  }
}

/* Testimonial Slider */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  display: none;
  animation: fadeEffect 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

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

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.testimonial-quote::before {
  content: '“';
  font-size: 6rem;
  font-family: var(--font-heading);
  color: var(--accent-blue);
  opacity: 0.15;
  position: absolute;
  top: -2.5rem;
  left: -1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 2rem;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.control-btn {
  width: 44px; /* Accessible tap targets */
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.control-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
}

/* --- SERVICES PAGE STYLES --- */
.services-tabs-container {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
}

.services-tabs {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-shrink: 0;
}

.tab-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 1.2rem 1.8rem;
  min-height: 48px; /* Accessible Height */
  border-radius: 12px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tab-btn:hover, .tab-btn.active {
  color: var(--text-primary);
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.04);
}

.tab-btn.active {
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1);
}

.services-content {
  flex: 1;
}

.tab-content {
  display: none;
  animation: fadeEffect 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
  display: block;
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.spec-item svg {
  color: var(--accent-blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 868px) {
  .services-tabs-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .services-tabs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    gap: 0.6rem;
    scrollbar-width: none;
  }
  .services-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    padding: 0.8rem 1.2rem;
    flex-shrink: 0;
    font-size: 0.9rem;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
}

/* --- SOLUTIONS PAGE STYLES --- */

/* Interactive Architecture Builder - Styled Light */
.arch-builder-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.arch-visualizer {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.arch-layer {
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  background: #ffffff;
  transition: var(--transition-smooth);
}

.arch-layer.active {
  border-style: solid;
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.03);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.05);
}

.arch-layer.active:nth-child(2) {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.03);
  box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.05);
}

.arch-layer.active:nth-child(3) {
  border-color: var(--accent-purple);
  background: rgba(6, 182, 212, 0.03);
  box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.05);
}

.arch-layer-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.arch-layer.active .arch-layer-name {
  color: var(--text-primary);
}

.arch-layer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.arch-layer.active .arch-layer-desc {
  opacity: 1;
  height: auto;
  margin-top: 0.5rem;
}

.arch-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-control-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 84, 166, 0.02);
}

.arch-control-card.active {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.02);
  box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.08);
}

.arch-control-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.arch-control-info p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.arch-toggle {
  width: 50px;
  height: 26px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.08);
  position: relative;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.arch-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.arch-control-card.active .arch-toggle {
  background: var(--accent-blue);
}

.arch-control-card.active .arch-toggle::after {
  left: 27px;
}

@media (max-width: 900px) {
  .arch-builder-container {
    grid-template-columns: 1fr;
  }
}

/* --- INDUSTRIES PAGE STYLES --- */
.compliance-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.compliance-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- ABOUT US PAGE STYLES --- */

/* Interactive Map - Styled for Light Themes */
.map-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 3rem;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.map-svg-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.map-svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: rgba(0, 84, 166, 0.1);
  stroke-width: 1.5;
}

.map-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-node::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent-blue);
  animation: pulseMapNode 2s infinite;
}

@keyframes pulseMapNode {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.map-node-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--accent-blue);
  border-radius: 10px;
  padding: 1rem;
  width: 200px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 84, 166, 0.1);
  color: var(--text-primary);
}

.map-node:hover .map-node-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.map-node-tooltip h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.map-node-tooltip p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .map-container {
    padding: 1rem;
    padding-bottom: 8rem;
  }
  .map-node-tooltip {
    bottom: 1rem !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    width: calc(100% - 2rem) !important;
    top: auto !important;
    box-shadow: 0 8px 30px rgba(0, 84, 166, 0.15);
  }
}

/* --- CONTACT PAGE STYLES --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group input, .form-group textarea, .form-group select {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.08);
  background: #ffffff;
}

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

.form-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Scheduler Widget */
.scheduler-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.scheduler-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 40px; /* Safe Target Height */
}

.calendar-cell.header {
  border: none;
  background: none;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: default;
}

.calendar-cell:not(.header):hover {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.04);
}

.calendar-cell.selected {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

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

.time-slot {
  padding: 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 40px; /* Safe Target Height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-slot:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.04);
}

.time-slot.selected {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    gap: 0.25rem;
  }
  .calendar-cell {
    min-height: 36px;
    font-size: 0.8rem;
  }
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }
}

/* --- SUPPORT PAGE STYLES --- */

/* Operations Dashboard Grid */
.ops-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.ops-card {
  padding: 1.5rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 84, 166, 0.03);
}

.ops-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-top: 1rem;
}

.ops-indicator.online {
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ops-indicator.online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.ops-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--text-primary);
}

/* Biometric Login Mockup */
.bio-login-container {
  max-width: 420px;
  margin: 4rem auto 0 auto;
}

.bio-scanner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: #ffffff;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  min-height: 48px; /* Accessible Touch Target */
}

.bio-scanner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.bio-scanner svg {
  width: 48px;
  height: 48px;
  color: var(--accent-blue);
  transition: var(--transition-smooth);
}

.bio-scanner:hover svg {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
}

.bio-scanner.success {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.bio-scanner.success svg {
  color: #22c55e;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3));
}

.bio-feedback {
  text-align: center;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent-blue);
  min-height: 1.5rem;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .ops-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ops-dashboard {
    grid-template-columns: 1fr;
  }
}
