* {
  scroll-behavior: smooth;
}

/* Set background image for the entire page */
body {
  margin: 0;
  padding: 0;
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  font-family: Arial, sans-serif;
}

/* Style for the nav section */
/* Base styles for the nav */
nav {
  position: relative;
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Navigation list styles */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: white;
  position: relative;
  padding: 5px 0;
  transition: color 0.5s ease, transform 0.3s ease;
}

/* Hover effect for the links */
nav a:hover {
  color: #e6c11d;
  transform: scale(1.1);
}

/* Underline effect for links on hover */
nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffea8f;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

/* Animate the underline when hovering */
nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Style for the main section */
.front-main {
  position: relative;
  padding: 40px;
  color: white;
  padding: 15% 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
  font-size: larger;
}

.front-main p {
  width: 60%;
}

.front-main button,
#projects button {
  width: 10rem;
  height: 3rem;
  border: none;
  background-color: beige;
  color: rgb(158, 112, 93);
  position: relative;
  overflow: hidden;
  /* transition: color 0.3s ease; */
  background: linear-gradient(90deg, rgb(219, 195, 169) 50%, beige 50%);
  background-size: 200% 100%;
}

/* Hover state: animate the background size */
.front-main button:hover,
#projects button:hover {
  cursor: pointer;
  color: rgb(87, 57, 44);
  background-size: 100% 100%;
  transition: background-size 0.3s ease;
}

#projects,
#about {
  margin-top: 17rem;
  width: 100%;
}

/* styling for the project section */
/* Overall Body Styling */
body {
  background-color: #d3d3d3;
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
}

/* Styling for Project Section */
#projects {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
  background: rgba(228, 228, 228, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  font-size: 1.3rem;
}

#projects:hover {
  background: rgba(228, 228, 228, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
  cursor: pointer;
}

/* Styling for Project Section Heading */
.projects-heading {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Styling for Project Section Description */
.projects-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section Styling */
#about {
  background-color: #f7f7f7;
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.about-container {
  background: rgba(255, 255, 255, 0.85);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-heading {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.about-heading:hover {
  color: #cfb3a6;
  transition: all 0.3s ease;
}

/* Footer Styling */
footer {
  background-color: #333;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1rem;
  position: relative;
  bottom: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-link {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #cfb3a6;
  text-decoration: underline;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .front-main {
    padding: 15% 8%;
    gap: 40px;
  }

  .project-img {
    width: 95%;
  }

  #projects {
    flex-direction: row;
  }

  nav ul {
    flex-direction: row;
    gap: 2rem;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger div {
  height: 4px;
  background-color: #333;
  transition: transform 0.3s ease;
}

/* Navigation Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
}

/* Mobile Navigation */
#nav-list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

#nav-list.active {
  display: flex;
}

#nav-list li {
  text-align: center;
}

#nav-list a {
  font-size: 1.5rem;
  color: white;
  padding: 1rem;
}

#nav-list a:hover {
  color: #cfb3a6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .mobile-hidden {
    display: none;
  }

  .footer-links a {
    font-size: 0.8rem;
  }
  .logo {
    width: 50px !important;
    height: 30px;
    object-fit: cover;
  }

  .front-main {
    font-size: 1.1rem;
  }
}

.logo {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

/* contact us */
.send:hover {
  background-color: #615447 !important;
}

.carousel-inner {
  width: 70vw;
  max-width: 70vw;
  height: 70vh;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 16px;
}

.carousel-item {
  width: 70vw;
  height: 70vh;
}

.project--img {
  width: 70vw;
  height: 70vh;
  object-fit: cover;
  transition: opacity 1.6s ease-in-out;
  border-radius: 16px;
}

.projects-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-indicators button.active,
.carousel-indicators button:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.2);
}

.carousel-indicators button {
  border-radius: 5px;
}
