/* Header styles */
.b1 {
  background-color: #2e1a47;
  background-image: linear-gradient(to right, #2e1a47, #4b2d6e);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.b1 h1 {
  color: white;
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
}

/* Section titles */
.section-title {
  text-align: center;
  padding: 40px 0 20px;
  color: #333;
  position: relative;
}

.section-title h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #2e1a47;
}

.section-title:after {
  content: "";
  display: block;
  width: 100%;
  max-width: 500px;
  height: 1px;
  background: #ddd;
  margin: 20px auto;
}

/* Hero section */
.hero-section {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 500px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-content h2 {
  color: #fff;
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #cfb33b;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #ddc04f;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About section */
.about-section {
  padding: 70px 0;
  background-color: white;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-text h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #2e1a47;
}

.about-text p {
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services section */
.services-section {
  padding: 70px 0;
  background-color: #f9f9f9;
}

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

.service-card {
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #2e1a47;
}

.service-content p {
  margin-bottom: 15px;
  color: #666;
}

/* Gallery section */
.gallery-section {
  padding: 70px 0;
  background-color: white;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1/1;
}

.gallery-item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(46, 26, 71, 0.8);
  color: white;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Testimonials section */
.testimonials-section {
  padding: 70px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.testimonials-slider {
  margin-top: 40px;
  padding: 0 50px;
}

.testimonial-item {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 10px;
  text-align: left;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content:before {
  content: '"';
  font-size: 50px;
  color: #cfb33b;
  position: absolute;
  top: -20px;
  left: -15px;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
  color: #2e1a47;
}

.author-info p {
  color: #777;
  font-size: 0.9em;
}

/* Contact section */
.contact-section {
  padding: 70px 0;
  background-color: white;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #2e1a47;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: #2e1a47;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  flex-shrink: 0;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

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

/* CTA Section */
.cta-section {
  padding: 70px 0;
  background-color: #2e1a47;
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.btn-white {
  background-color: white;
  color: #2e1a47;
}

.btn-white:hover {
  background-color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5em;
  }

  .hero-content h2 {
    font-size: 2.2em;
  }

  .hero-section {
    height: 400px;
  }

  .section-title h2 {
    font-size: 1.8em;
  }

  .about-text,
  .about-image {
    flex: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 2em;
  }

  .hero-content h2 {
    font-size: 1.8em;
  }

  .hero-section {
    height: 350px;
  }

  .btn {
    padding: 10px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
