/* General Styles */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Transparent Header */
header {
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  z-index: 10;
  color: white;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  width: 180px;
}

nav {
  flex: 1;
  text-align: center;
}

.nav-links {
  list-style: none;
  display: inline-flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.nav-links li a:hover {
  color: #096db9; /* Replace with your desired hover color */
}

.social-icons {
  display: flex;
  gap: 15px;
  padding-right: 40px;
}

.social-icons img {
  width: 32px;
  height: 32px;
}

.social-icons img:hover {
  filter: invert(80%);
}

/* Hamburger Icon Styles */
.menu-icon {
  display: none;  /* Initially hide on larger screens */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-icon span {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 5px;
}

/* Responsive Design for Mobile (Hamburger Menu) */
@media (max-width: 768px) {
  /* Hide navigation links by default */
  .nav-links {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Show hamburger icon on mobile screens */
  .menu-icon {
    display: flex;
  }

  /* When hamburger is clicked, show nav-links */
  .nav-links.show {
    display: block;
    position: absolute;
    top: 70px;  /* Position it below the header */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
    z-index: 1;
  }

  .nav-links li {
    margin: 10px 0;  /* Add some space between links */
  }

  .nav-links li a {
    color: #fff;
    font-size: 1.2rem;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column; /* Stacks h1 and button vertically */
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero img.active {
  opacity: 1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif; /* More readable and professional font */
  font-size: 2.2rem;
  font-weight: 800; /* Makes the text bold */
  color: #f1f1f1;
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.1); /* Outer stroke (black outline) */
  text-align: center;
  margin: 0 auto 20px;
  max-width: 55%; /* You can adjust this */
  line-height: 1.4;
  word-break: break-word; /* Ensures words break at proper points */
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.9); /* Increased shadow */
}

/* Media query for smaller screens (max-width: 768px) */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.7rem;
    max-width: 70%;
  }
}

.hero h1,
.hero .cta-button {
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background-color: #004f8b;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 10px; /* Adds extra spacing above the button */
}

.cta-button:hover {
  background-color: #003b66;
}

/* Services Section */
#services {
  padding: 40px 20px;
  text-align: center;
}

.service-card {
  margin: 20px auto;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  max-width: 600px;
  text-align: left;
  position: relative;
  cursor: pointer;
}

.service-card h3 {
  margin: 0;
  font-size: 1.2rem;
  display: inline-block;
}

.toggle-sign {
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}

.service-details {
  display: none; /* Hidden by default */
  font-size: 0.9rem;
  margin-top: 10px;
  color: #555;
}

#about-us {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

#about-us h2 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 15px;
  box-sizing: border-box;
}

.profile-image {
  flex: 1;
  text-align: center;
}

.profile-image img {
  max-width: 200px;
}

.profile-details {
  flex: 2;
  color: #555;
  width: 100%;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.profile-details .position {
  font-size: 1.3rem;
  font-weight: bold;
  color: #666;
}

@media (max-width: 768px) {
    .position {
        text-align: center;
        align-items: center;
    }
}

.profile-details .divider-line {
  width: 100%;
  height: 0.5px;
  color: #004f8b;
  margin: 15px auto;
  box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .profile-details .divider-line {
    width: 90%; /* Ensure the line is full width on smaller screens */
    max-width: none;       /* Remove max-width on small screens */
    margin: 10px auto;        /* Adjust margin for better spacing */
  }
}

.profile-details p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.profile-details strong {
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-details {
    flex: none;
    width: 100%;
    margin-top: 20px;
  }

  .profile-text {
    text-align: justify;
    word-wrap: break-word;
    hyphens: auto;
  }

  .profile-image img {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  #about-us h2 {
    font-size: 1.5rem;
  }

  .profile-details h3 {
    font-size: 1.5rem;
  }

  .profile-details .position {
    font-size: 0.9rem;
  }
}

#contact-us {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#contact-us h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

#contact-us p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

label {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 5px;
  display: block;
}

input,
textarea {
  width: 95%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.cta-button {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #0056b3;
}

#contact-us {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

#contact-us h2 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

/* Contact section layout (default is side by side) */
#contact-us .contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Creates two equal columns */
  gap: 60px; /* Space between the columns */
  max-width: 1200px; /* Optional: set max-width for the layout */
  margin: 0 auto; /* Center the container */
}

.contact-form, .contact-info {
  /* padding: 20px; */
  box-sizing: border-box;
}

.contact-form input, 
.contact-form textarea {
  width: 100%; /* Full width for input fields */
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box; /* Ensure padding is included */
}

/* Media query for smaller screens (max-width: 768px) */
@media (max-width: 768px) {
  #contact-us .contact-container {
    grid-template-columns: 1fr; /* Stacks the sections one after another */
  }
  
  /* Optionally, adjust the gap for smaller screens */
  #contact-us .contact-container {
    gap: 20px; /* Reduces the space between sections on smaller screens */
  }
}

.contact-form button {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  width: 100%; /* Make button full-width */
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.contact-info {
  /* border-left: 2px solid #ddd; Optional dividing line between sections */
  padding-left: 10px; /* Adds padding to the left of the text */
  text-align: left;
}

.contact-info h3 {
  margin-top: 35px;
}

.contact-info p {
  font-size: 1.2rem;
  margin-top: 10px;
  margin-bottom: 0 !important;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
}

/* slider img gallery for design work */
.gallery-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    color: #333;
}

#slider-img-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    flex-direction: column;
    min-height: unset !important;
}

html body #slider-img-gallery {
    min-height: unset !important;
}

.img-slider-container {
  position: relative;
  width: 60%;
  max-width: 600px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0;
  padding: 0;
}

.image-box {
  position: relative;
  width: 100%;
  overflow: hidden; /* Prevent the image from spilling out */
  transition: transform 0.5s ease;
  display: flex; /* Flex layout to ensure the images fit */
}

.image-box img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensure the image covers the box without stretching */
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

/* Overlay Text Style - Bottom-Left Positioning */
.image-overlay {
  position: absolute;
  bottom: 10px; /* Distance from the bottom */
  left: 10px;   /* Distance from the left */
  color: white;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  padding: 10px;
  border-radius: 5px;
  visibility: hidden; /* Hidden by default */
  opacity: 0; /* Invisible by default */
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease;
  z-index: 2; /* Ensure text is on top of the image */
}

/* Show the overlay text when hovering over the image */
.image-box:hover .image-overlay {
  visibility: visible;
  opacity: 1; /* Make it visible when hovering */
}

/* Prevent the images from overflowing */
.img-slider-container {
  position: relative;
  width: 100%; /* Make the container width 100% */
  max-width: 600px;
  overflow: hidden; /* Prevent overflow */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0;
  padding: 0;
}

/* Dots Navigation */
.dots-container {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: blue;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot:hover,
.dot.active {
  background-color: goldenrod;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed position to cover the entire screen */
  z-index: 1000; /* Make sure it's on top of other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Black background with opacity */
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  border-radius: 10px;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1050;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}
