/* =========================================
   Technology Page Styles
========================================= */

/* Page Hero Section */
.page-hero {
  background: #707adc
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tech Section Base */
.tech-section {
  padding: 80px 0;
  position: relative;
}

.tech-section:nth-child(even) {
  background: #f8fafc;
}

.tech-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  text-align: center;
  margin-bottom: 3rem;
}

/* AI Pipeline Section */
.ai-pipeline .pipeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.pipeline-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
}

.pipeline-features {
  display: grid;
  gap: 1.5rem;
}

.feature-item {
  padding: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #3b82f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.pipeline-diagram {
  position: relative;
}

.tech-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: auto;
}

.tech-image:hover {
  transform: scale(1.02);
}

/* Computer Vision Workflow */
.cv-flow {
  background: white;
}

.cv-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.cv-step {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.cv-step:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cv-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.cv-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
}

.cv-step p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cv-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: #1e40af;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.cv-arrow {
  font-size: 2rem;
  color: #3b82f6;
  font-weight: bold;
}

/* Platform Architecture */
.architecture-layer {
  background: linear-gradient(205deg, #1e40af 20%, #707adc 80%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
  opacity: 80%;
}

.architecture-layer:hover {
  transform: translateY(-4px);
}

.architecture-layer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.architecture-layer p {
  opacity: 0.9;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.code-snippet {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-line;
  margin-top: 1rem;
}

/* Security & Compliance Section */
.security-compliance {
  background: #f8fafc;
}

.security-content {
  text-align: center;
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.center {
  text-align: center;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.security-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.security-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0ea5e9 0%, #17207B 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.security-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
}

.security-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 60px;
  }
  
  .page-hero h1 {
    font-size: 2.5rem;
  }
  
  .tech-section {
    padding: 60px 0;
  }
  
  .tech-section h2 {
    font-size: 2rem;
  }
  
  .ai-pipeline .pipeline-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cv-flow-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cv-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 80px 0 40px;
  }
  
  .tech-section {
    padding: 40px 0;
  }
  
  .cv-step,
  .security-card,
  .architecture-layer {
    padding: 1.5rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
}

