*{
    margin: 0;
    padding: 0;
}
 body{
     background-image: url('images/codioful-formerly-gradienta-vzA7K76Zmaw-unsplash.jpg');
     background-position: center;
     background-size: 120%;
    }
 .header {
  display: flex;
  height: 5px;
    width: 98.7%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/QQQQQQ.jpg);
    background-position: 0 395px;
    background-size: 50%;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 0 10px;
}
section.header {
  height: 63px;
  display: flex;
  align-items: flex-start;
}
.header nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
 ul {
    color: #4a4b4b;
     display: flex;
     justify-content: space-evenly;
    flex-direction: row-reverse;
    }
section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 1.8em;
  color: #d0e6ff;
  text-align: center;
  position: static;
  top: 10%;
  text-align: center;
  transform: none;
  margin: 0 auto;
  padding: 16px;
   margin-top: 1px; /* Move down */
    margin-bottom: 3px; /* Move up */
    margin-left: 693px; /* Move right */
    margin-right: 40px;
}
.box{ 
     width: 400px;
     border: 2px solid #f5f6fc;
     height: 28vh;
     display: flex;
     justify-content: center;
    align-items: center;
}

nav {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding: 10px 20px;
  align-items: center;
}
nav img{
 width: 60px;
 height: auto;
}
.nav-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 0;
}
.nav-links ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  text-align: right;
  padding: 0;
 
}
.nav-links a {
  color: #aec3b0;
  font-size: 18px;
  text-decoration: none;
}

.nav-link ul li{
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}


.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #838282;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}
nav:nth-of-type(2) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

nav:nth-of-type(2) a {
  color: #4a3d3d;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background 0.3s ease;
}


.container {
  border-radius: 5px;
  background-color: #eff6e0;
  padding: 20px;}

section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  font-size: 2em;
  color: #598392;
  margin: 0.83em 0;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0 0 10px 0;
}

.box, .text-box {
  width: 90%;
  max-width: 800px;
  background: #eff6e0;
  border: 1px solid #eff6e0 ;
  border-radius: 12px;
  padding: 30px;
  text-align: right;
  line-height: 2;
  font-size: 18px;
}

.text-box {
  margin-top: 20px;
}
#main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding:10px 15px;
  background: #b0c4b1;
  position: sticky;
  top: 0;
  z-index: 100;
}
#main-nav a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background 0.3s;
  font-size: 20px;
 
}

#main-nav a:hover {
  background: #52796f;
}

#main-nav img {
  height: 40px;
}

html {
  scroll-behavior: smooth;
}