* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: black;
  font-weight: 600;
  
}
.top{
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  
}

.navbar{
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 8rem;
  padding-left: 7rem;
}

.navbar .left img{
  width: 100px;
  height: 100px;
}

.navbar .left{
  padding-top: 3rem;
}

.navbar .right{
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 6rem;
  
}

.navbar .right a{
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
}

.navbar .right a:hover{
  color: #FFCC6D;
  text-decoration: none;
  font-size: 1.3rem;
}
.menu-button {
  position: fixed;
  z-index: 10;
  top: 2rem; 
  right: 1.25rem; 
  background-color: transparent;
  color: white;
  font-size: 1.5rem;
  padding: 0.3rem 0.3rem; 
  border: none;
  cursor: pointer;
  border-radius: 0.3125rem; 
  display: none; 
}

.menu-button:hover {
  color: #FFCC6D;
}

.sidebar {
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap:1rem;
  position: fixed;
  top: 0;
  right: -15.625rem; 
  width: 15.625rem; 
  height: 100%;
  background-color: black;
  color: white;
  padding: 1rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: none;
}

.sidebar a {
  font-size: 1rem;
  text-decoration: none;
  color: white;
  margin: 0.5rem 0; 
  padding-top: 1rem;
  padding-left: 1rem; 
}

.sidebar a:hover {
  color: #FFCC6D;
}


.sidebar.open {
  right: 0; 
}


main {
  padding: 10rem;
  background-color: #000000;
}

.section {
  display: flex ;
  margin-top: -170px;
  flex: 50;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 80px;
}

.text-container {
  text-align: center;
}

.about-paragraph {
  margin-bottom: 20px;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 5px;
}

.spacer {
  margin: 50px;
}

.section h1 {
  font-size: 5.5rem;
  color: #ffcc6d;
}

.section p {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: white;
  line-height: 1.5;
  max-width: 400px;
}

.section img {
  max-width: 320px;
  height: auto;
  object-fit: cover;
  mix-blend-mode: hard-light;
  padding: 10px;
  border-radius: 5px;
}

  /* Line */
.line {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -90px;
  padding: 0;
}
  
.line img {
  width: 90%;
  max-height: 7px;
  object-fit: contain;
}

strong {
  color:#FFCC6D;
}  

.what-we-do {
  margin-top: 6rem;
  color: white;
  padding: 80px 80px;
  background: url("https://github.com/busepol/dartweb/blob/main/stage.png?raw=true") no-repeat center center;
  background-size: 115%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  height: auto;
}

.what-we-do .content {
  flex: 1; 
  text-align: left;
}

.what-we-do h1 {
  font-size: 5.5rem;
  margin-right: -150px;
  color: #ffcc6d;
  flex: 1;
}

