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

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff5c;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  color: hsl(224, 56%, 12%);
}

header {
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  font-weight: 600;
}

h1 {
  font-size: 1.12rem;
}


nav {
    display: flex;
    align-items: center;
}

nav .nav-links {
    display: flex;
    width: 100%;
    list-style-type: none;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

a {
    text-decoration: none;
    color: hsl(263, 82%, 44%);
    font-size: 1.12em;
}

a:hover {
    text-decoration: underline;
}

/* New styles */
.menu-toggle {
    display: none; /* Hide button by default */
    background: transparent;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}




.hero {
  display: flex;
  padding: 100px 30px 20px 30px;
  justify-content: space-between;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content p img {
  width: 1.15em;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: 50%;
  width: 80%;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.95;
  padding: 10px 0;
}

.hero-title span {
  color: hsl(263, 82%, 44%);
}

.hero-content .hero-subtitle {
  font-size: 1.3em;
  padding-top: 10px;
}

.hero-button {
  padding: 15px;
  background-color: hsl(263, 82%, 44%);
  color: white;
  border: none;
  border-radius: 5px;
  margin-top: 20px;
  cursor: pointer;
  width: 150px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease-in-out;
}

.social {
  padding: 200px 0 0 0;
}

.social a {
  color: black;
  padding: 0px 10px;
  font-size: 1.4em;
}

.about {
  padding: 60px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.about h2 {
  align-self: center;
}

.skills {
  padding: 60px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.skills h2 {
  align-self: center;
}

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-bar {
  margin: 10px 0;
}

.skill-bar span {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.bar-container {
  width: 100%;
  background-color: #f1f1f1;
  border-radius: 5px;
  overflow: hidden;
}

.bar {
  height: 20px;
  text-align: center;
  color: white;
  line-height: 20px;
  border-radius: 5px;
  width: 0;
  animation: fill-bar 2s ease-in-out forwards;
}

.html {
  background-color: #e34c26;
  animation-delay: 0.2s;
}
.css {
  background-color: #2965f1;
  animation-delay: 0.4s;
}
.javascript {
  background-color: #f7df1e;
  color: #000;
  animation-delay: 0.6s;
}
.react {
  background-color: #61dafb;
  color: #000;
  animation-delay: 0.8s;
}
.java {
  background-color: #f89820;
  color: #000;
  animation-delay: 1s;
}
.python {
  background-color: #3776ab;
  color: #fff;
  animation-delay: 1.2s;
}

@keyframes fill-bar {
  from {
    width: 0;
  }
  to {
    width: var(--bar-width);
  }
}

.projects {
  padding: 60px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.projects h2 {
  align-self: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #ddd;
}

.project-card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.project-card p {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover p {
  opacity: 1;
}

.project-card p a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact {
  padding: 60px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.contact h2 {
  align-self: center;
}

.contact-form {
  background: #fff;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  /* max-width: 500px; */
}
.contact-form h2 {
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}
.contact-form input,
.contact-form textarea {
  width: 96%;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.contact-form button {
  padding: 15px;
  background-color: hsl(263, 82%, 44%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 150px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease-in-out;
  float: right;
}
.contact-form button:hover {
  background-color: #1121d0;
}

.hero-button :hover {
  background-color: #1121d0;
}

.mapped {
  display: flex;
  justify-content: space-between;
}

.map {
  padding: 100px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer {
  padding: 20px;
  text-align: center;
}


@media (max-width: 768px) {
    nav .nav-links {
        display: none; /* Hide nav links on small screens */
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .menu-toggle {
        display: block; /* Show button on small screens */
        
    }
    nav .nav-links.show {
        display: flex; /* Show nav links when toggled */
        flex-direction: column;
    }
    .hero{
        padding: 20px;
        flex-direction: column;
    }
    .hero-image{
        display: flex;
    }
    .hero-image img{
        width: 100%;
    }
    .social{
        padding: 20px 0px;
    }
    .mapped{
        display: block;
        /* flex-direction: column; */
    }
    .contact-form{
        padding:10px;
        padding-right: 30px;
    }
}

@media (max-width: 1240px){
    .contact-form{
        padding:10px;
        padding-right: 30px;
    }
    
}
