@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@600&display=swap");

/* Base styling for global elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background-image: url("558715.jpg");
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-size: cover; /* Scales the image to cover the entire background */
  background-position: center; /* Centers the image */
  color: #ededed;
  background-color: #081b29; /* Default background color */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-y: auto; /* Allow vertical scrolling */
}

/* Styling for the header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 10%;
  background: rgba(0, 0, 0, 0.8); /* Slightly darker for better visibility */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000; /* Higher z-index so it stays on top */
  height: 60px; /* Set a fixed height */
}

.logo {
  position: relative;
  font-size: 25px;
  color: #ededed;
  text-decoration: none;
  font-weight: 600;
  opacity: 1;
}

.logo:hover {
  color: orangered;
  text-shadow: 0 0 25px orangered, 0 0 50px orangered;
  transform: scale(1.1);
}

.span {
  color: orangered;
}

.logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url(250561.jpg);
  animation: showRight 1s ease forwards;
  animation-delay: 0.4s;
}

.navbar {
  display: flex;
  gap: 20px;
}

.navbar a {
  font-size: 16px;
  color: #ededed;
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: orangered;
}

/* Add this CSS for the social media icons */
.social-media {
  display: flex;
  justify-content: center; /* Center the icons */
  align-items: center;
  position: fixed; /* Stick it to the bottom of the page */
  bottom: 30px; /* Adjust the distance from the bottom */
  width: 100%;
  padding: 10px 0;
  z-index: 100;
}

.social-media a {
  font-size: 24px; /* Bigger icons */
  color: #ededed;
  margin: 0 15px;
  transition: 0.3s;
}

.social-media a:hover {
  color: orangered;
  transform: scale(1.2);
}

.header .toggle-button {
  display: none;
}

.header .toggle-button div {
  width: 30px;
  height: 3px;
  background-color: #ededed;
  margin: 5px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

/* Styling for the footer  */
.footer {
  position: relative; /* Change from static */
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #4682b4;
  color: #ededed;
  text-align: center;
  margin-top: auto; /* Pushes footer to bottom */
}

/* Footer Logo */
.footer-logo {
  width: 30px; /* Adjust size */
  height: auto;
  margin-right: 10px; /* Space between logo and text */
}

/* Footer Text */
.footer p {
  margin: 0;
  font-style: italic;
  font-size: 10px; /* Adjust font size */
}

/* Styling for the main content */
.about-content {
  margin-top: 90px; /* Space below the header */
  margin-bottom: 40px;
  padding: 20px;
  overflow-y: auto; /* Allow vertical scrolling for main content */
}

/* Styling for the about section */
.about {
  position: relative;
  min-height: 120vh; /* Ensure the page is longer */
  background: url("250561.jpg") no-repeat center center/cover; /* Centered background */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-content {
  text-align: center; /* Center-align the text */
  width: 100%; /* Ensure it takes the full width */
}

.about-content h1 {
  font-size: 42px; /* Adjusted font size */
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    pink,
    cyan,
    lime
  );
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowBackground 3s linear infinite;
}

.about-content h3 {
  font-size: 32px; /* Corrected font-size */
  font-weight: 700;
  color: #009cf0;
}

.about-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.about-content img {
  max-width: 50%; /* Resize the image to be smaller */
  height: auto;
  border-radius: 10px;
  margin-top: 20px; /* Added margin */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    font-size: 16px;
    margin-left: 0;
    margin-bottom: 10px;
  }

  .about-content h1 {
    font-size: 40px; /* Smaller font size for mobile */
  }

  .about-content h3 {
    font-size: 24px; /* Smaller font size for mobile */
  }

  .about-content img {
    max-width: 70%; /* Further resize the image for mobile screens */
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 921px) {
  .header {
    padding: 10px 5%; /* Smaller padding for smaller screens */
    height: 55px; /* Reduce height if needed */
  }

  .navbar {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
}

  .navbar.show {
    border-bottom-right-radius: 20%;
    border-bottom-left-radius: 20%;
    max-height: 300px;
  }

  .navbar a {
    margin: 10px;
    color: cyan;
    border-radius: 8%;
    text-align: center;
    transition: color 0.3s ease;
  }

  .header .toggle-button {
    display: block;
    cursor: pointer;
  }

  /* Animation for rainbow text background */
  @keyframes rainbowBackground {
    0% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  @keyframes showRight {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
}
