@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Define custom CSS variables for colors and font */
html {
  --body-clr: #f6f9fe;
  --primary-clr: #05555c;
  --primary-light-clr: #eaf3fa;
  --links-clr: #186f78;
  --text-clr: #3f7277;
  font-family: "montserrat", sans-serif;
  font-size: 10px;
}
/* Define base styles for the body element */
body {
  width: 100%;
  min-height: 100vh;
  font-weight: lighter;
}
.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--body-clr);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 10px 0;
}
.home .navbar {
  position: fixed;
  width: 100%;
  max-height: 100px;
  height: 13vh;
  top: 0;
  left: 0;
  padding: 0px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: 0.4s;
}
.home.active .navbar {
  position: fixed;
  max-height: 70px;
  height: 10vh;
  background-color: var(--body-clr);
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.15);
}
.navbar .logo {
  display: flex;
  align-items: center;
}
.navbar .logo h1 {
  font-size: 22px;
  color: var(--primary-clr);
  text-transform: uppercase;
  margin-left: 6px;
  position: relative;
  bottom: -1px;
}
.navbar .logo i {
  color: var(--primary-clr);
  font-size: 18px;
}
.navbar ul.nav-links {
  list-style: none;
}
.navbar ul.nav-links li {
  display: inline-block;
  margin: 0px 22px;
}
.navbar ul.nav-links li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 20px;
  color: var(--links-clr);
  transition: color 0.4s;
}
.navbar ul.nav-links li a::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  top: 110%;
  left: 0;
  background-color: var(--primary-clr);
  transition: 0.4s;
  transform: scale(0);
}
.navbar ul.nav-links li a:hover::after {
  transform: scale(1);
}
button.btn {
  background-color: var(--primary-clr);
  color: var(--body-clr);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 16px;
  padding: 8px 15px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.4s;
}
.contact-btn {
  background-color: var(--primary-clr);
  color: var(--body-clr);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 16px;
  padding: 8px 15px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
}

.contact-btn:hover {
  background: var(--body-clr);
  color: var(--primary-clr);
  border: 1px solid var(--primary-clr);
}

button.btn:hover {
  background: var(--body-clr);
  color: var(--primary-clr);
  border: 1px solid var(--primary-clr);
}
.navbar .menu-btn {
  cursor: pointer;
  user-select: none;
  display: none;
}
.navbar .menu-btn .bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary-clr);
  margin: 5px auto;
  border-radius: 5px;
  transition: all 0.3s cubic-bezier(1, 0.3, 0.3, 1);
}
.home .hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.font {
  padding-left: 250px;
}
.hero .hero-text {
  position: relative;
  top: -10px;
  z-index: 1;
}
/* Style for various elements within the hero section */
.hero .hero-text h3 {
  font-size: 20px;
  color: var(--primary-clr);
  opacity: 0.9;
}
.hero .hero-text h1 {
  position: relative;
  font-size: 45px;
  color: var(--primary-clr);
  margin: 12px 0px 25px;
}
.hero .hero-text h1:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 40px;
  background-color: var(--primary-clr);
  left: 0;
  top: 110%;
}
.hero .hero-text h2 {
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--primary-clr);
}
.hero .hero-text p {
  max-width: 500px;
  color: var(--links-clr);
  margin: 15px 0px 35px;
  line-height: 1.2;
}
button.cv-btn {
  padding: 10px 15px;
  border-radius: 25px;
  letter-spacing: 0px;
  box-shadow: 0px 20px 24px 3px rgba(5, 85, 92, 0.2);
}
button.cv-btn:hover {
  box-shadow: 0px 5px 15px 3px rgba(5, 85, 92, 0.2);
}
.hero .hero-img {
  position: absolute;
  width: 500px;
  height: 900px;
  background-color: var(--primary-light-clr);
  transform: rotate(40deg);
  right: -30px;
  top: -220px;
  border-bottom-left-radius: 250px;
  border-bottom-right-radius: 250px;
  overflow: hidden;
  z-index: 0;
}
.hero .hero-img img {
  position: absolute;
  width: 340px;
  height: auto;
  object-fit: cover;
  transform: rotate(-40deg);
  left: 20px;
  bottom: 0px;
}

.container {
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
#hero .cta {
  display: inline-block;
  padding: 10px 30px;
  color: var(--links-clr);
  background-color: transparent;
  border: 2px solid var(--links-clr);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
  text-decoration: none;
  z-index: 1;
}
.title {
  margin-bottom: 100px;
}

#hero .cta:hover {
  color: white;
  background-color: var(--links-clr);
}

#intro {
  margin-top: 105px;
  text-align: center;
  margin-left: 100px;
  margin-right: 100px;
  font-size: 20px;
  margin-bottom: -100px;
}
#intro1 {
  text-align: center;
  margin-left: 100px;
  margin-right: 100px;
  font-size: 20px;
}

.nav__link {
  transition: color 0.4s;
}
.codeBtn {
  transition: color 0.4;
  text-decoration: none;
  color: var(--text-clr);
}

.codeBtn:hover {
  color: black;
  font-family: "Courier New", Courier, monospace;
  text-decoration: underline;
}

.navbar ul.nav-links li a:hover::after {
  transform: scale(1);
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 200px;
}

