@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #081b29 url("250561.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  overflow-x: hidden;
}

main {
  flex: 1;
  padding-top: 100px; /* Adjust according to header height */
  padding-bottom: 0; /* Remove extra padding */
}


.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;
}

.wrapper {
    min-height: auto;
    overflow: hidden;
}

.home {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    
}

.home-content {
  max-width: 600px;
  margin-top: 5px;
}

.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    pink,
    cyan,
    purple,
    red
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowBackground 3.5s ease-in-out infinite;
}

.home-content h4 {
  font-size: 24px;
  color: red;
  margin-top: 20px;
}

.home-content ul {
  margin: 20px 0;
  padding-left: 20px;
  list-style-type: none;
}

.home-content ul li {
  font-size: 16px;
  color: #ededed;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  animation: floatColors 3s infinite;
}

.home-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: rgb(3, 255, 58);
}

@keyframes floatColors {
  0% {
    color: #ff6347;
  }
  20% {
    color: #ffa500;
  }
  40% {
    color: #ffff00;
  }
  60% {
    color: #32cd32;
  }
  80% {
    color: #1e90ff;
  }
  100% {
    color: #ff1493;
  }
}

.btn-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.btn-box a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  max-width: 300px;
  height: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: white;
  border-radius: 25px;
  transition: 0.3s ease;
}

.hire-me-btn {
  background-color: orangered;
  position: relative;
  overflow: hidden;
}

.hire-me-btn:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.5s ease-out;
}

.hire-me-btn:hover:before {
  transform: scale(1);
}

.hire-me-btn:hover {
  background-color: #feb47b;
}

.hire-me-btn i {
  margin-left: 8px;
  font-size: 16px;
  color: white;
  transition: transform 0.3s ease-in-out;
}

.hire-me-btn:hover i {
  transform: scale(1.2);
}

.lets-talk-btn {
  background: linear-gradient(135deg, #6a82fb, #fc5c7d);
  animation: glowing 1.5s infinite;
}

.lets-talk-btn:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.lets-talk-btn i {
  margin-left: 8px;
  font-size: 16px;
  transition: transform 0.3s ease-in-out;
}

.lets-talk-btn:hover i {
  transform: scale(1.2);
}

@keyframes glowing {
  0% {
    box-shadow: 0 0 10px #fc5c7d;
  }
  50% {
    box-shadow: 0 0 20px #fc5c7d;
  }
  100% {
    box-shadow: 0 0 10px #fc5c7d;
  }
}

 
/* Footer Stays at Bottom */
.footer {
    width: 100%;
    background: #4682b4;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative; 
    margin-top: auto; 
}


.footer-logo {
  width: 30px;
  height: auto;
}

.footer p {
  margin: 0;
  font-style: italic;
  font-size: 10px;
}

.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);
}

@keyframes showRight {
  0% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

@keyframes rainbowBackground {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 25% 25%;
  }
  50% {
    background-position: 50% 0%;
  }
  75% {
    background-position: 75% 25%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Consolidated Media Queries */
@media (max-width: 921px) {
  .header {
    padding: 10px 5%; /* Smaller padding for smaller screens */
    height: 55px; /* Reduce height if needed */
  }

  main,
  .home {
    padding-top: 100px; 
    /* padding-bottom: 20px; */
    height: auto;
    
  }

  .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;
  }

  .home-content h1 {
    font-size: 40px;
  }

  .home-content h4 {
    font-size: 24px;
  }

   
  

  .footer {
        padding: 8px 0;
        font-size: 12px;
    }
  .footer p {
    font-size: 6px;
  }

}

@media (max-width: 600px) {
  .home-content h1 {
    font-size: 32px;
  }

  .home-content h4 {
    font-size: 24px;
  }

  .navbar a {
    font-size: 14px;
    margin-left: 10px;
    display: block;
    margin: 5px 0;
  }


    .footer {
        font-size: 6px;
        padding: 2px 0;
    }
}
