:root {
  --red-color: #e43d11;
  --tint-color: #ece9e2;
  --white-color: #f1f1fb;
  --btn-padding: 15px 50px;
  --btn-radius: 26px;
  --fs-normal: 16px;
}

html {
  font-size: var(--fs-normal);
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--red-color);
  background-color: var(--tint-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  padding: 13px 120px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#left {
  width: 50%;
}

#left div {
  font-size: 1.5rem;
  font-weight: bold;
  width: 100px;
}

#left a {
  display: inline-block;
}

#right {
  width: 50%;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  gap: 32px;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 10px;
}

a {
  text-decoration: none;
  color: var(--red-color);
}

nav ul li a {
  text-decoration: none;
  color: var(--red-color);
  position: relative;
  padding-bottom: 2px;
}

nav ul li:nth-child(1) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--red-color);
  margin-bottom: -2.5px;
}

#right #br-menu {
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 80px;
  background: var(--tint-color);
  z-index: 1;
  font-weight: 600;
}

#right #br-menu li {
  text-align: center;
  padding: 10px 0;
}

@media only screen and (max-width: 750px) {
  header {
    padding: 13px 30px;
  }

  #right ul {
    display: none;
  }

  #left {
    width: 50%;
  }

  #right {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    cursor: pointer;
    background-image: url("../images/br-menu.svg");
    background-repeat: no-repeat;
  }

  #welcoming-content {
    margin-left: 80px;
  }
}

#home-welcoming,
#about-me {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--tint-color);
  width: 100%;
}

#contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--tint-color);
  height: 789px;
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

form input[type="submit"] {
  padding: var(--btn-padding);
  background-color: var(--red-color);
  color: var(--white-color);
  border: 1px solid;
  border-radius: var(--btn-radius);
  font-size: 1.2rem;
  width: 221px;
}

.name-email-group {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.group {
  display: flex;
  flex-direction: column;
}

.group label {
  font-weight: 600;
}

.group input {
  padding: 17px;
  border-radius: 8px;
  width: 313px;
  border: none;
}

.message-group {
  width: 680px;
}

.message-group label {
  font-weight: 600;
}

textarea {
  padding: 17px;
  border-radius: 8px;
  width: 100%;
  border: none;
  resize: none;
}

@media only screen and (max-width: 715px) {
  #contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--tint-color);
    height: 789px;
  }

  form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  form input[type="submit"] {
    padding: var(--btn-padding);
    background-color: var(--red-color);
    color: var(--white-color);
    border: 1px solid;
    border-radius: var(--btn-radius);
    font-size: 1.2rem;
    width: 221px;
  }

  .name-email-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .group {
    display: flex;
    flex-direction: column;
  }

  .group label {
    font-weight: 600;
  }

  .group input {
    padding: 17px;
    border-radius: 8px;
    width: 313px;
    border: none;
  }

  .message-group {
    width: 345px;
  }

  textarea {
    padding: 17px;
    border-radius: 8px;
    width: 90%;
    border: none;
    resize: none;
  }
}

@media only screen and (max-width: 405px) {
  .group input {
    padding: 17px;
    border-radius: 8px;
    width: 290px;
    border: none;
  }

  .message-group {
    width: 325px;
  }
}

#sub-btn {
  margin-top: 33px;
  display: flex;
  justify-content: center;
  width: 100%;
}

#project-h1 {
  margin-top: -22px;
  margin-bottom: 110px;
}

#home-welcoming {
  height: 789px;
}

#pro-img {
  margin-right: 13%;
}
@media only screen and (max-width: 1170px) {
  #pro-img {
    display: none;
  }
}

#about-me #content {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 85%;
  gap: 200px;
  margin-left: 120px;
  margin-bottom: 112px;
  margin-top: 112px;
  max-width: 100%;
}

#about-me #details {
  width: 55%;
}

#about-me #details h2 {
  font-size: 2rem;
  margin-top: 0px;
}

#about-me #details p {
  font-size: 1.2rem;
}