.projectContent {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 50px;
}

.projectContent img {
  width: 50%;
  max-width: 550px;
  margin-right: 20px;
  border: 1px solid #000;
}

.webImg img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border: 1px solid #000;
}

.projectImg {
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.projectImg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

.projectImg:hover::before {
  width: 120%;
  background-color: rgba(255, 255, 255, 0);

  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.projectContent p {
  width: 50%;
  padding-left: 100px;
  padding-right: 100px;
  margin-top: 0px;
}

.rightImg {
  width: 550px;
  margin-right: 200px;
  padding-right: 180px;
}

.projectTitle {
  font-size: 25px;
  margin-bottom: 70px;
  margin-top: 100px;
}

.section-divider {
  border-top: 1px solid #ccc;
  width: 75%;
  margin: 100px auto 0;
}

.paragraph {
  margin-left: 20px;
  font-size: medium;
  /* margin-bottom: 120px; */
  line-height: 1.7;
  transform: translateX(100%);
  transition: transform 1s ease;
}
.webImg {
  transform: translateX(-100%);
  transition: transform 1s ease;
  /* height: 100px; */
}

.footer {
  background-color: rgb(221, 221, 221);
  color: black;
  text-align: center;
  padding: 10px;
  margin-top: 300px;
  border-top: 1px solid #ccc;
  width: 100%;
}

.footer_list {
  display: inline-block;
  width: 50;
  margin: 25px 70px 25px;
  vertical-align: top;
  font-size: 14px;
}

.footer_title {
  color: #05555c;
  margin-bottom: 7px;
}
.footer_info {
  margin-top: 10px;
}
.githubLink {
  text-decoration: none;
  color: black;
  align-items: center;
}
#comment-button {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  margin-left: 8px;
  color: black;
  font-weight: lighter;
  font-family: "montserrat", sans-serif;
  font-size: 15px;
}
#dialog-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border: 2px solid #ddd;
  z-index: 1000;
}
#submitBtn {
  padding: 5px 10px;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .navbar .menu-btn {
    display: block;
    margin-left: 30px;
    z-index: 101;
  }
  .navbar .menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar .menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .navbar .menu-btn.active .bar:nth-child(2) {
    transform: translateX(-30px);
    opacity: 0;
  }
  .navbar ul.nav-links {
    position: fixed;
    width: 50%;
    height: 100vh;
    top: 0;
    right: -50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-light-clr);
    transition: right 0.3s cubic-bezier(1, 0.3, 0.3, 1);
    z-index: 100;
  }

  .navbar ul.nav-links.active {
    right: 0;
  }
  .navbar ul.nav-links li {
    margin: 25px 0px 0px;
  }
  .navbar ul.nav-links li:nth-child(1) {
    margin-top: 180px;
  }
  .navbar ul.nav-links li a {
    font-size: 18px;
    letter-spacing: 2px;
  }
  button.contact-btn {
    margin-left: auto;
  }
  .contact-btn {
    margin-left: auto;
  }
  .hero .hero-img img {
    opacity: 0.3;
  }

  .home .career-container {
    grid-template-columns: 1fr;
  }
}
.projectImg {
  margin-top: 30px;
}

/* Styles for screens with a max-width of 550px */
@media (max-width: 550px) {
  .hero .hero-img {
    right: -200px;
  }
}
#hero .hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  justify-content: flex-start;
}
#hero h1 {
  display: block;
  width: fit-content;
  font-size: 4rem;
  position: relative;
  color: transparent;
  animation: text_reveal 0.5s ease forwards;
  animation-delay: 1s;
}
#hero h1:nth-child(1) {
  animation-delay: 1s;
}
#hero h1:nth-child(2) {
  animation-delay: 2s;
}
#hero h1:nth-child(3) {
  animation: text_reveal_name 0.5s ease forwards;
  animation-delay: 3s;
}

#hero h1:nth-child(1) span {
  animation-delay: 0.5s;
}
#hero h1:nth-child(2) span {
  animation-delay: 1.5s;
}
#hero h1:nth-child(3) span {
  animation-delay: 2.5s;
}
#hero h1 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--primary-clr);
  animation: text_reveal_box 1s ease;
  animation-delay: 1s;
}

#hero .cta {
  display: inline-block;
  padding: 10px 30px;
  color: var(--primary-clr);
  background-color: transparent;
  border: 2px solid var(--primary-clr);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-top: 30px;
  transition: 0.3s ease;
  transition-property: background-color, color;
}

#hero .cta:hover {
  color: white;
  background-color: var(--primary-clr);
}

/* keyframe */
@keyframes text_reveal_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

@keyframes text_reveal {
  100% {
    color: black;
  }
}
@keyframes text_reveal_name {
  100% {
    color: var(--primary-clr);
    font-weight: 500;
  }
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .font {
    padding-left: 20px;
  }

  #intro {
    margin: 0;
    text-align: center;
    padding: 15px;
  }
  .introPara {
    margin-bottom: 30px;
  }

  .projectContent {
    flex-direction: column;
    text-align: center;
  }

  .webImg img {
    width: 85%;
    max-width: 85%;
    margin-right: 0;
  }

  .projectContent p {
    width: 100%;
    padding: 0 20px;
    margin-top: 20px;
  }
}
