* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Арын дэвсгэр: Хар өнгө болон тойрог хэлбэрийн долгион хээ */
  background-color: #100f0ff8;
  background-image:
    radial-gradient(
      circle at center,
      transparent 0%,
      transparent 20%,
      rgba(255, 255, 255, 0.05) 21%,
      transparent 22%
    ),
    radial-gradient(
      circle at center,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.05) 41%,
      transparent 42%
    ),
    radial-gradient(
      circle at center,
      transparent 0%,
      transparent 60%,
      rgba(255, 255, 255, 0.05) 61%,
      transparent 62%
    ),
    radial-gradient(
      circle at center,
      transparent 0%,
      transparent 80%,
      rgba(255, 255, 255, 0.05) 81%,
      transparent 82%
    );
  background-size: 100% 100%;
  background-attachment: fixed;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 30px 60px;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  letter-spacing: 1px;
}

.nav-links a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  margin: 0 8px;
  transition: 0.3s ease;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: #00f2ff !important;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.8);
}

.top-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.8) 5%, transparent 25%),
    url("assets/images/бохир-намтар.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.hero {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 5% 60px 5%;
}
.hero-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 5%;
  width: 400px;
  height: 500px;
  background: url("assets/images/hero-character.png") no-repeat;
  background-size: contain;
  opacity: 0.8;
  z-index: -1;
}

.hero-text {
  margin-bottom: 30px;
}

.hero-sub {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 100px;
  letter-spacing: 15px;
  font-weight: 900;
  line-height: 1;
}

.collab-btn {
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.collab-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #000000;
  border-color: #ffffff;
}

/* Төв хэсгийн бичвэрүүд */
.content-section {
  max-width: 70%;
  margin: 0 auto;
  text-align: center;
  padding: 100px 20px;
}

.content-section h3 {
  font-size: 24px;
  color: #ffffff;
  letter-spacing: 5px;
  margin-bottom: 25px;
  opacity: 0.8;
  text-transform: uppercase;
}

.content-section p {
  font-size: 15px;
  margin-bottom: 15px;
  color: #ddd;
  text-align: justify;
  margin-bottom: 10vh;
}

.skill-tags {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  word-spacing: 25px;
  margin: 30px 0;
  opacity: 0.8;
  color: #fff;
  margin-bottom: 10vh;
}

/* Төслүүдийн хэсэг */
.projects-section {
  text-align: center;
}
.intro-btn {
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 35px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.intro-btn:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.projects-section h2 {
  font-size: 36px;
  margin: 40px 0;
  letter-spacing: 2px;
}

/* Проектийн тор (Grid) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10vw;
  padding: 50px 0;
  max-width: 80%;
  margin: 0 auto;
}

.project-card {
  background-color: #000000;
  border-radius: 40px;
  aspect-ratio: 3 / 4;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-card img {
  max-width: 90%;
  max-height: 60%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-card p {
  display: none;
}

/* Хамтрагч байгууллагууд */
.partners-section {
  margin-top: 10vh;
}

.partners-title {
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ffffff;
  opacity: 0.9;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.partner-logos img {
  height: 12vw;
  border-radius: 10%;
  filter: grayscale(1) brightness(2);
  opacity: 0.8;
  transition: 0.3s;
}

.partner-logos img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* Footer */
footer {
  padding: 150px 0;
  text-align: center;
}

footer h2 {
  font-size: 40px;
  letter-spacing: 5px;
  font-weight: 900;
  opacity: 0.9;
}

/* Мобайл тохиргоо */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 50px;
  }
  .project-grid {
    flex-direction: column;
    align-items: center;
  }
  .partner-logos {
    flex-direction: column;
    gap: 30px;
  }
}
/* --- RESPONSIVE DESIGN IMPROVEMENTS --- */

/* Таблет болон жижиг дэлгэц (Max 1024px) */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 багана болгох */
    gap: 5vw;
    max-width: 90%;
  }

  .hero h1 {
    font-size: 80px;
  }
}

/* Гар утас (Max 768px) */
@media (max-width: 768px) {
  /* Navigation */
  .top-section {
    background:
      linear-gradient(to right, rgba(0, 0, 0, 0.8) 5%, transparent 25%),
      url("assets/images/намтар.PNG") no-repeat center top;
    background-size: cover;
    background-attachment: scroll;
  }

  .hero::before {
    background: url("assets/images/намтар.PNG") no-repeat;
    background-size: contain;
    top: 5%;
    left: 2%;
    width: 250px;
    height: 350px;
    opacity: 0.6;
  }
  nav {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 15px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* Hero Section */
  .top-section {
    height: auto;
    min-height: 100vh;
  }

  .hero {
    padding: 100px 20px 40px 20px;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .hero h1 {
    font-size: 45px; /* Утсан дээр багтахуйц хэмжээ */
    letter-spacing: 5px;
    margin-bottom: 20vh;
  }

  .hero-sub {
    font-size: 18px;
  }

  .collab-btn {
    font-size: 18px;
    padding: 10px 25px;
    width: 100%; /* Товчлуурыг бүтэн өргөнөөр */
    text-align: center;
  }

  /* Content Section */
  .content-section {
    max-width: 95%;
    padding: 60px 15px;
  }

  .skill-tags {
    font-size: 16px;
    word-spacing: 10px;
  }

  /* Projects Grid */
  .project-grid {
    grid-template-columns: 1fr; /* Утсан дээр 1 багана */
    gap: 30px;
    max-width: 85%;
  }

  .project-card {
    aspect-ratio: 1 / 1; /* Утсан дээр дөрвөлжин байвал илүү цэвэрхэн */
  }

  /* Partners */
  .partner-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Логонуудыг 2 эгнээ болгох */
    gap: 20px;
    padding: 0 20px;
  }

  .partner-logos img {
    height: auto;
    width: 80%;
    margin: 0 auto;
  }

  /* Footer */
  footer {
    padding: 80px 20px;
  }

  footer h2 {
    font-size: 28px;
  }
}

/* Маш жижиг утас (Max 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .content-section h3 {
    font-size: 18px;
    letter-spacing: 2px;
  }
}
