@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

:root  {
  --main-grey: #555555;
  --accent-colour: #01acb7;
  --accent-colour-dark: #004e53;
  --light-grey: #a3a3a3;
  --off-white: #fafafa;
}

*{
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: white;
  color: black;
  font-family: "Karla", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--main-grey);
}

a, .btn {
  transition: all 300ms ease;
}

/* Navigation Bar */
nav, .nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 20vh;
}

.title {
  font-size: 3rem;
  text-align: center;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a:link, a:visited {
  text-decoration: none;
  color: black;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
}

/* Hamburger Menu */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
  z-index: 10;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child{
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2){
  opacity: 0;
}

.hamburger-icon.open span:last-child{
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* Sections */
section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* Profile section */
#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  font-size: 1.30rem;
  text-align: center;
}

#name {
  font-size: 4rem;
}

.section__text__p2 {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#typewriter {
  display: block;
}

.cursor {
  width: 2px;
  height: 20px;
  margin-bottom: -4px;
  overflow: hidden;
  background-color: var(--accent-colour);
  display: inline-block;
  animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: var(--accent-colour);
    }
}

.title {
  font-size: 2.5rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* Icons */
.icon {
  height: 2rem;
}

.link-icon {
  cursor: pointer;
  opacity: 0.8;
}

.link-icon:hover {
  opacity: 1;
}

/* Buttons */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1, .btn-color-2 {
  border: var(--accent-colour) 0.1rem solid;
}

.btn-color-1:hover, .btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1, .btn-color-2:hover {
  background: var(--accent-colour);
  color: white;
}

.btn-color-1:hover {
  border: var(--accent-colour-dark) 0.1rem solid;
  background: var(--accent-colour-dark)
}

.btn-color-2 {
  color: var(--accent-colour-dark);
  background: none;
}

.btn-color-2:hover {
  border: var(--accent-colour) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* About section */
#about {
  position: relative;
}

.about-details-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
}

.about-containers {
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.about-containers {
  display: flex;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: var(--accent-colour) 0.1rem solid;
  border-color: var(--light-grey);
  text-align: center;
}

.work-experience-list li {
  margin-bottom: 2.5rem;
  list-style: none;
}

.text-container i {
  align-items: right;
  color: var(--main-grey);
}

.tech-stack {
  margin-top: 0.5rem;
}

.section-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  height: 20%;
}

/* Experience Section */
#experience {
  position: relative;
}

.experience-sub-title {
  color: var(--main-grey);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-evenly;
}

article {
  display: flex;
  width: 20rem;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* Projects Section */

#projects {
  position: relative;
}

.color-container {
  border-color: var(--light-grey);
  background: var(--off-white);
}

.project-img {
  border-radius: 2rem;
  width: auto;
  height: auto;
  max-height: 16rem;
}

.project-title {
  margin: 1rem;
  color: black;
  font-size: 1.2rem;
}

.project-btn {
  color: var(--accent-colour-dark);
  border-color: var(--accent-colour);
}

/* Contact Section */
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: var(--accent-colour) 0.1rem solid;
  border-color: var(--light-grey);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
  height: 2rem;
}

.email-icon {
  height: 2.5rem;
}

/* Footer */

footer {
  height: 26vh;
  margin: 0 1rem;
}

.source-code {
  display: flex;
  justify-content: center;
}