/* Background gradient */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #e9d4ff 0%, #ffffff 100%);
  min-height: 100vh;
}

/* Navigation */
header {
  padding: 20px;
}

.nav-tabs {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-tabs li a {
  text-decoration: none;
  font-weight: bold;
  color: #4a0080;
  transition: color 0.3s ease;
}

.nav-tabs li a:hover {
  color: #7a00cc;
}

/* Main text */
main {
  text-align: center;
  padding: 20px 0;
}

main h1 {
  color: #4a0080;
  margin-bottom: 10px;
}

main p {
  color: #666;
  font-size: 18px;
}

/* Image grid */
.image-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
  padding: 0 20px;
}

.image-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.image-link:hover {
  transform: translateY(-5px);
}

/* Make both images same size */
.image-link img {
  width: 520px;
  height: 390px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

.image-link:hover img {
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

/* Overlay label */
.label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  color: #666;
  font-size: 14px;
}

/* House Page */
.house-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

.house-content h1 {
  color: #4a0080;
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
}

.house-content h2 {
  color: #4a0080;
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 24px;
}

.house-intro {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.house-section {
  margin: 30px 0;
  line-height: 1.8;
  color: #333;
}

.house-section.highlight {
  background: rgba(233, 212, 255, 0.3);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #4a0080;
}

.house-photo {
  margin: 30px 0;
  text-align: center;
  max-width: 100%;
}

.house-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto;
}

.house-photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.house-photo-row img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .house-photo-row {
    grid-template-columns: 1fr;
  }
  
  .house-content h1 {
    font-size: 24px;
  }
}

/* Art Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 500px;
}

.painting-title {
  padding: 15px;
  text-align: center;
  font-weight: bold;
  color: #4a0080;
  font-size: 18px;
  background: white;
}

/* Contact Page */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.contact-content h1 {
  color: #4a0080;
  text-align: center;
  margin-bottom: 15px;
}

.contact-intro {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 18px;
}

.contact-form-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4a0080;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9d4ff;
  border-radius: 6px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a0080;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: #4a0080;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #7a00cc;
}

.contact-info {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #666;
}

.contact-info a {
  color: #4a0080;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 20px;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .image-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .image-link img {
    width: 90%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 4/3;
  }
  
  .nav-tabs {
    flex-wrap: wrap;
    gap: 15px;
  }

  .gallery-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}