/* Core Layout */
body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  background-color: #f4f4f9;
  color: #333;
}

header {
  text-align: center;
  background: #ffffff; 
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.banner {
  width: 100%;
  max-height: 500px; 
  object-fit: contain; 
  height: auto; 
  display: block;
  margin: 0 auto;
}

.home-headline {
  margin-top: 1rem;
  font-weight: 300;
  color: #555;
}

/* Project Grid */
.content-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: 50px;
  padding: 40px 20px;
  background: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
}

.contact-button-wrapper {
  margin-top: 20px;
}

.contact-button-primary {
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.contact-button-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.contact-icon {
  margin-right: 8px;
}

/* Contact Modal */
#contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.contact-modal-content {
  background: #e3f2fd;
  padding: 40px;
  border-radius: 30px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid #bbdefb;
}

.contact-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  color: #556677;
}

.contact-modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  color: #1565c0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 5px;
}

.form-input,
.form-textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 12px;
  width: 100%;
  background: #ffffff;
}

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

.form-submit {
  margin-top: 10px;
  padding: 14px;
  background: #2979ff;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.1s, background 0.2s;
}

.form-submit:hover {
  background: #1565c0;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .banner {
    content: url("common/drfunn-transparent-230x230.webp");
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 50%;
  }

  .home-headline {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .contact-modal-content {
    padding: 30px 20px;
  }
}