.profile-image {
  width: 404px;
  height: 451px;
  background: var(--white-color);
  margin-right: 80px;
  border-radius: 10%;
  object-fit: cover;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10%;
}

@media only screen and (max-width: 1000px) {
  #about-me #content {
    gap: 100px;
    margin-left: 120px;
    margin-bottom: 112px;
    margin-top: 112px;
  }

  #about-me #details {
    width: 75%;
  }

  #about-me .profile-image {
    margin-right: 90px;
  }
}

@media only screen and (max-width: 950px) {
  #about-me #content {
    margin-left: 5%;
    flex-direction: column;
    align-items: center;
    width: 90%;
  }

  #about-me #details {
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
  }

  #about-me .profile-image {
    width: 100%;
    max-width: 700px;
    margin-right: 0;
  }
}

#welcoming-content {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 120px;
  max-width: 100%;
}

#welcoming-content span {
  font-size: 1.2rem;
  margin-bottom: -20px;
}

#welcoming-content h1 {
  font-size: 4.6rem;
  line-height: 1.1;
  width: 620px;
  margin-bottom: 72px;
}

@media only screen and (max-width: 750px) {
  #welcoming-content {
    margin-left: 50px;
  }

  #welcoming-content h1 {
    width: 100%;
  }
}

#welcoming-content button {
  margin-bottom: 55px;
  background-color: var(--red-color);
  color: var(--white-color);
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: all 0.2s;
}

#welcoming-content button:hover, .about-btn:hover, .view-btn:hover {
  background-color: var(--tint-color);
  color: var(--red-color);
  border: 1px solid var(--red-color);
}

button {
  padding: var(--btn-padding);
  background-color: var(--tint-color);
  color: var(--red-color);
  border: 1px solid;
  border-radius: var(--btn-radius);
  font-size: 1.2rem;
  width: 221px;
  cursor: pointer;
}

#social-media-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.links {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.links img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#dev-skills {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--white-color);
}

#services {
  margin-top: 51px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

#dev-skills h2 {
  font-size: 2rem;
  margin-top: 142px;
}

#dev-skills h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

#exp-span {
  text-align: left;
  font-weight: 700;
}

.exp-p {
  font-weight: 700;
  text-align: center;
  width: 80%;
}

.service {
  width: 391.825px;
  height: 341px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 20px;
  background: var(--tint-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-img {
  width: 96px;
  height: 96px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service:last-of-type .service-img img {
  width: 65%;
  height: 100%;
  object-fit: cover;
}

.service p {
  font-weight: 700;
  width: 80%;
}

@media only screen and (max-width: 440px) {
  .service {
    width: 350px;
  }
}

@media only screen and (max-width: 380px) {
  .service {
    width: 300px;
  }

  .service img {
    width: 90%;
    height: 90%;
    object-fit: cover;
  }

  .service:last-of-type .service-img img {
    width: 60%;
    height: 92%;
    object-fit: cover;
  }
}

#experience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 117px;
  width: 80%;
  margin-top: 85px;
  margin-bottom: 180px;
}

#done {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--red-color);
  color: var(--tint-color);
}

#done h2 {
  font-size: 2rem;
  margin-top: 142px;
}

#projects-done {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 50px;
  gap: 57px;
}

#projects-done .project-done:nth-child(4) {
  display: flex;
  align-items: center;
  background: #000;
}

.project-done {
  width: 358px;
  height: 400px;
  border-radius: 16px;
  background: var(--tint-color);
}

.project-done img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

@media only screen and (max-width: 380px) {
  .project-done {
    width: 318px;
    height: 360px;
  }
}

.filled-btn,
.tch-btn {
  margin-top: 100px;
  margin-bottom: 142px;
  box-sizing: border-box;
  transition: all 0.2s;
}

