/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

.btn-phone {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Article Hero */
.article-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.article-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 100 100"><defs><pattern id="tech-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23tech-pattern)"/></svg>');
  opacity: 0.3;
}

.breadcrumb {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  color: white;
  font-weight: 500;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.highlight {
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  padding: 2px 8px;
  border-radius: 4px;
}

.article-meta {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
}

/* Article Content */
.article-content {
  padding: 80px 0;
  background: #fafafa;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.main-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.article-image {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.article-text h2 {
  color: #2d3748;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 40px 0 20px 0;
  position: relative;
}

.article-text h2::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.article-text h3 {
  color: #4a5568;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 30px 0 15px 0;
}

.article-text h4 {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
}

.article-text p {
  margin-bottom: 20px;
  color: #4a5568;
  line-height: 1.7;
}

.article-text ul, .article-text ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-text li {
  margin-bottom: 8px;
  color: #4a5568;
  line-height: 1.6;
}

/* Highlight Boxes */
.highlight-box {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  position: relative;
}

.highlight-box h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlight-box h3 i {
  color: #667eea;
  font-size: 1.2rem;
}

/* Component Grids */
.components-grid, .pillars-grid, .materials-grid, .bim-dimensions, .iot-applications, .tech-grid, .sustainable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.component, .pillar, .material-category, .dimension, .application, .tech-item, .sustainable-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.component:hover, .pillar:hover, .material-category:hover, .dimension:hover, .application:hover, .tech-item:hover, .sustainable-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.component h4, .pillar h4, .material-category h4, .dimension h4, .application h4, .tech-item h4, .sustainable-item h4 {
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.component h4 i, .pillar h4 i, .material-category h4 i, .dimension h4 i, .application h4 i, .tech-item h4 i, .sustainable-item h4 i {
  color: #667eea;
}

/* Tech Implementation Sections */
.tech-implementation, .vr-ar-section, .installation-process, .maintenance-box, .challenges-solutions, .future-trends {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  border-left: 4px solid #667eea;
}

.tech-implementation h3, .vr-ar-section h3, .installation-process h3, .maintenance-box h3, .challenges-solutions h3, .future-trends h3 {
  color: #2d3748;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-implementation h3 i, .vr-ar-section h3 i, .installation-process h3 i, .maintenance-box h3 i, .challenges-solutions h3 i, .future-trends h3 i {
  color: #667eea;
}

/* Process Steps */
.process-steps, .adoption-steps {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step h4 {
  color: #2d3748;
  margin-bottom: 8px;
}

/* Calculation and Metrics */
.calculation-box, .safety-metrics, .performance-comparison, .cost-benefit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
}

.calculation-box h4, .safety-metrics h4, .performance-comparison h3, .cost-benefit h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-grid, .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.calc-item, .metric, .cost-item {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.calc-label, .metric-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.calc-value, .metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Tables */
.comparison-table {
  overflow-x: auto;
  margin: 20px 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th {
  background: #2d3748;
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}

/* Software and Platform Grids */
.software-grid, .platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.software-item, .platform {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.software-item:hover, .platform:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.software-item h4, .platform h4 {
  color: #2d3748;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.software-item h4 i, .platform h4 i {
  color: #667eea;
}

/* System Architecture */
.system-architecture {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.arch-layer {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.arch-layer h4 {
  color: #2d3748;
  margin-bottom: 8px;
}

/* Sensor Categories */
.sensor-category {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e2e8f0;
}

.sensor-category h4 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.sensor-category ul {
  list-style: none;
  padding: 0;
}

.sensor-category li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sensor-category li:last-child {
  border-bottom: none;
}

.sensor-category strong {
  color: #667eea;
  font-weight: 600;
}

/* Innovation Details */
.innovation-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #10b981;
}

.innovation-details h4 {
  color: #065f46;
  margin-bottom: 15px;
}

.innovation-details ul {
  list-style: none;
  padding: 0;
}

.innovation-details li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.innovation-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Challenges */
.challenge {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e2e8f0;
}

.challenge h4 {
  color: #dc2626;
  margin-bottom: 10px;
}

.challenge p {
  margin-bottom: 8px;
}

.challenge p strong {
  font-weight: 600;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 50px 0;
}

.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.cta-box p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.btn-cta {
  background: white;
  color: #667eea;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.btn-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 50px 0 20px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-section p {
  color: #a0aec0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 20px;
  text-align: center;
  color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .main-content {
    padding: 25px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .components-grid, .pillars-grid, .materials-grid, .bim-dimensions, .iot-applications, .tech-grid, .sustainable-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-grid, .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .software-grid, .platform-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .article-hero {
    padding: 40px 0;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .calc-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 25px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
}