.what-we-do ul {
  list-style-type: disc;
  text-align: center;
  padding-left: 3rem;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.what-we-do li {
  font-size: 1.5rem;
  text-align: left;
  margin: 0.5rem 0;
  margin-bottom: 20px;
}

.our-values {
  margin-top: 6rem;
  color: white;
  padding: 80px 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  height: auto;
}
.our-values h1 {  
  font-size: 5.5rem;
  color: #ffcc6d;
  flex: 1;
}
.our-values p{
  font-size: 1.5rem;
  text-align: right;
  margin: 0.5rem 0;
  margin-bottom: 20px;
}



.icons{
  margin-top: 5rem;
  justify-content: center;
  text-align: center;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  gap:15rem;
  padding-bottom: 4rem;
}

.icons img{
  width: 2.3rem;
  height: 2.3rem;
  opacity: 0.7;
  transition-duration: 200ms;
}

.icons img:hover{
  width: 2.33rem;
  height: 2.33rem;
  opacity: 1;
}

.copyright{
  color: white;
  width: 100%;
  display: flex;
  padding-top: 0.2rem;
  padding-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
  padding-left: 2rem;
}


@media (max-width: 768px) {
  body {
    font-size: 70%; /* Further reduce font size for smaller screens */
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(3px); /* Lighter blur */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9;
  }

  .overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .top {
      background-attachment: fixed;
  }

  .navbar {
    padding-left: 1rem;
    padding-bottom: 0rem;
  }

  .navbar .left {
      padding-top: 0.5rem;
  }

  .navbar .left img {
    width: 55px; /* Smaller logo size */
    height: 55px;
  }

  .navbar a {
    display: none;
  }

  main {
    padding: 2rem; /* Further reduce padding */
  }

  .section {
    flex-direction: row;
    margin-top: 0;
    padding: 3.5rem 1rem;
  }

  .section h1 {
    font-size: 1.5rem; /* Further reduce heading size */
    text-align: center;
  }

  .section p {
    font-size: 0.6rem;
    line-height: 1;
    max-width: 100%;
    text-align: left;
    margin-bottom: 1rem;
  }
  
  .spacer {
    margin: 6px;
}

  .section img {
    max-width: 32%;
    margin: 0 auto;
    padding: 8px;
  }

  .line img {
    width: 88%; /* Further shrink line */
    margin-top: 25.5px;
  }

  .what-we-do {
    flex-direction: row;
    padding: 1rem 1rem;
    background-size: contain;
    height: auto;
    margin-top: 1.5rem;
  }

  .what-we-do h1 {
    font-size: 1.5rem;
    margin: 0;
    padding-left: 7rem;
    text-align: center;
  }

  .about-paragraph {
    margin-bottom: 2px;
    font-size: 0.6rem;
    width: 200%;
    line-height: 1;
    text-align: left;
  }

  .what-we-do ul {
    width: 300%;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 0.6rem
  }

  .what-we-do li {
    font-size: 0.6rem;
    margin-bottom: 0.7rem;
  }

  .what-we-do .content {
    text-align: center;
  }

  .icons {
    flex-direction: row;
    gap: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

  .icons img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .copyright {
    font-size: 0.8rem;
    text-align: center;
    padding: 0.3rem 0.8rem;
  }

  .menu-button {
    display: block;
  }

  .sidebar {
    display: flex;
    width: 10rem; /* Narrower sidebar */
  }

  .sidebar.open {
    right: 0;
  }
}

@media (min-width: 769px) and (max-width: 1180px){
  body {
    font-size: 80%; /* Slightly smaller font size */
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(3px); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9;
  }

  .overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .top {
    background-attachment: fixed;
  }

  .navbar {
    padding-left: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar .left {
      padding-top: 0.8rem;
  }

  .navbar .left img {
    width: 70px; /* Smaller logo size */
    height: 70px;
  }

  .navbar a {
    display: none;
  }

  main {
    padding: 4rem 4rem; 
  }

  .section {
    flex-direction: row;
    justify-content: space-between;
    margin-top: -40px;
    padding: 20px 20px;
  }

  .section h1 {
    padding-right: 40px;
    font-size: 2.3rem; /* Further reduce heading size */
    text-align: center;
  }

  .section p {
    padding-left: 40px;
    font-size: 1rem;
    line-height: 1.3;
    max-width: 90%;
    text-align: left;
  }
  
  .spacer {
    margin: 12px;
}

  .section img {
    max-width: 32%;
    padding: 8px 8px;
  }

  .line img {
    width: 90%; /* Further shrink line */
    margin-top: 63px;
  }



  .what-we-do {
    flex-direction: row;
    padding: 1rem 1rem;
    background-size: contain;
    height: 500px;
    margin-top: -30px;
  }

  .what-we-do h1 {
    font-size: 2.5rem;
    margin: 0;
    padding-left: 7rem;
    text-align: center;
  }

  .about-paragraph {
    margin-bottom: 2px;
    font-size: 1rem;
    width: 200%;
    line-height: 1.3;
    text-align: left;
  }

  .what-we-do ul {
    width: 300%;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 1rem
  }

  .what-we-do li {
    width: ;
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }

  .what-we-do .content {
    text-align: center;
  }


  .icons {
    flex-direction: row;
    gap: 6rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .icons img {
    width: 2rem;
    height: 2rem;
  }

  .copyright {
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem 1rem;
  }

  .menu-button {
    display: block;
  }

  .sidebar {
    display: flex;
    width: 12rem; /* Moderate sidebar width */
  }

  .sidebar.open {
    right: 0;
  }
}
