/* Common body styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden; 
}

/* Header styles */
header {
  background-color: rgb(81, 183, 181); 
  color: #000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  width: 110px;
  border-color: #000;
  border-radius: 2px;
}

.logo {
  height: 50px;
  margin-left: 20px; 
  border-radius: 10px;
}

.tagline {
  font-size: 1.2rem;
  color: #ffffff;
  text-align: center;
  margin-top: 10px;
}

/* Navigation styles */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul li {
  margin: 0 10px;
  position: relative;
}

nav a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease; 
  padding: 10px 20px;
  display: block;
}

nav a:hover {
  color: red; 
}

nav ul li ul {
  display: none;
  position: absolute;
  background-color: rgb(81, 183, 181);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  top: 100%; 
  left: 0;
  z-index: 1;
  width: 200px; 
}

nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgb(81, 183, 181);
  padding: 10px 0;
}

nav ul ul ul {
  top: 0;
  left: 100%;
}

nav ul ul li {
  width: 200px;
}

/* nav ul ul a {
  
} */

nav ul ul a:hover {
  background-color: black;
  
}

nav ul li:hover > ul {
  display: block; 
}

/* Submenu item styles */
nav ul li ul li {
  width: 100%;
  padding: 1px 1px;
  text-align: left; 

}

nav ul li ul li a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li ul li a:hover {
  color: rgb(81, 183, 181); 
}

/* Main content styles */
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 160px); 
  overflow-y: auto;
}

/* About section styles */
#about {
  background-color: black; 
  padding: 20px;
  border-radius: 10px;
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto; 
  height: calc(100vh - 120px); 
}

#about h1, #about h2 {
  color: rgb(81, 183, 181); 
  text-align: center;
}

#about p {
  color: #ddd; 
  margin-bottom: 20px;
  text-align: justify;
}

#about img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
}

/* Slideshow styles */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 1s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  height: 100%;
}

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

/* Footer styles */
footer {
  background-color: rgb(81, 183, 181); 
  color: #000;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
  
  flex-shrink: 0;
}

footer p {
  margin: 0;
  text-align: center; 
}

/* Portfolio container styles */
.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.portfolio-item img {
  width: 200px;
  height: auto;
}

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

.gallery-container,
.subcategory-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  z-index: 1000;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-height: 300px;
  overflow-x: scroll;
}

.gallery-container img,
.subcategory-container img {
  width: 150px;
  height: auto;
  margin: 5px;
}

nav ul li:nth-child(3) ul {
  max-height: 200px; 
  overflow-y: auto; 
}

/* Styling adjustments for the submenu items */
nav ul li:nth-child(3) ul li {
  margin: 5px 0;
}

nav ul li:nth-child(3) ul li a {
  display: block;
  padding: 5px 10px;
  color: #000; 
  text-decoration: none;
  transition: color 0.3s ease; 
}

/* Hover effect for portfolio submenu items */
nav ul li:nth-child(3) ul li a:hover {
  color: rgb(81, 183, 181); 
}

/* Contact page specific styles */
.contact-container {
  display: flex;
  justify-content: center; 
  align-items: flex-start; 
  margin: 20px;
 
  
}

.contact-left {
  flex: 1;
  padding: 5px;
  display: flex;
  justify-content: center; 
  align-items: center;
  max-width: 20%; 
}

.contact-left video {
  width: 100%; 
  max-height: 100%;
  border-radius: 10px;
}

.contact-right {
  flex: 1;
  padding: 20px;
  background-color: #111;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  color: #fff;
  max-width: 30%; 
}

.contact-right h2 {
  color: rgb(81, 183, 181); 
  text-align: center;
  margin-bottom: 20px; 
  
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 5px;
  color: rgb(81, 183, 181);
}

form input, form textarea {
  width: 100%; 
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #222;
  color: #fff;
}

form input:focus, form textarea:focus {
  border-color: rgb(81, 183, 181); 
}

form button {
  width: 150px; 
  align-self:center; 
  padding: 10px 20px;
  margin-top: 10px;
  background-color: rgb(205, 218, 21); 
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-left, .contact-right {
    flex: none;
    width: 100%;
    margin: 0; 
    max-width: 100%; 
  }

  form button {
    width: 100%; 
    align-self: center; 
  }
}