.filled-btn:hover,
.tch-btn:hover {
  background-color: var(--red-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
}

.tch-btn {
  margin-top: 50px;
}

.about-btn {
  margin-top: 50px;
  margin-bottom: 0px;
  background-color: var(--red-color);
  color: var(--white-color);
  box-sizing: border-box;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.view-btn {
  margin-top: 50px;
  margin-bottom: 0px;
  background-color: var(--red-color);
  color: var(--white-color);
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: all 0.2s;
}

.read-btn {
  margin-top: 50px;
  margin-bottom: 0px;
  width: 300px;
}

.stack-buttons {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.stack-btn,
.ctc-btn {
  text-transform: uppercase;
  padding: 15px 23px;
  font-size: 1.1rem;
  width: auto;
  cursor: auto;
}

.ctc-btn {
  font-size: 1rem;
  text-transform: none;
  box-sizing: border-box;
  transition: all 0.2s;
}

.ctc-btn:hover {
  background-color: var(--red-color);
  color: var(--white-color);
  border: 1px solid var(--red-color);
}

#testimonials {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--white-color);
}

#testimonials h1 {
  font-size: 2rem;
  margin-top: 142px;
}

#testimonials-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 52px;
  margin-top: 50px;
  margin-bottom: 142px;
}

#testimonials .testimonial:nth-child(2) {
  flex-direction: row-reverse;
}

.testimonial {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.spch-bubble {
  width: 915px;
  height: 314px;
  border-radius: 20px;
  background: var(--tint-color);
}

.spch-bubble p {
  font-size: 1.2rem;
  padding: 16px 45px;
}

.testimonial-image {
  width: 116px;
  height: 116px;
  text-align: center;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-image b {
  font-size: 1.5rem;
}

#collaboration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--red-color);
  color: var(--tint-color);
}

nav #right button {
  cursor: pointer;
}

#collaboration h2 {
  text-align: center;
  font-size: 3.9rem;
  margin-top: 142px;
}

#collaboration p {
  font-size: 1.2rem;
  text-align: center;
  width: 550px;
}

@media only screen and (max-width: 580px) {
  #collaboration h2 {
    font-size: 3.3rem;
  }

  #collaboration p {
    font-size: 1.2rem;
    text-align: center;
    width: 350px;
  }
}

@media only screen and (max-width: 400px) {
  #collaboration p {
    width: 300px;
  }
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--tint-color);
  color: var(--red-color);
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer h2 {
  text-decoration: underline;
  margin-top: 0;
}

footer b {
  margin-top: 60px;
}

#footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  gap: 200px;
}

#footer-content p {
  width: 289px;
}

.footer-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 227px;
}

@media only screen and (max-width: 885px) {
  #footer-content {
    gap: 100px;
  }
}

#project-intro,
#project-design-process {
  width: 85%;
  margin: 0 auto;
  padding: 20px;
}

#project-intro {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--white-color);
  border-radius: 10px;
  margin-bottom: 40px;
}

#project-intro h1 {
  color: var(--red-color);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

#project-intro p {
  color: var(--red-color);
  font-size: 1.2rem;
  line-height: 1.6;
}

#project-design-process h2 {
  color: var(--red-color);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.design-phase {
  margin-bottom: 40px;
  padding: 20px;
}

.design-phase h3 {
  color: var(--red-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
  background-color: var(--white-color);
  padding: 10px;
  border-radius: 8px;
}

.design-phase p {
  color: var(--red-color);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.design-phase img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
}

.design-phase ul {
  list-style: none;
  padding: 0;
}

.design-phase ul li {
  background: var(--tint-color);
  margin: 5px 0;
  padding: 10px;
  border-radius: 8px;
}

.dev-quote {
  text-align: center;
  width: 70%;
  min-width: 300px;
  margin-bottom: 83px;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 768px) {
  #project-intro h1 {
    font-size: 2rem;
  }

  #project-intro p {
    font-size: 1rem;
  }

  #project-design-process h2 {
    font-size: 1.5rem;
  }

  .design-phase h3 {
    font-size: 1.2rem;
  }

  .design-phase p {
    font-size: 0.9rem;
  }
}
