* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Source Sans Pro", sans-serif;
}

br {
  display: block;
  margin: 10px 0;
}

/* Responsive typography */
html {
  font-size: 16px; /* Base font size */
}

@media screen and (min-width: 320px) {
  html {
    font-size: calc(16px + 0.5vw);
  }
}

@media screen and (min-width: 1200px) {
  html {
    font-size: 22px; /* Cap the font size for very large screens */
  }
}

/* Navbar styling */
.navbar {
  background: rgb(3, 51, 12);
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}

#navbar__logo {
  background-color: #ff8177;
  background-image: linear-gradient(to top, #ffffff 0%, #ffffff 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
  transition: all 0.2s ease;
}

.fa-gem {
  margin-right: 0.5rem;
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
}

.navbar__item {
  height: 80px;
}

.navbar__links {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 1rem;
  height: 100%;
  transition: all 0.2s ease;
}

.navbar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: rgba(200, 20, 20, 0.624);
  color: #fff;
  transition: all 0.2s ease;
}

.button:hover {
  background: rgba(200, 20, 20, 0.3);
  transition: all 0.2s ease;
}

.navbar__links:hover {
  opacity: 0.3;
  transition: all 0.2s ease;
}

#navbar__logo:hover {
  transition: all 0.2s ease;
}

/* Mobile menu styles */
.navbar__toggle {
  display: none;
  height: 100%;
  display: flex;
  align-items: center;
}

.bar {
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background: #fff;
  display: block;
}

/* Main content styles */
.main {
  background-color: #e1d9d9;
  position: relative;
  z-index: 1;
}

.main__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  background-color: #e1d9d9;
  min-height: 90vh;
}

.main__content {
  flex: 1;
}

.main__content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 450;
}

.main__content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1rem;
  font-weight: 450;
}

.main__img--container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

#main__img, .hero_image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: none;
}

/* Responsive styles for mobile */
@media screen and (max-width: 960px) {
  .navbar__container {
    position: relative; /* Ensure the container is a positioning context */
  }

  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 0;
    transition: all 0.5s ease;
    height: auto;
    z-index: -1;
    background: rgb(3, 51, 12);
  }

  .navbar__menu.active {
    background: rgb(3, 51, 12);
    top: 80px;
    left: 0;
    width: 100%; 
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 99;
    height: auto;
    width: 100vw; /* Full viewport width */
    left: 0; /* Align to left edge of screen */
    margin: 0;
    padding: 30px 0;
    position: fixed;
  }

  #navbar__logo {
    padding-left: 25px;
    font-size: 1.5rem;
  }

  .navbar__toggle {
    display: flex;
    cursor: pointer;
    align-items: center;
  }

  .navbar__toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar__toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navbar__item {
    width: 100%;
    height: 60px;
  }

  .navbar__links {
    text-align: center;
    padding: 1rem;
    width: 100%;
    display: table;
    font-size: 1rem;
  }

  .navbar__btn {
    padding-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 50px;
    margin: 0;
    font-size: 1rem;
  }
}

/* CV download button */
.cv-download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 24px;
  background: rgb(3, 51, 12);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cv-download-btn:hover {
  background: rgba(3, 51, 12, 0.7);
}

/* Responsive layout for smaller screens */
@media screen and (max-width: 768px) {
  .main__container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .main__img--container {
    margin-bottom: 1.5rem;
  }
  
  #main__img, .hero_image {
    max-width: 80%;
  }
}
