* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

header {
  height: 100vh;
  background: url("./images/Weaver.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.typed-name {
  font-size: 3rem;
  color: rgb(248, 48, 13);
  border-right: 2px solid rgb(248, 48, 13);
  white-space: nowrap;
  overflow: hidden;
}

nav {
  position: absolute;
  top: 20px;
  right: 30px;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  opacity: 100%;
}

.dropdown {
  position: relative;
  display: inline-block;
  border-radius: 25%;
}

.dropdown-button {
  padding: 10px 15px;
  background-color: rgb(248, 48, 13);
  border: 1px solid #a70202;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 25%;
}

.dropdown-button:hover {
  background-color: #383434;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #383434;
  min-width: 160px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
  flex-direction: column;
}

.dropdown-content a {
  padding: 10px 15px;
  text-decoration: none;
  color: #c90909;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #5f3d35;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.about {
  display: flex;
  padding: 50px;
  gap: 20px;
}

.about-text {
  flex: 2;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.project-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 50px;
  gap: 20px;
}
.project-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.project p {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}
.resume-link {
  text-decoration: none;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3f0b02, #e02007);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.resume-link:hover {
  background: linear-gradient(135deg, #e02007, #3f0b02);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
div.project:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  background-color: #fc0909;
  box-shadow: #fc0909 0px 0px 10px 0px;
}
div.project p {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}
.project {
  width: 30%;
  height: 150px;
  background: #6b6464;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 10px;
}
.project_text h1 {
  color: #bb4d0e;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: white;
  overflow-y: auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.popup button {
  background: #f10404;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.popup button:hover {
  background: #c90909;
}

.popup p {
  font-size: 1.2rem;
  color: #333;
  padding: 10px;
  width: 75%;
  margin: auto;
}
.certifications {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
}

.certifications img {
  width: 5%;
  height: 5%;
}

footer {
  background: #383434;
  color: rgb(248, 48, 13);
  text-align: center;
  padding: 50px 20px;
}

footer form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
}

footer input,
footer textarea {
  margin-bottom: 10px;
  padding: 10px;
}
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form button {
  background: #383434;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: rgb(248, 48, 13);
}

.social-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  padding: 10px;
}
.social-links a:hover {
  color: rgb(248, 48, 13);
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }
  .project {
    width: 80%;
  }
  .certifications {
    flex-direction: row;
    align-items: center;
    padding: 5px;
  }
  .certifications img {
    width: 25%;
    margin-bottom: 20px;
  }
}
