/* Custom styles for the homepage */

/* Four-Layer Model Visualization */
.layer-diagram {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.layer {
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.layer h3 {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

.layer p {
  text-align: center;
  font-style: italic;
  margin-bottom: 20px;
  padding: 0 20px;
}

.layer-components {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.component {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.layer-cultural {
  background-color: var(--color-transform-light);
  border-left: 5px solid var(--color-transform-dark);
}

.layer-organizational {
  background-color: var(--color-applications-light);
  border-left: 5px solid var(--color-applications-dark);
}

.layer-technology {
  background-color: var(--color-accent-2);
  border-left: 5px solid #6c8ebf;
}

.layer-base {
  background-color: var(--color-accent-3);
  border-left: 5px solid #82b366;
}

/* Layer Connection Arrows */
.layer::after {
  content: '↓';
  display: block;
  text-align: center;
  font-size: 24px;
  margin-top: 15px;
  color: #777;
}

.layer:last-child::after {
  display: none;
}

/* Usage Grid */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.usage-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.usage-card:hover {
  transform: translateY(-3px);
}

.usage-card h3 {
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .layer-components {
    flex-direction: column;
    align-items: center;
  }
  
  .component {
    width: 80%;
    text-align: center;
  }
}