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

body {
  background: black;
  color: white;
  font-family: sans-serif; /* Qulaylik uchun shrift tushirib qoldirilgan bo'lsa, qoshildi */
}

header {
   position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0.01px solid rgba(255,255,255,0.15);
  box-shadow: 0px 4px 4px rgba(254, 3, 3, 0.25);
  background: linear-gradient(to right,
    rgb(46, 46, 46) 0%,
    rgb(7, 7, 7) 30%,
    rgb(0, 0, 0) 30%, /* Shu yerda vergul yo'q edi, qo'shildi */
    rgb(0, 0, 0) 100%);
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1% 4%;
}

nav {
  display: flex;
  gap: 10vw;
  margin: 0;
  padding: 0;
}

nav ul {
  display: flex;
  gap: 1vw;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  border: 1px solid white;
  padding: 0.5vh 2vw;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

nav ul li a:hover {
  background-color: white;
  color: black;
}

.menu {
  position: fixed;
  display: flex; /* flexbox degan qiymat xato edi, to'g'irlandi */
  justify-content: center;
  align-items: center;
  margin-top: 1.4vh;
  margin-left: 2vw;
  text-align: center;
  color: rgb(243, 20, 0);
  cursor: pointer;
  font-size: 18px;
  height: 35px;
  width: 35px;
  border-radius: 50px;
  background-color: transparent;
  border: 1px solid rgb(237, 9, 9);
  z-index: 1000;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  display: none;
  z-index: 800;
}

#navMenu {
  position: fixed;
  top: 76px;
  left: 0;
  width: 43%;
  height: calc(100vh - 76px);
  background: rgba(0,0,0,0.88);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 900;
}

#overlay.active {
  display: block;
}

#navMenu.active {
  transform: translateX(0);
}

#navMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 25%;
  padding-top: 15%;
}

#navMenu ul li {
  margin-bottom: 20px;
}

#navMenu ul li a {
  color: red;
  text-decoration: none;
  font-size: 20px;
  display: inline-block;
  padding: 15px 50px;
  transition: transform 0.3s;
}

#navMenu ul li a:hover {
  color: white;
  transform: scale(1.05); /* Kichik effekt qo'shildi */
}

/* --- HERO SECTION MOSLASHUVCHANLIGI --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1% 5%;
  min-height: calc(100vh - 80px); /* Ekranni to'ldirib turishi uchun */
  gap: 30px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-content h1 {
  font-size: 55px;
  color: rgb(221, 6, 38);
}

.hero-content h2 {
  font-size: 45px;
}

.hero-content h5 {
  color: rgb(141, 139, 139);
  max-width: 80%;
  line-height: 1.5;
}

.cv ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.cv ul li a {
  color: white;
  border: 1px solid white;
  padding: 10px 30px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.cvli a:hover, .cvli a:active {
  background-color: white;
  color: black;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#men {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* --- ABOUT VA CONTACT BO'LIMLARI --- */
.aboutme {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(to right, rgb(0, 0, 0), rgb(12, 12, 12), rgb(16, 16, 16));
  padding: 50px 5%;
}

.about h2 {
  color: rgb(255, 0, 0);
  font-size: 40px;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

.aboutbar{
  width: 10%;
}
.aboutbar ul {
  cursor: pointer;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  font-size: 20px;
  list-style: none;
  padding-left: 20px;
}

.aboutbar ul li {
  transition: 0.3s;
}

.aboutbar ul li:hover, .aboutbar ul li:active {
  color: red;
}

.contact {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(to right, rgb(0, 0, 0), rgb(17, 17, 17), rgb(21, 21, 21));
  padding: 50px 5%;
}

.contact h2 {
  color: rgb(255, 0, 0);
  font-size: 40px;
  margin-top: 50px;
  text-align: center;
}

.my-friend{
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(to right, rgb(0, 0, 0), rgb(17, 17, 17), rgb(21, 21, 21));
  padding: 50px 5%;
}
.my-friend h2{

  color: rgb(255, 0, 0);
  font-size: 40px;
  margin-top: 50px;
  text-align: center;
}









.the-end {

  min-height: 60vh

}

.the-end h2{
   color: rgb(196, 190, 190);
  font-size: 40px;
  margin-top: 50px;
  text-align: center;
}

.hr{
  width: 93%;
  margin: 0 auto;
   border-radius: 5px;
  border: 0.5px solid rgba(63, 61, 61, 0.15);
  box-shadow: 4px 4px 4px rgb(255, 0, 0);
  background-color: black;
  border-radius: 30px;
}