/* GLOBAL */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
body {
  margin: 0 auto;
  background-color: whitesmoke;
  font-family: "Bebas Neue", serif;
  font-weight: 400;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

#navbar {
  width: 100%;
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  border-bottom: 1px black solid;
}

/* NAVBAR */
#navbar div {
  display: inline-block;
  padding: 20px;
}

.left-nav {
  margin: 0;
  font-size: 2rem;
}

.right-nav {
  margin-left: auto;
  font-size: 1.5rem;
}

.right-nav a {
  text-decoration: none;
  color: white;
}

.right-nav li {
  display: inline;
  transition: text-decoration 0.3s ease;
}

.right-nav li:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* MAIN SECTION */
.main-section {
  height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 35rem;
}

.main-section h1 {
  font-size: 10rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

.main-section h3 {
  font-size: 2rem;
  margin: 0;
  text-align: center;
}

/* ABOUT SECTION */
.about-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-left {
  height: 100%;
  width: 40%;
}

.about-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-right {
  box-sizing: border-box;
  padding: 5rem;
  height: 100%;
  background-color: lightgrey;
  width: 60%;
}

.about-right h1 {
  font-size: 5rem;
}

.about-right p {
  font-size: 1.5rem;
}

.about-right a {
  color: black;
}


#devdegree-logo {
  position: relative;
  width: 2rem;
}

/* WORK EXPERIENCE SECTION */
.work-experience-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-tree-container {
  height: 100vh;
  width: 100vw;
  font-family: 'Bebas Neue', monospace;
  font-size: 1.2rem;
  line-height: 1.75;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
}

.work-tree-container pre {
  margin: 0;
  padding: 0;
  border: none;
  padding: 2rem;
  color: white;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.work-tree-keyword {
  color: #6A9955;
}

.work-tree-date {
  color: #4EC9B0;
}

.work-tree-placement {
  color: yellow;
}

.blinking-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* MOBILE RESPONSIVE STYLES */
@media screen and (max-width: 768px) {
  /* Navbar mobile styles */
  #navbar {
    flex-direction: column;
    height: auto;
    padding-bottom: 20px;
  }

  #navbar div {
    padding: 0;
  }
  
  .left-nav {
    font-size: 1.5rem;
    margin: 0;
  }
  
  .right-nav {
    font-size: 1rem;
    margin: 0;
  }
  
  .right-nav ul {
    padding: 0;
    margin: 0;
  }
  
  .right-nav li {
    margin: 0 5px;
  }
  
  /* Main section mobile styles */
  .main-section {
    height: calc(100vh - 117px);
    padding: 20px;
    text-align: center;
  }
  
  .profile-pic {
    width: 80%;
    max-width: 300px;
  }
  
  .main-section h1 {
    font-size: 4rem;
    text-align: center;
    justify-content: center;
  }
  
  .main-section h3 {
    font-size: 1.2rem;
    padding: 0 10px;
  }
  
  /* About section mobile styles */
  .about-section {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .about-left {
    width: 100%;
    height: 300px;
  }
  
  .about-right {
    width: 100%;
    padding: 2rem;
    height: auto;
  }
  
  .about-right h1 {
    font-size: 3rem;
  }
  
  .about-right p {
    font-size: 1.1rem;
  }
  
  /* Work experience mobile styles */
  .work-tree-container {
    height: auto;
    min-height: 100vh;
    padding: 20px 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    justify-content: flex-start;
  }
  
  .work-tree-container pre {
    font-size: 0.9rem;
    padding: 1rem;
    line-height: 1.4;
    white-space: pre-wrap;
    min-width: max-content;
    margin: 0;
    display: block;
    text-align: left;
    float: left;
  }
}

@media screen and (max-width: 480px) {
  .main-section h1 {
    font-size: 3rem;
  }
  
  .main-section h3 {
    font-size: 1rem;
  }
  
  .about-right h1 {
    font-size: 2.5rem;
  }
  
  .about-right p {
    font-size: 1rem;
  }
  
  .work-tree-container pre {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  
  .right-nav li {
    margin: 0 3px;
  }
}