body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: white;
  transition: background-color 0.3s ease;
  z-index: 1000;
  border-bottom: 2px solid #3eaeef;
}

.header a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease; /* Smooth color transition */
}

.header a:hover {
  color: #3eaeef;
  text-decoration: underline;
}

.header a.active {
  color: #3eaeef;

  border-radius: 4px;
}
.logo-pic {
  max-width: 100px;
  height: auto; /* Keeps the aspect ratio */
  display: block;
  padding: 10px 40px 10px;
  transition: transform 0.3s ease;
}

.logo-pic:hover {
  transform: scale(1.1);
}

.navlist {
  gap: 20px;
  display: none;
  padding-right: 80px;
  flex-direction: row; /* Stack items vertically */
}

.navlist.active {
  display: flex; /* Show the menu when the 'active' class is added */
}

#menu-close {
  display: none;
}

.navlist a {
  text-decoration: none;
  color: black; /* Adjust color */
  font-weight: 700;
}

/* Navigation menu (desktop view) */
.navlist {
  display: flex;
  list-style: none;
}

.navlist li {
  margin-left: 20px;
}

.navlist li a {
  text-decoration: none;
  color: #333;
}

/* Mobile hamburger icon */
.nav-icons {
  display: none;
  cursor: pointer;
}

.nav-icons i {
  font-size: 35px;
  color: #333;
  padding: 10px 10px 10px;
}

.scroll {
  display: none; /* Hide arrow initially */
  position: fixed;
  bottom: 2.2rem;
  border-top: 2rem;
  right: 3.2rem;
}

.scroll i {
  font-size: 32px;
  color: #3eaeef;
  background: white;
  padding: 10px;
  border-radius: 2rem;
}
.main-content {
  flex: 1;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.cool-image {
  height: auto; /* Maintain aspect ratio */
  transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition for hover effects */
  opacity: 0; /* Start hidden */
  animation: fadeIn 1s ease-in forwards; /* Animation on load */
  display: block;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: 100vh; /* Full height of the viewport */
  width: 100vw;
  object-fit: cover;
  position: relative; /* Position relative for the overlay effect */
}

.image-container {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: 100vh; /* Full height of the viewport */
  position: relative; /* Position relative for the overlay effect */
}

.overlay-text {
  position: absolute;
  color: white;
  font-size: 4rem;
  font-weight: bold;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition for hover effects */
  opacity: 0; /* Start hidden */
  animation: fadeIn 1s ease-in forwards; /* Animation on load */
  display: block;
}

.content-textBlue {
  color: #3eaeef; /* A blue shade */
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0; /* Start from transparent */
    transform: translateY(20px); /* Optional: start slightly lower */
  }
  to {
    opacity: 1; /* End fully visible */
    transform: translateY(0); /* End at original position */
  }
}

.footer {
  background-color: black;
  color: white;
  text-align: left;
  padding: 10px 0;
  width: 100%;
  margin-top: auto; /* Pushes the footer to the bottom when content is less */
  position: relative;
  border-top: 2px solid #3eaeef;
}

.footer-list {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  margin-right: 30px;
}

.devBy:hover {
  transform: scale(1.05); /* Slightly enlarge the div on hover */
}

.devBy i {
  font-size: 15px;
}

.devBy a {
  color: white; /* Main color for the link */
  text-decoration: none; /* Remove underline */
  font-weight: bold;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease; /* Smooth transition for the color */
}

.devBy a::after {
  content: ''; /* Add pseudo-element for underline */
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #3eaeef;
  left: 0;
  bottom: -4px;
  transform: scaleX(0); /* Start with hidden underline */
  transition: transform 0.3s ease;
  transform-origin: right;
}

.devBy a:hover {
  color: #3eaeef; /* Change color on hover */
}

.devBy a:hover::after {
  transform: scaleX(1); /* Expand the underline on hover */
  transform-origin: left;
}

/* Mobile responsiveness */
@media (max-width: 970px) {
  .navlist {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: rgb(238, 234, 234);
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navlist.active {
    display: flex;
  }

  .nav-icons {
    display: block;
  }

  .logo-pic {
    padding: 10px 10px 10px;
  }

  body {
    flex-direction: column;
  }

  .content {
    padding: 20px;
  }

  .image-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100vh; /* Full height of the viewport */
    position: relative; /* Position relative for the overlay effect */
  }

  .cool-image {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition for hover effects */
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s ease-in forwards; /* Animation on load */
    height: 100vh; /* Full height of the viewport */
    object-fit: cover;
  }

  .overlay-text {
    font-size: 1.7rem;
  }
  .footer-list li {
    font-size: smaller;
  }
}

@media (max-width: 400px) {
  .overlay-text {
    font-size: 1.5rem;
  }
}
