body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fefefe;
  color: #333;
  overflow-x: hidden;
}

header {
  position: relative;
  color: #fff;
  text-align: center;
  animation: fadeIn 2s ease-out;
  overflow: hidden;
  min-height: 300px; /* Increased height for better layout */
  display: flex;
  flex-direction: column; /* Stack title and subtitle vertically */
  align-items: center; /* Center elements horizontally */
  justify-content: center; /* Center elements vertically */
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for text readability */
  z-index: 1;
}

header h1,
header p {
  position: relative;
  z-index: 2; /* Text appears above overlay */
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Add shadow for better readability */
}

header h1 {
  font-size: 3.5rem; /* Larger font size for the title */
  font-weight: 700;
  margin-bottom: 10px; /* Space between title and subtitle */
}

header p {
  font-size: 1.5rem; /* Smaller subtitle font size */
  font-weight: 300;
  margin: 0;
}

/* Slideshow container */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Slides behind everything */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.show {
  opacity: 1;
}

section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#portfolio .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 2px;
  max-width: calc(250px * 3 + 40px); /* Max size for 3 columns + gaps */
  margin-left: auto; /* Center the grid horizontally */
  margin-right: auto; /* Center the grid horizontally */
}

.artwork img {
  width: 100%;
  display: block;
  height: 200px;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.artwork:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.artwork img:hover {
  opacity: 0.9;
}

.artwork h3 {
  font-size: 1.2rem;
  margin: 15px;
  color: #1a1a2e;
}

.artwork p {
  margin: 0 15px 15px;
  color: #555;
}

#services ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  gap: 20px;
  margin-top: 5px;
}

#services li {
  flex: 1 1 calc(33% - 40px);
  background: #1a1a2e;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services li:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#services li a {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
}

#services li h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#services {
  margin-top: -60px; /* Adjust the negative value to move the section closer */
}


#services li p {
  font-size: 1rem;
  line-height: 1.5;
}

#services li:hover h3 {
  color: #4caf50;
}

#pricing table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#pricing th,
#pricing td {
  padding: 15px;
  text-align: left;
  border: 1px solid #ddd;
}

#pricing th {
  background-color: #1a1a2e;
  color: #fff;
}

form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

form input,
form textarea,
form button {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  background-color: #1a1a2e;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #141422;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal styles for image popup */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content-wrapper img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  display: block;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #bbb;
}
