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

header {
  text-align: center;
  /* Use a dark or matching background color for the 'sidebars' */
  background: #ffffff; 
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  width: 100%;
}

.banner {
  width: 100%;
  /* Max-height prevents it from becoming too tall on huge monitors */
  max-height: 500px; 
  
  /* 'contain' ensures the whole image is visible without cropping */
  object-fit: contain; 
  
  /* 'auto' height allows it to scale proportionally */
  height: auto; 
  display: block;
  margin: 0 auto;
}

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

/* Responsive 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;
}

/* Tablet and Mobile Styles (media queries) */
@media (max-width: 768px) {
  .banner {
    /* Set the background to your headshot */
    content: url("../images/drfunn-transparent-200x200.png");
    
    /* Adjust size for a headshot look */
    width: 200px;
    height: 200px;
    margin: 20px auto; /* Centers the headshot */
    border-radius: 50%; /* Optional: makes the square image a circle */
    object-fit: contain;
  }

  .home-headline {
    font-size: 1.2rem;
    padding: 0 10px;
  }
}
/* Footer Section */
#footer-placeholder {
  margin-top: 50px;
  padding: 40px 20px;
  background: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
}

#contact-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

/* Modal Background Overlay */
#contact-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Darker overlay to make the blue pop */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* The Unified Blue Canvas */
.modal-content {
  background-color: #e3f2fd; /* The light blue canvas */
  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;
  text-align: left;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Consistent spacing */
}

/* Fixes label visibility and font */
#contact-form label {
  font-family: inherit;
  font-weight: 700;
  color: #FFFF00; /* Yellow for high contrast against modal dark translucent */
  margin-bottom: -5 px; /* Pulls label closer to its input */
}

/* Unified Input & Textarea */
#contact-form input, 
#contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 12px;
  width: 100%;
  background: #ffffff;
}

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

/* Close Button */
#close-modal {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #556677;
}

/* Submit Button */
#contact-form button {
  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;
}

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