@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  /* Night Sky */
  background: linear-gradient(145deg, #000428, #004e92);
  color: #f1f1f1;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

section {
  padding: 100px 0;
}
.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}
.about,
.projects,
.contact,
footer {
  font-family: "Poppins", sans-serif;
}
.about .about-content,
.projects .serv-content,
.skills .skills-content,
.contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: "Ubuntu", sans-serif;
}
section .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #c6c4c4;
  transform: translateX(-50%);
}
section .title::after {
  position: absolute;
  bottom: -8px;
  left: 50%;
  font-size: 20px;
  color: white;
  padding: 0 5px;
  background: linear-gradient(145deg, #000428, #227ccb);
  transform: translateX(-50%);
}

.navbar {
  position: fixed;
  width: 100%;
  z-index: 999;
  font-family: "Ubuntu", sans-serif;
  transition: all 0.3s ease;
  color: #fff;
  background: linear-gradient(145deg, #000428, #004e92);
  padding: 15px 0;
}
.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo a {
  color: #fff;
  font-size: 35px;
  font-weight: 600;
}

.navbar .menu li {
  list-style: none;
  display: inline-block;
}
.navbar .menu li a {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-left: 32px;
  transition: color 0.3s ease;
}
.navbar .menu li a:hover {
  color: #555;
}
/* menu btn styling */
.menu-btn {
  color: #fff;
  font-size: 23px;
  cursor: pointer;
  display: none;
}
.scroll-up-btn {
  position: fixed;
  height: 45px;
  width: 42px;
  background: crimson;
  right: 30px;
  bottom: 10px;
  text-align: center;
  line-height: 45px;
  color: #fff;
  z-index: 9999;
  font-size: 30px;
  border-radius: 6px;
  border-bottom-width: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.scroll-up-btn.show {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}
.scroll-up-btn:hover {
  filter: brightness(90%);
}

/* home section */
.home {
  display: flex;
  height: 100vh;
  color: rgb(242, 241, 241);
  min-height: 500px;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Ubuntu", sans-serif;
  line-height: 1.2;
}
.home .max-width {
  width: 100%;
  display: flex;
}
.home .max-width .row {
  margin-right: 0;
}

.home .home-content.text-1 {
  font-size: 25px;
}
.home .home-content .text-2 {
  font-size: 140px;
  font-weight: 700;
  margin-left: -3px;
  font-family: "Poppins", sans-serif;
  /* margin-left: 50px; */
}
.home .home-content .text-3 {
  font-size: 30px;
  margin: 5px 0;
  /* padding-left: 45px; */
}
.home .home-content .text-3 .typing {
  color: rgb(113, 111, 241);
  font-weight: 600;
}
.home .home-content a {
  display: inline-block;
  background: linear-gradient(145deg, #000428, #004e92);
  color: #fff;
  font-size: 16px;
  padding: 12px 36px;
  margin-top: 20px;
  font-weight: 400;
  border-radius: 20px;
  border: 2px solid rgb(252, 249, 250);
  transition: all 0.3s ease;
}

.home .home-content a:hover {
  color: rgb(248, 236, 236);
  background: none;
}

.homeImg {
  animation: float 6s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-50px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(50px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .home .home-content .text-1 {
    font-size: 16px;
  }
  .home .home-content .text-2 {
    font-size: 60px;
  }
  .home .home-content .text-3 {
    font-size: 18px;
  }
}

/* about section */
/* .about .about-content .text{
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 10px;
}
.about .about-content .text span{
    color: black;
}
.about .about-content  p{
    text-align: justify;
} */
.about .title::after {
  content: "who i am";
}
.about .about-content .left {
  width: 45%;
}
.about .about-content .left img {
  height: 350px;
  width: 350px;
  object-fit: cover;
  border-radius: 10px;
}
.about .about-content .right {
  width: 55%;
}
.about .about-content .right .text {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
}
.about .about-content .right .text span {
  color: rgb(39, 36, 204);
}
.about .about-content .right p {
  text-align: justify;
}
.about .about-content .right a {
  display: inline-block;
  background: rgb(58, 56, 211);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  padding: 5px 20px;
  margin-top: 10px;
  border-radius: 6px;
  border: 2px solid rgb(39, 36, 204);
  transition: all 0.3s ease;
}
.about .about-content .right a:hover {
  color: white;
  background: none;
}

.skills .title::after {
  content: "what i know";
}
.skills .skills-content .column {
  width: calc(50% - 30px);
}
.skills .skills-content .left .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.skills .skills-content .left p {
  text-align: justify;
}
.skills .skills-content .left a {
  display: inline-block;
  background: rgb(39, 36, 204);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 16px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid rgb(39, 36, 204);
  transition: all 0.3s ease;
}
.skills .skills-content .left a:hover {
  color: white;
  background: none;
}
.skills .skills-content .right .bars {
  margin-bottom: 15px;
}
.skills .skills-content .right .info {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  justify-content: space-between;
}
.skills .skills-content .right span {
  font-weight: 500;
  font-size: 18px;
}
.frontend {
  background-color: #0c3362;
}

.language {
  background: rgb(3, 3, 88);
  color: white;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.language:hover {
  background-color: #052f8a; /* Bright blue button */
  transform: translateY(-4px); /* Lift the button on hover */
}
.skills .skills-content .right .line {
  height: 5px;
  width: 100%;
  background: lightgrey;
  position: relative;
}
.skills .skills-content .right .line::before {
  content: "";
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  background: rgb(113, 111, 241);
}
.skills-content .right .html::before {
  width: 90%;
}
.skills-content .right .css::before {
  width: 70%;
}
.skills-content .right .js::before {
  width: 60%;
}
.skills-content .right .python::before {
  width: 40%;
}
.skills-content .right .php::before {
  width: 80%;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 2rem; */
}
.projects .title::after {
  content: "my works";
}
.project {
  /* background-color: #1e40af; */
  border-radius: 20px; /* More rounded corners for a softer look */
  width: auto;
  height: auto;
  /* box-shadow: 0 6px 12px rgb(241, 234, 234);  */
  display: flex;
  align-items: center; /* Vertically center-align content */
  gap: 2rem; /* Space between image and text */
  padding: 2px;
  /* margin: 1rem 0;  */
  overflow: hidden; /* Ensure border is visible */
  position: relative;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.project-inner {
  background: rgb(4, 4, 99);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.project::after,
.project::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(
    from var(--angle),
    #ff4545,
    #00ff99,
    #006aff,
    #ff0095,
    #ff4545
  );
  inset: 0;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 0;
  padding: 5px;
  border-radius: 0px;
  animation: 3s spin linear infinite;
}

.project::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}
@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: translateX(-80px) scale(0.95);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateX(10px) scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
  }
}

.project-image {
  flex: 1; /* Allocate equal space to the image */
  text-align: center; /* Center-align image in its container */
}

.project-image img {
  width: 100%; /* Ensure image is fully responsive */
  max-width: 300px; /* Limit the maximum width for consistency */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Smooth, rounded corners for the image */
  box-shadow: 0 4px 8px rgba(217, 213, 213, 0.864); /* Subtle shadow around the image */
  transition: all 0.5s ease; /* Smooth hover effect */
  cursor: pointer;
  margin: 0 auto;
  display: block;
}
.project-image img:hover {
  transform: scale(1.1); /* Slightly enlarge on hover */
}

.project-details {
  flex: 2; /* Allocate more space to the text */
  color: #ffffff; /* Make text color white for better readability */
}

.project-details h2 {
  font-size: 2rem; /* Slightly larger font for the title */
  margin-bottom: 1rem; /* Add spacing below the heading */
  color: rgb(166, 168, 175); /* Add a bright accent color for the title */
  font-weight: 500;
}

.project-details p {
  font-size: 0.9rem; /* Increase paragraph font size for better readability */
  line-height: 1.6; /* Improve readability with proper line height */
  margin-bottom: 1.5rem; /* Add spacing below the paragraph */
  
}
.btn {
  background-color: #052f8a; /* Bright blue button */
  transition: all 0.3s ease; /* Smooth hover effect */
  display: inline-block;
}
.btn:hover {
  background-color: #1e40af; /* Darker blue on hover */
}

.btn2 {
  background-color: #4c4a4a;
  transition: all 0.3s ease; /* Smooth hover effect */
  display: inline-block;
}
.btn2:hover {
  background-color: #555;
}
.btn3 {
  background-color: brown;

  transition: all 0.3s ease; /* Smooth hover effect */
}
.btn3:hover {
  background-color: rgb(123, 20, 20);
}

.btn4 {
  transition: all 0.3s ease; /* Smooth hover effect */
  cursor: pointer;
}

.btn4:hover {
  transform: translateY(-3px);
  background-color: #052f8a;
}
.project-details a {
  padding: 0.5rem 1rem; /* Add padding for larger clickable area */
  font-size: 1rem; /* Increase button font size */
  font-weight: 300; /* Make button text bold */
  color: #ffffff; /* White text */
  border: none;
  border-radius: 10px; /* Rounded corners for buttons */
  text-decoration: none; /* Remove underline from links */
  margin-right: 1rem; /* Space between buttons */
  transition: all 0.3s ease; /* Smooth hover effect */
}

.project-details a:hover {
  transform: translateY(-3px); /* Lift the button on hover */
}

@media (max-width: 768px) {
  .project {
    flex-direction: column; /* Stack image and text vertically */
    text-align: center; /* Center-align the content */
    gap: 1.5rem; /* Adjust spacing between elements */
  }

  .project-image img {
    max-width: 100%; /* Scale down the image on smaller screens */
  }

  .project-details {
    flex: unset; /* Reset flex behavior for stacked layout */
  }

  .project-details h2 {
    margin-top: 10px;
    font-size: 1.6rem; /* Adjust font size for smaller screens */
    margin-bottom: 10px;
  }

  .project-details p {
    font-size: 1rem; /* Adjust paragraph size */
    text-align: start;
  }
}

.contact .title::after {
  content: "get in touch";
}

.contact .contact-content .column {
  width: calc(50% - 30px);
}
.contact .contact-content .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact .contact-content .left p {
  text-align: justify;
}
.contact .contact-content .left .icons {
  margin: 10px 0;
}
.contact .contact-content .row {
  display: flex;
  height: 65px;
  align-items: center;
}
.contact .contact-content .row .info {
  margin-left: 30px;
}
.contact .contact-content .row i {
  font-size: 25px;
  color: none;
}
.contact .contact-content .info .head {
  font-weight: 500;
}
.contact .contact-content .info .sub-title {
  color: #f6f7fc;
}
.contact .right form .fields {
  display: flex;
}
.contact .right form .field,
.contact .right form .fields .field {
  height: 45px;
  width: 100%;
  margin-bottom: 15px;
}
.contact .right form .textarea {
  height: 80px;
  width: 100%;
}
.contact .right form .name {
  margin-right: 10px;
}
.contact .right form .field input,
.contact .right form .textarea textarea {
  height: 100%;
  width: 100%;
  border: 1px solid #a498fc;
  border-radius: 6px;
  outline: none;
  padding: 0 15px;
  font-size: 17px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}
.contact .right form .field input:focus,
.contact .right form .textarea textarea:focus {
  border-color: #b3b3b3;
}
.contact .right form .textarea textarea {
  padding-top: 10px;
  resize: none;
}
.contact .right form .button-area {
  display: flex;
  align-items: center;
}
.right form .button-area button {
  color: #fff;
  display: block;
  width: 160px !important;
  height: 45px;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  flex-wrap: nowrap;
  background: rgb(3, 3, 88);
  border: 1px solid rgb(4, 61, 110);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}
.right form .button-area button:hover {
  color: white;
  background: none;
}
footer {
  background: none;
  padding: 15px 23px;
  color: #fff;
  text-align: center;
}
footer span a {
  color: rgb(164, 110, 9);
  text-decoration: none;
}
footer span a:hover {
  text-decoration: underline;
}

@media (max-width: 1104px) {
  .about .about-content .left img {
    height: 350px;
    width: 350px;
  }
}

@media (max-width: 991px) {
  .max-width {
    padding: 0 50px;
  }
}
@media (max-width: 947px) {
  .menu-btn {
    display: block;
    z-index: 999;
  }
  .menu-btn i.active:before {
    content: "\f00d";
  }
  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }
  .navbar .menu.active {
    left: 0;
  }
  .navbar .menu li {
    display: block;
  }
  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }
  .home .home-content .text-2 {
    font-size: 70px;
  }
  .home .home-content .text-3 {
    font-size: 35px;
  }
  .home .home-content a {
    font-size: 23px;
    padding: 10px 30px;
  }
  .max-width {
    max-width: 930px;
  }
  .about .about-content .column {
    width: 100%;
  }
  .about .about-content .left {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px;
  }
  .about .about-content .right {
    flex: 100%;
  }
  .services .serv-content .card {
    width: calc(50% - 10px);
    margin-bottom: 20px;
  }
  .skills .skills-content .column,
  .contact .contact-content .column {
    width: 100%;
    margin-bottom: 35px;
  }
}

@media (max-width: 690px) {
  .max-width {
    padding: 0 24px;
  }
  .home .home-content .text-2 {
    font-size: 60px;
  }
  .home .home-content .text-3 {
    font-size: 32px;
  }
  .home .home-content a {
    font-size: 20px;
  }
  .services .serv-content .card {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .home .home-content .text-2 {
    font-size: 50px;
  }
  .home .home-content .text-3 {
    font-size: 27px;
  }
  .about .about-content .right .text {
    font-size: 19px;
  }

  .contact .right form .fields {
    flex-direction: column;
  }
  .contact .right form .name,
  .contact .right form .email {
    margin: 0;
  }
  .right form .error-box {
    width: 150px;
  }
  .scroll-up-btn {
    right: 15px;
    bottom: 15px;
    height: 38px;
    width: 35px;
    font-size: 23px;
    line-height: 38px;
  }
}
/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center; /* Center icons horizontally */
  gap: 2rem; /* Add spacing between icons */
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease; /* Smooth scaling effect */
}

.social-icons img {
  width: 40px; /* Icon size */
  height: 40px; /* Ensure consistency */
  filter: brightness(1); /* Maintain original color */
  transition: transform 0.3s ease, filter 0.3s ease; /* Add hover effects */
}

.social-icons a:hover img {
  transform: scale(1.1); /* Slightly enlarge on hover */
  filter: brightness(1.5); /* Brighten the icon on hover */

  box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3),
    0 2px 4px -1px rgba(124, 58, 237, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .social-icons {
    gap: 1rem; /* Reduce spacing on smaller screens */
  }

  .social-icons img {
    width: 30px; /* Adjust icon size */
    height: 30px;
  }
}
.foot {
  font-weight: 400;
  text-align: center;
}
