header {
  background:
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.5) 0%,
      rgba(118, 75, 162, 0.5) 100%
    ),
    url("/merware/resources/mkwed.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 100px 0;
  text-align: center;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s;
}

header p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  transform: translateY(125%);
}

.cta-button:hover {
  transform: translateY(calc(125% - 3px));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.service-card {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.portfolio-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.portfolio-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.portfolio-content {
  padding: 30px;
}

.portfolio-content h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.portfolio-content p {
  color: #666;
  line-height: 1.8;
}

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

#marc {
  scroll-margin-top: 90px;
}

#marc:target {
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.18);
  transform: translateY(-6px);
  transition: all 0.25s ease;
}

.team-member {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  border: 4px solid #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.18);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.team-member h3 {
  color: #667eea;
  margin-bottom: 10px;
}

.team-member .role {
  color: #999;
  font-style: italic;
  margin-bottom: 15px;
}

.contact-section {
  text-align: center;
  background:
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.5) 0%,
      rgba(118, 75, 162, 0.5) 100%
    ),
    url("/merware/resources/mkwed.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  color: white;
}

.contact-section h2 {
  color: white;
}

.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-info {
  font-size: 1.3rem;
  margin-top: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto 0 auto;
  align-items: start;
  text-align: center;
}

.contact-item {
  padding: 8px 12px;
}

.contact-item p {
  color: white;
  margin: 0;
  white-space: nowrap;
}

.social-icons {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.social-icons img {
  width: 32px;
  height: 32px;
  display: block;
}

.contact-info a {
  color: white;
  text-decoration: none;
  border-bottom: 2px solid white;
}

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

  .contact-item p {
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 768px) {
  .portfolio-grid,
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}
