@font-face {
  font-display: swap;
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/noto-serif-v28-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/noto-serif-v28-latin-500.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/noto-serif-v28-latin-700.woff2") format("woff2");
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.4s ease-out;
}

a {
  display: inline-block;
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.4s ease-out, transform 0.3s ease;
}

a:hover {
  color: #3498db;
  transform: scale(1.05);
}

img {
  display: flex;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

ul,
ol {
  list-style: none;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #f8faf9, #e9f4ff);
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Noto Serif", serif;
  color: #2c3e50;
  background-color: #ffffff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  border-radius: 0;
  /* Radius o'chirildi, to'liq ekranga moslash uchun */
  overflow-x: hidden;
  width: 100%;
  /* To'liq kenglik */
}

main {
  flex-grow: 1;
  width: 100%;
  /* To'liq kenglik */
}

.container {
  width: 100%;
  /* To'liq kenglik */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  /* Kichikroq padding */
  padding-right: 20px;
  /* Kichikroq padding */
  box-sizing: border-box;
  /* Padding kenglikka hisoblanadi */
}

.header {
  /* padding: 140px 0; */
  padding-bottom: 140px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: #ffffff;
  text-align: center;
  border-radius: 0;
  /* Radius o'chirildi */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  /* To'liq kenglik */
}

.header__title {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  word-break: break-word;
}

.header__description {
  font-size: 28px;
  opacity: 0.85;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  word-break: break-word;
}

.portfolio__list {
  display: flex;
  flex-direction: column;
  /* Vertikal joylashuv */
  gap: 50px;
  padding: 60px 0;
  align-items: center;
  /* Markazda joylashish */
  width: 100%;
  /* To'liq kenglik */
  transition: opacity 0.5s ease-out;
}

.portfolio__item {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease-out, box-shadow 0.5s ease-out, background 0.5s ease-out;
  opacity: 0;
  transform: translateY(50px);
  width: 90%;
  /* To'liq kenglikka yaqin, lekin margin bilan chiroyli */
  max-width: none;
  /* Maksimal kenglik o'chirildi */
}

.portfolio__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: #f9f9f9;
}

.portfolio__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio__content__wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 100%;
  /* To'liq kenglik */
}

.portfolio__counter {
  font-size: 24px;
  color: #7f8c8d;
  opacity: 0.8;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.portfolio__title {
  font-size: 32px;
  color: #3498db;
  font-weight: 600;
  transition: transform 0.3s ease-out, color 0.3s ease-out;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  width: 100%;
  /* To'liq kenglik */
}

.portfolio__links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  /* Markazda joylashish */
  margin-top: 15px;
  width: 100%;
  /* To'liq kenglik */
  transition: transform 0.3s ease-out;
}

.portfolio__link {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  color: #7f8c8d;
  transition: color 0.4s ease-out, transform 0.3s ease-out;
}

.portfolio__link:hover {
  color: #3498db;
  transform: scale(1.1);
}

.portfolio__link i {
  font-size: 22px;
}

.footer {
  padding: 40px 0;
  background: linear-gradient(45deg, #2980b9, #3498db);
  color: #ffffff;
  text-align: center;
  border-radius: 0;
  /* Radius o'chirildi */
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 0;
  transform: translateY(50px);
  width: 100%;
  /* To'liq kenglik */
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer p {
  font-size: 18px;
}

#time {
  color: #f8faf9;
  transition: color 0.3s ease-out;
}

/* Navbar styles */
.navbar {
  background: #3498db;
  color: #ffffff;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 100px;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.navbar__menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.navbar__item {
  margin: 0;
}

.navbar__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar__link:hover {
  color: #f1c40f;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar {
    margin-bottom: 80px;
  }

  .navbar__toggle {
    display: block;
  }

  .navbar__menu {
    display: none;
    flex-direction: column;
    background: #2980b9;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .navbar__menu.active {
    display: flex;
  }

  .navbar__item {
    text-align: center;
    padding: 10px 0;
  }
}

/* Responsiv dizayn */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    padding-bottom: 80px;
  }

  .header__title {
    font-size: 48px;
  }

  .header__description {
    font-size: 20px;
  }

  .portfolio__list {
    gap: 30px;
    padding: 40px 0;
  }

  .portfolio__item {
    padding: 20px;
    width: 95%;
    /* Kichik ekranda yanada kengroq */
  }

  .portfolio__title {
    font-size: 24px;
  }

  .portfolio__counter {
    font-size: 20px;
  }

  .portfolio__link {
    font-size: 16px;
  }

  .portfolio__link i {
    font-size: 18px;
  }

  .footer {
    padding: 20px 0;
  }

  .footer p {
    font-size: 16px;
  }
}

/* Animatsiya uchun skroll effektlari */
.portfolio__item,
.footer {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: calc(var(--order) * 0.2s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}