/* Base styles */
html {
  box-sizing: border-box;
  font-size: 100%;
}

body {
  font-size: 100%;
  background-color: rgb(234, 229, 222);
  margin: 0;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* Header styling */
#head {
  padding: 8px;
  text-align: center;
  background-color: rgb(234, 229, 222);
}

#head img {
  max-width: 17%; /* Makes the logo responsive */
  height: auto;
}
/* Ensures responsive images fit their containers */
.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

main {
  width: 100%; /* Full width */
  background-color: rgba(192, 183, 173, 0.418);
  padding-bottom: 10px;
  margin-top: -6px; /* Adjusted to avoid overlap with fixed header */
  box-sizing: border-box;
}


/* Navigation Bar Full Width */
nav {
  background-color: #392f23;
  width: 100%; /* Full width */
  position: sticky; /* Keeps it at the top while scrolling */
  top: 0;
  z-index: 1000; /* Keeps the navigation bar on top of other content */
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

li {
  border-right: 1px solid #bbb;
}

li:last-child {
  border-right: none;
}

li a {
  display: block;
  color: rgb(234, 229, 222);
  padding: 12px 16px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

li a:hover {
  background-color: rgba(29, 26, 26, 0.947);
  transform: translateY(-3px); /* Slight lift effect */
}

/* Main content */
h2 {
  text-align: center;
}

#text {
  text-align: center;
  font-style: italic;
  margin-top: 5px;
}

#text12 {
  text-align: center;
  font-style: italic;
  margin-top: 10px;
}

#indexText {
  margin: 45px;
  font-size: large;
  text-align: center;
}

#portfoliotxt {
  background-color: #392f23;
  font-size: large;
  color: rgb(234, 229, 222);
  text-align: center;
  width: 20%;
  margin: 20px auto;
  padding: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

#portfoliotxt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background-color: rgba(29, 26, 26, 0.947);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%) scale(0);
}

#portfoliotxt:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

#portfoliotxt:hover {
  color: #fff; /* Change text color on hover */
  transform: scale(1.05); /* Slight scale on hover */
}

/* Image Gallery */
.image-gallery {
  display: flex;
  justify-content: space-between;
  margin-left: 150px;
  margin-right: 150px;
  margin-top: 20px;
}

.image-container {
  width: 45%; /* Reduced width to make the images smaller */
  height: 100%;
  text-align: center;
}

#img12, #img21 {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid #392f23;
  object-fit: cover;
}

.image-container img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.05); /* Zoom in effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Adds shadow on hover */
}

/* Footer */
footer {
  background-color: rgb(234, 229, 222);
  text-align: center;
  color: #585656;
  padding: 20px 0;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

footer img {
  width: 50px;
  height: 50px;
  margin-top: 10px;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s 0.5s ease-out forwards;
}

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

@key
